/* OneCompass v2 — shared design system
   ====================================== */

:root {
    /* DARK tokens — navy-tinted so the "void" remembers the Tokyo sky above */
    --dark-bg: #0B1428;
    --dark-bg-elev: #1F2A3D;
    --dark-gray-3: #6B7894;
    --dark-gray-2: #8C97AE;
    --dark-gray-1: #BDC4D2;
    --dark-fg: #ffffff;
    --sky: #1D94DD;            /* hero sky color, also used for blue echo */

    /* LIGHT tokens (default — HLE day-mode for the rest of the page) */
    --bg: #E8E5DD;             /* warm light gray */
    --bg-2: #DEDAD0;
    --bg-elev: #C8C4BA;        /* hairline borders, cards */
    --gray-3: #9A968D;
    --gray-2: #6F6C66;         /* muted text */
    --gray-1: #3A3937;         /* body text */
    --fg: #101011;             /* primary text on light */
    --accent: #F5A623;         /* gold, kept across both modes */

    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Space Grotesk', sans-serif;
    --space-base: 4px;
    --space-gap: 8px;
    --space-section: 48px;
    --radius: 0px;             /* hard edges, HLE */

    /* Easing curve used for all entrance animations */
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--gray-1);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* DARK mode wrapper (kept for legacy / other pages — no longer used on index) */
.dark-zone {
    position: relative;
    background-color: var(--dark-bg);
    color: var(--dark-gray-1);
}
.dark-zone h2 { color: var(--dark-fg); }
.dark-zone .section-desc { color: var(--dark-gray-1); }
.dark-zone .op-card { border-color: var(--dark-bg-elev); }

/* OPS ZONE — dark studio systems band. */
.ops-zone {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #070707;
    color: rgba(255,255,255,0.74);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 96px 0;
}
.ops-zone > .container { position: relative; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) {
    .ops-zone > .container { padding-left: 40px; padding-right: 40px; }
}
.ops-zone h2 { color: #fff; }
.ops-zone .section-desc { color: rgba(255,255,255,0.62); }
.ops-zone .op-card { border-color: rgba(255,255,255,0.12); }
.ops-zone .op-card:hover { border-color: var(--accent); }
.ops-zone h2,
.ops-zone .section-desc,
.ops-zone .ops-grid {
    position: relative;
    z-index: 1;
}
.ops-zone-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 34px;
}
@media (min-width: 900px) {
    .ops-zone-head {
        grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
        gap: 72px;
    }
}
.ops-zone-head h2 {
    max-width: 12ch;
    margin-bottom: 0;
}
.ops-zone-head .section-desc {
    margin-bottom: 0;
    max-width: 54ch;
}
.system-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255,255,255,0.16);
    border-left: 1px solid rgba(255,255,255,0.16);
}
@media (min-width: 760px) {
    .system-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}
.system-strip > div {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border-right: 1px solid rgba(255,255,255,0.16);
    border-bottom: 1px solid rgba(255,255,255,0.16);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)),
        rgba(255,255,255,0.015);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.system-strip > div::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    top: 70px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.32s var(--ease-out-soft), opacity 0.2s ease;
}
.system-strip > div:hover {
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.26);
}
.system-strip > div:hover::after {
    transform: scaleX(1);
    opacity: 0.9;
}
.system-strip span {
    display: block;
    margin-bottom: 52px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
}
.system-strip strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 0.95;
    font-weight: 700;
    color: #fff;
}
.system-strip p {
    margin: 0;
    max-width: 22ch;
    color: rgba(255,255,255,0.64);
    font-size: 13px;
    line-height: 1.55;
}

.dark-guide-marks {
    position: absolute;
    right: clamp(24px, 5vw, 70px);
    top: -18px;
    width: min(360px, 34vw);
    height: 160px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.28;
}
.dark-guide-marks span {
    position: absolute;
    display: block;
}
.dark-guide-marks span:nth-child(1) {
    left: 0;
    top: 34px;
    width: 170px;
    height: 64px;
    border-top: 2px solid rgba(255,255,255,0.64);
    border-radius: 50%;
    transform: rotate(-8deg);
}
.dark-guide-marks span:nth-child(1)::after {
    content: '';
    position: absolute;
    right: 4px;
    top: -7px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255,255,255,0.64);
    border-right: 2px solid rgba(255,255,255,0.64);
    transform: rotate(35deg);
}
.dark-guide-marks span:nth-child(2) {
    right: 48px;
    top: 0;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(245,166,35,0.76);
    border-radius: 50%;
}
.dark-guide-marks span:nth-child(2)::before,
.dark-guide-marks span:nth-child(2)::after {
    content: '';
    position: absolute;
    background: rgba(245,166,35,0.76);
}
.dark-guide-marks span:nth-child(2)::before {
    left: -14px; right: -14px; top: 50%; height: 2px;
}
.dark-guide-marks span:nth-child(2)::after {
    top: -14px; bottom: -14px; left: 50%; width: 2px;
}
.dark-guide-marks span:nth-child(3) {
    right: 0;
    bottom: 10px;
    width: 74px;
    height: 74px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.46) 2px, transparent 2.6px);
    background-size: 14px 14px;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

.hover-line { position: relative; display: inline-block; }
.hover-line::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -2px; left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.hover-line:hover::after { width: 100%; }
.hover-line:hover { color: var(--fg); }
.dark-zone .hover-line:hover { color: var(--dark-fg); }

.hover-text:hover { color: var(--fg); }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}
.container-wide {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 40px;
}
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2 {
    font-family: var(--font-sans);
    color: var(--fg);
    font-weight: 500;
    letter-spacing: -0.025em;
    margin: 0;
}
h1 { font-size: clamp(56px, 7vw, 104px); line-height: 0.96; }
h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; margin-bottom: 24px; }
h3 {
    font-family: var(--font-sans);
    color: var(--fg);
    font-weight: 500;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}
.dark-zone h3 { color: var(--dark-fg); }

.eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    color: var(--gray-2);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 18px; height: 1px;
    background-color: var(--gray-2);
}

/* Nav — minimal */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 16px;
    font-size: 12px;
    border-bottom: none;
    margin-bottom: 0;
    color: var(--gray-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
nav .brand { color: var(--fg); }
nav .nav-right span { color: var(--gray-1); }

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
    font-weight: 400;
}

.star {
    display: inline-block;
    color: var(--accent);
    animation: rotate 10s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.nav-links { display: none; gap: 24px; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-right { color: var(--gray-2); display: flex; gap: 8px; }
.nav-right span { color: var(--gray-1); }

/* Subtle nav hover treatment — usable on cream pages and dark-zone */
nav .nav-links a {
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}
nav .nav-links a:hover {
    color: var(--fg);
    letter-spacing: 0.10em;
}
.dark-zone nav .nav-links a:hover { color: var(--dark-fg); }

/* ==================================================================
   HERO — dithered operator panel (index only)
   ================================================================== */
.hero-stage {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 100vh;
    min-height: 820px;
    background-color: #0a0a0a;
    background-image: none;
    overflow: hidden;
    color: #fff;
}
@media (max-width: 768px) {
    .hero-stage { min-height: 720px; }
}
.hero-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 22%, transparent 78%, rgba(0,0,0,0.22) 100%);
    pointer-events: none;
    z-index: 1;
}
/* Hard hairline at the bottom edge — clean cut, no cloud-fade.
   Matches the HLE studio language: hard borders, no soft gradients. */
.hero-stage::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.18);
    pointer-events: none;
    z-index: 1;
}
.hero-stage > * { position: relative; z-index: 2; }

