:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f4f4f5;
    --header-bg: rgba(250, 250, 250, 0.86);
    --text: #111111;
    --muted: #52525b;
    --subtle: #71717a;
    --border: rgba(17, 17, 17, 0.12);
    --border-strong: rgba(17, 17, 17, 0.28);
    --pattern-color: rgba(17, 17, 17, 0.055);
    --accent-bg: #111111;
    --accent-text: #fafafa;
    --badge-bg: #f4f4f5;
    --badge-text: #27272a;
    --hero-glow: rgba(17, 17, 17, 0.06);
    --hero-shadow: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.14));
    --text-shadow: 0 3px 12px rgba(17, 17, 17, 0.22), 0 1px 2px rgba(17, 17, 17, 0.16);
    --text-shadow-muted: 0 2px 8px rgba(17, 17, 17, 0.15);
    --card-shadow: 0 10px 26px rgba(17, 17, 17, 0.09), 0 2px 6px rgba(17, 17, 17, 0.05);
    --card-shadow-hover: 0 14px 32px rgba(17, 17, 17, 0.13), 0 4px 10px rgba(17, 17, 17, 0.07);
    --logo-filter: grayscale(1) brightness(0) opacity(0.88);
    --timeline-line: rgba(17, 17, 17, 0.85);
    --timeline-muted: rgba(17, 17, 17, 0.34);
    --timeline-glow: 0 0 10px rgba(17, 17, 17, 0.22);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #09090b;
    --surface: #111114;
    --surface-hover: #18181b;
    --header-bg: rgba(9, 9, 11, 0.86);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --subtle: #71717a;
    --border: rgba(244, 244, 245, 0.12);
    --border-strong: rgba(244, 244, 245, 0.3);
    --pattern-color: rgba(244, 244, 245, 0.055);
    --accent-bg: #f4f4f5;
    --accent-text: #09090b;
    --badge-bg: #1c1c20;
    --badge-text: #e4e4e7;
    --hero-glow: rgba(244, 244, 245, 0.08);
    --hero-shadow: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
    --text-shadow: 0 0 18px rgba(244, 244, 245, 0.34), 0 1px 4px rgba(244, 244, 245, 0.22);
    --text-shadow-muted: 0 0 12px rgba(244, 244, 245, 0.22);
    --card-shadow: 0 0 24px rgba(244, 244, 245, 0.08), 0 2px 10px rgba(244, 244, 245, 0.05);
    --card-shadow-hover: 0 0 30px rgba(244, 244, 245, 0.12), 0 4px 14px rgba(244, 244, 245, 0.08);
    --logo-filter: grayscale(1) brightness(0) invert(0.95);
    --timeline-line: rgba(244, 244, 245, 0.9);
    --timeline-muted: rgba(244, 244, 245, 0.34);
    --timeline-glow: 0 0 12px rgba(244, 244, 245, 0.35);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #09090b;
        --surface: #111114;
        --surface-hover: #18181b;
        --header-bg: rgba(9, 9, 11, 0.86);
        --text: #f4f4f5;
        --muted: #a1a1aa;
        --subtle: #71717a;
        --border: rgba(244, 244, 245, 0.12);
        --border-strong: rgba(244, 244, 245, 0.3);
        --pattern-color: rgba(244, 244, 245, 0.055);
        --accent-bg: #f4f4f5;
        --accent-text: #09090b;
        --badge-bg: #1c1c20;
        --badge-text: #e4e4e7;
        --hero-glow: rgba(244, 244, 245, 0.08);
        --hero-shadow: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
        --text-shadow: 0 0 18px rgba(244, 244, 245, 0.34), 0 1px 4px rgba(244, 244, 245, 0.22);
        --text-shadow-muted: 0 0 12px rgba(244, 244, 245, 0.22);
        --card-shadow: 0 0 24px rgba(244, 244, 245, 0.08), 0 2px 10px rgba(244, 244, 245, 0.05);
        --card-shadow-hover: 0 0 30px rgba(244, 244, 245, 0.12), 0 4px 14px rgba(244, 244, 245, 0.08);
        --logo-filter: grayscale(1) brightness(0) invert(0.95);
        --timeline-line: rgba(244, 244, 245, 0.9);
        --timeline-muted: rgba(244, 244, 245, 0.34);
        --timeline-glow: 0 0 12px rgba(244, 244, 245, 0.35);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--pattern-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--pattern-color) 1px, transparent 1px);
    background-size: 36px 36px;
    background-position: center top;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
    text-decoration-color: var(--text);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px;
    gap: 16px;
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.94rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: none;
    }

    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: inline-block;
    }
}

.hero {
    --hero-scroll: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.28fr);
    gap: 20px;
    align-items: center;
    min-height: calc(100vh - 58px);
    min-height: calc(100dvh - 58px);
    padding: 32px 0 0;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding-bottom: 72px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--subtle);
    font-weight: 600;
    text-shadow: var(--text-shadow-muted);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 3.8vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-shadow: var(--text-shadow);
}

