
/* The Future People — components, copied from the design system (components/bundle.css). */
:root { --tfp-mark-src: url(../assets/tfp-mark-white.png); }

body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 28px; background: var(--ground); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* Focus: one rule for everything interactive */
.tfp-btn:focus-visible, .tfp-link:focus-visible, .tfp-nav a:focus-visible, .tfp-input:focus-visible, .tfp-brand:focus-visible {
  outline: var(--rule-strong) solid var(--focus-ring); outline-offset: 2px;
}
.tfp-footer a:focus-visible { outline: var(--rule-strong) solid var(--white); outline-offset: 2px; }

/* Mark: a masked span so it takes the ink of whatever it sits on. Set --tfp-mark-src to the white mark file. */
.tfp-mark { display: inline-block; width: 32px; height: 32px; flex: none; background: currentColor;
  -webkit-mask: var(--tfp-mark-src) center / contain no-repeat; mask: var(--tfp-mark-src) center / contain no-repeat; }

/* Button */
.tfp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4); border: var(--rule) solid transparent; border-radius: var(--radius-0);
  font: 600 15px/20px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tfp-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tfp-btn--primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.tfp-btn--secondary { background: transparent; color: var(--ink); border-color: var(--edge); }
.tfp-btn--secondary:hover { border-color: var(--ink); }
.tfp-btn--ghost { background: transparent; color: var(--ink); padding: 0 var(--space-2); text-decoration: underline; text-underline-offset: 4px; }
.tfp-btn--lg { min-height: 52px; padding: 0 var(--space-6); font-size: 17px; }
.tfp-btn[disabled], .tfp-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
/* On black: invert */
.tfp-on-black .tfp-btn--primary { background: var(--white); border-color: var(--white); color: var(--black); }
.tfp-on-black .tfp-btn--secondary { color: var(--white); border-color: var(--white-2); }

/* Text link */
.tfp-link { color: var(--link); text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: 4px; }
.tfp-link:hover { text-decoration-thickness: var(--rule-strong); }
.tfp-link--arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: var(--space-2); align-items: baseline; }
.tfp-link--arrow::after { content: "→"; transition: transform .15s ease; }
.tfp-link--arrow:hover { text-decoration: underline; text-decoration-thickness: var(--rule-strong); }
.tfp-link--arrow:hover::after { transform: translateX(4px); }

/* Tag and eyebrow */
.tfp-eyebrow { margin: 0; font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tfp-tag { display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3); border: var(--rule) solid var(--edge);
  font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tfp-tag--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Layout */
.tfp-wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: max(var(--space-4), env(safe-area-inset-left, 0px)); }
.tfp-band { padding-block: var(--space-24); }
.tfp-band--2 { background: var(--ground-2); }
.tfp-band--black, .tfp-on-black { background: var(--black); color: var(--white); }
@media (max-width: 640px) { .tfp-band { padding-block: var(--space-12); } }

/* Site header */
.tfp-header { background: var(--ground); border-bottom: var(--rule) solid var(--ink); }
.tfp-header__in { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-height); }
.tfp-brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none;
  font: 700 18px/20px var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.tfp-nav { display: flex; gap: var(--space-6); margin-left: auto; overflow-x: auto; }
.tfp-nav a { color: var(--ink); text-decoration: none; font: 600 15px/20px var(--font-sans); padding-block: var(--space-2); white-space: nowrap; }
.tfp-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.tfp-nav a[aria-current="page"] { box-shadow: inset 0 calc(-1 * var(--rule-strong)) 0 var(--ink); }
@media (max-width: 640px) { .tfp-header__in { flex-wrap: wrap; gap: 0 var(--space-6); } .tfp-nav { order: 3; width: 100%; margin-left: 0; } .tfp-header .tfp-btn { margin-left: auto; } }