.hero-guide-marks {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(900px, 80vw);
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.78;
}
.hero-guide-marks span {
    position: absolute;
    display: block;
}
.hero-guide-marks span:nth-child(1) {
    left: -18px;
    top: -18px;
    width: 64px;
    height: 64px;
    border-top: 2px solid rgba(255,255,255,0.72);
    border-left: 2px solid rgba(255,255,255,0.72);
}
.hero-guide-marks span:nth-child(2) {
    right: -18px;
    top: -18px;
    width: 54px;
    height: 54px;
    border-right: 2px solid rgba(245,166,35,0.92);
    border-top: 2px solid rgba(245,166,35,0.92);
}
.hero-guide-marks span:nth-child(3) {
    right: -46px;
    bottom: -42px;
    width: clamp(96px, 12vw, 168px);
    height: 48px;
    border-bottom: 2px solid rgba(255,255,255,0.58);
    border-radius: 50%;
    transform: rotate(6deg);
}
.hero-guide-marks span:nth-child(3)::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: -7px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,0.62);
    border-bottom: 2px solid rgba(255,255,255,0.62);
    transform: rotate(-42deg);
}
.hero-guide-marks span:nth-child(4) {
    left: -46px;
    top: 48%;
    width: 74px;
    height: 1px;
    background: rgba(255,255,255,0.58);
}
.hero-guide-marks span:nth-child(4)::before {
    content: '';
    position: absolute;
    left: -1px;
    top: -32px;
    width: 1px;
    height: 64px;
    background: rgba(255,255,255,0.58);
}
.hero-guide-marks span:nth-child(5) {
    right: -86px;
    top: 43%;
    width: 54px;
    height: 54px;
    background-image: radial-gradient(circle, rgba(245,166,35,0.68) 2px, transparent 2.6px);
    background-size: 14px 14px;
}

.hero-stage nav {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
    padding: 24px 0 16px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    border-bottom: none;
}
.hero-stage nav .brand,
.hero-stage nav .nav-right span { color: #fff; }
.hero-stage nav .nav-links a { color: rgba(255,255,255,0.75); }
.hero-stage nav .nav-links a:hover { color: #fff; }
.hero-stage nav .star { color: var(--accent); }

.corner-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 40px;
}
.corner-row.bottom {
    align-items: flex-end;
    position: absolute;
    left: 0; right: 0; bottom: 32px;
}
.corner-row .col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 32ch;
}
.corner-row .col.right { text-align: right; align-items: flex-end; }
.corner-row .col.center { align-items: center; max-width: none; }
.corner-row .pop { color: #fff; font-weight: 500; }
.corner-row a:hover { color: #fff; }

/* Centered scroll cue, decoupled from corner-row */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    z-index: 2;
    animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50%      { transform: translate(-50%, 4px); opacity: 1; }
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================================================================
   SUB-HERO — index page beneath the photo
   ================================================================== */
.sub-hero {
    position: relative;
    padding: 64px 0 72px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: end;
}
@media (min-width: 1024px) {
    .sub-hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 80px;
    }
}
.sub-hero-left { max-width: 720px; }
.sub-hero-left,
.sub-hero .engagement-panel {
    position: relative;
    z-index: 1;
}
.sub-hero .eyebrow { margin-bottom: 32px; }
.sub-hero h1 { margin-bottom: 32px; color: var(--fg); }

.sub-1 {
    font-size: 17px;
    color: var(--gray-1);
    margin-bottom: 12px;
    line-height: 1.5;
    max-width: 56ch;
}
.sub-2 {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 19px;
    color: var(--gray-2);
    line-height: 1.45;
    margin-bottom: 56px;
    max-width: 56ch;
    font-weight: 500;
}
/* Index-only hook copy — kept clean (mono) so it doesn't compete with the h1 */
.sub-hook {
    font-size: 16px;
    color: var(--gray-1);
    line-height: 1.55;
    margin-bottom: 40px;
    max-width: 56ch;
}

.build-section {
    padding: 0 0 96px;
    margin-bottom: 0;
}
.build-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 40px;
}
@media (min-width: 980px) {
    .build-head {
        grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.6fr);
        gap: 72px;
    }
}
.build-head h2 {
    max-width: 14ch;
    margin-bottom: 0;
}
.build-aside {
    max-width: 42ch;
    color: var(--gray-1);
    font-size: 15px;
    line-height: 1.6;
    padding-top: 18px;
    border-top: 1px solid var(--bg-elev);
}
.build-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 900px) {
    .build-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.build-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--bg-elev);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12)),
        var(--bg-2);
    padding: 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 44px rgba(18,18,16,0.035);
    transition: transform 0.22s var(--ease-out-soft), box-shadow 0.22s ease, border-color 0.22s ease;
}
.build-card::after {
    content: '';
    position: absolute;
    left: 26px;
    right: 26px;
    top: 26px;
    height: 116px;
    border: 1px solid rgba(245,166,35,0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s var(--ease-out-soft);
}
.build-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 26px 62px rgba(18,18,16,0.085);
}
.build-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}
.build-card::before {
    display: none;
}
.build-card > span {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 42px;
}
.build-card h3 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 42px);
}
.build-card p {
    margin: 0;
    color: var(--gray-1);
    line-height: 1.6;
    font-size: 14px;
    max-width: 34ch;
}
.build-card-icon {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 116px;
    margin-bottom: 22px;
    border: 1px solid var(--bg-elev);
    background:
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
        rgba(255,255,255,0.2);
    background-size: 22px 22px;
    opacity: 1;
    transition: background-position 0.7s ease, border-color 0.2s ease;
}
.build-card:hover .build-card-icon {
    background-position: 22px 0, 0 22px, 0 0;
    border-color: rgba(0,0,0,0.2);
}
.build-card-icon::before,
.build-card-icon::after {
    content: '';
    position: absolute;
}
.build-card-icon--launch::before {
    left: 24%;
    right: 24%;
    top: 58px;
    width: auto;
    height: 1px;
    background: var(--fg);
}
.build-card-icon--launch::after {
    right: 23%;
    top: 51px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    transform: rotate(45deg);
}
.build-card-icon--operate {
    border-radius: 0;
}
.build-card-icon--operate::before {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--fg);
    border-radius: 50%;
}
.build-card-icon--operate::after {
    left: 50%;
    top: 18px;
    width: 1px;
    height: 80px;
    background: var(--accent);
    transform: rotate(35deg);
    transform-origin: center;
}
.build-card-icon--package::before {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--fg);
}
.build-card-icon--package::after {
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}
@media (min-width: 980px) {
    .proof-grid { grid-template-columns: repeat(3, 1fr); }
}
.proof-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--bg-elev);
    background: var(--bg-2);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(18, 18, 16, 0.035);
    transition: transform 0.22s var(--ease-out-soft), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.proof-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,0,0,0.22);
    background: #d7d2c6;
    box-shadow: 0 24px 56px rgba(18, 18, 16, 0.08);
}
.proof-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #080808;
    border-bottom: 1px solid var(--bg-elev);
    position: relative;
}
.proof-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.16);
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity 0.18s ease;
}
.proof-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.18) 48%, transparent 60%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}
.proof-media img,
.proof-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92) saturate(0.92);
    transition: transform 0.42s var(--ease-out-soft), filter 0.18s ease;
}
.proof-card:hover .proof-media img,
.proof-card:hover .proof-media video {
    transform: scale(1.025);
    filter: brightness(1) saturate(1);
}
.proof-card:hover .proof-media::before {
    opacity: 1;
    animation: media-sheen 0.9s ease;
}
.proof-card:hover .proof-media::after {
    opacity: 0.72;
}

.proof-copy {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.proof-kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-2);
    margin-bottom: 18px;
}
.proof-kicker span {
    color: var(--accent);
    margin-right: 10px;
}
.proof-copy h3 {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.05;
    margin-bottom: 14px;
}
.proof-copy p {
    margin: 0;
    color: var(--gray-1);
    font-size: 13px;
    line-height: 1.58;
}
.proof-link {
    margin-top: auto;
    padding-top: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-2);
}
.proof-card:hover .proof-link { color: var(--fg); }
@keyframes media-sheen {
    from { transform: translateX(-120%); }
    to   { transform: translateX(120%); }
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Buttons — pill shape + subtle depth (OpenAI-style polish).
   Only buttons soften; cards, log, and form inputs stay HLE-sharp. */
.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #101011;
    padding: 12px 26px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    box-shadow:
        0 1px 2px rgba(15,15,15,0.10),
        inset 0 1px 0 rgba(255,255,255,0.20);
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    font-size: 13px;
    letter-spacing: 0.02em;
    will-change: transform;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.42) 42%, transparent 56%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}
