/* ============================================================================
   Ineffable Solutions — Cinematic-scroll demo
   Pattern: multi-section sticky canvas frame-scrub (forked + generalized from
   the Grand Tour full-page film engine). Two scrub films + a kinetic manifesto.
   Modes (decided once at load):
     scrub  → desktop/fine-pointer: WebP frame sequence scrubbed on a <canvas>
     video  → mobile/coarse/low-mem/save-data: looping <video> bg, zero frames
     static → prefers-reduced-motion: single poster, no motion
   Legibility doctrine: copy never sits raw on the film — it rides a glass island
   or a local scrim. The film decorates; the dark glass carries the contrast.
   Brand tokens are the live-site tokens (ineffablesolutions.net).
   ============================================================================ */

/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  --bg-deep:     #050508;   /* deepest — reads as navy-black */
  --bg-dark:     #0a0a0f;
  --bg-card:     #0f0f18;
  --bg-elevated: #151520;

  --gold:      #FFC13B;   /* primary brand accent — name, CTAs, highlights */
  --gold-dim:  #b8933a;
  --gold-2:    #FF8F00;   /* gold gradient tail */
  --cyan:      #00E5FF;   /* tech / secondary accent */
  --cyan-dim:  #00a8b8;
  --green:     #00FF88;   /* "live" / shipped state only */

  --text:      #F2F3F7;   /* body text on dark — a hair off pure white */
  --white:     #FFFFFF;   /* headings */
  --text-dim:  #9A9FB2;
  --text-mute: #6B7085;

  /* Glass surfaces (dark tint over the bright-ish film) */
  --glass:        rgba(9, 9, 14, 0.58);
  --glass-strong: rgba(5, 5, 8, 0.80);
  --glass-line:   rgba(255, 193, 59, 0.28);   /* gold hairline */
  --glass-line-2: rgba(255, 255, 255, 0.10);

  --serif: "Outfit", system-ui, sans-serif; /* alias kept simple */
  --display: "Outfit", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1240px;
  --pad-section: clamp(5rem, 12vh, 9rem);
  --radius: 4px;      /* sharp, tech-brutalist edges (brand radius) */
  --radius-lg: 8px;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slam: cubic-bezier(0.2, 0.9, 0.1, 1);

  --shadow-island: 0 30px 90px -34px rgba(0,0,0,0.85), 0 8px 24px -12px rgba(0,0,0,0.6);
  --shadow-gold: 0 12px 40px -12px rgba(255,193,59,0.42);
}

