/* ============================================================
   Siddcode — landonorris.com-inspired single page
   Electric blue on black · GSAP + Lenis (see js/main.js)
   Craft notes follow Emil Kowalski's design-eng principles:
   custom easing curves, press feedback, origin-aware motion,
   GPU-only animation (transform/opacity), reduced-motion safe.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-elev-2: #1c1c1c;
  --text: #f4f4f1;
  --muted: #9a9a93;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #c7f93c;           /* landonorris-style lime / volt green */
  --accent-glow: #dbff66;      /* lighter lime for eyebrows & glows */
  --on-accent: #0a0a0a;        /* dark text on the bright lime accent */

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Strong custom easing curves (built-in CSS easings are too weak) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

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

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(80px, 12vh, 160px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow-ink, var(--accent-glow));
  margin-bottom: 1.4rem;
}

.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__title {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* ============================================================
   Section themes (cascading-variable re-theme) + drifting
   topographic background. Sections opt in via .section--cream /
   .section--olive and .section--topo.
   ============================================================ */
.section { isolation: isolate; }

/* Drifting topo lines behind a section's content (seamless: offset = 1 tile) */
.section--topo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--topo-image, url("../assets/topo-dark.svg"));
  background-size: 720px 720px; background-repeat: repeat;
  opacity: var(--topo-opacity, 0.5);
  animation: topodrift 75s linear infinite;
}
.section--topo > * { position: relative; z-index: 1; }
@keyframes topodrift {
  from { background-position: 0 0; }
  to   { background-position: -720px -720px; }
}

/* Cream / light sections — dark ink, white cards, dark topo lines */
.section--cream {
  --text: #16160f;
  --muted: #6a6a5c;
  --line: rgba(20,20,12,0.14);
  --bg-elev: #ffffff;
  --bg-elev-2: #ece8dd;
  --eyebrow-ink: #69703a;
  --topo-image: url("../assets/topo-light.svg");
  --topo-opacity: 0.6;
  background: #f4f1ea;
  color: var(--text);
}

/* Olive (dark) section — light ink on deep green */
.section--olive {
  --text: #eef0e4;
  --muted: #9aa389;
  --line: rgba(255,255,255,0.12);
  --bg-elev: #262c1b;
  --bg-elev-2: #2e3522;
  --topo-image: url("../assets/topo-dark.svg");
  --topo-opacity: 0.4;
  background: #1b2012;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .section--topo::before { animation: none; }
}

/* ============================================================
   Film grain (filmic premium texture)
   ============================================================ */
/* Static tiled noise — rasterized once and tiled (cheap). No blend mode:
   a full-screen mix-blend-mode forces the whole page to recomposite on
   every paint, which janks scrolling. Low-opacity overlay reads the same. */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}

/* ============================================================
   Scroll progress
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ============================================================
   Custom cursor (desktop / fine-pointer only; enabled via JS)
   ============================================================ */
.cursor { position: fixed; inset: 0; z-index: 9000; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
body.has-cursor, body.has-cursor * { cursor: none !important; }
.cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(219, 255, 102, 0.7);
  display: grid; place-items: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-glow);
  transition: opacity 0.2s var(--ease-out);
}
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; background: rgba(199, 249, 60, 0.12); border-color: rgba(219, 255, 102, 0.9); }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-labeled .cursor__ring { width: 76px; height: 76px; background: var(--accent); border-color: transparent; }
.cursor__label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-accent); opacity: 0; transition: opacity 0.2s var(--ease-out);
}
.cursor.is-labeled .cursor__label { opacity: 1; }