.btn-primary:hover {
    color: #101011;
    background-color: #F8B449;
    box-shadow:
        0 10px 24px rgba(15,15,15,0.14),
        inset 0 1px 0 rgba(255,255,255,0.28);
    transform: translateY(-1px);
}
.btn-primary:hover::after {
    opacity: 1;
    animation: button-sheen 0.7s ease;
}
.btn-primary:active {
    transform: translateY(0.5px);
    box-shadow:
        0 1px 1px rgba(15,15,15,0.12),
        inset 0 1px 0 rgba(255,255,255,0.10);
}
.btn-primary:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 3px;
}
@keyframes button-sheen {
    from { transform: translateX(-120%); }
    to   { transform: translateX(120%); }
}

.slots-text { color: var(--gray-2); font-size: 13px; }

/* Ops Log Widget */
.ops-log-wrapper,
.engagement-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
}
@media (min-width: 1024px) {
    .ops-log-wrapper,
    .engagement-panel { margin-bottom: 8px; }
}

.engagement-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bg-elev);
    background:
        linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0) 46%),
        var(--bg-2);
}
.engagement-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(245,166,35,0.16), transparent 34%),
        linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.13) 48%, transparent 58%);
    transform: translateX(-90%);
    opacity: 0.42;
    pointer-events: none;
    animation: panel-scan 8s ease-in-out infinite;
}
.engagement-panel > * {
    position: relative;
    z-index: 1;
}
.engagement-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-elev);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-2);
}
.engagement-main {
    padding: 24px 22px 26px;
}
.engagement-main h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: 10ch;
    margin-bottom: 18px;
}
.engagement-main p {
    margin: 0;
    color: var(--gray-1);
    line-height: 1.6;
    font-size: 14px;
    max-width: 34ch;
}
.engagement-map {
    margin: 0 18px 18px;
    padding: 20px 18px;
    border: 1px solid var(--bg-elev);
    background: rgba(255,255,255,0.12);
}
.map-node {
    width: max-content;
    margin: 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(0,0,0,0.16);
    background: var(--fg);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.map-line {
    width: 1px;
    height: 34px;
    margin: 0 auto;
    background: var(--bg-elev);
    position: relative;
    overflow: hidden;
}
.map-line::after {
    content: '';
    display: block;
    width: min(220px, 78%);
    height: 1px;
    background: var(--bg-elev);
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    top: 34px;
}
.map-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -16px;
    width: 1px;
    height: 16px;
    background: var(--accent);
    animation: map-drop 2.8s ease-in-out infinite;
}
.map-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.map-row span {
    padding: 9px 6px;
    border: 1px solid var(--bg-elev);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-2);
    background: rgba(255,255,255,0.16);
}
.map-row span:first-child { color: var(--accent); }
.engagement-steps {
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
}
.engagement-steps div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid var(--bg-elev);
    font-size: 12px;
    color: var(--fg);
}
.engagement-steps div:first-child { border-top: 0; }
.engagement-steps span {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.12em;
}
.ops-log {
    border: 1px solid var(--bg-elev);
    border-radius: var(--radius);
    background-color: var(--bg-2);
    font-size: 12px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-elev);
    color: var(--gray-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

/* LIVE badge — blue echo back to the hero sky */
.live-badge { display: flex; align-items: center; gap: 6px; color: var(--sky); }
.pulse-dot {
    width: 6px; height: 6px;
    background-color: var(--sky);
    border-radius: 0;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes panel-scan {
    0%, 55%, 100% { transform: translateX(-90%); opacity: 0; }
    65%           { opacity: 0.38; }
    82%           { transform: translateX(92%); opacity: 0; }
}
@keyframes map-drop {
    0%, 25% { transform: translateY(0); opacity: 0; }
    36%     { opacity: 1; }
    70%     { transform: translateY(58px); opacity: 0; }
    100%    { transform: translateY(58px); opacity: 0; }
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.log-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.log-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: start;
}
.log-time { color: var(--gray-2); font-size: 11px; }
.log-desc { color: var(--fg); font-size: 12px; line-height: 1.35; }
.log-status { font-size: 10px; text-transform: uppercase; text-align: right; letter-spacing: 0.06em; }
.status-accent { color: var(--accent); font-weight: 500; }
.status-done { color: var(--gray-2); }

.log-footer {
    padding: 12px 18px;
    border-top: 1px dashed var(--bg-elev);
    color: var(--gray-3);
    font-size: 10px;
    letter-spacing: 0.04em;
}

/* Sections */
section { margin-bottom: 128px; }
section.dark-zone,
section.ops-zone { margin-bottom: 0; padding: 128px 0; }
section.dark-zone + section,
section.ops-zone + section { margin-top: 128px; }

/* Index page runs at a tighter rhythm than content pages */
body:has(.hero-stage) section { margin-bottom: 96px; }
body:has(.hero-stage) section.dark-zone,
body:has(.hero-stage) section.ops-zone { padding: 96px 0; }
body:has(.hero-stage) section.dark-zone + section,
body:has(.hero-stage) section.ops-zone + section { margin-top: 96px; }

.section-desc {
    color: var(--gray-1);
    margin-bottom: 32px;
    max-width: 600px;
}

/* Grid list */
.grid-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--bg-elev);
}
.grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-elev);
    transition: background-color 0.2s;
}
@media (min-width: 768px) {
    .grid-row {
        grid-template-columns: 120px 1fr auto;
        align-items: center;
    }
}
.grid-row:hover { background-color: rgba(0, 0, 0, 0.04); }
.grid-col-1 { color: var(--gray-2); }
.grid-col-2 { color: var(--fg); }
.grid-col-3 { color: var(--gray-2); text-align: right; transition: color 0.2s; }
.grid-row:hover .grid-col-3 { color: var(--accent); }

/* Merged Recent feed (work + notes interleaved) — tighter, smaller text */
.feed-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--bg-elev);
}
.feed-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-elev);
    transition: background-color 0.2s;
}
@media (min-width: 768px) {
    .feed-row {
        grid-template-columns: 110px 60px 1fr auto;
        gap: 20px;
        align-items: center;
        padding: 12px 0;
    }
}
.feed-row:hover { background-color: rgba(0, 0, 0, 0.04); }
.feed-date {
    color: var(--gray-2);
    font-size: 11px;
    letter-spacing: 0.06em;
}
.feed-tag {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-2);
    border: 1px solid var(--bg-elev);
    padding: 3px 7px;
    width: max-content;
    line-height: 1;
}
.feed-tag.tag-work { color: var(--accent); border-color: var(--accent); }
.feed-tag.tag-note { color: var(--gray-2); border-color: var(--bg-elev); }
.feed-title { color: var(--fg); font-size: 13px; line-height: 1.4; }
.feed-meta {
    color: var(--gray-2);
    font-size: 11px;
    text-align: right;
    transition: color 0.2s;
    letter-spacing: 0.04em;
}
.feed-row:hover .feed-meta { color: var(--accent); }

.start-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    border-top: 1px solid var(--bg-elev);
    padding-top: 64px;
    padding-bottom: 12px;
    margin-bottom: 44px;
}
body:has(.hero-stage) .start-section { margin-bottom: 44px; }
@media (min-width: 980px) {
    .start-section {
        grid-template-columns: minmax(0, 0.92fr) minmax(390px, 500px);
        gap: 72px;
    }
}
.start-copy h2 {
    max-width: 13ch;
    margin-bottom: 24px;
    font-size: clamp(40px, 4.6vw, 62px);
    line-height: 0.98;
}
.start-copy,
.start-board {
    position: relative;
    z-index: 1;
}
.start-copy p {
    max-width: 48ch;
    margin-bottom: 28px;
    color: var(--gray-1);
    line-height: 1.6;
}
.text-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--gray-2);
}
.text-link:hover { color: var(--fg); }

.start-board {
    width: 100%;
    justify-self: end;
    border: 1px solid var(--bg-elev);
    background:
        linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0) 44%),
        var(--bg-2);
    box-shadow: 0 22px 54px rgba(18, 18, 16, 0.045);
}
.start-board-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bg-elev);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
}
.start-board-top span:last-child { color: var(--sky); }
.start-board-grid {
    display: grid;
    grid-template-columns: 1fr;
}
.start-board-grid > div {
    padding: 22px 22px 24px;
    border-bottom: 1px solid var(--bg-elev);
}
.start-board-grid span {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
}
.start-board-grid h3 {
    margin-bottom: 10px;
    font-size: clamp(21px, 1.8vw, 27px);
}
.start-board-grid p {
    margin: 0;
    color: var(--gray-1);
    font-size: 12px;
    line-height: 1.55;
}
/* Slim signal line — replaces the dark animated ticker on the index */
.signal-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 24px 0;
    margin-top: 0;
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
}
.signal-line .hl { color: var(--accent); font-weight: 500; }
.signal-line .dot-sep { color: var(--gray-3); }