/* ─────────────────────────── Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--gold); color: var(--bg-deep); padding: .65rem 1rem; border-radius: var(--radius);
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* Global film-grain — kills banding on dark scrims (premium-dark rule) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ─────────────────────────── Cursor (fine pointer only) ─────────────────────────── */
.cursor { position: fixed; inset: 0; z-index: 250; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor__dot { width: 7px; height: 7px; background: var(--gold); box-shadow: 0 0 12px rgba(255,193,59,.9); }
.cursor__ring {
  width: 34px; height: 34px; border: 1px solid rgba(255,193,59,.55);
  transition: width .3s var(--ease-lux), height .3s var(--ease-lux), border-color .3s, background .3s;
}
body.cursor-hot .cursor__ring { width: 54px; height: 54px; border-color: var(--gold); background: rgba(255,193,59,.08); }

/* ─────────────────────────── Loader ─────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 34%, #101018 0%, var(--bg-deep) 72%);
  transition: opacity .7s ease, visibility .7s ease;
}
body:not(.is-loading) #loader { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; width: min(340px, 78vw); }
.loader-mark { font-family: var(--display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--white); }
.loader-sub { font-family: var(--mono); font-size: .7rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin: .4rem 0 1.6rem; padding-left: .5em; }
.loader-track { height: 2px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; transition: width .25s ease; }
.loader-pct { margin-top: .9rem; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); letter-spacing: .04em; }
.loader-pct__sign { color: var(--gold); }
.loader-cue { margin-top: .35rem; font-family: var(--mono); font-size: .72rem; color: var(--text-mute); letter-spacing: .18em; text-transform: uppercase; }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .005em;
  padding: .85rem 1.6rem; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease-lux), background .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2) 88%); color: #1a1205; box-shadow: var(--shadow-gold); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px rgba(255,193,59,.6); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: var(--gold); transform: translateY(-2px); }

/* ─────────────────────────── Eyebrow ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.3rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,193,59,.16); }

/* ─────────────────────────── Nav ─────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: 1.05rem clamp(1.25rem, 5vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav.is-scrolled { background: rgba(5,5,8,.72); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--glass-line-2); }
.nav__brand { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--white); }
.nav__mark { align-self: center; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px rgba(255,193,59,.7); }
.nav__name { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.nav__tag { font-family: var(--mono); font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text-dim); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-family: var(--display); font-size: .95rem; font-weight: 500; color: var(--text); opacity: .84; position: relative; padding: .25rem 0; transition: opacity .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease-lux); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1.2rem; }
.nav__area { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-dim); }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
body.drawer-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav__burger span:nth-child(2) { opacity: 0; }
body.drawer-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); z-index: 90; background: var(--glass-strong); backdrop-filter: blur(20px) saturate(1.3); border-left: 1px solid var(--glass-line); transform: translateX(100%); transition: transform .45s var(--ease-lux); display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: 2rem; }
body.drawer-open .drawer { transform: translateX(0); }
.drawer__links { display: flex; flex-direction: column; gap: 1.1rem; }
.drawer__links a { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--white); }
.drawer__links a:hover { color: var(--gold); }
.drawer__cta { margin-top: 1rem; }
.drawer__area { font-family: var(--mono); font-size: .75rem; color: var(--text-dim); letter-spacing: .04em; }

/* ═════════════════════════ SCRUB SECTIONS (film stages) ═════════════════════════ */
.scrub { position: relative; z-index: 2; }
.scrub__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg-deep); }
.scrub__canvas, .scrub__video, .scrub__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
body.mode-scrub  .scrub__canvas { opacity: 1; }
body.mode-video  .scrub__video  { opacity: 1; }
body.mode-static .scrub__poster { opacity: 1; }

/* Scrims — the legibility bed under overlay copy */
.scrub__scrim { position: absolute; inset: 0; pointer-events: none; }
.scrub__scrim--hero {
  background:
    radial-gradient(90% 80% at 26% 52%, rgba(5,5,8,.78) 0%, rgba(5,5,8,.34) 46%, transparent 76%),
    linear-gradient(to right, rgba(5,5,8,.66) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(5,5,8,.5) 0%, transparent 22%, transparent 68%, rgba(5,5,8,.6) 100%);
}
.scrub__scrim--gallery {
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(5,5,8,.55) 100%),
    linear-gradient(to bottom, rgba(5,5,8,.45) 0%, transparent 30%, transparent 60%, rgba(5,5,8,.55) 100%);
}
.scrub__overlay { position: absolute; inset: 0; display: flex; align-items: center; }

/* Section runway heights only exist while scrubbing (JS also sets min-height).
   video + static tiers keep a compact single-viewport stage. */
body:not(.mode-scrub) .scrub { min-height: 100vh; }

