/* ==========================================================================
   Etlon Technological Solutions — Design System v3 "Marquee"
   Dark canvas, gold accent, serif display. Full-service positioning.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts (latin subsets, variable weights)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  font-optical-sizing: auto;
  src: url('/assets/fonts/fraunces-normal-500-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  font-optical-sizing: auto;
  src: url('/assets/fonts/fraunces-italic-500-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-400-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The 400 and 500 files are byte-identical, so one face covers both weights
   and saves a 31 KB duplicate download on every page. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrainsmono-normal-400.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Canvas */
    --bg: #0c0e12;
    --bg-2: #101319;
    --panel: #141822;
    --panel-2: #191e2a;

    /* Ink — warm off-whites against the dark canvas */
    --ink: #f3efe7;
    --soft: #c9c2b4;
    --mute: #8d8779;
    --dim: #5c574c;

    /* Lines */
    --line: rgba(243, 239, 231, 0.09);
    --line-2: rgba(243, 239, 231, 0.18);
    --line-3: rgba(243, 239, 231, 0.32);
    /* Input boundaries need >=3:1 against --panel per WCAG 1.4.11. */
    --line-form: rgba(243, 239, 231, 0.42);

    /* Accent */
    --gold: #e3b34a;
    --gold-hi: #f2cd7b;
    --gold-dim: rgba(227, 179, 74, 0.12);
    --signal: #7dd8a5;
    --danger: #f07f7f;

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Layout */
    --nav-h: 78px;
    --wrap: 1400px;
    --gut: 24px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fast: 0.25s;
}

@media (min-width: 768px)  { :root { --gut: 44px; } }
@media (min-width: 1250px) { :root { --gut: 70px; } }

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: #191408; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 8px; border: 3px solid var(--bg); }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    padding: 14px 22px; background: var(--gold); color: #191408;
    font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
    position: relative;
}

.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }

@media (max-width: 860px) {
    .section { padding: 76px 0; }
    .section-sm { padding: 52px 0; }
}

.section-raise { background: var(--bg-2); }
.hairline-top { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 26px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.06;
    color: var(--ink);
    text-wrap: balance;
}

h1 em, h2 em, h3 em, blockquote em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold-hi);
}

.display { font-size: clamp(42px, 6.6vw, 96px); line-height: 1.04; letter-spacing: -0.025em; }
.h-xl { font-size: clamp(34px, 5vw, 68px); line-height: 1.05; }
.h-lg { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; }
.h-md { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; }
.h-sm { font-size: 20px; line-height: 1.3; }

.lead {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
    color: var(--soft);
    max-width: 60ch;
}

.body-text { font-size: 16px; line-height: 1.8; color: var(--mute); max-width: 66ch; }

.section-head { margin-bottom: 56px; max-width: 960px; }
.section-head .lead { margin-top: 18px; }

/* Prose — case studies, legal, about */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(25px, 3vw, 36px); margin: 60px 0 22px; }
.prose h3 { font-size: 21px; margin: 38px 0 14px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { font-size: 16.5px; line-height: 1.85; color: var(--soft); margin-bottom: 22px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 26px; }

.prose ul li {
    position: relative; padding-left: 26px; margin-bottom: 13px;
    font-size: 16.5px; line-height: 1.8; color: var(--mute);
}
.prose ul li::before {
    content: ''; position: absolute; left: 2px; top: 13px;
    width: 8px; height: 1px; background: var(--gold);
}

.prose ol { counter-reset: c; }
.prose ol li {
    position: relative; counter-increment: c; padding-left: 42px; margin-bottom: 16px;
    font-size: 16.5px; line-height: 1.8; color: var(--mute);
}
.prose ol li::before {
    content: counter(c, decimal-leading-zero);
    position: absolute; left: 0; top: 3px;
    font-family: var(--font-mono); font-size: 12px; color: var(--gold);
}

.prose a:not(.btn) {
    color: var(--ink);
    box-shadow: inset 0 -1px 0 var(--gold);
    transition: color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.prose a:not(.btn):hover { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold-hi); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 18px 34px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
                border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
                filter var(--fast) var(--ease);
}

.btn svg { flex-shrink: 0; transition: transform var(--fast) var(--ease); }
.btn:hover svg.icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: #191408; border-color: var(--gold); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 20px 40px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-row-center { justify-content: center; }

@media (max-width: 560px) {
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn { width: 100%; }
}

.link-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-2);
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.link-line:hover { color: var(--gold-hi); border-color: var(--gold); }
.link-line svg { transition: transform var(--fast) var(--ease); }
.link-line:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. Scroll progress
   -------------------------------------------------------------------------- */
.progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 100%;
    transform: scaleX(0); transform-origin: left;
    background: var(--gold);
    z-index: 300; pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 200;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-nav.is-stuck {
    background: rgba(12, 14, 18, 0.78);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--line);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h); gap: 24px;
}

.logo {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    flex-shrink: 0;
}
.logo i { font-style: normal; color: var(--gold); }

.nav-links { display: none; align-items: center; gap: 34px; }
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-links a {
    position: relative;
    font-size: 14px; font-weight: 500;
    color: var(--mute);
    padding: 5px 0;
    transition: color var(--fast) var(--ease);
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-right { display: none; align-items: center; gap: 20px; }
@media (min-width: 980px) { .nav-right { display: flex; } }

.nav-cta {
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #191408; }

.nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 12px;
    background: none; border: 1px solid var(--line); cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.nav-toggle span {
    display: block; width: 18px; height: 1.5px; background: var(--ink);
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   9. Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
    position: fixed; inset: 0; z-index: 250;
    background: var(--bg);
    padding: calc(var(--nav-h) + 36px) var(--gut) 40px;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
    overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer-links a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 17px 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 7vw, 36px);
    font-weight: 600; letter-spacing: -0.02em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.drawer-links a .mono { font-size: 10.5px; color: var(--dim); }
.drawer-links a:hover { color: var(--gold-hi); }

.drawer-foot { margin-top: auto; padding-top: 36px; }
.drawer-foot .btn { width: 100%; margin-bottom: 20px; }
.drawer-foot .mail { font-size: 15px; color: var(--mute); }
.drawer-foot .mail:hover { color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   10. Hero — home
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    /* Fill the first viewport, but never balloon on unusually tall screens. */
    min-height: min(92svh, 980px);
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 72px) 0 84px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: -35%; right: -15%;
    width: 75%; height: 150%;
    background: radial-gradient(ellipse at center, rgba(227, 179, 74, 0.09), transparent 62%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { margin-bottom: 32px; }
.hero h1 { max-width: 22ch; }
.hero .lead { margin-top: 36px; }
.hero .btn-row { margin-top: 42px; }

.hero-note {
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--mute);
}

/* Rotating word */
.rotor {
    display: inline-grid;
    vertical-align: baseline;
    overflow: hidden;
    /* Fraunces italic descenders overshoot; 1.08em sliced them. The negative
       margin cancels the extra height so the line box does not grow. */
    height: 1.34em;
    margin-bottom: -0.26em;
}
.rotor > span {
    grid-area: 1 / 1;
    display: block;
    font-style: italic;
    font-weight: 500;
    color: var(--gold-hi);
    white-space: nowrap;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.rotor > span.in { transform: none; opacity: 1; }
.rotor > span.out { transform: translateY(-120%); opacity: 0; }

/* No-JS / reduced-motion: first word shows, others stay hidden */
html:not(.js) .rotor > span:first-child { transform: none; opacity: 1; }

/* --------------------------------------------------------------------------
   11. Hero — interior pages
   -------------------------------------------------------------------------- */
.hero-page {
    position: relative;
    padding: calc(var(--nav-h) + 84px) 0 72px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero-page::before {
    content: '';
    position: absolute; top: -60%; left: 45%;
    width: 60%; height: 190%;
    background: radial-gradient(ellipse at center, rgba(227, 179, 74, 0.08), transparent 64%);
    pointer-events: none;
}
.hero-page .container { position: relative; z-index: 2; }
.hero-page h1 { margin-bottom: 22px; max-width: 24ch; }
.hero-page .lead { max-width: 62ch; }

/* --------------------------------------------------------------------------
   12. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { margin-bottom: 32px; }

.breadcrumb ol {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
}
.breadcrumb li { display: flex; align-items: center; gap: 9px; }
.breadcrumb a {
    color: var(--mute);
    /* Enlarge the tap target without changing the visual rhythm. */
    padding: 8px 0;
    margin: -8px 0;
    transition: color var(--fast) var(--ease);
}
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb [aria-current="page"] { color: var(--mute); }
.breadcrumb-sep { color: var(--dim); opacity: 0.5; }

/* --------------------------------------------------------------------------
   13. Stat band
   -------------------------------------------------------------------------- */
.band {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .band { grid-template-columns: repeat(4, 1fr); } }

.band > div {
    padding: 42px 30px;
    border-right: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.band > div:last-child { border-right: none; }
@media (max-width: 899px) {
    .band > div:nth-child(2n) { border-right: none; }
    .band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.band > div::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.55s var(--ease);
}
.band > div:hover::after { transform: scaleX(1); }

.band b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.band span {
    display: block; margin-top: 13px;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--mute);
}

/* --------------------------------------------------------------------------
   14. Pedigree wall
   -------------------------------------------------------------------------- */
.wall {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
@media (min-width: 720px)  { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .wall { grid-template-columns: repeat(3, 1fr); } }

.wall-cell {
    background: var(--bg);
    padding: 32px 30px;
    position: relative; overflow: hidden;
    transition: background-color 0.4s var(--ease);
}
.wall-cell:hover { background: var(--bg-2); }
.wall-cell::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.wall-cell:hover::after { transform: scaleX(1); }

.wall-cell b {
    display: block;
    font-family: var(--font-display);
    font-size: 23px; font-weight: 600; letter-spacing: -0.02em;
    color: var(--ink);
}
.wall-cell.is-hot b { color: var(--gold-hi); }
.wall-cell span {
    display: block; margin-top: 9px;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--mute);
}

/* --------------------------------------------------------------------------
   15. Ledger rows (services)
   -------------------------------------------------------------------------- */
.ledger { border-top: 1px solid var(--line); }

.ledger-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: padding-left 0.45s var(--ease);
}
@media (min-width: 900px) {
    .ledger-row {
        grid-template-columns: 56px minmax(0, 350px) minmax(0, 1fr) 210px;
        gap: 34px;
        align-items: baseline;
    }
    .ledger-row:hover { padding-left: 18px; }
}

.ledger-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--gold);
    transform: scaleY(0); transform-origin: top;
    transition: transform 0.45s var(--ease);
}
.ledger-row:hover::before { transform: scaleY(1); }