/* ==================================================================
   OPERATOR PORTRAITS — anime gold-lightning aesthetic
   ================================================================== */
.ops-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
}
@media (min-width: 700px)  { .ops-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .ops-grid { grid-template-columns: repeat(4, 1fr); } }

.op-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: var(--radius);
    background: #08090d;
    transition: transform 0.4s var(--ease-out-soft),
                border-color 0.3s,
                box-shadow 0.3s,
                opacity 0.6s ease;
    opacity: 1;
    transform: translateY(0);
    min-height: 100%;
}
.op-card.below-fold { opacity: 0; transform: translateY(24px); }
.op-card.below-fold.in-view { opacity: 1; transform: translateY(0); }
.op-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(0,0,0,0.22), 0 0 0 1px rgba(245,166,35,0.4);
    transform: translateY(-4px);
}
.op-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #020305;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.op-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 22%),
        linear-gradient(0deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 34%);
    pointer-events: none;
}
.op-card img,
.op-card .op-video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-soft), filter 0.4s;
    filter: saturate(1.05);
}
.op-card:hover img,
.op-card:hover .op-video { transform: scale(1.04); }
.op-card[data-op="riko"] img,
.op-card[data-op="riko"] .op-video { object-position: 50% 22%; }
.op-card[data-op="yuri"] img,
.op-card[data-op="yuri"] .op-video { object-position: 50% 24%; }
.op-card[data-op="suki"] img,
.op-card[data-op="suki"] .op-video { object-position: 50% 24%; }

/* Eye-sparkle glints — radial dots positioned over the iris area, pulsing */
.op-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 42% 28%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 0.6%),
        radial-gradient(circle at 56% 28%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 0.6%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    mix-blend-mode: screen;
    opacity: 0;
    animation: op-sparkle 4.2s ease-in-out infinite;
    z-index: 2;
}
.op-card[data-op="yuri"] .op-visual::before { animation-delay: -1.4s; }
.op-card[data-op="suki"] .op-visual::before { animation-delay: -2.8s; }
.op-card.op-card--network .op-visual::before { display: none; }

@keyframes op-sparkle {
    0%, 86%, 100% { opacity: 0; }
    88%           { opacity: 0.95; }
    91%           { opacity: 0; }
    93%           { opacity: 0.7; }
    96%           { opacity: 0; }
}

/* Riko-only — faint electric crackle overlay */
.op-card[data-op="riko"] .op-visual {
    position: relative;
}
.op-card[data-op="riko"] .op-visual > .op-electric {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(252,196,25,0.18) 0%, rgba(252,196,25,0) 18%),
        radial-gradient(ellipse at 72% 60%, rgba(252,196,25,0.14) 0%, rgba(252,196,25,0) 22%);
    mix-blend-mode: screen;
    opacity: 0;
    animation: op-crackle 3.4s ease-in-out infinite;
    z-index: 1;
}

@keyframes op-crackle {
    0%, 100% { opacity: 0; }
    35%      { opacity: 0; }
    38%      { opacity: 0.85; transform: translateX(-2px); }
    40%      { opacity: 0; }
    62%      { opacity: 0; }
    64%      { opacity: 0.6; transform: translateX(3px); }
    66%      { opacity: 0; transform: translateX(0); }
}

/* Suki-only — faint warm amber rim flicker (predator on perch) */
.op-card[data-op="suki"] .op-visual > .op-electric {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(252,196,25,0.10) 0%, rgba(252,196,25,0) 32%);
    mix-blend-mode: screen;
    opacity: 0;
    animation: op-scope 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes op-scope {
    0%, 100% { opacity: 0; }
    50%      { opacity: 0.7; }
}

/* Respect reduced-motion preference — only kill the constant ambient pulses.
   Keep the video element visible (poster still shows) and let hover-to-play
   stay enabled since that's user-initiated, not autoplay. */
@media (prefers-reduced-motion: reduce) {
    .op-visual::before,
    .op-card .op-electric { animation: none !important; }
}

.op-card.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(0deg, rgba(0,0,0,0.40), rgba(0,0,0,0.20)),
        repeating-linear-gradient(45deg, #0c0c0d 0, #0c0c0d 10px, #15151a 10px, #15151a 20px);
    color: var(--gray-3);
    font-family: var(--font-mono);
}
.op-card.placeholder .placeholder-mark {
    font-family: 'Noto Serif JP', serif;
    font-size: 56px;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1;
    transition: opacity 0.3s ease;
}
.op-card.placeholder:hover .placeholder-mark { opacity: 0.55; }
.op-card.placeholder .op-status { background: transparent; border-color: var(--gray-3); color: var(--gray-3); }
.op-meta {
    position: relative;
    padding: 18px 18px 16px;
    background: #08090d;
    font-family: var(--font-mono);
    z-index: 2;
}
.op-id {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.op-id .dot {
    width: 5px; height: 5px;
    background: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}
.op-name {
    color: #fff;
    font-family: var(--font-sans);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 6px;
}
.op-role { color: rgba(255,255,255,0.74); font-size: 12px; line-height: 1.4; }
.op-status {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.op-status.idle { color: var(--gray-2); border-color: var(--gray-3); }
.op-card--network {
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(245,166,35,0.10), rgba(245,166,35,0) 42%),
        #101115;
}
@media (min-width: 700px) {
    .op-card--network {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(140px, 0.35fr) 1fr;
        align-items: stretch;
    }
    .op-card--network .op-meta {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-left: 1px solid rgba(255,255,255,0.12);
    }
}
.op-network-mark {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: clamp(64px, 8vw, 112px);
    line-height: 1;
    color: rgba(245,166,35,0.62);
}
@media (min-width: 1120px) {
    .op-card--network {
        grid-column: auto;
        display: flex;
        min-height: 100%;
    }
    .op-card--network .op-meta {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .op-network-mark {
        min-height: 0;
        aspect-ratio: 4 / 5;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
}

/* ==================================================================
   TICKER + FOOTER
   ================================================================== */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--dark-bg-elev);
    border-bottom: 1px solid var(--dark-bg-elev);
    padding: 12px 0;
    margin-top: 0;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    font-size: 11px;
    color: var(--dark-gray-2);
    letter-spacing: 0.14em;
    animation: ticker 36s linear infinite;
    text-transform: uppercase;
}
.ticker span { margin: 0 28px; }
.ticker span.hl { color: var(--accent); font-weight: 500; }
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

footer {
    padding: 34px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 12px;
    color: var(--gray-2);
    border-top: 1px solid var(--bg-elev);
    margin-top: 64px;
}
.signal-line + .container footer,
body:has(.signal-line) footer {
    border-top: 0;
    margin-top: 0;
}
@media (min-width: 768px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ==================================================================
   MULTI-PAGE SHARED COMPONENTS
   (added for the cross-page migration)
   ================================================================== */

/* Text-only hero — used by all non-index pages */
.text-hero {
    position: relative;
    padding: 0 0 96px;
    border-bottom: 1px solid var(--bg-elev);
    margin-bottom: 96px;
}
.text-hero .container { padding-top: 0; }
.text-hero .lead-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    padding-top: 80px;
    flex-wrap: wrap;
}
.text-hero h1 {
    max-width: 14ch;
    margin-bottom: 0;
}
.text-hero .lead-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    text-align: right;
    line-height: 1.6;
    max-width: 28ch;
}
.text-hero .lead-meta .pop { color: var(--accent); }

/* Page eyebrow — top-left page identifier (PAGE 02 / NOTES) */
.page-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gray-2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.page-eyebrow .num { color: var(--accent); font-weight: 500; }
.page-eyebrow .page-mark {
    display: inline-block;
    color: var(--accent);
    font-size: 10px;
    transform-origin: center;
}

