/* ============================================================
   NOCTURNE — visual system
   1. tokens & reset
   2. background layers
   3. chrome (progress, cursor, preview, loader, nav)
   4. type & layout primitives
   5. sections
   6. footer
   7. responsive & motion preferences
   ============================================================ */

/* ---------------------------------------------------------------
   1. tokens & reset
   --------------------------------------------------------------- */
:root {
  --bg: #050506;
  --fg: #f3f1ee;
  --dim: rgba(243, 241, 238, 0.56);
  --faint: rgba(243, 241, 238, 0.34);
  --line: rgba(243, 241, 238, 0.14);
  --line-soft: rgba(243, 241, 238, 0.07);
  /* brand palette, sampled from logo.svg */
  --brand-yellow: #fbad15;
  --brand-orange: #ef5f22;
  --brand-purple: #7c549a;
  --brand-lilac: #b98fd8;      /* lifted purple, readable as small text on black */

  --accent: var(--brand-yellow);
  --accent-2: var(--brand-orange);

  --pad: clamp(20px, 5vw, 76px);
  --max: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;          /* nothing may scroll sideways */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

h1, h2, h3, h4, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--brand-yellow);
  color: #0a0a10;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--fg);
  color: #08080c;
  border-radius: 999px;
  font-size: 13px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ---------------------------------------------------------------
   2. background layers
   --------------------------------------------------------------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* fallback when WebGL is unavailable */
.no-webgl #bg {
  display: none;
}
.no-webgl body,
html.no-webgl {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(78, 60, 180, 0.55), transparent 60%),
    radial-gradient(90% 80% at 85% 25%, rgba(200, 70, 60, 0.35), transparent 65%),
    radial-gradient(80% 70% at 50% 110%, rgba(255, 140, 90, 0.22), transparent 70%),
    #050506;
  background-attachment: fixed;
}

/* soft scrim: keeps the bottom of the page quiet for the footer */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 6, 0.20) 0%,
    rgba(5, 5, 6, 0) 20%,
    rgba(5, 5, 6, 0) 66%,
    rgba(5, 5, 6, 0.52) 100%
  );
}

/* film grain on top of everything except chrome */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  animation: grainShift 6s steps(6) infinite;
}

@keyframes grainShift {
  0%   { background-position: 0 0; }
  20%  { background-position: -14px 9px; }
  40%  { background-position: 10px -7px; }
  60%  { background-position: -7px -13px; }
  80%  { background-position: 13px 7px; }
  100% { background-position: 0 0; }
}

main,
.nav,
.footer,
.marquee {
  position: relative;
  z-index: 3;
}

/* ---------------------------------------------------------------
   3. chrome
   --------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.06);
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-orange) 55%, var(--brand-yellow));
  transform-origin: 0 50%;
}

/* custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.cursor.is-on {
  opacity: 1;
}
.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
}
.cursor-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  /* transform is driven per-frame in JS — never transition it */
  transition: opacity 0.28s linear, border-color 0.28s linear;
}
.cursor.is-hover .cursor-ring {
  transform: scale(1.9);
  border-color: rgba(255, 255, 255, 0.45);
}
.cursor.is-hover .cursor-dot {
  opacity: 0;
}
.cursor.is-down .cursor-ring {
  transform: scale(0.7);
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}