.ledger-num { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.ledger-row:hover .ledger-num { color: var(--gold); }

.ledger-row h3 {
    font-size: clamp(21px, 2.2vw, 28px);
    transition: color var(--fast) var(--ease);
}
.ledger-row:hover h3 { color: var(--gold-hi); }

.ledger-row p { font-size: 14.5px; line-height: 1.65; color: var(--mute); }

.ledger-proof {
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--soft);
}
@media (min-width: 900px) { .ledger-proof { text-align: right; } }

/* --------------------------------------------------------------------------
   16. Case panels
   -------------------------------------------------------------------------- */
.case-panel {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    margin-bottom: 18px;
    overflow: hidden;
    background: var(--bg-2);
    transition: border-color 0.4s var(--ease);
}
.case-panel:hover { border-color: var(--line-2); }
@media (min-width: 940px) { .case-panel { grid-template-columns: 1.05fr 0.95fr; } }

.case-art { min-height: 240px; position: relative; overflow: hidden; }
.case-art::before {
    content: attr(data-label);
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(243, 239, 231, 0.62);
    white-space: nowrap;
}

.art-video   { background: linear-gradient(135deg, #1a1f2e, #232c42); }
.art-commerce{ background: linear-gradient(135deg, #241a12, #3a2a18); }
.art-finance { background: linear-gradient(135deg, #101b22, #1a2f3a); }
.art-sports  { background: linear-gradient(135deg, #101b18, #1c2f28); }

.case-art-play::after {
    content: '';
    position: absolute; left: 50%; top: 30%;
    width: 68px; height: 68px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(243, 239, 231, 0.35);
    background: rgba(243, 239, 231, 0.06)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23f3efe7'%3E%3Cpath d='M8 5v14l12-7Z'/%3E%3C/svg%3E") center/20px no-repeat;
}
.case-art-play::before { top: 68%; }

.case-body {
    padding: 42px 40px;
    display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 620px) { .case-body { padding: 30px 24px; } }

.case-kicker {
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.case-body h3 { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 14px; }
.case-body p { font-size: 15px; line-height: 1.72; color: var(--mute); max-width: 54ch; }
.case-metric {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--soft);
}
.case-body .link-line { margin-top: 24px; align-self: flex-start; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   17. Steps / process
   -------------------------------------------------------------------------- */
.steps {
    display: grid; grid-template-columns: 1fr; gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 760px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }

.step { padding: 36px 30px; background: var(--bg); transition: background-color 0.4s var(--ease); }
.step:hover { background: var(--bg-2); }

.step-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 20px;
}
.step h3 { font-size: 19px; margin-bottom: 11px; }
.step p { font-size: 14.5px; line-height: 1.72; color: var(--mute); }

/* --------------------------------------------------------------------------
   18. Check list
   -------------------------------------------------------------------------- */
.check-list li {
    display: flex; align-items: flex-start; gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px; line-height: 1.68; color: var(--soft);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list svg { flex-shrink: 0; margin-top: 4px; color: var(--gold); }

/* --------------------------------------------------------------------------
   19. Quote
   -------------------------------------------------------------------------- */
.quote-block { max-width: 1020px; }

.quote-block blockquote {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 44px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 38px;
    text-wrap: balance;
}
.quote-block blockquote span { color: var(--dim); }

.quote-by { display: flex; align-items: center; gap: 17px; }

.quote-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; flex-shrink: 0;
    border: 1px solid var(--line-2);
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
    color: var(--gold-hi);
}
.quote-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.quote-role {
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--dim); margin-top: 4px;
}

/* --------------------------------------------------------------------------
   20. Marquee (client ticker)
   -------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
    display: flex; width: max-content;
    animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item {
    display: flex; align-items: center; gap: 32px;
    padding: 0 32px;
    font-family: var(--font-display);
    font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
    color: var(--dim);
    white-space: nowrap;
    transition: color var(--fast) var(--ease);
}
.marquee-item:hover { color: var(--ink); }
.marquee-item.is-hot { color: var(--mute); }
.marquee-item::after {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); opacity: 0.45; flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* --------------------------------------------------------------------------
   21. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    width: 100%; padding: 27px 0;
    background: none; border: none; text-align: left; cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.9vw, 23px);
    font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
    color: var(--ink);
    transition: color var(--fast) var(--ease);
}
.faq-q:hover { color: var(--gold-hi); }

.faq-icon {
    flex-shrink: 0; color: var(--dim);
    transition: transform 0.45s var(--ease), color var(--fast) var(--ease);
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(135deg); color: var(--gold); }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-a[data-open="true"] { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { font-size: 16px; line-height: 1.82; color: var(--mute); padding-bottom: 30px; max-width: 72ch; }

/* --------------------------------------------------------------------------
   22. Case study interior
   -------------------------------------------------------------------------- */
.case-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 68px;
}
.case-meta > div { padding: 26px 24px; background: var(--bg); }
.case-meta dt {
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 10px;
}
.case-meta dd { font-size: 14.5px; color: var(--ink); line-height: 1.6; font-weight: 500; }

.result-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) {
    .result-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.result-card {
    padding: 30px 26px;
    background: var(--panel);
    border-left: 2px solid var(--gold);
}
.result-card p { font-size: 15px; line-height: 1.75; color: var(--soft); margin: 0; }

.pager {
    display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap;
    padding-top: 42px; border-top: 1px solid var(--line); margin-top: 68px;
}
.pager a {
    font-family: var(--font-mono);
    font-size: 11.5px; letter-spacing: 0.08em;
    color: var(--mute);
    transition: color var(--fast) var(--ease);
}
.pager a:hover { color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   23. CTA band
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    padding: 130px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 90% at 50% 110%, rgba(227, 179, 74, 0.13), transparent 66%);
    pointer-events: none;
}
.cta .container { position: relative; z-index: 2; }
.cta h2 { margin-bottom: 24px; }
.cta .lead { margin: 0 auto 42px; }
.cta .btn-row { justify-content: center; }

.cta-note {
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--mute);
}
.cta-note a { color: var(--soft); transition: color var(--fast) var(--ease); }
.cta-note a:hover { color: var(--gold-hi); }

@media (max-width: 860px) { .cta { padding: 90px 0; } }

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 76px 0 32px;
}

.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 44px;
    padding-bottom: 56px;
}
@media (min-width: 820px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-brand .logo { display: inline-block; margin-bottom: 18px; }
.footer-tagline { font-size: 14.5px; line-height: 1.75; color: var(--mute); max-width: 36ch; }

.footer-mail {
    display: inline-block;
    margin-top: 22px;
    font-size: 15px; font-weight: 500;
    color: var(--ink);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line-2);
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.footer-mail:hover { color: var(--gold-hi); border-color: var(--gold); }

.footer-col h3 {
    font-family: var(--font-mono);
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a {
    font-size: 14px; color: var(--mute);
    transition: color var(--fast) var(--ease);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--mute);
}
.footer-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-legal a {
    color: var(--mute);
    padding: 6px 0;
    transition: color var(--fast) var(--ease);
}
.footer-legal a:hover { color: var(--mute); }

@media (max-width: 819px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
}

/* --------------------------------------------------------------------------
   25. Forms
   -------------------------------------------------------------------------- */
.form-shell { padding: 44px 40px; background: var(--panel); border: 1px solid var(--line); }
@media (max-width: 620px) { .form-shell { padding: 28px 22px; } }

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 11px;
}
.form-group .optional { color: var(--dim); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-size: 15.5px;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-form);
    border-radius: 0;
    transition: border-color var(--fast) var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238d8779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 34px;
    cursor: pointer;
}
.form-group select option { background: var(--panel-2); color: var(--ink); }

/* An untouched select should read as a prompt, not as a chosen value. */
.form-group select:has(option[value=""]:checked) { color: var(--mute); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-bottom-color: var(--gold); }

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-bottom-color: var(--danger); }