/* ---- Magnetic wrapper (set up in JS) ---- */
.magnetic { display: inline-block; will-change: transform; }

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  /* Specific properties only — never `all` */
  transition: transform 0.18s var(--ease-out), background-position 0.6s var(--ease-out),
              box-shadow 0.4s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.btn:active { transform: scale(0.97); }            /* press feedback */
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--primary {
  color: var(--on-accent);
  background: linear-gradient(120deg, #c7f93c 0%, #c7f93c 42%, #dbff66 100%);
  background-size: 200% 100%; background-position: 0% 0%;
  box-shadow: 0 6px 24px -10px rgba(199, 249, 60, 0.55);
}
.btn--primary:hover { background-position: 100% 0%; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(199, 249, 60, 0.7); }
.btn--primary:active { transform: translateY(-2px) scale(0.97); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: rgba(219, 255, 102, 0.6); color: var(--accent-glow); transform: translateY(-2px); background: rgba(219, 255, 102, 0.06); }
.btn--ghost:active { transform: translateY(-2px) scale(0.97); }

/* ============================================================
   Loader (counter + bar, then a clip-path curtain wipe-up)
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: flex; align-items: baseline; gap: 1rem; }
.loader__mark { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.loader__count { font-family: var(--font-mono); font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--accent-glow); }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { display: flex; align-items: center; color: var(--text); }
.nav__logo { height: 50px; width: auto; display: block; }
.nav__word { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.04em; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.95rem; color: var(--muted); position: relative; padding: 4px 0;
  transition: color 0.25s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent-glow); transition: width 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1rem; }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---- Mobile overlay ---- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-drawer);
  pointer-events: none;
}
body.menu-open .overlay { clip-path: inset(0 0 0 0); pointer-events: auto; }
.overlay__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.overlay__nav a {
  font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s var(--ease-out);
}
.overlay__nav a:hover { color: var(--accent-glow); }
.overlay__foot {
  margin-top: 3rem; display: flex; gap: 2rem; font-family: var(--font-mono);
  font-size: 0.9rem; color: var(--muted);
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.5s var(--ease-out) 0.1s;
}
body.menu-open [data-ov-link] { opacity: 1; transform: translateY(0); }
body.menu-open .overlay__nav a:nth-child(1) { transition-delay: 0.10s; }
body.menu-open .overlay__nav a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .overlay__nav a:nth-child(3) { transition-delay: 0.22s; }
body.menu-open .overlay__nav a:nth-child(4) { transition-delay: 0.28s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.6;
}
.hero__glow {
  position: absolute; top: -10%; right: -5%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(199,249,60,0.18), transparent 65%);
  filter: blur(20px);
  animation: glowpulse 7s var(--ease-in-out) infinite;
}
@keyframes glowpulse { 0%,100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero__title {
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.045em;
  margin: 1rem 0 1.6rem;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { max-width: 30ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* line-reveal mechanic (mask). Hidden start-state applied by GSAP,
   so text stays visible if scripts are blocked. */
.line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.line__inner { display: block; }

.hero__art { position: relative; display: grid; place-items: center; perspective: 1000px; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.geo { width: min(100%, 460px); height: auto; }
.geo__ring, .geo__spin, .geo__nodes { transform-origin: 200px 200px; }
.geo__ring--1 { animation: spin 26s linear infinite; }
.geo__ring--2 { animation: spin 18s linear infinite reverse; }
.geo__ring--3 { animation: spin 32s linear infinite; }
.geo__spin { animation: spin 40s linear infinite reverse; opacity: 0.5; }
.geo__nodes circle { animation: pulse 3s var(--ease-in-out) infinite; }
.geo__nodes circle:nth-child(odd) { animation-delay: 1.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); z-index: 1;
}
.hero__scroll-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent-glow); animation: drop 1.8s var(--ease-in-out) infinite;
}
@keyframes drop { 0% { top: -50%; } 100% { top: 100%; } }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  padding-block: 1.3rem; overflow: hidden; white-space: nowrap;
  background: var(--accent);   /* bold lime band between hero and mission */
}
.marquee__track { display: inline-flex; gap: 2.5rem; align-items: center; will-change: transform; }
.marquee__track span {
  font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; color: var(--on-accent);
}
.marquee__track span:nth-child(even) { color: rgba(10,10,10,0.45); }

/* ============================================================
   Mission statement (word-by-word scroll fill)
   ============================================================ */
.mission { overflow: hidden; }
.mission__ghost {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 40vw; font-weight: 700; color: #fff; opacity: 0.018; pointer-events: none;
  line-height: 1; letter-spacing: -0.05em; z-index: 0;
}
.mission__text {
  position: relative; z-index: 1;
  font-size: clamp(1.9rem, 5.5vw, 4.2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; max-width: 18ch;
}
.mission__text em { font-style: normal; color: var(--accent); }
.mission__text .word { display: inline-block; }

/* ============================================================
   Services
   ============================================================ */
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.card {
  position: relative; isolation: isolate; padding: clamp(1.6rem, 3vw, 2.4rem);
  --muted: #9aa389;                              /* light muted text on the dark panel */
  background: #1b2012;                           /* dark olive panel (like the lando footer) */
  color: #eef0e4;
  border: 3px solid var(--accent);                /* thick neon lime border */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(199,249,60,0.45), 0 0 26px -4px rgba(199,249,60,0.5);   /* neon glow */
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card::before {                                  /* same drifting topographic lines as the rest of the site */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../assets/topo-dark.svg");
  background-size: 720px 720px; background-repeat: repeat;
  opacity: 0.55;
  animation: topodrift 75s linear infinite;
}
.card::after {                                   /* cursor-follow glow */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(199,249,60,0.18), transparent 40%);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 16px 44px -16px rgba(0,0,0,0.55), 0 0 34px -6px rgba(199,249,60,0.45);
}
.card:hover::after { opacity: 1; }
.card__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-glow); }
.card__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; margin: 1.6rem 0 0.7rem; letter-spacing: -0.02em; }
.card__text { color: var(--muted); }