/* hover preview for the work list */
.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: clamp(200px, 20vw, 300px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  /* transform is driven per-frame in JS — only fade here */
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.preview.is-on {
  opacity: 1;
}
.preview-art {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  transition: background 0.4s linear;
  background: #12121a;
}
.preview-art[data-art="a"] {
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, 0.5), transparent 60%),
    conic-gradient(from 200deg at 65% 45%, #ff8a5b, #8a3ffc 42%, #141420 78%);
}
.preview-art[data-art="b"] {
  background:
    radial-gradient(45% 45% at 70% 30%, rgba(255, 255, 255, 0.35), transparent 65%),
    linear-gradient(160deg, #0f2b2a, #7fd6c1 55%, #05100f 100%);
}
.preview-art[data-art="c"] {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 12px),
    radial-gradient(80% 80% at 20% 80%, #ffbd6b, #b4245c 55%, #150a16 100%);
}
.preview-art[data-art="d"] {
  background:
    repeating-linear-gradient(90deg, rgba(243, 241, 238, 0.9) 0 1px, transparent 1px 22px),
    linear-gradient(200deg, #f3f1ee, #b9b3a8 60%, #4a463e 100%);
}

/* loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #050506;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  transition: transform 1.05s var(--ease), opacity 1.05s var(--ease);
  will-change: transform;
}
.loader.is-done {
  transform: translateY(-101%);
  opacity: 0.9;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
}
.loader-brand {
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 0.24em;
  font-weight: 500;
  text-transform: uppercase;
}
.loader-count {
  font-size: clamp(40px, 9vw, 120px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.loader-count i {
  font-style: normal;
  font-size: 0.32em;
  opacity: 0.45;
  margin-left: 0.15em;
}
.loader-bar {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--fg);
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 0.6s var(--ease), padding 0.6s var(--ease);
}
.nav.is-hidden {
  transform: translateY(-110%);
}
.nav.is-tight {
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: pulse 3.4s var(--ease-io) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.78;
  transition: opacity 0.3s linear;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-cta svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.4s var(--ease);
}
.nav-cta:hover {
  background: #fff;
  color: #08080c;
}
.nav-cta:hover svg {
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------------
   4. type & layout primitives
   --------------------------------------------------------------- */
.section {
  padding: clamp(80px, 12vw, 170px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 6vw, 84px);
}
.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.label-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* word-by-word mask reveal */
[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* padding + equal negative margin: clips the reveal without cutting
     descenders or the right overhang of italic glyphs */
  padding: 0.05em 0.08em 0.18em;
  margin: -0.05em -0.08em -0.18em;
}
[data-split] .word-in {
  display: inline-block;
  transform: translateY(112%) rotate(3deg);
  transform-origin: 0 100%;
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
[data-split].in .word-in {
  transform: none;
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.45s var(--ease);
}
.btn:hover svg {
  transform: translate(3px, -3px);
}
.btn-primary {
  background: var(--fg);
  color: #08080c;
}
.btn-primary::before {
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-orange));
}
.btn-primary:hover {
  color: #08080c;
}
.btn-primary:hover::before {
  transform: none;
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
}
.btn-ghost::before {
  background: rgba(251, 173, 21, 0.14);
}
.btn-ghost:hover::before {
  transform: none;
}
.btn-lg {
  padding: 20px 32px;
  font-size: clamp(15px, 1.5vw, 19px);
}

/* ---------------------------------------------------------------
   5. sections
   --------------------------------------------------------------- */

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 80px;
}
/* soft scrim so the grain field never eats into the display type */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;                 /* keep it inside the box: no page overflow */
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    58% 52% at 34% 46%,
    rgba(5, 5, 6, 0.60) 0%,
    rgba(5, 5, 6, 0.34) 45%,
    rgba(5, 5, 6, 0) 78%
  );
}

/* the mark lives on the left, the copy on the right */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 1.6vw, 30px);
    align-content: center;
  }
  .hero-eyebrow {
    grid-column: 6 / -1;
    justify-self: start;
  }
  .hero-title {
    grid-column: 6 / -1;
    font-size: clamp(2.6rem, 5.6vw, 6.8rem);
    max-width: 15ch;
  }
  .hero-foot {
    grid-column: 6 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .hero::before {
    background: radial-gradient(
      54% 50% at 74% 46%,
      rgba(5, 5, 6, 0.66) 0%,
      rgba(5, 5, 6, 0.36) 46%,
      rgba(5, 5, 6, 0) 78%
    );
  }
  .scroll-cue {
    left: var(--pad);
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: clamp(22px, 4vw, 44px);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 12px 2px rgba(239, 95, 34, 0.75);
}
.hero-title {
  font-size: clamp(2.9rem, 10.4vw, 11.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 400;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-title em {
  font-size: 1.02em;
  color: var(--brand-yellow);
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(34px, 6vw, 74px);
  flex-wrap: wrap;
}
.hero-lede {
  max-width: 42ch;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--dim);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-cue i {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--fg), transparent);
  animation: cue 2.6s var(--ease-io) infinite;
  transform-origin: 0 50%;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.25); opacity: 0.3; }
  50%      { transform: scaleX(1); opacity: 1; }
}

/* marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(12px, 1.6vw, 22px) 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee-track span {
  font-size: clamp(13px, 1.5vw, 19px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 26px;
  color: var(--dim);
}
.marquee-track b {
  color: var(--brand-yellow);
  font-size: 12px;
  font-weight: 400;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* manifesto */
