/* ==========================================================================
   The Anonymous Designers — design system
   Dark, monochrome, one accent.

   SWAP THE ACCENT IN ONE PLACE: --accent, below.
   Everything tinted (buttons, glows, focus rings, highlights) derives from it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* ---- THE ONE ACCENT ---------------------------------------------------
     Electric lime. Swap this single value to re-skin the whole site.
     Alternatives that hold up on this base:
       electric blue  #4E8CFF     signal orange  #FF6A2B
       ultraviolet    #A98BFF     acid cyan      #3FE0D0
     --accent-ink must stay readable ON the accent (dark ink for light
     accents, #F4F5F3 for dark ones).                                      */
  --accent: #c6f24e;
  --accent-ink: #0a0b0c;

  /* Derived accent tints — no need to touch these when swapping. */
  --accent-a06: color-mix(in srgb, var(--accent) 6%, transparent);
  --accent-a12: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-a20: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-a40: color-mix(in srgb, var(--accent) 40%, transparent);
  --accent-dim: color-mix(in srgb, var(--accent) 72%, #0a0b0c);

  /* ---- Monochrome base ---- */
  --bg: #08090a;
  --bg-deep: #050506;
  --surface: #0d0f10;
  --surface-2: #131617;
  --surface-3: #1a1d1e;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f4f0;
  --text-2: #a7aca6;
  --text-3: #7e837d;

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Fluid scale — clamp()s so every breakpoint is covered without jumps. */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.24vw, 1.06rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.35rem + 2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
  --step-5: clamp(2.9rem, 1.4rem + 6.6vw, 7.4rem);

  /* ---- Space ---- */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5.5rem, 11vw, 11rem);
  --maxw: 1240px;
  --maxw-narrow: 820px;

  /* ---- Shape ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur-fast: 0.18s;
  --dur: 0.4s;
  --dur-slow: 0.85s;

  --nav-h: 68px;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky navbar. */
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Body-scroll lock while the mobile menu is open. */
body.is-locked {
  overflow: hidden;
  touch-action: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   3. PAGE TEXTURE — grain + accent glow + faint grid, all fixed & inert
   -------------------------------------------------------------------------- */

.tex {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Film grain. */
.tex--grain {
  background-image: url("../assets/img/grain.png");
  background-size: 180px 180px;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  z-index: 3;
}

/* Hairline grid, barely there — gives the dark field a sense of scale. */
.tex--grid {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 120% 70% at 50% 0%,
    #000 0%,
    transparent 75%
  );
}

/* Two soft light sources: one accent, one cold white. */
.tex--glow {
  background:
    radial-gradient(
      620px 340px at 84% -12%,
      color-mix(in srgb, var(--accent) 15%, transparent),
      transparent 66%
    ),
    radial-gradient(
      520px 340px at 4% -6%,
      rgba(150, 190, 255, 0.08),
      transparent 64%
    );
}

/* Vignette so the viewport edges fall away. */
.tex--vignette {
  background: radial-gradient(
    ellipse 90% 75% at 50% 40%,
    transparent 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--maxw-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section + .section {
  padding-top: 0;
}

/* Hairline rule that fades at both ends — used between major sections. */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--line-strong) 18%,
    var(--line-strong) 82%,
    transparent
  );
  margin-block: 0;
}

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h1 {
  font-size: var(--step-5);
}
.h2 {
  font-size: var(--step-4);
}
.h3 {
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.muted {
  color: var(--text-2);
}

/* Eyebrow: mono, spaced, with a live accent dot. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-a12);
  animation: pulse 2.8s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-a12);
  }
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}

/* Section header block. */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec-head__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sec-head p {
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.95em 1.6em;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  will-change: transform;
}

.btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.btn svg {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform var(--dur) var(--ease-out);
}

/* Primary — solid accent. The one loud element on the page. */
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 0 var(--accent-a40),
    0 14px 34px -14px var(--accent-a40);
}