.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.65; }

.form-help { font-size: 12.5px; color: var(--dim); margin-top: 9px; line-height: 1.5; }

.field-error {
    display: none;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.08em;
    color: var(--danger);
    margin-top: 9px;
}
.field-error.is-visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.hp-field {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0; pointer-events: none;
}

.form-submit { width: 100%; margin-top: 14px; }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.form-note {
    text-align: center; margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--mute);
}

.form-alert {
    display: none; align-items: flex-start; gap: 13px;
    padding: 17px 19px; margin-top: 22px;
    font-size: 14.5px; line-height: 1.6;
    border-left: 2px solid;
}
.form-alert.is-visible { display: flex; }
.form-alert svg { flex-shrink: 0; margin-top: 2px; }

.form-alert-success {
    background: rgba(125, 216, 165, 0.08);
    border-color: var(--signal);
    color: var(--signal);
}
.form-alert-error {
    background: rgba(240, 127, 127, 0.08);
    border-color: var(--danger);
    color: var(--danger);
}

/* --------------------------------------------------------------------------
   26. Modal
   -------------------------------------------------------------------------- */
.overlay {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(6, 7, 10, 0.82);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -46%);
    width: min(620px, 94vw);
    max-height: 92svh;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    overflow: hidden;
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

.modal-header { padding: 34px 34px 0; position: relative; }
.modal-title { font-size: 28px; padding-right: 48px; }
.modal-sub { font-size: 14.5px; color: var(--mute); margin-top: 9px; }
.modal-body {
    padding: 26px 34px 34px;
    max-height: calc(92svh - 140px);
    overflow-y: auto; overscroll-behavior: contain;
}
@media (max-width: 620px) {
    .modal-header { padding: 24px 22px 0; }
    .modal-body { padding: 20px 22px 26px; }
}