/* ─────────────────────────── HERO overlay ─────────────────────────── */
.hero__overlay { }
.hero__copy { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.hero__title {
  font-size: clamp(4.2rem, 17vw, 15rem); font-weight: 900; letter-spacing: -.045em; line-height: .9;
  color: var(--white); margin: .4rem 0 1.4rem;
  text-shadow: 0 4px 60px rgba(0,0,0,.6);
}
.hero__title span { display: inline-block; background: linear-gradient(180deg, #ffffff 40%, #cfd2dc 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--text); max-width: 46ch; margin-bottom: 2rem; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hero__scrollcue { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.hero__scrollcue-line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ═════════════════════════ KINETIC MANIFESTO ═════════════════════════ */
.kinetic { position: relative; z-index: 2; background: var(--bg-deep); }
.kinetic__stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.kinetic__stage::before { /* faint gold spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 48%, rgba(255,193,59,.10) 0%, transparent 70%);
}
.kinetic__kicker { position: absolute; top: 16%; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-dim); }
.kinetic__words { position: relative; width: min(92vw, 1100px); height: 60vh; }
.kinetic__word {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.75rem, 6vh, 3.5rem); text-align: center;
  opacity: 0; transform: scale(1.35); filter: blur(14px);
  transition: opacity .12s linear;
}
.kinetic__word.is-active { opacity: 1; transform: scale(1); filter: blur(0); transition: opacity .5s var(--ease-slam), transform .6s var(--ease-slam), filter .5s var(--ease-slam); }
.kinetic__word.is-past { opacity: 0; transform: scale(.86); filter: blur(6px); }
.kinetic__index { font-family: var(--mono); font-size: .85rem; letter-spacing: .3em; color: var(--gold); }
.kinetic__word h2 { font-size: clamp(4rem, 15vw, 13rem); font-weight: 900; letter-spacing: -.05em; line-height: .9; color: var(--white); }
.kinetic__word:nth-child(1) h2 { color: var(--white); }
.kinetic__word p { font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.7rem); font-weight: 500; color: var(--text-dim); max-width: 30ch; }
.kinetic__progress { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); width: min(300px, 60vw); height: 2px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.kinetic__progress-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* Non-scrub tiers: manifesto becomes a readable stacked list */
body:not(.mode-scrub) .kinetic__stage { position: relative; height: auto; padding: var(--pad-section) 0; }
body:not(.mode-scrub) .kinetic__kicker { position: static; transform: none; margin-bottom: 2rem; }
body:not(.mode-scrub) .kinetic__words { height: auto; display: flex; flex-direction: column; gap: 3rem; }
body:not(.mode-scrub) .kinetic__word { position: static; inset: auto; opacity: 1; transform: none; filter: none; }
body:not(.mode-scrub) .kinetic__word h2 { font-size: clamp(3.5rem, 14vw, 8rem); }
body:not(.mode-scrub) .kinetic__progress { display: none; }

/* ═════════════════════════ GALLERY pillars (exactly-one-caption) ═════════════════════════ */
.gallery__overlay { align-items: flex-end; }
.gallery__overlay .gallery__eyebrow { position: absolute; top: clamp(6rem, 14vh, 9rem); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .5rem; }
.pillars { position: relative; width: 100%; max-width: 720px; margin: 0 auto clamp(4rem, 12vh, 8rem); height: 260px; }
.pillar {
  position: absolute; inset: 0; margin: auto; height: max-content;
  background: var(--glass-strong); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--glass-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-island); padding: clamp(1.6rem, 4vw, 2.6rem);
  opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .5s var(--ease-lux), transform .5s var(--ease-lux);
  pointer-events: none;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pillar.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pillar__num { font-family: var(--mono); font-size: .82rem; letter-spacing: .3em; color: var(--gold); }
.pillar h3 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin: .7rem 0 .8rem; color: var(--white); }
.pillar p { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text); max-width: 46ch; }
.pillars__rail { position: absolute; bottom: -2.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.pillars__rail span { width: 34px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.16); transition: background .35s; }
.pillars__rail span.is-active { background: var(--gold); }

/* Non-scrub tiers: pillars stack normally, all visible */
body:not(.mode-scrub) .gallery__overlay { position: relative; inset: auto; padding: var(--pad-section) 0; align-items: stretch; }
body:not(.mode-scrub) .gallery__overlay .gallery__eyebrow { position: static; transform: none; justify-content: center; display: flex; margin-bottom: 2.4rem; }
body:not(.mode-scrub) .pillars { position: static; height: auto; display: grid; gap: 1.2rem; margin-bottom: 0; }
body:not(.mode-scrub) .pillar { position: static; inset: auto; opacity: 1; transform: none; pointer-events: auto; }
body:not(.mode-scrub) .pillars__rail { display: none; }
/* In video/static the gallery stage can't be sticky-tall; let content flow */
body:not(.mode-scrub) .scrub--gallery .scrub__stage,
body:not(.mode-scrub) .scrub--hero .scrub__stage { position: relative; height: auto; min-height: 100vh; }
body:not(.mode-scrub) .scrub--gallery .scrub__overlay,
body:not(.mode-scrub) .scrub--hero .scrub__overlay { position: relative; inset: auto; min-height: 100vh; }

/* ═════════════════════════ Generic section ═════════════════════════ */
.section { position: relative; z-index: 2; padding-block: var(--pad-section); background: var(--bg-deep); }
.section__title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; color: var(--white); }
.section__lead { margin-top: 1.2rem; color: var(--text-dim); font-size: clamp(1rem, 1.3vw, 1.16rem); max-width: 54ch; }

/* ─────────────────────────── Selected work ─────────────────────────── */
.section--work { border-top: 1px solid var(--glass-line-2); }
.work__head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.work-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-dark));
  border: 1px solid var(--glass-line-2); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem); overflow: hidden;
  transition: transform .4s var(--ease-lux), border-color .4s, box-shadow .4s;
}
.work-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; transition: opacity .4s; }
.work-card:hover { transform: translateY(-6px); border-color: var(--glass-line); box-shadow: var(--shadow-island); }
.work-card:hover::before { opacity: 1; }
.work-card__meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.work-card__live { color: var(--green); letter-spacing: .12em; }
.work-card h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; color: var(--white); }
.work-card p { font-size: .95rem; color: var(--text-dim); line-height: 1.55; flex: 1; }
.work-card__go { font-family: var(--mono); font-size: .8rem; color: var(--gold); letter-spacing: .04em; opacity: .85; transition: opacity .3s, transform .3s; }
.work-card:hover .work-card__go { opacity: 1; transform: translateX(3px); }