.btn--primary:hover {
  box-shadow:
    0 0 0 6px var(--accent-a12),
    0 20px 44px -14px var(--accent-a40);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

/* Ghost — hairline on dark. */
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--lg {
  padding: 1.15em 2.1em;
  font-size: var(--step-1);
}

.btn--sm {
  padding: 0.72em 1.15em;
  font-size: var(--step--1);
}

.btn:active {
  transform: scale(0.97);
}

/* Link with an underline that wipes in from the left. */
.link-u {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
}

.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.link-u:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   7. NAVBAR
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Glass treatment kicks in once the page has scrolled. */
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg-deep) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.05em;
  transition: transform var(--dur) var(--ease-spring);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.08);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
  padding-left: 0.6rem;
  margin-left: 0.1rem;
  border-left: 1px solid var(--line-strong);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease-out);
}

.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-spring);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav__link span {
  position: relative;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Hamburger — two bars that cross into an X. */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.burger span:nth-child(1) {
  top: 16px;
}
.burger span:nth-child(2) {
  bottom: 16px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(4.75px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateX(-50%) translateY(-4.75px) rotate(-45deg);
}

/* Mobile drawer. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background:
    radial-gradient(90% 55% at 80% 0%, var(--accent-a06), transparent 70%),
    linear-gradient(to bottom, #0b0d0e, var(--bg-deep));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    visibility 0s linear var(--dur);
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
  padding: 0.35rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
}

.drawer.is-open .drawer__link {
  animation: drawerIn 0.55s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms + 90ms);
}

@keyframes drawerIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.drawer__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(14px);
}

.drawer.is-open .drawer__foot {
  animation: drawerIn 0.55s var(--ease-out) 0.34s forwards;
}

.drawer__foot .btn {
  width: 100%;
}

.drawer__mail {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__actions .btn {
    display: none;
  }
  .burger {
    display: block;
  }
}

@media (max-width: 560px) {
  .brand__sub {
    display: none;
  }
}

@media (min-width: 901px) {
  .drawer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 2.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* HERO VARIANT SWITCH — driven by <html data-hero="a|b"> (see js/tad.js). */
[data-hero="a"] .hero--b,
[data-hero="b"] .hero--a {
  display: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.3rem);
  align-items: flex-start;
}

.hero__title {
  font-size: var(--step-5);
  max-width: 15ch;
}

.hero__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12em 0.28em;
}

/* Each word is a clipping mask; the inner span slides up out of it. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.is-ready .word > span {
  animation: wordUp 1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 120ms);
}

@keyframes wordUp {
  to {
    transform: none;
    opacity: 1;
  }
}

/* ---- Inline media capsule inside the headline (VARIANT A) ---- */
.inline-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex: none;
  vertical-align: middle;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--shadow-md);
  transform: translateY(110%) rotate(-2deg);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring);
}

.is-ready .inline-media {
  animation: mediaUp 1.05s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 160ms);
}

@keyframes mediaUp {
  to {
    transform: rotate(-2deg);
    opacity: 1;
  }
}

.inline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.7s var(--ease-out);
}

.inline-media:hover img {
  transform: scale(1.16);
}

.inline-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    var(--accent-a20),
    transparent 45%,
    rgba(0, 0, 0, 0.4)
  );
  mix-blend-mode: overlay;
}

/* Large pill, sits in line 1. */
.inline-media--pill {
  width: clamp(3.6rem, 12vw, 8.4rem);
  height: clamp(2.4rem, 7.6vw, 5.2rem);
  border-radius: var(--r-pill);
}

/* Small rounded square, sits in line 2. */
.inline-media--chip {
  width: clamp(2.1rem, 6.4vw, 4.4rem);
  height: clamp(2.1rem, 6.4vw, 4.4rem);
  border-radius: clamp(0.6rem, 1.6vw, 1.15rem);
}

