:root {
  /* Ground: charcoal to black, never flat black except letterbox */
  --void: #050505;
  --ground-2: #111111;
  --ground-3: #1a1a1a;
  --ground-4: #262626;

  /* Ink */
  --silver: #b5b5b5;     /* secondary text */
  --fog: #9a9a9a;        /* muted, still 4.5:1 on the brightest light pool */
  --light: #ffffff;      /* light and glow only */

  /* Lines */
  --hair: rgba(255, 255, 255, 0.1);
  --hair-strong: rgba(255, 255, 255, 0.22);

  /* Type */
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: var(--display);
  --mono: var(--display);

  /* Fluid sizes: the phone keeps the desktop composition, text is nudged up for reading */
  --fs-body: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  --fs-small: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --fs-label: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-h2: clamp(2.5rem, 1.4rem + 4.6vw, 6rem);
  --fs-h3: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);

  /* Space: 4px base, tight groups and generous separation */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 9rem;
  --measure: 62ch;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 200ms;
  --mid: 450ms;
  --slow: 900ms;

  --paper: var(--ink);
  --section: clamp(4rem, 7vw, 8rem);
  --bar-h: clamp(3.5rem, 3rem + 1.4vw, 4.5rem);
}

.js [data-reveal] > * {
  opacity: 0; filter: blur(10px); transform: translateY(18px);
  transition: opacity 1s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js [data-reveal].is-in > * { opacity: 1; filter: blur(0); transform: none; }
.js [data-reveal].is-in > :nth-child(2) { transition-delay: 0.12s; }
.js [data-reveal].is-in > :nth-child(3) { transition-delay: 0.24s; }
/* After the entrance, drop the filter so text renders crisp and cheap */
.js [data-reveal].is-done > * { filter: none; transition: none; }


/* Static tonal ground beneath the middle sections. Keep the portrait and footer artwork intact. */
main { background: var(--ground); }
.caps { background: radial-gradient(ellipse at 78% 8%, #151515 0%, transparent 52%), var(--ground); }
.feature, .web { background-color: #101010; }
html[data-motion="off"] [data-reveal] > * { opacity: 1; transform: none; filter: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] > * { opacity: 1; transform: none; filter: none; transition: none; }
}
