:root {
    --bg: #f5f6f8;
    --text: #121212;
    --muted: #525768;
    --accent: #111318;
    --purple: #7d5cff;
    --badge-bg: #eef0f5;
    --gradient: linear-gradient(135deg, #c7f3ff 0%, #d8e6ff 52%, #f4d5ff 100%);
    --gradient-strong: linear-gradient(135deg, #6af2d6 0%, #7e9cff 50%, #f98fff 100%);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text);
    background: var(--bg);
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--bg);
}

aside {
    background: var(--accent);
    color: #f3f4f7;
    display: flex;
    flex-direction: column;
    padding: 48px 40px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 60px;
}

nav ul {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: grid;
    gap: 24px;
}

nav ul li {
    color: #d7d9e0;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-left: 26px;
}

nav ul li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a2d35;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

nav ul li a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 6px 0;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #ffffff;
}

nav ul li.active {
    color: #ffffff;
}

nav ul li.active::before {
    background: var(--gradient-strong);
}

.sidebar-actions {
    margin-top: auto;
    display: grid;
    gap: 20px;
}

.pill {
    background: linear-gradient(135deg, #1f222b 0%, #2d3b52 25%, #3d2d4f 50%, #2d3b52 75%, #1f222b 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 14px 18px;
    border-radius: 12px;
    color: #f2f5ff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pill.secondary {
    background: transparent;
    border: 1px solid #2e3240;
    color: #cfd3e3;
    text-align: center;
}

main {
    padding: 56px 80px 64px;
    display: grid;
    gap: 72px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-topbar {
    display: none;
}

.mobile-nav-toggle {
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-nav-toggle:focus-visible {
    outline: 2px solid rgba(125, 92, 255, 0.4);
    outline-offset: 2px;
}

.mobile-nav-toggle:hover {
    background: rgba(17, 19, 24, 0.06);
}

.mobile-nav-toggle-box {
    position: relative;
    width: 22px;
    height: 16px;
    display: inline-block;
}

.mobile-nav-toggle-line,
.mobile-nav-toggle-line::before,
.mobile-nav-toggle-line::after {
    content: "";
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    position: absolute;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0) rotate(0);
}

.mobile-nav-toggle-line {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav-toggle-line::before {
    top: -6px;
}

.mobile-nav-toggle-line::after {
    top: 6px;
}

.mobile-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: right;
    color: var(--accent);
}

.sidebar-overlay {
    display: none;
}

body.sidebar-open {
    overflow: hidden;
}

.hero {
    background: #fff;
    border-radius: 32px;
    padding: 48px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-visual-card {
    width: 260px;
    max-width: 300px;
    height: 320px;
    aspect-ratio: 5 / 6;
    border-radius: 32px;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 18px;
    box-shadow: 0 26px 46px rgba(17, 19, 24, 0.16);
    overflow: hidden;
}

.hero-visual-card img {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 56px;
    margin: 0 0 24px;
    position: relative;
    width: fit-content;
}

.hero h1::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(90deg, rgba(109, 225, 255, 0.4) 0%, rgba(126, 158, 255, 0.5) 25%, rgba(247, 154, 255, 0.5) 50%, rgba(126, 158, 255, 0.5) 75%, rgba(109, 225, 255, 0.4) 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

.hero p {
    margin: 0 0 32px;
    max-width: 520px;
    line-height: 1.6;
    color: var(--muted);
}

.cta-group {
    display: flex;
    gap: 16px;
}

.cta-group a {
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-primary {
    background: linear-gradient(135deg, #111318 0%, #1e3a5f 25%, #5a2d5f 50%, #1e3a5f 75%, #111318 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    box-shadow: 0 10px 18px rgba(20, 22, 30, 0.25);
}

.cta-secondary {
    background: transparent;
    border: 1px solid #d4d6dd;
    color: var(--text);
}

.cta-group a:hover {
    transform: translateY(-2px);
}

section h2:not(.project-title) {
    font-size: 34px;
    margin: 0 0 30px;
    position: relative;
    width: fit-content;
}

section h2:not(.project-title)::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(90deg, rgba(109, 225, 255, 0.4) 0%, rgba(126, 158, 255, 0.5) 25%, rgba(247, 154, 255, 0.5) 50%, rgba(126, 158, 255, 0.5) 75%, rgba(109, 225, 255, 0.4) 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
}

.skill-card h3 {
    font-size: 18px;
    margin: 0 0 12px;
}

.skill-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.divider {
    height: 4px;
    width: fit-content;
    min-width: 120px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(109, 225, 255, 0.4) 0%, rgba(126, 158, 255, 0.5) 48%, rgba(247, 154, 255, 0.5) 100%);
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 25px;
}

.tool {
    background: var(--badge-bg);
    color: #1b1e27;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.experience {
    display: grid;
    gap: 32px;
    
}

.experience-item {
    background: #fff;
    border-radius: 28px;
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: "";
    width: 116px;
    height: 116px;
    background: linear-gradient(135deg, #c7f3ff 0%, #d8e6ff 25%, #f4d5ff 50%, #d8e6ff 75%, #c7f3ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: absolute;
    left: 24px;
    top: 24px;
    border-radius: 24px;
    opacity: 0.8;
    z-index: 0;
}

.experience-timeline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.timeline-date {
    display: inline-block;
    
    font-weight: 600;
    font-size: 14px;
    padding: 26px 16px;
    
}

.experience-company {
    margin: 0 0 12px;
    color: var(--purple);
    font-weight: 600;
    font-size: 15px;
}

.experience-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.experience-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
}

.contact {
    background: #fff;
    border-radius: 28px;
    padding: 48px 52px;
    display: grid;
    gap: 24px;
}

.contact-card {
    display: grid;
    gap: 24px;
}

.contact-lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 520px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.contact-grid h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.contact-grid a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.contact-grid a:hover {
    color: var(--purple);
}

.contact-form {
    display: grid;
    gap: 24px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-form-group {
    display: grid;
    gap: 8px;
}

.contact-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    border: 1px solid #dfe3ec;
    border-radius: 16px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: #f7f8fb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(125, 92, 255, 0.15);
    background: #ffffff;
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-submit {
    justify-self: start;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: var(--gradient-strong);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(125, 92, 255, 0.18);
}

.contact-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 92, 255, 0.28);
}

.projects-layout main {
    gap: 56px;
}

.projects-hero {
    background: #fff;
    border-radius: 32px;
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.projects-hero-kicker {
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 12px;
}

.projects-hero h1 {
    margin: 0;
    font-size: 46px;
}

.projects-hero p {
    margin: 0;
    max-width: 420px;
    color: var(--muted);
    line-height: 1.7;
}

.projects-list {
    display: grid;
    gap: 40px;
}

.project-card {
    background: #fff;
    border-radius: 36px;
    padding: 48px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.06);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 36px;
    border: 1px solid rgba(17, 19, 24, 0.06);
    pointer-events: none;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.project-type {
    font-weight: 600;
    font-size: 18px;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-badge {
    background: var(--badge-bg);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.06);
}

.project-title {
    margin: 0 0 32px;
    font-size: 32px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-title a {
    color: #0000EE;
    text-decoration: underline;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-role h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.role-tags span {
    display: inline-block;
    background: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(17, 19, 30, 0.1);
}

.project-duties {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.project-duties li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    line-height: 1.6;
}

.project-duties li::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a1f8ff 0%, #c2c9ff 52%, #ffc1ff 100%);
    position: absolute;
    left: 0;
    top: 8px;
}

.project-actions {
    margin-top: 28px;
}

.project-actions .cta-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.project-actions .cta-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.projects-hero-meta {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.projects-hero-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.hero-tech-stack {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tech-stack .tool-badge {
    background: #ffffff;
}

.ecosystem-hub {
    background: #ffffff;
    border-radius: 36px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.06);
    display: grid;
    gap: 24px;
}

.ecosystem-head h2 {
    margin: 0 0 14px;
    font-size: 34px;
}

.ecosystem-head p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

.ecosystem-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}

.ecosystem-tablist {
    display: grid;
    gap: 12px;
    align-content: start;
    align-self: start;
    position: sticky;
    top: 24px;
    grid-auto-rows: 1fr;
}

.ecosystem-tab {
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 18px;
    background: #ffffff;
    padding: 20px 18px;
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 146px;
    height: 100%;
}

.ecosystem-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(17, 19, 24, 0.08);
}

.ecosystem-tab.is-active {
    border-color: rgba(125, 92, 255, 0.45);
    background: linear-gradient(135deg, rgba(106, 242, 214, 0.13) 0%, rgba(126, 156, 255, 0.14) 50%, rgba(249, 143, 255, 0.14) 100%);
    box-shadow: 0 18px 32px rgba(17, 19, 24, 0.1);
}

.ecosystem-tab:focus-visible {
    outline: 2px solid rgba(125, 92, 255, 0.45);
    outline-offset: 2px;
}

.ecosystem-tab-index {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    background: rgba(17, 19, 24, 0.05);
}

.ecosystem-tab-domain {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.ecosystem-tab-role {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
}

.ecosystem-tab-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #5a6172;
}

.ecosystem-panel {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(245, 247, 255, 0.9);
    border: 1px solid rgba(17, 19, 24, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ecosystem-panel.is-switching {
    opacity: 0.65;
    transform: translateY(6px);
}

.ecosystem-panel-media {
    background: #0f1420;
    min-height: 220px;
    position: relative;
    touch-action: pan-y;
}

.ecosystem-panel-media.has-multi-images {
    cursor: grab;
}

.ecosystem-panel-media.has-multi-images.is-dragging {
    cursor: grabbing;
}

.ecosystem-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    display: block;
    cursor: zoom-in;
}

.ecosystem-media-nav {
    z-index: 2;
}

.ecosystem-panel-body {
    padding: 24px;
    display: grid;
    gap: 14px;
}

.ecosystem-panel-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.ecosystem-panel-title {
    margin: 0;
    font-size: 28px;
}

.ecosystem-panel-title a {
    color: var(--accent);
    text-decoration: none;
}

.ecosystem-panel-title a:hover {
    text-decoration: underline;
}

.ecosystem-panel-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.ecosystem-panel-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ecosystem-panel-points li {
    color: var(--muted);
    line-height: 1.55;
    position: relative;
    padding-left: 22px;
}

.ecosystem-panel-points li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-strong);
    position: absolute;
    left: 0;
    top: 8px;
}

.ecosystem-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.strategy-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.06);
    border: 1px solid rgba(17, 19, 24, 0.06);
    display: grid;
    gap: 16px;
}

.strategy-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.strategy-card h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.strategy-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.strategy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.process-accordion {
    background: #ffffff;
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 18px 44px rgba(17, 19, 24, 0.06);
    border: 1px solid rgba(17, 19, 24, 0.06);
    display: grid;
    gap: 14px;
}

.process-item {
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 20px;
    background: #fbfcff;
    padding: 6px 20px 20px;
}

.process-item + .process-item {
    margin-top: 10px;
}

.process-item summary {
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 14px 30px 12px 0;
}

.process-item summary::-webkit-details-marker {
    display: none;
}

.process-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.process-item[open] summary::after {
    content: "-";
}

.result-highlight {
    background: linear-gradient(135deg, rgba(106, 242, 214, 0.16) 0%, rgba(126, 156, 255, 0.16) 50%, rgba(249, 143, 255, 0.16) 100%);
    border-radius: 36px;
    padding: 1px;
}

.result-card {
    background: #ffffff;
    border-radius: 35px;
    padding: 36px;
    border: 1px solid rgba(17, 19, 24, 0.05);
}

.result-card h2 {
    margin: 8px 0 14px;
    font-size: 36px;
}

.result-card p {
    margin: 0;
    max-width: 880px;
    color: var(--muted);
    line-height: 1.75;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: blur(3px);
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1),
        filter 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.is-revealed {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.project-visual {
    position: relative;
    border-radius: 32px;
    background: rgba(240, 243, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}

.project-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-viewport {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #0f1420;
    box-shadow: inset 0 0 0 1px rgba(17, 19, 30, 0.08);
}

.project-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
    cursor: grab;
    border: #c4c4c4 1px solid;
}

.project-gallery-track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.project-gallery-track img {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: auto;
    cursor: zoom-in;
    background-color: #ffffff;
    background-repeat: no-repeat;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 19, 30, 0.62);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.gallery-nav span {
    font-size: 26px;
    line-height: 1;
    padding-bottom: 2px;
}

.gallery-nav--prev {
    left: 20px;
}

.gallery-nav--next {
    right: 20px;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    background: rgba(17, 19, 30, 0.82);
}

.gallery-nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.project-gallery-track img:focus-visible {
    outline: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 30;
    backdrop-filter: blur(6px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(1060px, 92vw);
    max-height: 88vh;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(8, 12, 24, 0.6);
    transition: transform 0.2s ease;
    transform-origin: center;
    touch-action: none;
}

.lightbox-image.is-zoomed {
    cursor: grab;
}

.lightbox-image.is-panning {
    cursor: grabbing;
}

.lightbox-toolbar {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(10, 12, 20, 0.85);
    box-shadow: 0 12px 32px rgba(4, 8, 16, 0.35);
    backdrop-filter: blur(8px);
}

.gallery-nav[hidden] {
    display: none !important;
}

.lightbox-zoom-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-zoom-btn:hover,
.lightbox-zoom-btn:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.lightbox-zoom-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(17, 19, 30, 0.85);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(17, 19, 30, 0.98);
    transform: scale(1.05);
}

.lightbox-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 12, 20, 0.78);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav--prev {
    left: 28px;
    padding-bottom: 4px;
}

.lightbox-nav--next {
    right: 28px;
    padding-bottom: 4px;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: rgba(10, 12, 20, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.lightbox-nav[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.project-visual-inner {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(108, 240, 217, 0.78) 0%, rgba(129, 187, 255, 0.8) 50%, rgba(247, 178, 255, 0.82) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.project-visual-inner.gradient-two {
    background: linear-gradient(135deg, rgba(255, 214, 153, 0.85) 0%, rgba(255, 153, 204, 0.82) 45%, rgba(153, 204, 255, 0.88) 100%);
}

.project-visual-inner.gradient-three {
    background: linear-gradient(135deg, rgba(152, 255, 210, 0.9) 0%, rgba(178, 200, 255, 0.85) 48%, rgba(255, 182, 234, 0.88) 100%);
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-strong);
    transform: translate(-50%, -50%) scale(0.6);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
    z-index: 10;
    box-shadow: 0 0 18px rgba(125, 92, 255, 0.35);
}

.cursor-dot.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (pointer: coarse) {
    .cursor-dot {
        display: none;
    }
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 240px 1fr;
    }

    main {
        padding: 48px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 40px;
        gap: 36px;
    }

    .hero-visual {
        justify-content: flex-start;
        
    }

    .hero-visual-card {
        width: 100%;
        max-width: 360px;
        height: auto;
        padding: 24px 32px 0;
        aspect-ratio: 5 / 6;
    }

    .hero-visual-card img {
        max-width: 100%;
        
    }

    .projects-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .ecosystem-hub {
        padding: 34px;
    }

    .ecosystem-shell {
        grid-template-columns: 1fr;
    }

    .ecosystem-tablist {
        position: static;
        top: auto;
        grid-auto-rows: auto;
    }

    .ecosystem-tab {
        min-height: 0;
        height: auto;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .result-card h2 {
        font-size: 30px;
    }

    .project-card {
        grid-template-columns: 1fr;
        padding: 40px 44px;
    }

    .project-visual {
        min-height: 260px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav span {
        font-size: 22px;
        
    }
}

@media (max-width: 820px) {
    .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        grid-column: 1 / -1;
        position: sticky;
        top: 0;
        z-index: 40;
        background: rgba(245, 246, 248, 0.95);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(18, 19, 24, 0.06);
    }

    .mobile-brand {
        display: inline-block;
        font-size: 20px;
        letter-spacing: 0.16em;
        white-space: nowrap;
        text-align: left;
    }

    .mobile-brand br {
        display: none;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 19, 24, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    aside {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 82vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
        padding: 40px 32px;
        border-top-right-radius: 32px;
        border-bottom-right-radius: 32px;
        box-shadow: 0 28px 42px rgba(17, 19, 24, 0.28);
        z-index: 45;
        overflow-y: auto;
    }

    aside .brand {
        margin-bottom: 40px;
    }

    nav ul {
        gap: 20px;
    }

    .sidebar-actions {
        margin-top: 48px;
    }

    main {
        grid-column: 1 / -1;
        padding: 32px 24px 56px;
    }

    .experience-item {
        grid-template-columns: 1fr;
    }

    .experience-item::before {
        width: 240px;
        height: 140px;
        left: -40px;
        top: -40px;
    }

    .experience-timeline {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }

    .projects-hero {
        padding: 36px 32px;
    }

    .projects-hero-meta p {
        font-size: 14px;
    }

    .ecosystem-hub {
        padding: 28px;
        border-radius: 28px;
    }

    .ecosystem-head h2 {
        font-size: 28px;
    }

    .ecosystem-panel-title {
        font-size: 24px;
    }

    .strategy-card {
        padding: 28px;
        border-radius: 24px;
    }

    .strategy-card h2 {
        font-size: 25px;
    }

    .process-accordion {
        padding: 28px;
        border-radius: 24px;
    }

    .result-card {
        padding: 28px;
    }

    .project-card {
        padding: 32px;
    }

    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-visual {
        min-height: 220px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-nav--prev {
        left: 12px;
    }

    .gallery-nav--next {
        right: 12px;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.sidebar-open aside {
        transform: translateX(0);
    }

    body.sidebar-open .mobile-nav-toggle-line {
        background: transparent;
    }

    body.sidebar-open .mobile-nav-toggle-line::before {
        transform: translateY(6px) rotate(45deg);
    }

    body.sidebar-open .mobile-nav-toggle-line::after {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 32px 24px;
        gap: 28px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-visual-card {
        padding: 24px 24px 0;
        max-width: 320px;
    }

    .cta-group {
        flex-direction: column;
        text-align: center;
    }

    .projects-hero {
        padding: 28px 24px;
    }

    .ecosystem-hub {
        padding: 24px 20px;
    }

    .ecosystem-tab {
        padding: 14px;
    }

    .ecosystem-panel-body {
        padding: 18px;
    }

    .ecosystem-panel-title {
        font-size: 22px;
    }

    .strategy-card {
        padding: 24px 20px;
    }

    .strategy-card h2 {
        font-size: 22px;
    }

    .process-accordion {
        padding: 22px 20px;
    }

    .process-item {
        padding: 4px 14px 14px;
    }

    .process-item summary {
        font-size: 17px;
    }

    .result-card {
        padding: 24px 20px;
    }

    .result-card h2 {
        font-size: 26px;
    }

    .project-card {
        padding: 28px 24px;
    }

    .project-visual {
        min-height: 200px;
    }

    .project-tools {
        gap: 8px;
    }

    .gallery-nav {
        width: 34px;
        height: 34px;
    }

    .gallery-nav span {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 24px;
    }
}