/* ---- Inline mask glyph (VARIANT B) ---- */
.inline-mask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  vertical-align: middle;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-a40);
  background:
    radial-gradient(
      120% 120% at 50% 0%,
      var(--accent-a12),
      transparent 70%
    ),
    var(--surface-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 44px -10px var(--accent-a40);
  transform: translateY(110%);
  opacity: 0;
}

.is-ready .inline-mask {
  animation: wordUp 1.05s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 160ms);
}

.inline-mask--pill {
  width: clamp(3.6rem, 12vw, 8.4rem);
  height: clamp(2.4rem, 7.6vw, 5.2rem);
}

.inline-mask--chip {
  width: clamp(2.4rem, 6.8vw, 4.6rem);
  height: clamp(2.4rem, 6.8vw, 4.6rem);
  border-radius: clamp(0.7rem, 1.8vw, 1.25rem);
}

.inline-mask svg {
  width: 62%;
  height: auto;
  color: var(--accent);
  animation: maskFloat 5s var(--ease-in-out) infinite;
}

@keyframes maskFloat {
  0%,
  100% {
    transform: translateY(-2%);
  }
  50% {
    transform: translateY(4%);
  }
}

/* ---- Hero supporting bits ---- */
.hero__sub {
  max-width: 46ch;
  opacity: 0;
  transform: translateY(18px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding-top: clamp(1.1rem, 2.6vw, 1.8rem);
  border-top: 1px solid var(--line);
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
}

.is-ready .hero__sub {
  animation: fadeUp 0.9s var(--ease-out) 0.62s forwards;
}
.is-ready .hero__cta {
  animation: fadeUp 0.9s var(--ease-out) 0.74s forwards;
}
.is-ready .hero__meta {
  animation: fadeUp 0.9s var(--ease-out) 0.88s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__stat dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__stat dd {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Scroll hint. */
.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
}

.is-ready .hero__scroll {
  animation: fadeUp 1s var(--ease-out) 1.1s forwards;
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(34px);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    width: 100%;
  }
  .hero__cta .btn {
    flex: 1 1 100%;
  }
}

/* Marquee of capabilities under the hero. */
.marquee {
  --speed: 38s;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--speed) linear infinite;
}

.marquee__track ul {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.marquee li::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-a40);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   9. ABOUT
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__figure {
  position: relative;
}

.about__img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}

.about__figure:hover .about__img img {
  transform: scale(1.07);
}

.about__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 6, 0.75),
    transparent 45%
  );
}

/* Floating accent badge on the portrait. */
.about__badge {
  position: absolute;
  left: clamp(0.9rem, 2.5vw, 1.6rem);
  bottom: clamp(0.9rem, 2.5vw, 1.6rem);
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.about__badge b {
  color: var(--accent);
  font-weight: 400;
}

.about__body .lede {
  max-width: 62ch;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: flex-start;
}

.about__label {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.about__label em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* Icon + point highlights. */
.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: var(--surface);
  transition: background-color var(--dur) var(--ease-out);
}

.point:hover {
  background: var(--surface-2);
}

.point__ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--accent-a20);
  background: var(--accent-a06);
  color: var(--accent);
  transition: transform var(--dur) var(--ease-spring);
}

.point:hover .point__ico {
  transform: translateY(-3px) rotate(-6deg);
}

.point__ico svg {
  width: 17px;
  height: 17px;
}

.point h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.point p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-2);
  margin-top: 0.2rem;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__figure {
    max-width: 420px;
  }
}

