/* ============================================================
   auroo.art — rebuilt design system
   Single source of truth for spacing, type, colour and motion.
   Every page consumes these tokens; nothing is hand-placed.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tilt+Warp&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&family=Figtree:wght@400;500;600&family=Geist:wght@400;600&display=swap');

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --bg:            #000000;
  --bg-tint:       rgba(113, 188, 32, 0.05);
  --acid:          #E1FF00;
  --acid-dim:      #b8cf00;
  --fg:            #FFFFFF;
  --fg-muted:      rgba(255, 255, 255, 0.55);
  --fg-meta:       #767676;
  --wordmark:      #F6F8FB;
  --footer-fg:     #D1D2D8;
  --line:          rgba(255, 255, 255, 0.12);
  --line-soft:     rgba(255, 255, 255, 0.07);

  /* type */
  --f-display: 'Tilt Warp', system-ui, sans-serif;
  --f-case:    'Instrument Sans', system-ui, sans-serif;
  --f-ui:      'Inter', system-ui, sans-serif;
  --f-body:    'Figtree', system-ui, sans-serif;
  --f-foot:    'Geist', system-ui, sans-serif;

  /* fluid type scale */
  /* No lower clamp: "aurobindvenu" is a single unbreakable word, so a rem
     floor would overflow its column on narrow phones. Pure vw + a ceiling. */
  --t-hero:    min(13vw, 10.9rem);             /* wordmark */
  --t-d1:      clamp(2.75rem, 7vw, 8rem);      /* <Sauce> */
  --t-d2:      clamp(2.25rem, 4.6vw, 4rem);    /* section / case title */
  --t-d3:      clamp(1.35rem, 2vw, 1.5rem);    /* sub-section */
  --t-lead:    clamp(1.35rem, 2.4vw, 2rem);    /* tagline */
  --t-intro:   clamp(1.5rem, 2.6vw, 2.25rem);  /* home intro */
  --t-body:    clamp(1rem, 1.15vw, 1.25rem);
  --t-sm:      0.9375rem;
  --t-xs:      0.8125rem;

  /* 8pt spacing scale — replaces the ad-hoc 64/120/170/184 offsets */
  --s-1:  0.5rem;   --s-2:  1rem;    --s-3:  1.5rem;  --s-4:  2rem;
  --s-5:  3rem;     --s-6:  4rem;    --s-7:  6rem;    --s-8:  8rem;
  --s-9:  10rem;

  /* layout — ONE container, used by every page */
  --maxw:      1280px;
  --maxw-text: 62ch;
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);

  /* form */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* motion */
  --e-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 0.25s;
  --d-mid:  0.5s;
  --d-slow: 0.9s;

  --nav-h: 88px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* stops the nav pill covering anchored content */
  scroll-padding-top: calc(var(--nav-h) + var(--s-3));
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` kills the horizontal bleed without turning body into a
     scroll container (which `hidden` does, breaking sticky + scrollTo) */
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--acid); color: #000; }

/* visible, on-brand focus ring — the original had none */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: var(--gutter);
  z-index: 200; padding: 0.75rem 1.25rem;
  background: var(--acid); color: #000;
  border-radius: var(--r-sm); font-family: var(--f-ui); font-weight: 600;
  transition: top var(--d-fast) var(--e-out);
}
.skip-link:focus { top: calc(var(--nav-h) * 0.25); }

.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;
}

/* ---------- 3. Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tint { background: var(--bg-tint); }

.stack > * + * { margin-top: var(--flow, var(--s-3)); }

.rule { height: 1px; background: var(--line-soft); border: 0; }

/* ---------- 4. Type ---------- */
.d-hero {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.d-1 { font-family: var(--f-display); font-size: var(--t-d1); line-height: 0.95; letter-spacing: -0.02em; }
.d-2 { font-family: var(--f-display); font-size: var(--t-d2); line-height: 1.05; letter-spacing: -0.025em; }
.d-3 { font-family: var(--f-display); font-size: var(--t-d3); line-height: 1.3; letter-spacing: -0.02em; }

.h-case  { font-family: var(--f-case); font-size: var(--t-d2); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.h-inter { font-family: var(--f-ui);   font-size: var(--t-d2); font-weight: 700; line-height: 1.1;  letter-spacing: -0.025em; }

.lead {
  font-family: var(--f-body);
  font-size: var(--t-lead);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.muted { color: var(--fg-muted); }
.acid  { color: var(--acid); }

.eyebrow {
  font-family: var(--f-case);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-meta);
}

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed;
  top: var(--s-3);
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-mid) var(--e-out);
}
/* auto-hide on scroll down, return on scroll up */
.nav.is-hidden { transform: translateY(calc(-100% - var(--s-4))); opacity: 0; }

.nav__link {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1.15rem;
  font-family: var(--f-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
  border-radius: var(--r-pill);
  transition: color var(--d-fast) var(--e-out);
  white-space: nowrap;
}
/* aria-current="page" = this exact page; "true" = this section (case studies
   live under Work). Both light the pill. No-JS fallback only. */
.nav__link[aria-current] { color: #000; }

/* With JS the pill chases the pointer, so the ink has to follow the pill and
   not aria-current — otherwise hovering the inactive link puts acid text on
   the acid pill and black text on the bare nav, and neither one is readable.
   .is-lit is set by site.js on whichever link the pill is under. */
.js-ready .nav__link { color: var(--fg); }
.js-ready .nav__link.is-lit { color: #000; }

/* the pill that slides between items */
.nav__pill {
  position: absolute;
  top: 0.4rem;
  left: 0;
  height: calc(100% - 0.8rem);
  background: var(--acid);
  border-radius: var(--r-pill);
  transition: transform var(--d-mid) var(--e-spring), width var(--d-mid) var(--e-spring);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 6. Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0;
  height: 2px; z-index: 120;
  background: var(--acid);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

/* ---------- 7. Reveal animations ----------
   The hidden start-state is scoped to .js-ready, which JS sets on <html>.
   No JS (or a failed script) => content is simply visible. Nothing on this
   site is ever readable-only-if-JavaScript-runs. */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--d-slow) var(--e-out) var(--delay, 0s),
    transform var(--d-slow) var(--e-out) var(--delay, 0s);
  will-change: opacity, transform;
}
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

.js-ready [data-reveal="fade"]  { transform: none; }
.js-ready [data-reveal="left"]  { transform: translateX(-32px); }
.js-ready [data-reveal="right"] { transform: translateX(32px); }
.js-ready [data-reveal="scale"] { transform: scale(0.94); }

/* masked line-by-line heading reveal */
.line-mask { display: block; overflow: hidden; padding-block: 0.06em; }
.js-ready .line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--e-out) var(--delay, 0s);
  will-change: transform;
}
.js-ready .is-in .line-mask > span,
.js-ready .line-mask.is-in > span { transform: none; }

/* ---------- 8. Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #0c0c0c;
  isolation: isolate;
}
.media > img, .media > video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.media--sm { border-radius: var(--r-sm); }

/* subtle zoom on hover for interactive media */
.media--hoverable > img,
.media--hoverable > video {
  transition: transform 0.8s var(--e-out), filter 0.6s var(--e-out);
}
.media--hoverable:hover > img,
.media--hoverable:hover > video { transform: scale(1.045); }

/* ---------- 9. Hero (home) ---------- */
.hero { padding-top: calc(var(--nav-h) + var(--s-2)); }

.hero__frame {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0a0a0a;
  animation: heroIn 1.3s var(--e-out) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: scale(1.06); clip-path: inset(6% round var(--r-md)); }
  to   { opacity: 1; transform: none;       clip-path: inset(0 round var(--r-md)); }
}
.hero__frame > video, .hero__frame > img { width: 100%; height: 100%; object-fit: cover; }

/* gradient scrim so the wordmark stays legible over any footage */
.hero__frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 38%, transparent 65%);
  pointer-events: none;
}

/* wordmark overlapping the hero, as on the original */
.hero__wordmark {
  position: relative;
  z-index: 2;
  margin-top: clamp(-5.5rem, -7vw, -2.5rem);
  color: var(--acid);
  text-align: left;
  pointer-events: none;
  mix-blend-mode: normal;
}

/* ---------- 10. Home: about + resume ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__portrait { aspect-ratio: 3 / 2; }

.resume__group + .resume__group { margin-top: var(--s-7); }

.resume__row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line-soft);
  transition: background var(--d-fast) var(--e-out);
}
.resume__row:last-child { border-bottom: 1px solid var(--line-soft); }
.resume__row:hover { background: rgba(255,255,255,0.02); }

.resume__date {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--fg-muted);
  /* explicit, sane leading — the original shipped line-height:11.34px here */
  line-height: 1.5;
  padding-top: 0.15em;
}
.resume__title {
  font-family: var(--f-ui);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.resume__desc {
  font-family: var(--f-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  max-width: 64ch;
}

/* ---------- 11. Work: project rows + marquee ---------- */
/* ---------- Work intro ----------
   The wordmark carries this page, so it runs roughly twice the shared --t-d1
   and the strapline sits close under it. The old version used a 24ch measure,
   which broke a two-sentence line into seven and left a canyon before the
   first strip. */
.work-intro {
  padding-top: calc(var(--nav-h) + var(--s-5));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.work-intro__title { font-size: clamp(4.5rem, 13.5vw, 15rem); }
.work-intro__lead {
  margin: var(--s-3) auto 0;
  max-width: 62ch;
  text-wrap: balance;
}

.project { padding-block: clamp(2.5rem, 5vw, 4rem); }
.project + .project { border-top: 1px solid var(--line-soft); }

/* full-bleed strip that ignores the shell padding */
.marquee {
  position: relative;
  display: flex;
  gap: var(--s-3);
  width: 100%;
  overflow: hidden;
  /* fade the strip edges so items don't hard-clip at the viewport */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--s-3);
  flex: 0 0 auto;
  animation: marquee var(--dur, 55s) linear infinite;
  animation-direction: var(--dir, normal);
  will-change: transform;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--s-3))); }
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 460px);
  aspect-ratio: 46 / 44;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0c0c0c;
}
.marquee__item img, .marquee__item video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--e-out), filter 0.7s var(--e-out);
}
/* colour blooms in as the strip is hovered */
.marquee__item { filter: saturate(0.75); transition: filter 0.6s var(--e-out); }
.marquee:hover .marquee__item { filter: saturate(1); }
.marquee__item:hover img, .marquee__item:hover video { transform: scale(1.06); }

.project__meta {
  display: grid;
  grid-template-columns: 90px minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: var(--s-4);
}
.project__label { font-family: var(--f-case); font-size: 1rem; font-weight: 600; color: var(--fg-meta); }
.project__name  { font-family: var(--f-case); font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
.project__cat   { font-family: var(--f-case); font-size: 1rem; font-weight: 600; color: var(--fg-meta); line-height: 1.5; margin-top: 0.15rem; }
.project__desc  { font-family: var(--f-case); font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--fg); max-width: 46ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  font-family: var(--f-case);
  font-size: 1rem;
  font-weight: 500;
  color: var(--acid);
  position: relative;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--d-mid) var(--e-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.link-arrow span:last-child { transition: transform var(--d-mid) var(--e-spring); }
.link-arrow:hover span:last-child { transform: translateX(6px); }

/* ---------- 12. Case-study template ---------- */
.case__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-top: calc(var(--nav-h) + var(--s-4));
}
.case__eyebrow {
  font-family: var(--f-case);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: var(--s-2);
}
.case__body {
  font-family: var(--f-case);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--fg);
}
.case__body p + p { margin-top: 1.25rem; }

.services { margin-top: var(--s-4); }
.services li {
  font-family: var(--f-case);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--acid);
  padding-block: 0.15rem;
}

.case__cta {
  font-family: var(--f-case);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

/* stacked full-width case media */
.case__stack { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.case__stack .media { width: 100%; }

/* two-up poster grid (graphics) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- 12b. Closing CTA ----------
   A full-bleed acid band directly above the footer. It deliberately breaks
   the black page: hard top and bottom edges, no shell max-width, and type
   sized to run the full width of the viewport. */
/* ---------- Next project ----------
   Sits at the foot of every case study so the set reads as a sequence rather
   than five dead ends. Big enough to be a section, not a text link: one frame
   from what's coming, and the whole block is the target. */
.nextup {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.nextup__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background: #0c0c0c;
}
.nextup__media > img,
.nextup__media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--e-out);
}
.nextup:hover .nextup__media > img,
.nextup:hover .nextup__media > video { transform: scale(1.045); }

.nextup__label {
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-meta);
}
.nextup__name {
  font-family: var(--f-display);
  font-size: var(--t-d2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: var(--s-2);
}
.nextup__cat {
  font-family: var(--f-body);
  font-size: var(--t-body);
  color: var(--fg-muted);
  margin-top: 0.35rem;
}
.nextup__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  font-family: var(--f-ui);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--acid);
}
.nextup__go span { transition: transform var(--d-fast) var(--e-out); }
.nextup:hover .nextup__go span { transform: translateX(5px); }

@media (max-width: 760px) {
  .nextup { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
}

.cta {
  --ink: #12130a;

  position: relative;
  isolation: isolate;
  overflow: hidden;              /* keeps the grain inside the band */
  padding-block: clamp(3.5rem, 9vw, 8rem);
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(125% 90% at 12% 0%,  #f6ff6b 0%, transparent 58%),
    radial-gradient(110% 85% at 88% 100%, #c2dd00 0%, transparent 62%),
    linear-gradient(163deg, #eaff21 0%, #ddf400 46%, #bcd600 100%);
}

/* Film grain. A tiled fractalNoise SVG multiplied over the gradient — no
   image file, and it tiles seamlessly via stitchTiles. */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;                   /* over the gradient, under the type */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.38;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* full-bleed: no --maxw cap, gutters only */
.cta__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.cta__link { display: inline-block; }
/* the global acid focus ring is invisible on this background */
.cta__link:focus-visible { outline-color: var(--ink); outline-offset: 8px; }

.cta__title {
  font-family: var(--f-display);
  /* Measured against the shell rather than the viewport, so the sign lands a
     little inside the showreel frame above it instead of running bleed to
     bleed. "Maybe?" is the wider line at ~3.43em in Tilt Warp; dividing the
     shell's inner width by 3.9 keeps it just short of the video's edges.
     A plain vw factor cannot do this — it ignores the gutters and the
     shell's max-width, and overflows on narrow screens. */
  font-size: clamp(2.5rem, calc((min(100vw, var(--maxw)) - var(--gutter) * 2) / 3.9), 18rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: var(--ink);
}

/* second line is outlined, and fills in on hover */
.cta__outline {
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.42vw, 8px) var(--ink);
  transition: color var(--d-mid) var(--e-out);
}
.cta__link:hover .cta__outline,
.cta__link:focus-visible .cta__outline { color: var(--ink); }
/* if text-stroke is unsupported the line would be invisible — fill it */
@supports not ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .cta__outline { color: var(--ink); }
}

.cta__go {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding: 0.9rem 1.7rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--d-mid) var(--e-spring), background var(--d-fast) var(--e-out);
}
.cta__link:hover .cta__go { transform: translateY(-4px); background: #000; }

.cta__icon { flex: 0 0 auto; }
.cta__arrow { transition: transform var(--d-mid) var(--e-spring); }
.cta__link:hover .cta__arrow { transform: translateX(6px); }

/* ---------- 13. Footer (one footer, every page) ---------- */
/* The closing section already carries a full --section-y of bottom padding,
   so the footer adds none of its own on top — stacking both plus a 6rem
   inset left ~330px of dead space above the rule on every page. */
.footer {
  padding-top: var(--s-5);
  padding-bottom: var(--s-4);
  border-top: 1px solid var(--line-soft);
  margin-top: 0;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.footer__mark { width: 32px; height: 32px; border-radius: var(--r-sm); }

/* Real links. This used to be one flat exported SVG of three logos that
   nothing could click. */
.footer__social { display: flex; align-items: center; gap: 0.25rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--footer-fg);
  opacity: 0.75;
  transition: color var(--d-fast) var(--e-out),
              opacity var(--d-fast) var(--e-out),
              background-color var(--d-fast) var(--e-out);
}
.footer__social a:hover {
  color: var(--acid);
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
.footer__social svg { display: block; }

.footer__col-h {
  font-family: var(--f-foot);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-fg);
  opacity: 0.7;
  margin-bottom: var(--s-2);
}
.footer__col li + li { margin-top: 0.35rem; }
.footer__col a {
  font-family: var(--f-foot);
  font-size: 1.125rem;
  color: var(--footer-fg);
  position: relative;
  transition: color var(--d-fast) var(--e-out);
}
.footer__col a:hover { color: var(--acid); }

.footer__wordmark {
  display: block;
  width: 100%;
  margin-top: var(--s-6);
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 12.5vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--wordmark);
  /* scales with the viewport instead of overflowing */
  white-space: nowrap;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-foot);
  font-size: 0.875rem;
  color: var(--footer-fg);
  opacity: 0.75;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .about__grid,
  .case__head { grid-template-columns: minmax(0, 1fr); }
  .project__meta { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .project__label { order: -1; }
  .footer__top { grid-template-columns: minmax(0, 1fr) auto; }
  .footer__brand { grid-column: 1 / -1; margin-bottom: var(--s-2); }
}

@media (max-width: 620px) {
  :root { --nav-h: 76px; }
  .resume__row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .resume__date { padding-top: 0; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero__frame { aspect-ratio: 4 / 5; }
  .hero__wordmark { margin-top: -1.5rem; }
  .footer__legal { flex-direction: column; }
  .nav { width: calc(100% - var(--gutter) * 2); justify-content: center; }
  .nav__link { padding-inline: 0.85rem; font-size: 0.9375rem; }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .line-mask > span { transform: none !important; }
  .marquee__track { animation: none !important; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