.manifesto {
  position: relative;
}
/* the mark parks itself behind this section — keep the paragraph on top of it */
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    54% 48% at 40% 44%,
    rgba(5, 5, 6, 0.76) 0%,
    rgba(5, 5, 6, 0.44) 48%,
    rgba(5, 5, 6, 0) 78%
  );
}
.manifesto-text {
  /* a soft halo keeps the glyphs readable where the mark passes behind */
  text-shadow: 0 0 34px rgba(5, 5, 6, 0.96), 0 0 10px rgba(5, 5, 6, 0.85);
  font-size: clamp(1.6rem, 3.9vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 300;
  max-width: 20ch;
  text-wrap: pretty;
}
.manifesto-text em {
  color: var(--brand-lilac);
}
.manifesto-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(56px, 9vw, 130px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.manifesto-cols h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.manifesto-cols p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.62;
  max-width: 34ch;
}

/* capabilities */
.caps-list {
  border-top: 1px solid var(--line);
}
.caps-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px;
  align-items: start;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(22px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.6s var(--ease);
}
.caps-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(251, 173, 21, 0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.caps-item:hover::before {
  opacity: 1;
}
.caps-item:hover {
  padding-left: 14px;
}
.caps-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding-top: 0.55em;
}
.caps-body h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 12px;
}
.caps-body p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.62;
  max-width: 58ch;
}
.caps-tag {
  justify-self: end;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
  transition: color 0.4s linear, border-color 0.4s linear;
}
.caps-item:hover .caps-tag {
  color: var(--fg);
  border-color: rgba(243, 241, 238, 0.4);
}

/* work */
.work-list {
  border-top: 1px solid var(--line);
}
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 80px 34px;
  align-items: center;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.5s var(--ease), padding 0.6s var(--ease);
}
.work-row:hover {
  padding-left: 16px;
  color: var(--brand-yellow);
}
.work-title {
  font-size: clamp(1.5rem, 4.2vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 400;
  transition: transform 0.6s var(--ease);
}
.work-row:hover .work-title {
  transform: translateX(4px);
}
.work-meta,
.work-year {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.4s linear;
}
.work-year {
  text-align: right;
}
.work-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s linear, transform 0.5s var(--ease);
}
.work-row:hover .work-arrow svg {
  opacity: 1;
  transform: none;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 9vw, 120px);
}
.stat {
  padding: clamp(26px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: flex;
  align-items: baseline;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.stat-num i {
  font-style: normal;
  font-size: 0.36em;
  opacity: 0.5;
  margin-left: 0.1em;
}
.stat p {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* contact */
.contact-title {
  font-size: clamp(2.2rem, 7.4vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  max-width: 18ch;
}
.contact-title em {
  color: var(--brand-orange);
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(34px, 5vw, 64px);
  flex-wrap: wrap;
}
.contact-note {
  max-width: 34ch;
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.62;
}

/* ---------------------------------------------------------------
   6. footer
   --------------------------------------------------------------- */
.footer {
  padding: clamp(50px, 7vw, 90px) var(--pad) 30px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 60px);
}
.footer-col h4 {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--dim);
  transition: color 0.3s linear, transform 0.4s var(--ease);
}
.footer-col a:hover {
  color: var(--fg);
  transform: translateX(3px);
}
.muted {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.65;
  max-width: 40ch;
}
.clock {
  font-size: 20px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.footer-wordmark {
  font-size: clamp(3.2rem, 21vw, 20rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  font-weight: 400;
  text-align: center;
  margin: clamp(40px, 7vw, 80px) 0 clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(243, 241, 238, 0.92), rgba(243, 241, 238, 0.06));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   7. responsive & motion preferences
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .manifesto-cols {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-row {
    grid-template-columns: minmax(0, 1fr) 150px 62px 24px;
  }
}

/* below the two-column breakpoint the mark sits on top, the copy at the bottom */
@media (max-width: 1023px) {
  .hero {
    justify-content: flex-end;
    padding-bottom: clamp(56px, 11vh, 116px);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav {
    mix-blend-mode: normal;
    background: linear-gradient(to bottom, rgba(5, 5, 6, 0.75), transparent);
  }
  .hero {
    padding-top: 104px;
    min-height: 92svh;
  }
  .hero-title {
    font-size: clamp(2.6rem, 12.5vw, 4rem);
    max-width: 100%;
  }
  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .caps-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .caps-tag {
    display: none;
  }
  .work-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    row-gap: 6px;
  }
  .work-meta,
  .work-year {
    grid-column: 1;
    text-align: left;
    font-size: 10.5px;
  }
  .work-arrow {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }
  .manifesto-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-note {
    grid-column: 1 / -1;
  }
  .preview,
  .cursor {
    display: none;
  }
  .scroll-cue {
    display: none;
  }
}

@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;
  }
  .reveal,
  [data-split] .word-in {
    opacity: 1;
    transform: none;
  }
  .grain {
    animation: none;
  }
}