@media (max-width: 460px) {
  .points {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. PROCESS
   -------------------------------------------------------------------------- */

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  min-height: clamp(230px, 26vw, 300px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(
    to bottom,
    var(--surface-2),
    var(--surface) 70%
  );
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

/* Accent sheen that follows the pointer (coords set in JS). */
.step::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    var(--accent-a12),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.step:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.step:hover::before {
  opacity: 1;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.step__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: auto;
}

.step p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Big ghost numeral in the corner. */
.step__ghost {
  position: absolute;
  right: -0.16em;
  top: -0.3em;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.028);
  pointer-events: none;
  transition: color var(--dur) var(--ease-out);
}

.step:hover .step__ghost {
  color: var(--accent-a06);
}

@media (max-width: 1000px) {
  .process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .process__grid {
    grid-template-columns: 1fr;
  }
  .step {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   11. PROJECTS
   -------------------------------------------------------------------------- */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.project {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.project:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.project__shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.project__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease-out),
    filter 0.6s var(--ease-out);
}

.project:hover .project__shot img {
  transform: scale(1.045);
}

/* Name plate laid over the mockup. */
.project__plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(
    to top,
    rgba(5, 5, 6, 0.96) 6%,
    rgba(5, 5, 6, 0.78) 34%,
    rgba(5, 5, 6, 0.3) 68%,
    transparent
  );
}

.project__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32em 0.75em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.tag--accent {
  border-color: var(--accent-a40);
  background: var(--accent-a12);
  color: var(--accent);
}

/* Round arrow that fills with accent on hover. */
.project__go {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  color: var(--text);
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-spring);
}

.project__go svg {
  width: 17px;
  height: 17px;
}

.project:hover .project__go {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg) scale(1.06);
}

/* Disabled "Soon" card — drawn, not photographed, so the empty slot still
   belongs to the dark system. Swap in a real mockup when the project lands. */
.project--soon {
  pointer-events: none;
  cursor: default;
}

.soon-plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 70% at 50% 30%, var(--accent-a06), transparent 70%),
    linear-gradient(to bottom, var(--surface-2), var(--surface-3) 120%);
}

/* Dot field, fading out toward the plate's edges. */
.soon-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.11) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
  mask-image: radial-gradient(65% 60% at 50% 45%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(65% 60% at 50% 45%, #000, transparent 72%);
}

.soon-plate svg {
  position: relative;
  width: clamp(84px, 22%, 140px);
  height: auto;
  color: var(--text-3);
  opacity: 0.55;
}

.project--soon .project__name {
  color: var(--text-2);
}

.project--soon .project__go {
  opacity: 0.35;
}

/* Corner "in progress" ribbon. */
.project__soon-flag {
  position: absolute;
  top: clamp(1rem, 2.2vw, 1.4rem);
  left: clamp(1rem, 2.2vw, 1.4rem);
  z-index: 2;
}

@media (max-width: 720px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   12. PRICING
   -------------------------------------------------------------------------- */

.pricing__head {
  text-align: center;
  align-items: center;
}

.pricing__head .sec-head__top {
  justify-content: center;
}

/* Segmented toggle with a sliding accent thumb. */
.switch {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  margin-inline: auto;
}

.switch__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 6px 20px -8px var(--accent-a40);
  transition: transform 0.45s var(--ease-spring);
}

.switch[data-plan="custom"] .switch__thumb {
  transform: translateX(100%);
}

.switch__opt {
  position: relative;
  z-index: 1;
  min-width: clamp(112px, 30vw, 150px);
  padding: 0.72em 1.2em;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
  transition: color 0.32s var(--ease-out);
}

.switch__opt[aria-selected="true"] {
  color: var(--accent-ink);
}

/* Plan card. */
.plan-wrap {
  max-width: 720px;
  margin-inline: auto;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.plan {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(
      600px 240px at 50% -10%,
      var(--accent-a06),
      transparent 70%
    ),
    linear-gradient(to bottom, var(--surface-2), var(--surface) 60%);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Accent hairline along the top edge. */
.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.65;
}

.plan__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.plan__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan__note {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: 0.3rem;
  max-width: 34ch;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan__price span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.plan__price--custom {
  color: var(--accent);
}

/* Cross-fade + slight lift between the two plan bodies. */
.plan__body {
  display: grid;
  grid-template-areas: "stack";
}

.plan__panel {
  grid-area: stack;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.42s var(--ease-out),
    visibility 0s linear 0.4s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.plan__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.plan__inc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}

.plan__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.45;
}

.plan__list li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.22em;
  color: var(--accent);
}

.plan__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.plan__cta .btn--primary {
  flex: 1 1 240px;
}

.plan__fine {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

@media (max-width: 560px) {
  .plan__list {
    grid-template-columns: 1fr;
  }
  .plan__cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  transition: color var(--dur) var(--ease-out);
}

.faq__q:hover {
  color: var(--accent);
}

/* Plus that rotates into a minus. */
.faq__sign {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-spring);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.faq__sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__sign {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(180deg);
}

.faq__item.is-open .faq__sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height 0.45s var(--ease-out);
}

.faq__a-inner {
  padding-bottom: clamp(1.1rem, 2.4vw, 1.5rem);
  padding-right: clamp(0, 6vw, 3.5rem);
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.faq__item.is-open .faq__a-inner {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

/* Sticky "still have questions" card. */
.faq__aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--surface-2), var(--surface));
}