/* ============================================================
   Work — landscape project cards (responsive 2-up grid)
   ============================================================ */
.work { text-align: center; }   /* background comes from the section theme */
.work__head { margin-bottom: clamp(28px, 4vw, 52px); }
.work__head .eyebrow { display: inline-block; }

.work__fan {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1000px; margin-inline: auto; padding-inline: var(--pad);
}
.proj {
  position: relative; aspect-ratio: 16 / 10;     /* landscape */
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -26px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.45s var(--ease-out), opacity 0.6s var(--ease-out);
}
/* Reveal as the section scrolls into view (JS toggles .is-dealt) */
.js .work:not(.is-dealt) .proj { opacity: 0; transform: translateY(40px); }

.proj:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 64px -28px rgba(0,0,0,0.7), 0 0 0 1px rgba(199,249,60,0.4);
}

.proj__visual {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 20% 10%, hsl(var(--hue,82) 90% 22%), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, hsl(var(--hue,82) 95% 14%), transparent 55%),
    #141811;
  display: grid; place-items: center;
}
.proj__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
  transition: opacity 0.5s var(--ease-out);
}
.proj__visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 38%, hsl(var(--hue,82) 100% 60% / 0.0), transparent 62%);
  transition: background 0.5s var(--ease-out);
}
.proj__visual-alt {
  position: relative; z-index: 1; font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: hsl(var(--hue,82) 100% 82%);
  padding: 6px 13px; border: 1px solid hsl(var(--hue,82) 100% 60% / 0.4); border-radius: 100px;
}
.proj:hover .proj__visual::before { opacity: 0.95; }
.proj:hover .proj__visual::after { background: radial-gradient(circle at 50% 38%, hsl(var(--hue,82) 100% 60% / 0.22), transparent 65%); }

/* Caption overlay pinned to the bottom of each card */
.proj__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 16px 14px; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.25) 70%, transparent);
  opacity: 0.9; transition: opacity 0.4s var(--ease-out);
}
.proj:hover .proj__meta { opacity: 1; }
.proj__meta h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.proj__meta span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-glow); }

/* Real-screenshot tile + clickable card */
.proj__visual--img { background-size: cover !important; background-position: top center; }
.proj__visual--img::before, .proj__visual--img::after { display: none; }
.proj__visual--img .proj__visual-alt { display: none; }
.proj:hover .proj__visual--img { transform: none; }
.proj__link { position: absolute; inset: 0; z-index: 3; }

/* ============================================================
   Stats
   ============================================================ */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stat__num { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat__suffix { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.stat p { color: var(--muted); margin-top: 0.9rem; max-width: 22ch; font-size: 0.95rem; }

/* ============================================================
   Contact CTA
   ============================================================ */
.cta { text-align: center; overflow: hidden; }
.cta__glow {
  position: absolute; bottom: -30%; left: 50%; transform: translateX(-50%);
  width: 70vw; height: 60vw;
  background: radial-gradient(circle, rgba(199,249,60,0.16), transparent 60%);
  filter: blur(30px); z-index: 0;
  animation: glowpulse 8s var(--ease-in-out) infinite;
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(3rem, 12vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.cta__sub { color: var(--muted); max-width: 44ch; margin: 1.4rem 0 2.4rem; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); padding-bottom: 32px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.footer__brand { max-width: 30ch; }
.footer__logo { height: 46px; width: auto; display: block; margin-bottom: 0.6rem; }
.footer__brand p { color: var(--muted); margin-top: 0.8rem; font-size: 0.92rem; }
.footer__cols { display: flex; gap: 4rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.footer__col a { color: var(--text); font-size: 0.95rem; transition: color 0.25s var(--ease-out); }
.footer__col a:hover { color: var(--accent-glow); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
}
.footer__top { transition: color 0.25s var(--ease-out); }
.footer__top:hover { color: var(--accent-glow); }

/* ============================================================
   Reveal (JS-driven). Start state only when JS is on.
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }

/* ============================================================
   Hover gating — touch devices fire :hover on tap (false positives)
   ============================================================ */
@media not all and (hover: hover) {
  .btn--primary:hover { transform: none; }
  .card:hover { transform: none; }
  /* :hover sticks after a tap on touch — neutralise the card lift */
  .proj:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__art { order: -1; max-width: 320px; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .work__fan { grid-template-columns: 1fr; }   /* stack the landscape cards */
}
@media (max-width: 520px) {
  .footer__cols { gap: 2.5rem; }
}

/* ============================================================
   Reduced motion — fewer & gentler, not zero. Keep opacity/color;
   remove movement, loops, custom cursor, parallax.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .line__inner { transform: none; }
  .mission__text .word { opacity: 1 !important; }
  .loader { display: none; }
  .grain { display: none; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
  .cursor { display: none !important; }
}