.lead {
    margin: 0 0 26px;
    color: var(--muted);
    max-width: 54ch;
    font-size: 1.04rem;
    text-shadow: var(--text-shadow-muted);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-media {
    --hero-scale: 1.22;
    --hero-hover: 0;
    position: relative;
    width: 100%;
    max-width: 740px;
    justify-self: end;
    align-self: end;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 6% 4% 0;
    background: radial-gradient(circle at 54% 62%, var(--hero-glow) 0%, transparent 70%);
    opacity: calc(1 - var(--hero-scroll) * 0.95);
    pointer-events: none;
}

.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 64px);
    display: block;
    object-fit: contain;
    transform: translateY(calc(var(--hero-scroll) * 40px)) scale(calc(var(--hero-scale) + var(--hero-hover) - var(--hero-scroll) * 0.08));
    transform-origin: 54% 100%;
    opacity: calc(1 - var(--hero-scroll) * 0.95);
    filter: var(--hero-shadow) blur(calc(var(--hero-scroll) * 6px));
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

@media (min-width: 761px) and (hover: hover) {
    .hero-media:hover {
        --hero-hover: 0.055;
    }
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    text-decoration: none;
    text-shadow: var(--text-shadow-muted);
    opacity: calc(1 - var(--hero-scroll) * 3.5);
    transition: color 0.15s ease;
}

.scroll-indicator:hover {
    color: var(--text);
    text-decoration: none;
}

.scroll-wheel {
    animation: scrollWheel 1.8s ease-in-out infinite;
}

.scroll-chevron {
    animation: scrollBounce 1.8s ease-in-out infinite;
}

.scroll-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    55% {
        transform: translateY(8px);
        opacity: 0.25;
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

.btn {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    border-color: var(--border-strong);
    background: var(--surface-hover);
    box-shadow: var(--card-shadow-hover);
}

.btn-primary {
    background: var(--accent-bg);
    border-color: var(--accent-bg);
    color: var(--accent-text);
}

.btn-primary:hover {
    opacity: 0.92;
    background: var(--accent-bg);
    border-color: var(--accent-bg);
}

.section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    margin: 0 0 18px;
    font-size: 1.38rem;
    letter-spacing: -0.015em;
    text-shadow: var(--text-shadow);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.section-head .meta {
    text-shadow: var(--text-shadow-muted);
}

.stack {
    display: grid;
    gap: 30px;
}

.exp-timeline {
    position: relative;
    padding-left: 28px;
}

.exp-head-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
}

.exp-head-row h2 {
    margin: 0;
}

.exp-head-row::before {
    content: "";
    position: absolute;
    left: -20px;
    top: -6px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--timeline-muted) 42%, var(--timeline-line) 100%);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.exp-head-row::after {
    content: "";
    position: absolute;
    left: -24px;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 2px solid var(--timeline-line);
    background: var(--bg);
    z-index: 2;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.exp-item {
    position: relative;
}

.exp-item--current::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 39px;
    border-left: 2px solid var(--timeline-line);
    border-bottom: 2px solid var(--timeline-line);
    border-bottom-left-radius: 10px;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, opacity 0.3s ease 0.12s, border-color 0.2s ease, filter 0.2s ease;
}

.exp-item--current::after {
    content: "";
    position: absolute;
    left: -20px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--timeline-muted) 0 5px, transparent 5px 10px);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.24s, opacity 0.3s ease 0.24s, background 0.2s ease;
}

.exp-item--past::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 39px;
    border-left: 2px dashed var(--timeline-muted);
    border-bottom: 2px dashed var(--timeline-muted);
    border-bottom-left-radius: 10px;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.36s, opacity 0.3s ease 0.36s, border-color 0.2s ease, filter 0.2s ease;
}

.exp-node {
    position: absolute;
    left: -24px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--timeline-muted);
    background: var(--bg);
    z-index: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.35s ease 0.32s, transform 0.25s ease 0.32s, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.exp-node--pulse {
    border-color: var(--timeline-line);
    background: var(--timeline-line);
    transition-delay: 0.16s;
}

.exp-node--pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--timeline-line);
    opacity: 0;
    animation: nodePulse 2.4s ease-out infinite;
}

@keyframes nodePulse {
    0% {
        transform: scale(0.7);
        opacity: 0.75;
    }
    70%, 100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.exp-item:not(:last-child) .card {
    position: relative;
}

.exp-item:not(:last-child) .card::before,
.exp-item:not(:last-child) .card::after {
    content: "";
    position: absolute;
    top: calc(100% + 1px);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--timeline-line), transparent 52%, var(--timeline-muted));
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.28s, opacity 0.3s ease 0.28s, background 0.2s ease;
}

.exp-item:not(:last-child) .card::before {
    left: 68px;
}

.exp-item:not(:last-child) .card::after {
    right: 68px;
}

.exp-bridge-meta {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s ease 0.35s, transform 0.35s ease 0.35s;
}

.exp-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    box-shadow: var(--card-shadow);
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.exp-pill--active {
    color: var(--text);
    border-color: var(--border-strong);
}