.icon-btn {
    position: absolute; top: 22px; right: 22px; z-index: 5;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--mute);
    border: 1px solid var(--line); cursor: pointer;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease),
                transform var(--fast) var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-3); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   27. Contact aside
   -------------------------------------------------------------------------- */
.contact-aside h2 { font-size: 24px; margin-bottom: 14px; }
.contact-aside > p { font-size: 15.5px; color: var(--mute); line-height: 1.8; margin-bottom: 18px; }

.contact-method {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.contact-method:first-of-type { border-top: 1px solid var(--line); }

.contact-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid var(--line-2);
    color: var(--gold);
}
.contact-method h3 {
    font-family: var(--font-mono);
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 7px;
}
.contact-method p { font-size: 15px; color: var(--soft); margin: 0; line-height: 1.6; }
.contact-method a { font-size: 15px; color: var(--ink); font-weight: 500; word-break: break-word; }
.contact-method a:hover { color: var(--gold-hi); }

/* --------------------------------------------------------------------------
   28. Error page
   -------------------------------------------------------------------------- */
.error-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 78svh;
    padding: 140px 0;
    text-align: center;
}
.error-code {
    font-family: var(--font-display);
    font-size: clamp(96px, 20vw, 220px);
    font-weight: 600; line-height: 0.85; letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-3);
    margin-bottom: 30px;
}
.error-page h1 { margin-bottom: 18px; }
.error-page p { margin: 0 auto 40px; }
.error-page .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   29. Reveal animations
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The hero is above the fold, so revealing it on scroll only delays the LCP
   element behind JS download + execution. Paint it immediately. */
.js .hero .reveal,
.js .hero-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   30. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 32px; }
.mt-8 { margin-top: 56px; }
.mb-6 { margin-bottom: 32px; }
.mb-8 { margin-bottom: 56px; }
.no-scroll { overflow: hidden; }

.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; gap: 80px; }
    .split-wide { grid-template-columns: 1.2fr 0.8fr; }
}
