:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1c1c1c;
    --line: #262626;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --accent: #f0c14b;
    --accent-ink: #111;
    --radius: 14px;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --display: 'Archivo', system-ui, sans-serif;
    --body: 'Inter', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; overflow-x: clip; } /* hidden = fallback for older Safari */
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.accent { color: var(--accent); }

/* Round full stop to match the logo (Archivo's is square). */
.period {
    position: relative; display: inline-block; width: .24em; height: .24em; margin-left: .05em;
    border-radius: 50%; background: var(--accent);
}

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font: 700 1rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px rgba(240, 193, 75, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(240, 193, 75, .7); }
.magnetic { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, background-color .2s ease; }
.magnetic.is-pulled { transition-duration: .15s; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #444; background: var(--surface); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(10, 10, 10, .72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between; height: 104px;
    transition: height .3s cubic-bezier(.2, .7, .2, 1);
}
.logo { display: block; }
.logo img {
    height: 64px; width: auto;
    transition: height .3s cubic-bezier(.2, .7, .2, 1), transform .2s ease;
}
.logo:hover img { transform: scale(1.04) rotate(-1.5deg); }
.site-header.scrolled .header-inner { height: 72px; }
.site-header.scrolled .logo img { height: 42px; }

.site-header nav ul { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); list-style: none; margin: 0; padding: 0; }
.site-header nav a {
    text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem;
    transition: color .2s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="true"] { color: var(--text); }
.site-header nav a:not(.nav-cta) { position: relative; }
.site-header nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.8, .5, 1);
}
.site-header nav a[aria-current="true"]::after { transform: scale(1); }
.site-header nav .nav-cta {
    color: var(--accent-ink); background: var(--accent); padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.site-header nav .nav-cta:hover { color: var(--accent-ink); filter: brightness(1.07); }

main { padding-top: 104px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(48px, 7vw, 88px); position: relative; }
.hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: -260px; left: calc(50% - 50vw); width: 100vw; height: 900px;
    background: radial-gradient(ellipse 760px 380px at 22% 50%, rgba(240, 193, 75, .12), transparent 70%);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
    font-size: .85rem; font-weight: 500; color: var(--muted);
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 6.2rem); font-weight: 900; max-width: 14ch; text-transform: uppercase; }
.lede { max-width: 620px; margin: 26px 0 34px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    margin: clamp(48px, 7vw, 80px) 0 0; max-width: 760px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--bg); padding: 20px 22px; }
.stats dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats dd { margin: 6px 0 0; font: 800 clamp(1.6rem, 3.5vw, 2.4rem)/1 var(--display); }

/* ---------- Hero intro ----------
   Headline builds from pixels; a scan line reveals the sharp text (clip driven by --scan from JS).
   Everything is hidden only when JS is on, so the page still reads without it. */
.hero > *:not(.hero-reel):not(.pixel-canvas) { position: relative; z-index: 1; }
.px-title .w, .px-title .w > span { display: inline-block; }
/* Sections after the hero sit above its reel, which bleeds past the hero's edges. */
.work, .story, .contact, .site-footer { position: relative; z-index: 1; }
.pixel-canvas { position: absolute; z-index: 2; pointer-events: none; }

.js .px-scope:not(.fixed) .px-title { clip-path: inset(-10% calc(100% - var(--scan, 0px)) -10% -2%); } /* --scan: 0 hidden, 100% shown */
.js .px-scope:not(.fixed) .period { transform: scale(0); }
.js .intro:not(.play) .eyebrow,
.js .intro:not(.fixed) .lede,
.js .intro:not(.fixed) .hero-actions,
.js .intro:not(.fixed) .stats { opacity: 0; }

.intro.play .eyebrow { animation: fade-up .5s cubic-bezier(.16, 1, .3, 1) both; }

/* The moment it's fixed: a flash on the type, the full stop slams in with a shockwave */
.px-scope.fixed .px-title { animation: fixed-flash .7s ease-out both; }
.px-scope.fixed .period { animation: dot-slam .55s cubic-bezier(.34, 1.9, .5, 1) .05s both; }
.px-scope .period::before, .px-scope .period::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    border: .05em solid var(--accent); opacity: 0;
}
.px-scope.fixed .period::before { animation: shockwave .8s cubic-bezier(.2, .7, .2, 1) .22s both; }
.px-scope.fixed .period::after { animation: shockwave 1s cubic-bezier(.2, .7, .2, 1) .34s both; }
.intro.fixed .lede { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) .2s both; }
.intro.fixed .hero-actions { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) .32s both; }
.intro.fixed .stats { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) .44s both; }