/* Per-page small accent shape — distinct symbol per page */
.page-mark.notes::before    { content: '≡'; }   /* stacked rules */
.page-mark.work::before     { content: '◉'; }   /* shipped, filled */
.page-mark.now::before      { content: '●'; animation: pulse 1.5s ease-in-out infinite; }
.page-mark.rundown::before  { content: '⌖'; }   /* target/aim */
.page-mark.contact::before  { content: '◇'; }   /* open, awaiting */

/* Prose — long-form body content (notes article, rundown body) */
.prose {
    max-width: 64ch;
    color: var(--gray-1);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.65;
}
.prose > * + * { margin-top: 1.1em; }
.prose p { color: var(--gray-1); }
.prose strong { color: var(--fg); font-weight: 500; }
.prose em { font-style: italic; color: var(--gray-1); }
.prose h2 {
    font-size: clamp(24px, 3vw, 38px);
    margin-top: 2em;
    margin-bottom: 0.4em;
    line-height: 1.1;
}
.prose h3 {
    font-size: 18px;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}
.prose ul, .prose ol {
    padding-left: 1.4em;
    color: var(--gray-1);
}
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 18px;
    color: var(--gray-2);
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 17px;
}
.prose hr {
    border: 0;
    height: 1px;
    background: var(--bg-elev);
    margin: 2em 0;
}
.prose a {
    color: var(--fg);
    border-bottom: 1px solid var(--bg-elev);
    transition: border-color 0.2s ease;
}
.prose a:hover { border-color: var(--accent); }

/* Case study card (work.html) */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 96px;
}
.case-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 96px;
    border-bottom: 1px solid var(--bg-elev);
}
.case-card:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 1024px) {
    .case-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
}
.case-card .case-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.case-card .case-meta .pop { color: var(--accent); }
.case-card h2 {
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.05;
    margin-bottom: 20px;
}
.case-card .case-body { color: var(--gray-1); font-size: 14px; line-height: 1.6; max-width: 56ch; }
.case-card .case-body h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    font-family: var(--font-mono);
    margin-top: 1.2em;
    margin-bottom: 6px;
    font-weight: 400;
}
.case-card .case-body p + h3 { margin-top: 1.6em; }
.case-card .case-body p + p { margin-top: 0.8em; }
.case-card .case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--bg-elev);
}
.case-stat .figure {
    font-family: var(--font-sans);
    font-size: clamp(28px, 3vw, 40px);
    color: var(--fg);
    line-height: 1;
    letter-spacing: -0.02em;
}
.case-stat .label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    margin-top: 6px;
}

/* Note card (notes.html — featured + archive) */
.notes-main {
    max-width: 1120px;
    margin: 0 auto;
}
.notes-intro {
    margin-bottom: 28px;
}
.notes-intro p {
    max-width: 42ch;
    margin: 0;
    color: var(--gray-1);
    font-size: 16px;
    line-height: 1.55;
}
.note-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0 38px;
    border-bottom: 1px solid var(--bg-elev);
    border-top: 1px solid var(--bg-elev);
    margin-bottom: 58px;
}
@media (min-width: 1024px) {
    .note-feature { grid-template-columns: 180px minmax(0, 1fr); gap: 64px; align-items: start; }
}
.note-feature .note-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    line-height: 1.7;
}
.note-feature .note-meta span { display: block; }
.note-feature .note-meta .pop { color: var(--accent); }
.note-feature h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.02;
    margin-bottom: 0;
    max-width: 13ch;
}
.note-feature .read-cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.note-feature .read-cta:hover { color: var(--accent); }
.notes-queue {
    margin-bottom: 72px;
}
.notes-queue h2 {
    font-size: clamp(40px, 5vw, 58px);
    margin-bottom: 20px;
}
.notes-queue .section-desc {
    margin-bottom: 28px;
}
.notes-queue .grid-list {
    border-top-color: rgba(0,0,0,0.15);
}
.notes-queue .grid-row {
    min-height: 52px;
}

/* Services page */
.services-intro {
    margin-bottom: 64px;
}
.services-intro p {
    max-width: 62ch;
    margin: 0;
    color: var(--gray-1);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}