/* ─────────────────────────── Stats ─────────────────────────── */
.section--stats { padding-block: clamp(3.5rem, 8vh, 6rem); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-block: 1px solid var(--glass-line-2); padding-block: clamp(2.4rem, 6vh, 4rem); }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--display); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: .8rem; font-size: .88rem; color: var(--text-dim); line-height: 1.4; max-width: 22ch; margin-inline: auto; }

/* ─────────────────────────── CTA ─────────────────────────── */
.section--cta { position: relative; text-align: center; padding-block: clamp(6rem, 16vh, 12rem); overflow: hidden; }
.cta__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 40%, rgba(255,193,59,.14) 0%, transparent 66%); }
.cta__inner { position: relative; max-width: 860px; }
.cta__title { font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 900; letter-spacing: -.04em; color: var(--white); margin-bottom: 1.4rem; }
.cta__lead { color: var(--text-dim); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 52ch; margin: 0 auto 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta__contact { margin-top: 1.8rem; font-family: var(--mono); font-size: .84rem; color: var(--text-dim); letter-spacing: .02em; }
.cta__contact a { color: var(--gold); }

/* ─────────────────────────── Footer ─────────────────────────── */
.footer { position: relative; z-index: 2; background: var(--bg-dark); border-top: 1px solid var(--glass-line-2); padding-top: 4rem; }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; align-items: start; }
.footer__brand .nav__name { font-size: 1.5rem; }
.footer__brand p { margin-top: .9rem; color: var(--text-dim); font-size: .92rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer__col a, .footer__col p { display: block; color: var(--text-dim); font-size: .92rem; margin-bottom: .6rem; transition: color .25s; }
.footer__col a:hover { color: var(--gold); }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--glass-line-2); font-family: var(--mono); font-size: .78rem; color: var(--text-mute); flex-wrap: wrap; }
.footer__demo-note { color: rgba(255,193,59,.5); }

/* ─────────────────────────── Reveal states ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-lux), transform .9s var(--ease-lux); }
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width: 1000px) {
  .work__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .nav__links, .nav__area { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}
@media (max-width: 620px) {
  .work__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta__actions .btn { flex: 1 1 auto; }
}

/* ─────────────────────────── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__scrollcue-line { animation: none; }
}