/* Hero */
.tfp-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; }
.tfp-hero__copy { display: grid; gap: var(--space-4); min-width: 0; }
.tfp-hero h1 { margin: 0; font: 800 76px/76px var(--font-display); letter-spacing: -.03em; text-wrap: balance; color: var(--white); }
.tfp-hero__lede { margin: 0; max-width: var(--measure-text); font-size: 20px; line-height: 30px; color: var(--ink-2); }
.tfp-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero .tfp-hero { position: relative; }
.hero .tfp-on-black { background: transparent; }
.hero .tfp-hero__lede, .hero .tfp-eyebrow { color: var(--white-2); }
.hero__mark { display: grid; place-items: center; aspect-ratio: 1; max-width: 100%; }
.hero__mark .tfp-mark { width: 72%; height: 72%; color: var(--white); }
@media (max-width: 760px) { .tfp-hero { grid-template-columns: minmax(0, 1fr); } .tfp-hero h1 { font-size: 44px; line-height: 46px; } .hero__mark { max-width: 280px; margin-inline: auto; } }

/* Feature card */
.tfp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-8); }
.tfp-card { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6); background: var(--ground);
  border: var(--rule) solid var(--ink); min-width: 0; }
.tfp-card h3 { margin: 0; font: 700 22px/28px var(--font-display); letter-spacing: -.01em; }
.tfp-card p { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.tfp-card .tfp-link--arrow { margin-top: var(--space-2); font-size: 15px; }

/* Footer */
.tfp-footer { background: var(--black); color: var(--white); padding-block: var(--space-16) var(--space-8); }
[data-theme="dark"] .tfp-footer { border-top: var(--rule) solid var(--line); }
.tfp-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--space-12); align-items: start; }
.tfp-footer h4 { margin: 0 0 var(--space-3); font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--white-2); }
.tfp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.tfp-footer a { color: var(--white); text-decoration: none; font-size: 15px; line-height: 24px; }
.tfp-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tfp-footer__brand { display: flex; align-items: center; gap: var(--space-3); font: 700 20px/24px var(--font-display); }
.tfp-footer__legal { margin: var(--space-12) 0 0; padding-top: var(--space-6); border-top: var(--rule) solid var(--white-2);
  font: 400 13px/20px var(--font-mono); color: var(--white-2); }
@media (max-width: 640px) { .tfp-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tfp-footer__grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .tfp-btn, .tfp-link--arrow::after { transition: none; } }

/* ---- Page styles for the launch site ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--ink); color: var(--on-ink); padding: var(--space-2) var(--space-3); z-index: 20; }
.skip:focus { left: var(--space-2); }
.tfp-header { position: sticky; top: 0; z-index: 10; }
/* ---- Teaser: the hero fills the viewport, cubes shiver, and a lens pulls focus through five planes ---- */
/* The title bar stays fixed over everything: transparent over the hero, and from the second section on a
   strip of glass (the page colour at 70%, frosted) with the text in ink */