.service-hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.services-snapshot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 760px;
    margin-top: 28px;
}
@media (min-width: 760px) {
    .services-snapshot {
        grid-template-columns: repeat(3, 1fr);
    }
}
.services-snapshot div {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid var(--bg-elev);
    background: rgba(255,255,255,0.18);
}
.services-snapshot span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--accent);
}
.services-snapshot strong {
    font-family: var(--font-sans);
    font-size: 18px;
    letter-spacing: -0.01em;
}
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.service-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--bg-elev);
    background: var(--bg-2);
    box-shadow: 0 18px 44px rgba(18, 18, 16, 0.035);
    overflow: hidden;
}
@media (min-width: 980px) {
    .service-row {
        grid-template-columns: 54px minmax(240px, 340px) minmax(0, 1fr);
        align-items: stretch;
    }
}
.service-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--accent);
    padding: 22px 18px;
    border-bottom: 1px solid var(--bg-elev);
}
@media (min-width: 980px) {
    .service-num {
        border-bottom: 0;
        border-right: 1px solid var(--bg-elev);
    }
}
.service-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    background: #080808;
    border-bottom: 1px solid var(--bg-elev);
}
@media (min-width: 980px) {
    .service-media {
        aspect-ratio: auto;
        min-height: 100%;
        border-bottom: 0;
        border-right: 1px solid var(--bg-elev);
    }
}
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.88) saturate(0.9);
}
.service-copy {
    padding: clamp(24px, 4vw, 38px);
}
.service-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.service-title-row h2 {
    margin: 0;
    font-size: clamp(32px, 3.6vw, 48px);
}
.service-proof-link {
    margin-top: 10px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--gray-2);
    text-transform: uppercase;
}
.service-proof-link:hover { color: var(--accent); }
@media (max-width: 760px) {
    .service-title-row {
        display: block;
    }
    .service-proof-link {
        display: inline-block;
        margin: 8px 0 0;
    }
}
.service-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 1180px) {
    .service-summary {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        align-items: start;
    }
}
.micro-label {
    display: block;
    margin-bottom: 9px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--accent);
    text-transform: uppercase;
}
.service-plain {
    color: var(--fg) !important;
    font-family: var(--font-sans);
    font-size: clamp(20px, 2.2vw, 28px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
    margin-bottom: 14px !important;
    max-width: 24ch !important;
}
.service-row p {
    max-width: 54ch;
    margin: 0;
    color: var(--gray-1);
    font-size: 15px;
    line-height: 1.62;
}
.service-diagram {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 560px;
    margin-top: 26px;
    padding: 14px;
    border: 1px solid var(--bg-elev);
    background:
        linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
        rgba(255,255,255,0.12);
    background-size: 24px 24px;
}
@media (min-width: 760px) {
    .service-diagram {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.service-diagram::before {
    content: '';
    position: absolute;
    left: 30px;
    right: 30px;
    top: 50%;
    height: 1px;
    background: var(--bg-elev);
    z-index: 0;
}
.service-diagram span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid var(--bg-elev);
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}
.service-diagram span::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
}
.service-diagram span:last-child::after { display: none; }
.service-diagram--campaign span:last-child::after {
    display: none;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.service-tags span {
    border: 1px solid var(--bg-elev);
    padding: 7px 9px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
    background: rgba(255,255,255,0.14);
}
.service-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.service-actions .btn-primary {
    padding: 10px 18px;
    font-size: 12px;
}
.service-start {
    margin-top: 80px;
    padding: clamp(34px, 5vw, 58px) 0;
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 900px) {
    .service-start {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}
.service-start h2 {
    margin-bottom: 14px;
}
.service-start p {
    max-width: 52ch;
    margin: 0;
    color: var(--gray-1);
    line-height: 1.6;
}

/* Now-page lists */
.now-block {
    margin-bottom: 80px;
}
.now-block h2 {
    font-size: clamp(20px, 2.4vw, 32px);
    margin-bottom: 24px;
    line-height: 1.1;
}
.now-block p,
.now-block li {
    color: var(--gray-1);
    line-height: 1.6;
    font-size: 15px;
    max-width: 64ch;
}
.now-block ul, .now-block ol {
    padding-left: 1.4em;
}
.now-block li + li { margin-top: 0.5em; }

/* Contact form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1fr);
        gap: 80px;
    }
}
.contact-copy {
    position: sticky;
    top: 104px;
}
.contact-lede {
    max-width: 46ch;
    margin: 0 0 34px;
    color: var(--gray-1);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.38;
}
.contact-side-panel {
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
}
.contact-side-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-elev);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
}
.contact-side-top span:last-child { color: var(--accent); }
.contact-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--bg-elev);
}
.contact-step:last-child { border-bottom: 0; }
.contact-step span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
}
.contact-step p {
    margin: 0;
    color: var(--gray-1);
    line-height: 1.55;
    font-size: 14px;
}
.direct-note {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--gray-2);
    text-transform: uppercase;
}
.direct-note a { color: var(--fg); }
.intake-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 640px;
}
.contact-form {
    max-width: none;
    padding: clamp(24px, 3.4vw, 40px);
    border: 1px solid rgba(18, 18, 16, 0.18);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 42%),
        var(--bg-2);
    box-shadow: 0 26px 60px rgba(18, 18, 16, 0.06);
}
.site-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 720px) {
    .contact-form-grid { grid-template-columns: repeat(2, 1fr); }
}
.intake-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
}
.intake-form input[type="text"],
.intake-form input[type="email"],
.intake-form textarea,
.intake-form select {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(18, 18, 16, 0.16);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--fg);
    line-height: 1.4;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.intake-form textarea { min-height: 140px; resize: vertical; }
.contact-form textarea { min-height: 180px; }
.contact-submit {
    margin-top: 4px;
    align-items: center;
}
.contact-submit button {
    border: 0;
    cursor: pointer;
    font-family: var(--font-mono);
}
.intake-form input:focus,
.intake-form textarea:focus,
.intake-form select:focus {
    outline: none;
    border-color: rgba(18, 18, 16, 0.34);
    background-color: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}

/* ==================================================================
   ANIMATION PRIMITIVES — entry-fade + scroll-reveal
   ================================================================== */
.entry-fade {
    opacity: 0;
    transform: translateY(16px);
    animation: entryFade 0.8s var(--ease-out-soft) forwards;
}
.entry-fade.delay-1 { animation-delay: 0.12s; }
.entry-fade.delay-2 { animation-delay: 0.24s; }
.entry-fade.delay-3 { animation-delay: 0.36s; }
.entry-fade.delay-4 { animation-delay: 0.48s; }

@keyframes entryFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==================================================================
   PAGE-SPECIFIC PATTERNS (work / rundown / now / contact)
   ================================================================== */

/* Section counter eyebrow: "02 · The Week" */
.section-counter {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gray-2);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-counter .num { color: var(--accent); font-weight: 500; }
.section-counter .tail { color: var(--gray-3); margin-left: auto; }

/* Stat grid (4-up KPI tiles) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-grid .stat .figure {
    font-family: var(--font-sans);
    font-size: clamp(28px, 3.4vw, 44px);
    color: var(--fg);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-grid .stat .label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    margin-top: 8px;
}

/* Meta grid (left/right info pairs) */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    padding: 24px 0;
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
    margin: 32px 0;
}
@media (min-width: 768px) {
    .meta-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.meta-grid .meta-item .meta-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
    margin-bottom: 4px;
}
.meta-grid .meta-item .meta-value {
    color: var(--fg);
    font-size: 14px;
}

/* Pull quote */
.pull-quote {
    font-family: var(--font-sans);
    font-style: italic;
    font-size: clamp(18px, 1.7vw, 24px);
    color: var(--gray-1);
    line-height: 1.4;
    border-left: 2px solid var(--accent);
    padding-left: 24px;
    margin: 40px 0;
    max-width: 56ch;
}
.pull-quote .attribution {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
    margin-top: 16px;
}

.rundown-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}
@media (min-width: 980px) {
    .rundown-intro-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.65fr);
        gap: 72px;
    }
}
.rundown-map-card {
    position: relative;
    min-height: 340px;
    border: 1px solid var(--bg-elev);
    background:
        radial-gradient(circle at center, rgba(245,166,35,0.08), transparent 46%),
        linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
        rgba(255,255,255,0.12);
    background-size: auto, 24px 24px, 24px 24px, auto;
    padding: 24px;
    overflow: hidden;
}
.rundown-map-card::before {
    content: '';
    position: absolute;
    inset: 54px;
    border: 1px dashed rgba(0,0,0,0.18);
    border-radius: 50%;
}
.rundown-map-card .map-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}
.rundown-map-card .map-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    border: 1px solid var(--fg);
    border-radius: 50%;
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 24px;
    letter-spacing: -0.02em;
}
.rundown-map-card .map-nodes span {
    position: absolute;
    min-width: 72px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bg-elev);
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-1);
}
.rundown-map-card .map-nodes span:nth-child(1) { left: 38px; top: 42%; }
.rundown-map-card .map-nodes span:nth-child(2) { left: 50%; top: 42px; transform: translateX(-50%); }
.rundown-map-card .map-nodes span:nth-child(3) { right: 38px; top: 42%; }
.rundown-map-card .map-nodes span:nth-child(4) { left: 74px; bottom: 54px; }
.rundown-map-card .map-nodes span:nth-child(5) { right: 74px; bottom: 54px; }
.rundown-map-card .map-nodes span:nth-child(6) { left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--accent); }

/* Yes/no two-column fit grid */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}
@media (min-width: 768px) { .fit-grid { grid-template-columns: 1fr 1fr; } }
.fit-col {
    border: 1px solid var(--bg-elev);
    background: rgba(255,255,255,0.16);
    padding: clamp(22px, 3vw, 32px);
}
.fit-col h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-elev);
}
.fit-col.yes h3 { color: var(--accent); border-color: var(--accent); }
.fit-col ul { list-style: none; padding: 0; }
.fit-col li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-elev);
    color: var(--gray-1);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.fit-col li::before {
    content: '';
    width: 6px; height: 6px;
    margin-top: 8px;
    background: var(--gray-3);
    flex-shrink: 0;
}
.fit-col.yes li::before { background: var(--accent); }

/* Numbered list ("01 Findings", "02 Ship list") */
.num-list { display: flex; flex-direction: column; }
.num-list .item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--bg-elev);
    border-bottom: 0;
    background: rgba(255,255,255,0.12);
    align-items: baseline;
}
.num-list .item:first-child { border-top: 1px solid var(--bg-elev); }
.num-list .item:last-child { border-bottom: 1px solid var(--bg-elev); }
.num-list .item .num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
}
.num-list .item .body { color: var(--gray-1); font-size: 14px; line-height: 1.55; }
.num-list .item .body strong { color: var(--fg); font-weight: 500; margin-right: 6px; }

/* Day block (rundown.html) */
.rundown-week-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 980px) {
    .rundown-week-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
.day-block {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--bg-elev);
    background: rgba(255,255,255,0.16);
    min-height: 190px;
}
.day-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--bg-elev);
    background: rgba(255,255,255,0.22);
    position: relative;
}
.day-icon::before,
.day-icon::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid var(--fg);
    opacity: 0.72;
}
.day-icon--discover::before { border-radius: 50%; }
.day-icon--discover::after {
    inset: auto 8px 8px auto;
    width: 12px;
    height: 1px;
    border: 0;
    background: var(--accent);
    transform: rotate(45deg);
}
.day-icon--scan::before {
    border-style: dashed;
    transform: rotate(45deg);
}
.day-icon--scan::after {
    inset: 22px 8px auto;
    height: 1px;
    border: 0;
    background: var(--accent);
}
.day-icon--memo::before {
    inset: 9px 12px;
    border-radius: 0;
}
.day-icon--memo::after {
    inset: 18px 18px auto;
    height: 12px;
    border: 0;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}
.day-icon--call::before {
    inset: 11px;
    border-radius: 50%;
}
.day-icon--call::after {
    inset: auto 10px 12px;
    height: 10px;
    border: 0;
    border-bottom: 1px solid var(--accent);
    border-radius: 50%;
}
@media (min-width: 768px) {
    .day-block { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}
.day-block .day-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.day-block h3 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.1;
    margin: 0 0 8px;
}
.day-block .day-body { color: var(--gray-1); font-size: 14px; line-height: 1.55; }
.day-block .day-tail {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-3);
}

