/* Type refresh (SF Pro on Apple devices, Inter elsewhere; semibold tight headlines)
   and graphite sections: blocks marked data-tone="light" sit on graphite instead of black. */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --fw-light: 600;
  --fw-regular: 600;
  --tracking-title: -0.03em;
  --lh-tight: 1.05;
  --lh-body: 1.5;
}

section[data-tone='light'], .nextlinks {
  --c-paper: #0c0c0e;
  --c-card: #18181b;
  --c-card-dark: #0e0e10;
  --c-line: #2c2c30;
  --c-muted: #a1a1a6;
  background: var(--c-paper);
}
/* Every block gets the hero's look: deep graphite with a warm glow from above and from the floor.
   The glow alternates sides block to block so the stack does not repeat. */
main section[data-tone]:not(.cr):not(.about--ring):not(.phero):not(.dsp), .nextlinks {
  --glow-x: 62%;
  background:
    radial-gradient(60% 42% at var(--glow-x) 0%, rgba(255,106,0,.2), transparent 70%),
    radial-gradient(70% 34% at calc(100% - var(--glow-x)) 100%, rgba(255,106,0,.14), transparent 70%),
    linear-gradient(180deg, #0f0f11 0%, #09090b 62%, #050506 100%);
}
main > :nth-child(even of section, .pin-spacer) { --glow-x: 30%; }
main > .pin-spacer:nth-child(even) > section { --glow-x: 30%; }
/* Photos as rich as in the hero gallery. Site clips and their posters have this colour baked in (lib/html.js media). */
main section:not(.cr) img[src$='.jpg'] { filter: saturate(1.22) contrast(1.06) brightness(1.04); }
.nextlinks { max-width: none; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)) var(--section-y); }

:is(h1, h2, h3) { letter-spacing: -0.025em; }
.cards__title, .shead__title, .faq__title, .footer__title, .portfolio__title, .contact__title, .engineering__title { letter-spacing: -0.035em; line-height: 1.06; }
.about__statement { letter-spacing: -0.03em; line-height: 1.1; }
.bp__title { font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pcard__text, .card__text, .chain__node p, .ecard__p, .showcase__text, .bpath__list p, .stat__label { font-weight: 400; }
.stat__value, .card__num, .viz__timer, .loader__pct { letter-spacing: -0.04em; }
.faq__item summary { font-weight: 600; letter-spacing: -0.02em; }

/* Pain-card scenes drawn with tokens so they read on black and graphite alike */
.g-track { stroke: var(--c-line); }
.h-bar { background: var(--c-line); }