.faq__aside h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.faq__aside p {
  font-size: 0.94rem;
  color: var(--text-2);
}

.faq__mail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .faq__aside {
    position: static;
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   14. CONTACT + FOOTER
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(6rem, 12vw, 11rem);
  overflow: hidden;
}

/* Accent halo rising from the bottom edge. */
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    var(--accent-a12),
    transparent 62%
  );
  pointer-events: none;
}

.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 2rem);
}

.contact__title {
  font-size: var(--step-5);
}

.contact__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.contact__text {
  max-width: 46ch;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  align-items: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.footer__inner a:hover {
  color: var(--accent);
}

.footer__set {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   15. PROJECT PAGE (/works/*)
   -------------------------------------------------------------------------- */

.work-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  transition: color var(--dur) var(--ease-out);
}

.back svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease-out);
}

.back:hover {
  color: var(--accent);
}

.back:hover svg {
  transform: translateX(-3px);
}

.work-hero__title {
  font-size: var(--step-5);
  margin-block: 1rem 1.5rem;
}

.work-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-hero__lede {
  max-width: 62ch;
}

.work-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* Full-bleed cover shot. */
.work-cover {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spec table. */
.work-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.work-meta > div {
  background: var(--surface);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.work-meta dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.work-meta dd {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .work-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .work-meta {
    grid-template-columns: 1fr;
  }
}

/* Gallery — first shot spans both columns. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.shot:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.shot__cap {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.34em 0.75em;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-deep) 78%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.shot:hover .shot__cap {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .shot--wide {
    aspect-ratio: 4 / 3;
  }
}

/* Next-project strip. */
.next-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(to right, var(--surface-2), var(--surface));
}

.next-strip h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */

.err {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
}

.err__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  background: linear-gradient(
    to bottom,
    var(--text) 30%,
    rgba(242, 244, 240, 0.12)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.err__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

/* --------------------------------------------------------------------------
   17. SCROLL REVEAL
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: transform, opacity;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Clip-reveal for images: wipes up rather than fading. */
[data-reveal="clip"] {
  transform: translateY(34px) scale(0.985);
  clip-path: inset(8% 0 8% 0 round var(--r-xl));
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    clip-path 0.9s var(--ease-out);
}

[data-reveal="clip"].is-in {
  clip-path: inset(0 0 0 0 round var(--r-xl));
  transform: none;
}

/* --------------------------------------------------------------------------
   18. REDUCED MOTION — everything lands in its final state, instantly.
   -------------------------------------------------------------------------- */

@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;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-reveal="clip"] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .word > span,
  .inline-media,
  .inline-mask,
  .hero__sub,
  .hero__cta,
  .hero__meta,
  .hero__scroll,
  .drawer__link,
  .drawer__foot {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .inline-media {
    transform: rotate(-2deg);
  }

  .marquee__track {
    animation: none;
  }

  .hero__scroll i {
    animation: none;
  }
}