/* Sample memo card */
.memo-card {
    background: var(--bg-2);
    border: 1px solid var(--bg-elev);
    padding: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-1);
    line-height: 1.55;
    max-width: 460px;
}
.memo-card .memo-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--bg-elev);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.memo-card .memo-head .filename { color: var(--fg); font-weight: 500; }
.memo-card .memo-head .tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-3);
}
.memo-card h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 14px 0 6px;
    font-weight: 400;
}
.memo-card ul { list-style: none; padding: 0; margin: 0; }
.memo-card li { padding: 4px 0; }
.memo-card li::before { content: '· '; color: var(--gray-3); }
.memo-card .memo-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-top: 10px;
}
.memo-card .memo-stats .ms {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted var(--bg-elev);
    padding: 4px 0;
}
.memo-card .memo-stats .ms .v { color: var(--accent); font-weight: 500; }
.memo-card .memo-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px dashed var(--bg-elev);
    color: var(--gray-3);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Tech stack list */
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 32px;
    padding: 24px 0;
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
    margin: 32px 0;
}
.tech-item .label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    margin-bottom: 4px;
}
.tech-item .value { color: var(--fg); font-size: 13px; }

/* Now-page kanji glyph + section ornament */
.kanji-mark {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    font-size: clamp(64px, 8vw, 120px);
    color: var(--accent);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: -40px;
    pointer-events: none;
    user-select: none;
}

/* Q&A list */
.qa-list { display: flex; flex-direction: column; }
.qa-list .qa {
    padding: 24px;
    border: 1px solid var(--bg-elev);
    border-bottom: 0;
    background: rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .qa-list .qa { grid-template-columns: 56px minmax(0, 1fr); gap: 32px; align-items: start; }
}
.qa-list .qa:first-child { border-top: 1px solid var(--bg-elev); }
.qa-list .qa:last-child { border-bottom: 1px solid var(--bg-elev); }
.qa-list .qa .num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
    padding-top: 4px;
}
.qa-list .qa h3 {
    font-size: clamp(20px, 2.2vw, 26px);
    margin-bottom: 10px;
    line-height: 1.2;
}
.qa-list .qa p {
    color: var(--gray-1);
    font-size: 14px;
    line-height: 1.6;
    max-width: 64ch;
}
.qa-list .qa p + p { margin-top: 8px; }

/* Two-column split (deliverables + memo, etc.) */
.split-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 1024px) {
    .split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 80px; }
}

.rundown-output {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
}
@media (min-width: 1024px) {
    .rundown-output {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
        gap: 72px;
    }
}
.deliverable-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 760px) {
    .deliverable-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.deliverable-card {
    position: relative;
    min-height: 170px;
    border: 1px solid var(--bg-elev);
    background:
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
        rgba(255,255,255,0.14);
    background-size: 22px 22px;
    padding: 22px;
}
.deliverable-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--bg-elev);
    background: rgba(255,255,255,0.18);
}
.deliverable-icon::before,
.deliverable-icon::after {
    content: '';
    position: absolute;
}
.deliverable-icon--findings::before {
    inset: 10px;
    border: 1px solid var(--fg);
    border-radius: 50%;
}
.deliverable-icon--findings::after {
    left: 22px;
    top: 6px;
    width: 1px;
    height: 34px;
    background: var(--accent);
}
.deliverable-icon--ship::before {
    left: 8px;
    right: 8px;
    top: 15px;
    height: 1px;
    background: var(--fg);
    box-shadow: 0 8px 0 var(--fg), 0 16px 0 var(--fg);
}
.deliverable-icon--ship::after {
    right: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    transform: rotate(45deg);
}
.deliverable-icon--plan::before {
    inset: 9px;
    border: 1px solid var(--fg);
    transform: rotate(45deg);
}
.deliverable-icon--plan::after {
    left: 10px;
    right: 10px;
    top: 50%;
    height: 1px;
    background: var(--accent);
}
.deliverable-icon--stack::before {
    left: 10px;
    right: 10px;
    top: 10px;
    height: 8px;
    border: 1px solid var(--fg);
    box-shadow: 0 10px 0 -1px var(--bg), 0 10px 0 0 var(--fg), 0 20px 0 -1px var(--bg), 0 20px 0 0 var(--fg);
}
.deliverable-icon--scope::before {
    inset: 10px;
    border: 1px solid var(--fg);
}
.deliverable-icon--scope::after {
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--accent);
    transform: rotate(35deg);
}
.deliverable-card.is-wide {
    min-height: 140px;
}
@media (min-width: 760px) {
    .deliverable-card.is-wide {
        grid-column: span 2;
    }
}
.deliverable-card span {
    display: block;
    margin-bottom: 34px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--accent);
}
.deliverable-card h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.05;
    margin-bottom: 10px;
}
.deliverable-card p {
    max-width: 34ch;
    color: var(--gray-1);
    font-size: 13px;
    line-height: 1.55;
}

/* Closing CTA card */
.closing-card {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--bg-elev);
    margin-top: 96px;
}
.closing-card .closing-mark {
    font-size: 26px;
    color: var(--accent);
    display: inline-block;
    animation: rotate 18s linear infinite;
    margin-bottom: 24px;
}
.closing-card h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3vw, 44px);
}
.closing-card p {
    color: var(--gray-2);
    max-width: 50ch;
    margin: 0 auto 24px;
}
.closing-card .cta-row { justify-content: center; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================================================================
   POST-AUDIT ADDITIONS — case tag line, inputs grid, disclosures
   May 2026 best-practice pass: progressive disclosure, tasteful motion.
   ================================================================== */

/* Work case meta line (replaces meta-grid) */
.case-tag-line {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-2);
    margin-top: 10px;
    margin-bottom: 8px;
}

/* Now > Inputs section — three columns of compact lists */
.inputs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}
@media (min-width: 768px) {
    .inputs-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.inputs-col { display: flex; flex-direction: column; gap: 14px; }
.inputs-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-3);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-elev);
}
.inputs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-1);
}
.inputs-list li strong { font-weight: 500; color: var(--fg); }
.inputs-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--bg-2);
    border: 1px solid var(--bg-elev);
    color: var(--gray-3);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Page changelog (collapsible) */
.page-changelog {
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
    padding: 20px 0;
}
.page-changelog summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
    transition: color 0.2s ease;
}
.page-changelog summary::-webkit-details-marker { display: none; }
.page-changelog summary::before {
    content: '+';
    display: inline-block;
    width: 16px;
    color: var(--accent);
    font-size: 14px;
    transition: transform 0.25s var(--ease-out-soft);
}
.page-changelog[open] summary::before { transform: rotate(45deg); }
.page-changelog summary:hover { color: var(--fg); }
.changelog-label { flex: 1; }
.changelog-meta { color: var(--gray-3); font-weight: 400; }

/* Form progressive-disclosure block */
.form-disclosure {
    border-top: 1px solid var(--bg-elev);
    border-bottom: 1px solid var(--bg-elev);
    padding: 18px 0;
    margin: 8px 0;
}
.form-disclosure summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-2);
    transition: color 0.2s ease;
}
.form-disclosure summary::-webkit-details-marker { display: none; }
.form-disclosure summary:hover { color: var(--fg); }
.disclosure-label { color: var(--accent); flex: 1; }
.disclosure-meta { color: var(--gray-3); font-weight: 400; text-transform: none; letter-spacing: 0.04em; font-size: 11px; }
.form-disclosure[open] .disclosure-label::before { content: '−  '; }
.form-disclosure:not([open]) .disclosure-label::before { content: '+  '; }
.form-disclosure-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
    animation: disclosureFadeIn 0.32s var(--ease-out-soft);
}
@keyframes disclosureFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Optional-field marker on labels */
.intake-form label .opt {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border: 1px solid var(--bg-elev);
    color: var(--gray-3);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-style: normal;
    vertical-align: 1px;
}

/* Form focus ring: switch to sky for a calmer focus signal */
.intake-form input:focus,
.intake-form textarea:focus,
.intake-form select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(29, 148, 221, 0.12);
}