/* Scroll-draw reveal */
.exp-timeline.is-visible .exp-head-row::before,
.exp-timeline.is-visible .exp-item--current::before,
.exp-timeline.is-visible .exp-item--current::after,
.exp-timeline.is-visible .exp-item--past::before,
.exp-timeline.is-visible .exp-item:not(:last-child) .card::before,
.exp-timeline.is-visible .exp-item:not(:last-child) .card::after {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

.exp-timeline.is-visible .exp-head-row::after,
.exp-timeline.is-visible .exp-node {
    opacity: 1;
    transform: scale(1);
}

.exp-timeline.is-visible .exp-bridge-meta {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive hover path highlight */
.exp-timeline:has(.exp-item:hover) .exp-head-row::before {
    background: linear-gradient(to bottom, transparent 0%, var(--timeline-line) 35%, var(--timeline-line) 100%);
    box-shadow: var(--timeline-glow);
}

.exp-timeline:has(.exp-item:hover) .exp-head-row::after {
    box-shadow: var(--timeline-glow);
}

.exp-item--current:hover::before {
    filter: drop-shadow(var(--timeline-glow));
}

.exp-item--current:hover .exp-node--pulse {
    transform: scale(1.22);
    box-shadow: var(--timeline-glow);
}

.exp-timeline:has(.exp-item--past:hover) .exp-item--current::after {
    background: repeating-linear-gradient(to bottom, var(--timeline-line) 0 5px, transparent 5px 10px);
}

.exp-timeline:has(.exp-item--past:hover) .exp-item--current .card::before,
.exp-timeline:has(.exp-item--past:hover) .exp-item--current .card::after {
    background: linear-gradient(to bottom, var(--timeline-line), transparent 52%, var(--timeline-line));
}

.exp-timeline:has(.exp-item--past:hover) .exp-bridge-meta .exp-pill {
    color: var(--text);
    border-color: var(--border-strong);
}

.exp-item--past:hover::before {
    border-color: var(--timeline-line);
    filter: drop-shadow(var(--timeline-glow));
}

.exp-item--past:hover .exp-node {
    border-color: var(--timeline-line);
    background: var(--timeline-line);
    transform: scale(1.18);
    box-shadow: var(--timeline-glow);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s ease, background-color 0.2s ease, box-shadow 0.15s ease;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--card-shadow-hover);
}

.card,
.card * {
    text-shadow: none;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.card-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.exp-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.company-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 38px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    flex-shrink: 0;
}

.company-logo {
    display: block;
    width: auto;
    max-width: 100%;
    filter: var(--logo-filter);
    transition: filter 0.2s ease;
}

.company-logo--deloitte {
    height: 15px;
}

.company-logo--infosys {
    height: 24px;
}

.meta {
    font-size: 0.85rem;
    color: var(--subtle);
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.88rem;
    color: var(--text);
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s ease, background-color 0.2s ease, box-shadow 0.15s ease;
}

.tag-list li:hover {
    border-color: var(--border-strong);
    box-shadow: var(--card-shadow-hover);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-title-row h3 {
    margin: 0;
    font-size: 1.05rem;
}

.project-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    border-radius: 8px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.project-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.project-icon--fallback {
    opacity: 0.76;
}

[data-theme="dark"] .project-icon--fallback {
    filter: invert(0.92);
    opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .project-icon--fallback {
        filter: invert(0.92);
        opacity: 0.85;
    }
}

.project-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.project-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    padding: 2px 9px;
    border-radius: 4px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--border);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
}

.status-text {
    color: var(--muted);
    margin: 0;
    text-shadow: var(--text-shadow-muted);
}

.site-footer {
    margin-top: 32px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 20px 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-row p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
}

@media (max-width: 1040px) and (min-width: 761px) {
    .hero {
        grid-template-columns: minmax(0, 0.84fr) minmax(410px, 1.32fr);
        gap: 10px;
    }

    .hero-media {
        --hero-scale: 1.24;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .nav-row {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px 12px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
        min-height: calc(100vh - 90px);
        min-height: calc(100dvh - 90px);
        padding: 18px 0 64px;
    }

    .hero-media {
        order: -1;
        justify-self: center;
        align-self: center;
        max-width: 480px;
        border-bottom: 1px solid var(--border);
    }

    .hero-media img {
        max-height: 44dvh;
        transform: translateY(calc(var(--hero-scroll) * 28px)) scale(calc(1.18 - var(--hero-scroll) * 0.06));
    }

    .hero-text {
        padding-bottom: 16px;
    }

    .scroll-indicator {
        bottom: 12px;
    }

    .exp-item:not(:last-child) .card::before {
        left: 36px;
    }

    .exp-item:not(:last-child) .card::after {
        right: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .hero-media img {
        transform: scale(1.2);
        opacity: 1;
        filter: var(--hero-shadow);
    }

    .exp-head-row::before,
    .exp-item--current::before,
    .exp-item--current::after,
    .exp-item--past::before,
    .exp-item:not(:last-child) .card::before,
    .exp-item:not(:last-child) .card::after {
        clip-path: none;
        opacity: 1;
    }

    .exp-head-row::after,
    .exp-node,
    .exp-bridge-meta {
        opacity: 1;
        transform: none;
    }
}