.tfp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: transparent; border-bottom: 0; transition: background-color .4s ease; }
.tfp-header.on-page, .tfp-header.menu-open { background: color-mix(in srgb, var(--ground) 70%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.tfp-header .tfp-brand { color: var(--white); transition: color .4s ease; }
.tfp-header .tfp-brand:focus-visible { outline-color: var(--white); }
.tfp-header.on-page .tfp-brand, .tfp-header.menu-open .tfp-brand { color: var(--ink); }
.tfp-header.on-page .tfp-brand:focus-visible, .tfp-header.menu-open .tfp-brand:focus-visible { outline-color: var(--ink); }
/* Menu links as glass buttons: a frosted tint of whatever is behind, no edge, fully rounded (pills).
   --glass-ink is the text colour the tint and edge are mixed from: white over the hero, ink over the page. */
.tfp-header .tfp-nav { gap: var(--space-2); }
.tfp-header .tfp-nav a {
  --glass-ink: var(--white); --tint: 10%; --tint-hover: 18%; --tint-current: 24%;
  color: var(--glass-ink); padding: var(--space-2) var(--space-4); border-radius: 999px;
  background: color-mix(in srgb, var(--glass-ink) var(--tint), transparent);
  border: 0;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-ink) 18%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: color .4s ease, background-color .25s ease;
}
.tfp-header .tfp-nav a:hover { text-decoration: none; background: color-mix(in srgb, var(--glass-ink) var(--tint-hover), transparent); }
.tfp-header .tfp-nav a[aria-current="page"] { background: color-mix(in srgb, var(--glass-ink) var(--tint-current), transparent); }
.tfp-header .tfp-nav a:focus-visible { outline-color: var(--glass-ink); }
/* over the page the bar itself is the glass, so the links sit plain on it: no tint at rest, a light one on hover,
   a little more for the section in view (mixed from ink; fuller on the black page) */
.tfp-header.on-page .tfp-nav a { --glass-ink: var(--ink); --tint: 0%; --tint-hover: 6%; --tint-current: 10%; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="dark"] .tfp-header.on-page .tfp-nav a { --tint-hover: 10%; --tint-current: 16%; }
/* Burger: three bars that fold into a cross; hidden above phone width */
.tfp-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; position: relative; color: var(--white); transition: color .4s ease, background-color .25s ease; }
.tfp-menu-toggle span { position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.tfp-menu-toggle span:nth-child(1) { top: 15px; } .tfp-menu-toggle span:nth-child(2) { top: 21px; } .tfp-menu-toggle span:nth-child(3) { top: 27px; }
.tfp-header.menu-open .tfp-menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.tfp-header.menu-open .tfp-menu-toggle span:nth-child(2) { opacity: 0; }
.tfp-header.menu-open .tfp-menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.tfp-menu-toggle:focus-visible { outline: var(--rule-strong) solid currentColor; outline-offset: 2px; }
.tfp-header.on-page .tfp-menu-toggle, .tfp-header.menu-open .tfp-menu-toggle { color: var(--ink); }
@media (max-width: 640px) {
  .tfp-header__in { flex-wrap: wrap; gap: 0 var(--space-6); }
  /* the first row keeps the closed bar's height so the brand does not move when the menu opens below it */
  .tfp-header .tfp-brand { min-height: var(--header-height); }
  .tfp-menu-toggle { display: block; }
  /* the menu opens inside the bar: the whole top box turns to glass and grows down to hold the links */
  .tfp-header .tfp-nav { display: none; order: 3; width: 100%; margin: 0 calc(-1 * var(--space-2)); flex-direction: column; gap: var(--space-1);
    padding: var(--space-4) 0 var(--space-4); overflow: visible; }
  .tfp-header.menu-open .tfp-nav { display: flex; }
  /* in the panel the links are plain ink rows on the glass, whatever is behind the bar */
  .tfp-header .tfp-nav a { --glass-ink: var(--ink); --tint: 0%; --tint-hover: 6%; --tint-current: 10%; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: var(--space-3) var(--space-4); font-size: 17px; }
  [data-theme="dark"] .tfp-header .tfp-nav a { --tint-hover: 10%; --tint-current: 16%; }
}
/* The hero and the section after it are both pinned inside a stage 1.5 screens tall. Over the extra half
   screen of scrolling a dither canvas on top of the hero fills it with the page colour, and the next section,
   transparent and layered above, fades in from blur. */
/* a grid so the pinned section and the hero share one cell at the top of the stage (no negative margins: those would stretch how far a sticky element stays pinned) */
.hero-stage { height: 200vh; height: 200svh; display: grid; grid-template-rows: 100vh; grid-template-rows: 100svh; align-content: start; }
.hero-stage > .next, .hero-stage > .hero, .hero-stage > .compendium { grid-area: 1 / 1; }
.hero { box-sizing: border-box; position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; display: grid; align-items: center; padding-block: calc(var(--header-height) + var(--space-8)) var(--space-12); }
.hero .dither { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 3; pointer-events: none; }
.hero.is-gone .particles-wrap, .hero.is-gone .tfp-hero { visibility: hidden; }   /* fully dissolved: stop painting what is covered */
.hero__mark { width: min(100%, 56svh); margin-inline: auto; }
.hero .tfp-hero { gap: var(--space-16); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Ground: a soft grey pool of light under a fine monochrome grain */
.hero { background: radial-gradient(ellipse 70% 60% at 50% 42%, #161616 0%, #090909 55%, #000000 100%); }
/* the compendium carries the same pool of light on a pseudo-element, so it can fade in with the section */
.compendium::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: var(--co, 0);
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #161616 0%, #090909 55%, #000000 100%); }
.hero::before, .compendium::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  /* the colour matrix copies the red channel into all three, so the grain is grey in every browser */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  1 0 0 0 0  1 0 0 0 0  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.particles-wrap { position: absolute; inset: 0; overflow: hidden; }
.layer { position: absolute; inset: 0; }
.layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: auto; }

/* Chromatic aberration (the filters are inline in index.html) on the words and the mark, with an amount the
   script ties to their blur, so it is gone when they are in focus. The mark's filter sits on a wrapper because
   a mask is applied after a filter and would cut the fringes off. The cubes draw their own fringe in canvas. */
/* --sb-* / --so-* are the scroll blur and opacity the script sets while the hero dissolves */
.hero .tfp-hero__copy > * { filter: url(#ca-text) blur(var(--sb-text, 0px)); opacity: var(--so-text, 1); }
.hero__mark-ca { filter: url(#ca-mark) blur(var(--sb-mark, 0px)); opacity: var(--so-mark, 1); display: grid; place-items: center; width: 100%; height: 100%; }

/* The cube layers: each particle vibrates on its own inside the canvas (no whole-layer shiver); near sits behind a fixed light blur; far just drifts. */
.layer-near { filter: blur(1.5px); }
@media (prefers-reduced-motion: reduce) {
  .layer { animation: none; filter: none; }
  .hero .tfp-hero__copy > * { filter: blur(var(--sb-text, 0px)); }
  .hero__mark-ca { filter: blur(var(--sb-mark, 0px)); }
}
/* The third section, the compendium: black in both themes like the hero, with a few large cubes drifting
   up behind the words on a canvas */
.compendium { box-sizing: border-box; position: sticky; top: 0; z-index: 3; isolation: isolate; height: 100vh; height: 100svh; display: grid; align-items: center;
  background: transparent; color: var(--white); overflow: hidden; pointer-events: none; }
.compendium.is-in { background: var(--black); pointer-events: auto; }
.compendium::before { opacity: calc(.12 * var(--co, 0)); z-index: 0; }
.compendium .cubes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: var(--co, 0); }
.compendium .section-head { filter: blur(var(--cb, 16px)); opacity: var(--co, 0); will-change: filter, opacity; }
.compendium .section-head p { color: color-mix(in srgb, var(--white) 72%, transparent); }
/* The section after the hero: pinned at full viewport height above the hero, transparent, so the dither shows
   through; --nb / --no are the blur and opacity the scroll script sets as it comes in. */
.next { box-sizing: border-box; position: sticky; top: 0; z-index: 2; height: 100vh; height: 100svh;
  display: grid; align-items: center; background: transparent; color: var(--ink); pointer-events: none; }
.next.is-in { pointer-events: auto; }
.next .streaks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: var(--no, 0); pointer-events: none; }
.next .dither { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 3; pointer-events: none; }
.next.is-gone .streaks, .next.is-gone .tfp-wrap { visibility: hidden; }   /* fully dissolved: stop painting what is covered */
.next .section-head { filter: blur(var(--nb, 16px)); opacity: var(--no, 0); will-change: filter, opacity; }
/* Sections 2 and 3 share one block of copy: the wrap is forced to full width (a grid cell would otherwise shrink it to
   the text and centre it), so the words start at the same left edge as the hero's, at the same sizes and gaps. */
.next .tfp-wrap, .compendium .tfp-wrap { position: relative; width: 100%; box-sizing: border-box; }
.next .section-head, .compendium .section-head { display: grid; gap: var(--space-4); max-width: var(--measure-text); }
.next .section-head h2, .compendium .section-head h2 { margin: 0; font: 700 48px/52px var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.next .section-head p, .compendium .section-head p { margin: 0; font-size: 20px; line-height: 30px; }
.next .section-head p { color: var(--ink-2); }
@media (max-width: 640px) { .next .section-head h2, .compendium .section-head h2 { font-size: 34px; line-height: 38px; } }
@media (max-width: 760px) { .hero .tfp-hero { gap: var(--space-8); } .hero__mark { order: -1; max-width: 180px; margin-inline: 0; } }