/* ----- PAST CLIENTS section ----- */
#past-clients { position: relative; padding: 80px 0 96px; }
#past-clients .container { position: relative; }
.section-ghost {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.section-ghost img {
    display: block;
    width: min(360px, 34vw);
    opacity: 0.16;
    filter: contrast(1.04);
    mix-blend-mode: multiply;
}
.section-ghost--work {
    right: 36px;
    top: -44px;
}
.past-clients-head { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.past-clients-head,
.proof-grid { position: relative; z-index: 1; }
.past-clients-head h2 { font-size: clamp(40px, 5vw, 64px); margin: 0; }
.past-clients-head .section-desc { margin: 0; color: var(--gray-2, #888); font-size: 14px; }

.client-filter {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 28px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px; letter-spacing: 0.05em;
}
.filter-btn {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: inherit;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover { border-color: rgba(0, 0, 0, 0.45); }
.filter-btn.active {
    background: #0a0a0a;
    color: var(--accent);
    border-color: #0a0a0a;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.client-card {
    border: 1px solid rgba(0,0,0,0.12);
    background: #0a0a0a;
    overflow: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.client-card.is-hidden { display: none; }
.client-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
}
.client-media canvas, .client-media video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.client-media--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(135deg, #111 0 8px, #0a0a0a 8px 16px);
    color: rgba(243, 215, 160, 0.55);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.client-info {
    padding: 16px 18px 20px;
    color: rgba(255,255,255,0.86);
    background: #090909;
}
.client-info .client-tag {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.06em; color: var(--accent);
    text-transform: uppercase;
}
.client-info h3 { font-size: 22px; margin: 6px 0 8px; }
.client-info p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.72); margin: 0; }
.client-card { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.client-card:hover { transform: translateY(-2px); }
.client-link {
    display: inline-block; margin-top: 12px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.06em; color: var(--accent);
    text-transform: uppercase;
    transition: color 0.15s;
}
.client-card:hover .client-link { color: #fff; }

/* Dokyo case study media */
.dokyo-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.dokyo-video, .dokyo-img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    background: #0a0a0a;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Past Clients — expandable card */
.client-card { display: block; padding: 0; }
.client-toggle {
    display: block; width: 100%; padding: 0;
    background: transparent; border: 0; color: inherit;
    cursor: pointer; text-align: left;
    font: inherit;
}
.client-toggle .client-media { width: 100%; }
.client-toggle .client-info { padding: 16px 18px 20px; }
.client-toggle .link-close { display: none; }
.client-toggle[aria-expanded="true"] .link-open { display: none; }
.client-toggle[aria-expanded="true"] .link-close { display: inline; }

/* When card is expanded, span full grid width so the case study has room */
.client-card:has(.client-toggle[aria-expanded="true"]) {
    grid-column: 1 / -1;
}

.client-expanded {
    padding: 24px;
    background: #0c0a07;
    color: #efe9da;
    border-top: 1px solid rgba(243, 215, 160, 0.2);
}
.client-expanded[hidden] { display: none; }
.expanded-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.expanded-media-grid video,
.expanded-media-grid img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
    background: #000;
    border: 1px solid rgba(255,255,255,0.06);
}
.expanded-body { max-width: 70ch; }
.expanded-body h4 {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #b89568; margin: 18px 0 6px;
}
.expanded-body p { font-size: 14px; line-height: 1.65; color: rgba(239, 233, 218, 0.85); margin: 0 0 8px; }

.client-media--bakeris img,
.client-media--chair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.client-media--bakeris,
.client-media--chair { aspect-ratio: 16/9; overflow: hidden; }
.client-media--chair img { object-position: 50% 50%; }

/* THE OPERATOR LOG — long premium running history table */
.work-log {
    border: 1px solid var(--bg-elev, #e0ddd2);
    background: var(--bg-2, #ddd9cd);
    border-radius: 0;
    overflow: hidden;
    margin-top: 8px;
}
.work-log-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    grid-template-areas: "year title action" "year tag action";
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: 4px;
    align-items: center;
    padding: 22px clamp(16px, 2vw, 32px);
    border-top: 1px solid var(--bg-elev, #e0ddd2);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, color 0.18s ease;
}
.work-log-row:first-child { border-top: 0; }
@media (min-width: 800px) {
    .work-log-row {
        grid-template-columns: 130px minmax(140px, 220px) 1fr auto;
        grid-template-areas: "year title tag action";
    }
}
.wl-year {
    grid-area: year;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--gray-2, #6F6C66);
    white-space: nowrap;
}
.wl-title {
    grid-area: title;
    font-family: var(--font-sans, 'Space Grotesk', sans-serif);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--fg, #101011);
    line-height: 1.2;
}
.wl-tag {
    grid-area: tag;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--gray-2, #6F6C66);
    line-height: 1.4;
}
.wl-action {
    grid-area: action;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--gray-2, #6F6C66);
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.wl-arrow {
    display: inline-block;
    transition: transform 0.18s var(--ease-out-soft, ease-out);
}

/* Clickable rows — pop on hover */
a.work-log-row:hover {
    background: var(--fg, #101011);
    color: var(--bg, #E8E5DD);
}
a.work-log-row:hover .wl-year,
a.work-log-row:hover .wl-tag,
a.work-log-row:hover .wl-action { color: var(--accent, #F5A623); }
a.work-log-row:hover .wl-title { color: var(--bg, #E8E5DD); }
a.work-log-row:hover .wl-arrow { transform: translateX(4px); }

/* Note rows (no link) — slightly muted */
.work-log-row--note .wl-title { color: var(--gray-1, #3A3937); }
.work-log-row--note .wl-action { opacity: 0.5; }

/* Live row — accent state */
.work-log-row--live { background: var(--fg, #101011); color: var(--bg, #E8E5DD); }
.work-log-row--live .wl-year { color: var(--accent, #F5A623); }
.work-log-row--live .wl-title { color: var(--bg, #E8E5DD); }
.work-log-row--live .wl-tag { color: rgba(255,255,255,0.6); }
.work-log-row--live .wl-action { color: var(--accent, #F5A623); }
.work-log-row--live .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent, #F5A623);
    box-shadow: 0 0 8px var(--accent, #F5A623);
    animation: wl-pulse 1.6s ease-in-out infinite;
    display: inline-block;
}
@keyframes wl-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.1);  }
}

/* Mobile: stack the action under the title block */
@media (max-width: 640px) {
    .work-log-row {
        grid-template-columns: 90px 1fr;
        grid-template-areas: "year title" "year tag" ". action";
        padding: 18px 16px;
    }
    .wl-action { justify-self: start; padding-top: 6px; }
}

/* — Work dropdown nav (shared across all pages) — */
.nav-item-menu { position: relative; }
.nav-item-menu::after {
    content: '';
    position: absolute;
    left: -18px;
    right: -18px;
    top: 100%;
    height: 14px;
}
.nav-item-menu > a .caret {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8em;
    transition: transform 0.18s ease;
}
.nav-item-menu:hover > a,
.nav-item-menu > a:hover,
.nav-menu a:hover {
    letter-spacing: 0.06em;
}
.nav-item-menu:hover > a .caret { transform: translateY(2px); }
.nav-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: -16px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.nav-item-menu:hover .nav-menu,
.nav-item-menu:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 20px;
    text-decoration: none;
    color: #f5f5f5;
    border-left: 2px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.nav-menu-item:hover {
    background: rgba(255,255,255,0.04);
    border-left-color: var(--accent, #fcc419);
    color: #fff;
}
.nav-menu-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px; font-weight: 500;
    letter-spacing: -0.01em;
}
.nav-menu-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.nav-menu-item.is-coming .nav-menu-meta { color: var(--accent, #fcc419); }

/* — Hero sound toggle — */
.dk-hero .sound {
    position: absolute;
    bottom: clamp(20px, 3vw, 40px);
    right: clamp(20px, 3vw, 40px);
    width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    transition: background 0.18s, border-color 0.18s;
    padding: 0;
}
.dk-hero .sound:hover {
    background: rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.5);
}
.dk-hero .sound svg { width: 18px; height: 18px; display: block; }
.dk-hero .sound .icon-on { display: none; }
.dk-hero .sound.is-on .icon-off { display: none; }
.dk-hero .sound.is-on .icon-on { display: block; }