@keyframes fixed-flash {
    0%   { text-shadow: 0 0 40px rgba(240, 193, 75, .9), 0 0 2px #fff; filter: brightness(1.6); }
    100% { text-shadow: 0 0 0 transparent; filter: none; }
}
@keyframes dot-slam { 0% { transform: scale(4) translateY(-.4em); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes shockwave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(9); opacity: 0; border-width: .01em; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Hero reel ---------- */
.hero-reel {
    position: absolute; z-index: 0; top: -150px; bottom: -60px; left: 61%; width: 60vw;
    display: flex; gap: 18px;
    transform: perspective(1600px) rotateX(14deg) rotateY(-16deg) rotateZ(9deg);
    transform-origin: left center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%);
    mask-composite: intersect;
}
.reel-col { width: clamp(220px, 19vw, 300px); flex-shrink: 0; }
.reel-track { display: flex; flex-direction: column; gap: 18px; animation: reel-y 60s linear infinite; }
.reel-col:nth-child(2) .reel-track { animation-duration: 75s; animation-direction: reverse; }
.reel-col:nth-child(3) .reel-track { animation-duration: 66s; }
.hero-reel:hover .reel-track { animation-play-state: paused; }

.reel-item {
    display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
    aspect-ratio: 16 / 9; background: var(--surface-2) center / cover;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
    filter: brightness(.72) saturate(.9);
}
.reel-item img { width: 100%; height: 100%; object-fit: cover; }
.reel-item:hover { transform: scale(1.06); filter: none; }

@keyframes reel-y { to { transform: translateY(calc(-50% - 9px)); } }
@keyframes reel-x { to { transform: translateX(calc(-50% - 7px)); } }

/* Columns deal in from below during the intro */
.js .intro:not(.play) .reel-col { opacity: 0; }
.intro.play .reel-col { animation: reel-in 1.3s cubic-bezier(.16, 1, .3, 1) both; }
.intro.play .reel-col:nth-child(2) { animation-delay: .12s; }
.intro.play .reel-col:nth-child(3) { animation-delay: .24s; }
@keyframes reel-in { from { opacity: 0; transform: translateY(40%); } }

@media (max-width: 1000px) {
    .hero-reel {
        position: relative; inset: auto; width: auto; height: auto;
        margin: 48px calc(var(--gutter) * -1) 0; transform: rotate(-3deg); gap: 0; overflow: hidden; padding-block: 16px;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    }
    .reel-col { width: auto; }
    .reel-col:not(:first-child) { display: none; }
    .reel-track { flex-direction: row; gap: 14px; width: max-content; animation: reel-x 50s linear infinite; }
    .reel-item { width: 220px; filter: none; }
}

/* ---------- Work ---------- */
.work { padding-bottom: clamp(72px, 10vw, 128px); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(-40px -100vmax 0); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.view-btn { display: inline-flex; align-items: center; gap: 7px; }
.yt-icon { width: 18px; height: 18px; --icon-cut: var(--surface); }
.view-btn[aria-pressed="true"] .yt-icon { --icon-cut: var(--accent); }
.work-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase; }
.hint { color: var(--muted); font-size: .95rem; margin: 12px 0 32px; }
.pill-demo {
    display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 2px;
    border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
    font: 700 .72rem/1 var(--display); color: var(--text); vertical-align: 1px;
}

.sort { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.sort-label { font-size: .8rem; color: var(--muted); padding: 0 8px 0 12px; }
.sort-btn {
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
    transition: background-color .2s ease, color .2s ease;
}
.sort-btn:hover { color: var(--text); }
.sort-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: clamp(20px, 2.4vw, 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grid { grid-template-columns: 1fr; } }

/* Cards rise in as they scroll into view, staggered across each row. */
.card { transition: opacity .6s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.js .card:not(.in) { opacity: 0; transform: translateY(28px); }
.grid.is-sorting .card { opacity: 0; transition: none; }

.card-media {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
/* Blurred tiny preview sits underneath until the real image has decoded. */
.card-media::before {
    content: ""; position: absolute; inset: -8%;
    background: var(--lqip) center / cover no-repeat;
    filter: blur(16px) saturate(1.2); transform: scale(1.05);
    transition: opacity .6s ease;
}
.card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) 0 0 / 250% 100%;
    animation: shimmer 1.4s linear infinite;
}
.card-media.is-loaded::before { opacity: 0; }
.card-media.is-loaded::after { display: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.card-media img {
    position: relative; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; scale: 1.04; filter: blur(6px);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, scale .8s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}
.card-media.is-loaded img { opacity: 1; scale: 1; filter: none; }
.card-media:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -20px rgba(0, 0, 0, .8); }
.card-media:hover img { transform: scale(1.03); }

.badge, .ab-tag, .yt-duration {
    position: absolute; z-index: 1; bottom: 10px;
    font: 600 .78rem/1 var(--body); padding: 6px 9px; border-radius: 6px;
    background: rgba(0, 0, 0, .78); color: #fff; backdrop-filter: blur(4px);
}
.badge { right: 10px; }
.ab-tag { left: 10px; background: var(--accent); color: var(--accent-ink); }

.card-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.card-title { font: 700 1.05rem/1.3 var(--display); letter-spacing: -0.01em; }

.versions { display: flex; gap: 6px; flex-shrink: 0; }
.version {
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
    font: 700 .85rem/1 var(--display);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.version:hover { color: var(--text); border-color: #444; }
.version[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.version-lg { width: 42px; height: 42px; font-size: 1rem; }

/* ---------- YouTube feed preview (light theme, like the real home feed) ---------- */
.feed-note { margin: 12px 0 24px; color: var(--muted); font-size: .95rem; }
.feed-frame { border-radius: 20px; transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease; }
.yt-chrome { display: none; }

.feed-frame.is-feed {
    --yt-text: #0f0f0f; --yt-muted: #606060; --yt-chip: #f2f2f2; --yt-line: #e5e5e5;
    background: #fff; color: var(--yt-text);
    padding: 0 clamp(16px, 2.4vw, 32px) 40px;
    font-family: 'Roboto', Arial, sans-serif;
    box-shadow: 0 40px 100px -40px rgba(240, 193, 75, .35), 0 0 0 1px rgba(255, 255, 255, .08);
    overflow: hidden;
}
.feed-frame.is-feed .yt-chrome { display: block; pointer-events: none; user-select: none; }

.yt-bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.yt-burger { width: 24px; height: 24px; color: var(--yt-text); flex-shrink: 0; }
.yt-search {
    flex: 1; max-width: 560px; margin-inline: auto; height: 40px;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid #ccc; border-radius: 40px; padding: 0 4px 0 18px;
    color: #888; font-size: 1rem;
}
.yt-search svg {
    width: 64px; height: 38px; padding: 9px 20px; margin-right: -4px;
    background: #f8f8f8; border-left: 1px solid #d3d3d3; border-radius: 0 40px 40px 0; color: var(--yt-text);
}
.yt-me {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font: 600 .9rem/1 'Roboto', Arial, sans-serif;
}
.yt-chips { display: flex; gap: 12px; padding: 12px 0 24px; overflow: hidden; white-space: nowrap; }
.yt-chips span {
    padding: 0 12px; height: 32px; display: inline-flex; align-items: center; flex-shrink: 0;
    border-radius: 8px; background: var(--yt-chip); font: 500 .875rem/1 'Roboto', Arial, sans-serif;
}
.yt-chips .is-on { background: var(--yt-text); color: #fff; }

.feed-frame.is-feed .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 40px; }
@media (max-width: 1100px) { .feed-frame.is-feed .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .feed-frame.is-feed .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  {
    .feed-frame.is-feed { padding: 0 0 24px; border-radius: 0; margin-inline: calc(var(--gutter) * -1); box-shadow: none; }
    .yt-bar, .yt-chips { padding-inline: 12px; }
    .yt-bar { height: 52px; }
    .yt-search { border: 0; padding: 0; max-width: none; justify-content: flex-end; }
    .yt-search span { display: none; }
    .yt-search svg { background: none; border: 0; width: 40px; padding: 8px; }
    .feed-frame.is-feed .grid { grid-template-columns: 1fr; row-gap: 24px; }
    .feed-frame.is-feed .card-media { border-radius: 0; }
    .feed-frame.is-feed .yt-meta { padding-inline: 12px; }
}

.feed-frame.is-feed .card-media { border-radius: 12px; box-shadow: none; background: var(--yt-chip); transition: border-radius .2s ease; }
.feed-frame.is-feed .card-media:hover { transform: none; box-shadow: none; border-radius: 4px; }
.feed-frame.is-feed .card-media:hover img { transform: none; }
.feed-frame.is-feed .card-media::after { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); }

.yt-duration {
    right: 6px; bottom: 6px; left: auto;
    font: 500 .75rem/1 'Roboto', Arial, sans-serif; padding: 3px 4px; border-radius: 4px;
    background: rgba(0, 0, 0, .8); color: #fff; backdrop-filter: none;
}

.yt-meta { display: flex; gap: 12px; padding-top: 12px; }
.yt-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    background: hsl(var(--hue) 55% 42%); color: #fff; font: 500 1rem/1 'Roboto', Arial, sans-serif;
}
.yt-text { min-width: 0; flex: 1; }
.yt-title {
    font: 500 1rem/1.375 'Roboto', Arial, sans-serif; letter-spacing: 0; color: var(--yt-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 4px;
}
.yt-line { margin: 0; font: 400 .875rem/1.43 'Roboto', Arial, sans-serif; color: var(--yt-muted); }
.yt-more { width: 24px; height: 24px; fill: var(--yt-text); flex-shrink: 0; opacity: 0; transition: opacity .15s ease; }
.card:hover .yt-more { opacity: 1; }

/* ---------- Ticker band ---------- */
.band {
    position: relative; z-index: 1; overflow: hidden;
    background: var(--accent); color: var(--accent-ink);
    padding-block: clamp(14px, 2vw, 22px);
    transform: rotate(-2deg) scale(1.04);
    margin-block: clamp(8px, 2vw, 24px) clamp(40px, 6vw, 72px);
    box-shadow: 0 30px 60px -30px rgba(240, 193, 75, .45);
}
.band-track {
    display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); width: max-content;
    font: 900 clamp(2rem, 6vw, 5rem)/1 var(--display); text-transform: uppercase; letter-spacing: -0.02em;
    white-space: nowrap; animation: band 38s linear infinite;
    transform: skewX(var(--skew, 0deg));
}
.band-track i { font-style: normal; font-size: .55em; }
.band-track .outline { color: transparent; -webkit-text-stroke: 2px var(--accent-ink); }
@keyframes band { to { translate: calc(-50% - clamp(10px, 1.5vw, 20px)) 0; } }

/* ---------- Story ---------- */
.story {
    display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
    padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px);
}
.story h2 { font-size: .85rem; font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.story-body .big { font: 800 clamp(1.6rem, 3.2vw, 2.5rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 22px; }
/* Scroll-lit statement: words brighten as you read down the page */
.story-body .big .lit-word { color: #3a3a3a; transition: color .35s ease; }
.story-body .big .lit-word.on { color: var(--text); }
.story-body .big .lit-word.on.hl { color: var(--accent); }
.story-body p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; gap: 16px; } }

.pillars {
    list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
/* Same format as the hero stats: small uppercase label, big bold value */
.pillars li { background: var(--bg); padding: 20px 22px 24px; }
.pillar-num { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pillars h3 { font: 800 clamp(1.4rem, 2.4vw, 1.9rem)/1.05 var(--display); margin: 6px 0 12px; }
.story-body .pillars p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
    text-align: center; padding-block: clamp(72px, 10vw, 128px);
    border-top: 1px solid var(--line);
    background: radial-gradient(ellipse min(500px, 60%) 240px at 50% 100%, rgba(240, 193, 75, .1), transparent 70%);
}
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; text-transform: uppercase; }
.contact p { color: var(--muted); font-size: 1.1rem; margin: 20px auto 34px; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-brand { position: relative; }
.footer-logo { width: 100%; height: auto; padding-top: clamp(40px, 6vw, 80px); }
.pixel-lens { z-index: 1; }
.px-scope.fixed .footer-logo { animation: fixed-flash-img .9s ease-out both; }
@keyframes fixed-flash-img { 0% { filter: drop-shadow(0 0 30px rgba(240, 193, 75, .9)) brightness(1.4); } 100% { filter: none; } }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-block: 28px; color: var(--muted); font-size: .9rem;
}
.footer-inner p { margin: 0; }
.back-top { text-decoration: none; transition: color .2s ease; }
.back-top:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: transparent; color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .94); backdrop-filter: blur(6px); }
.lightbox[open] { animation: fade .2s ease; }
.lightbox[open] .lb-figure { animation: pop .3s cubic-bezier(.2, .7, .2, 1); }
.lightbox.is-closing { animation: fade-out .18s ease forwards; }
.lightbox.is-closing .lb-figure { animation: pop-out .18s ease forwards; }
.lightbox.is-closing::backdrop { animation: fade-out .18s ease forwards; }
.lightbox::backdrop { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); } }
@keyframes pop-out { to { transform: scale(.96); } }

.lb-inner {
    position: relative; height: 100%;
    display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
    padding: 24px;
}
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lb-figure img {
    cursor: zoom-out;
    background: center / cover no-repeat;
    width: auto; max-width: 100%; max-height: calc(100dvh - 160px);
    border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.lb-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; max-width: 1280px; }
.lb-title { margin: 0; font: 700 1.15rem/1.3 var(--display); }
.lb-views { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.lb-close, .lb-nav {
    display: grid; place-items: center; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
    font-size: 30px; line-height: 1; transition: background-color .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .18); }
.lb-close { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 28px; }

@media (max-width: 700px) {
    .lb-inner { grid-template-columns: 1fr; padding: 16px; }
    .lb-nav { display: none; }
    .lb-figure figcaption { flex-direction: column; align-items: flex-start; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
    main { padding-top: 68px; }
    .header-inner, .site-header.scrolled .header-inner { height: 68px; }
    .logo img, .site-header.scrolled .logo img { height: 42px; }
    .site-header nav li:first-child { display: none; }
    .site-header nav ul { gap: 14px; }
    .site-header nav a { font-size: .88rem; }
    .stats { grid-template-columns: 1fr; }
    .stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; }
    .stats dd { margin: 0; }
    .work-head { align-items: flex-start; flex-direction: column; }
    .sort-label { display: none; }
    .footer-inner { flex-direction: column; }
}

/* ---------- Custom cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }

.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .25s ease; }
.cursor.is-visible { opacity: 1; }

.cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor-dot::before, .cursor-ring::before {
    content: ""; position: absolute; border-radius: 50%; translate: -50% -50%;
}

.cursor-dot::before {
    width: 6px; height: 6px; background: var(--accent);
    transition: scale .2s ease, opacity .2s ease;
}

.cursor-ring::before {
    width: 24px; height: 24px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    transition: width .35s cubic-bezier(.2, .7, .2, 1), height .35s cubic-bezier(.2, .7, .2, 1),
                background-color .3s ease, border-color .3s ease, scale .15s ease;
}

.cursor-label {
    position: absolute; translate: -50% -50%; white-space: nowrap;
    font: 800 .66rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent-ink); opacity: 0; scale: .6;
    transition: opacity .2s ease, scale .3s cubic-bezier(.2, .7, .2, 1);
}

/* Over links & buttons: ring swells and fills with a gold tint */
.cursor.is-link .cursor-ring::before {
    width: 36px; height: 36px; border-color: var(--accent); background: rgba(240, 193, 75, .12);
}
.cursor.is-link .cursor-dot::before { scale: .5; }

/* Over a thumbnail: solid gold "VIEW" disc */
.cursor.is-view .cursor-ring::before {
    width: 60px; height: 60px; border-color: var(--accent); background: var(--accent);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
}
.cursor.is-view .cursor-label { opacity: 1; scale: 1; }
.cursor.is-view .cursor-dot::before { opacity: 0; }

.cursor.is-down .cursor-ring::before { scale: .85; }

/* On the white YouTube preview the ring needs to be dark to stay visible */
.cursor.on-light .cursor-ring::before { border-color: rgba(15, 15, 15, .55); }
.cursor.on-light.is-link .cursor-ring::before { border-color: var(--accent-ink); background: rgba(15, 15, 15, .06); }
.cursor.on-light .cursor-dot::before { background: #0f0f0f; }
.cursor.on-light.is-view .cursor-ring::before { border-color: var(--accent); }
