/* =====================================================================
   Chloe Brooks — People & Talent
   Warm paper, black ink and one blue. Bricolage Grotesque builds the page,
   Instrument Serif speaks for it. The hanging badge is the memorable thing;
   everything around it stays quiet and editorial. Light by default; dark
   when the system asks for it or the switch in the header is pressed.
   ===================================================================== */

:root {
  color-scheme: light;
  --paper: #F5F4F0;
  --paper-2: #EDECE6;
  --card: #FBFAF7;
  --ink: #121211;
  --ink-2: #55554E;
  --ink-3: #696961;
  --line: rgba(18, 18, 17, .12);
  --line-strong: rgba(18, 18, 17, .22);
  --hover: rgba(18, 18, 17, .03);
  --dot: rgba(18, 18, 17, .14);
  --accent: #2E44FF;
  --accent-fill: #2E44FF;
  --accent-soft: rgba(46, 68, 255, .09);
  --on-accent: #FFFFFF;
  /* The inverse surface: black cards on paper, paper-white cards in the dark theme */
  --inv: #121211;
  --inv-fg: #F5F4F0;
  --inv-fg-2: rgba(245, 244, 240, .72);
  --inv-line: rgba(245, 244, 240, .14);
  --inv-line-strong: rgba(245, 244, 240, .32);
  --inv-accent: #5A6CFF;
  --nav-bg: rgba(245, 244, 240, .84);
  --shadow: rgba(18, 18, 17, .42);
  --badge: #FFFFFF;
  --live: #22C55E;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  /* viewport-fit=cover lets the page run under a notch in landscape, so the sides keep clear of it */
  --pad-l: max(var(--pad), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--pad), env(safe-area-inset-right, 0px));
  --nav-h: 72px;
  --radius: 20px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141413;
  --paper-2: #1B1B19;
  --card: #1F1F1D;
  --ink: #EFEEE9;
  --ink-2: #ABAAA2;
  --ink-3: #8F8E87;
  --line: rgba(239, 238, 233, .12);
  --line-strong: rgba(239, 238, 233, .24);
  --hover: rgba(239, 238, 233, .04);
  --dot: rgba(239, 238, 233, .12);
  --accent: #8D9BFF;
  --accent-fill: #3A4EFF;
  --accent-soft: rgba(141, 155, 255, .13);
  --inv: #EFEEE9;
  --inv-fg: #141413;
  --inv-fg-2: rgba(20, 20, 19, .7);
  --inv-line: rgba(20, 20, 19, .14);
  --inv-line-strong: rgba(20, 20, 19, .32);
  --inv-accent: #2E44FF;
  --nav-bg: rgba(20, 20, 19, .84);
  --shadow: rgba(0, 0, 0, .7);
  --badge: #F2F1EC;
}

/* Without JavaScript boot.js never sets data-theme, so the system setting decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #141413;
    --paper-2: #1B1B19;
    --card: #1F1F1D;
    --ink: #EFEEE9;
    --ink-2: #ABAAA2;
    --ink-3: #8F8E87;
    --line: rgba(239, 238, 233, .12);
    --line-strong: rgba(239, 238, 233, .24);
    --hover: rgba(239, 238, 233, .04);
    --dot: rgba(239, 238, 233, .12);
    --accent: #8D9BFF;
    --accent-fill: #3A4EFF;
    --accent-soft: rgba(141, 155, 255, .13);
    --inv: #EFEEE9;
    --inv-fg: #141413;
    --inv-fg-2: rgba(20, 20, 19, .7);
    --inv-line: rgba(20, 20, 19, .14);
    --inv-line-strong: rgba(20, 20, 19, .32);
    --inv-accent: #2E44FF;
    --nav-bg: rgba(20, 20, 19, .84);
    --shadow: rgba(0, 0, 0, .7);
    --badge: #F2F1EC;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { padding: 0; border: 0; background: none; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none; } /* things that only make sense when the scripts run */
::selection { background: var(--accent-fill); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-inv :focus-visible { outline-color: var(--inv-fg); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-l) var(--pad-r);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--inv);
  color: var(--inv-fg);
  font-weight: 500;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: none; }

/* Small tracked capitals: the line above the name and the numbered section labels */
.eyebrow,
.label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
              transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn--nav { gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; }

/* The ↗ on links that leave the site: an icon, because the fonts don't carry the arrow */
.btn__arrow { width: 15px; height: 15px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--solid { background: var(--inv); color: var(--inv-fg); }
.btn--solid:hover { background: var(--accent-fill); color: var(--on-accent); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--hover); }

.btn--accent { background: var(--accent-fill); color: var(--on-accent); }
.btn--accent:hover { background: var(--inv-fg); color: var(--inv); }

/* On an inverse card: the page's own colours */
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--accent-fill); color: var(--on-accent); }

.btn--ghost-inv { border-color: var(--inv-line-strong); color: var(--inv-fg); }
.btn--ghost-inv:hover { border-color: var(--inv-fg); }

/* Copy icon that turns into a check */
.swap { position: relative; width: 20px; height: 20px; flex: none; }
.swap .icon { position: absolute; inset: 0; transition: transform .45s var(--spring), opacity .2s var(--ease); }
.swap__b { opacity: 0; transform: scale(.3) rotate(-60deg); }
.is-done .swap__a { opacity: 0; transform: scale(.3) rotate(60deg); }
.is-done .swap__b { opacity: 1; transform: none; }

/* Pills: the fields in the hero and the typical roles */
.pill,
.tags li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-2);
}
a.pill {
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
a.pill:hover { border-color: var(--ink); background: var(--hover); color: var(--ink); }

/* "DMs open" status */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.live__dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.live__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .65; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__mark { width: 28px; height: 28px; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav__end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav .live { margin-right: 6px; color: var(--ink-2); }

/* Square buttons at the end of the header: the X profile and the theme switch,
   a half-filled circle that turns over with the theme */
.nav__icon,
.theme {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav__icon:hover,
.theme:hover { border-color: var(--ink); background: var(--hover); }
.nav__icon svg { width: 15px; height: 15px; }
.theme svg { width: 18px; height: 18px; transition: transform .7s var(--spring); }
.theme[aria-pressed="true"] svg { transform: rotate(180deg); }

/* The new theme spreads out in a circle from the switch (main.js animates the clip) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: clip; padding-top: var(--nav-h); }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, min(32vw, 420px));
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  max-width: var(--wrap);
  min-height: min(calc(100svh - var(--nav-h)), 960px);
  margin-inline: auto;
  padding: clamp(40px, 7vh, 88px) var(--pad-r) clamp(56px, 9vh, 104px) var(--pad-l);
}

/* The name is sized to the width of its column, so "Brooks" always fits beside the badge. */
.hero__copy { min-width: 0; container-type: inline-size; }
.hero .eyebrow { animation: rise .8s .1s var(--ease) backwards; }
.hero__name {
  margin: 22px 0 0 -.05em;
  font-size: clamp(60px, 11vw, 172px);
  font-size: clamp(60px, 26cqi, 172px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.045em;
}
.hero__word { display: block; white-space: nowrap; }
/* Each letter inks in from a hairline: the variable font's weight and width animate together. */
.hero__word > span {
  display: inline-block;
  animation: letter-in 1.1s var(--ease) backwards;
}
.hero__name > .hero__word:nth-child(2) > span:nth-child(1) { animation-delay: .12s; }
.hero__name > .hero__word:nth-child(2) > span:nth-child(2) { animation-delay: .17s; }
.hero__name > .hero__word:nth-child(2) > span:nth-child(3) { animation-delay: .22s; }
.hero__name > .hero__word:nth-child(2) > span:nth-child(4) { animation-delay: .27s; }
.hero__name > .hero__word:nth-child(2) > span:nth-child(5) { animation-delay: .32s; }
.hero__name > .hero__word:nth-child(3) > span:nth-child(1) { animation-delay: .30s; }
.hero__name > .hero__word:nth-child(3) > span:nth-child(2) { animation-delay: .35s; }
.hero__name > .hero__word:nth-child(3) > span:nth-child(3) { animation-delay: .40s; }
.hero__name > .hero__word:nth-child(3) > span:nth-child(4) { animation-delay: .45s; }
.hero__name > .hero__word:nth-child(3) > span:nth-child(5) { animation-delay: .50s; }
.hero__name > .hero__word:nth-child(3) > span:nth-child(6) { animation-delay: .55s; }

@keyframes letter-in {
  from { opacity: 0; transform: translateY(.22em); font-variation-settings: "wdth" 75, "wght" 200; }
  to { opacity: 1; transform: none; font-variation-settings: "wdth" 100, "wght" 500; }
}

.hero__lead {
  max-width: 15em;
  margin-top: clamp(22px, 3.4vh, 34px);
  font-family: var(--serif);
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
  animation: rise .9s .5s var(--ease) backwards;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  animation: rise .9s .62s var(--ease) backwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise .9s .74s var(--ease) backwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Stage: the badge hangs from a lanyard that runs up behind the header */
.hero__stage {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}
.drop { animation: drop 1.3s .2s cubic-bezier(.3, 1.3, .5, 1) backwards; }
@keyframes drop { from { transform: translateY(-115vh); } }

.rig {
  --strap: 100vh;
  --swing: 0deg;
  position: relative;
  width: 21em;
  font-size: clamp(15px, 1.05vw, 18px);
  transform: rotate(var(--swing));
  transform-origin: 50% calc(.9em - var(--strap));
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.js .rig { --swing: -4deg; }
.rig.is-dragging { cursor: grabbing; }

.rig__strap {
  position: absolute;
  left: 50%;
  bottom: calc(100% - .9em);
  width: 1.6em;
  height: var(--strap);
  margin-left: -.8em;
  overflow: hidden;
  background: var(--inv);
  box-shadow: inset .18em 0 0 rgba(255, 255, 255, .08), inset -.18em 0 0 rgba(0, 0, 0, .18);
}
.rig__strap span {
  position: absolute;
  left: 50%;
  bottom: 2.6em;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  white-space: nowrap;
  font-size: .58em;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--inv-fg);
  opacity: .62;
}

.rig__clip {
  position: absolute;
  left: 50%;
  top: -1.5em;
  z-index: 2;
  width: 2.3em;
  height: 2.3em;
  margin-left: -1.15em;
  border-radius: .55em .55em .75em .75em;
  background: linear-gradient(90deg, #8E8D88, #F2F1EC 42%, #C4C3BD 62%, #7E7D78);
  box-shadow: 0 .15em .35em rgba(0, 0, 0, .3), inset 0 -.2em 0 rgba(0, 0, 0, .12);
}
.rig__clip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: .5em;
  width: 1.1em;
  height: .32em;
  margin-left: -.55em;
  border-radius: 1em;
  background: rgba(18, 18, 17, .35);
}
.rig__clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: .8em;
  height: 1.2em;
  margin: -.3em 0 0 -.4em;
  border: .2em solid #B1B0AA;
  border-top: 0;
  border-radius: 0 0 .5em .5em;
}

/* The badge is a printed card, so it keeps its own colours in both themes. */
.badge {
  --b-ink: #121211;
  --b-ink-2: #55554E;
  --b-line: rgba(18, 18, 17, .22);
  position: relative;
  overflow: hidden;
  padding: 2.6em 1.6em 0;
  border-radius: 1.1em;
  background: var(--badge);
  color: var(--b-ink);
  box-shadow: inset 0 0 0 1px rgba(18, 18, 17, .08),
              0 2.4em 4em -1.8em var(--shadow),
              0 .8em 1.6em -.8em var(--shadow);
}
.badge__slot {
  position: absolute;
  top: 1em;
  left: 50%;
  width: 3.4em;
  height: .6em;
  margin-left: -1.7em;
  border-radius: 1em;
  background: var(--paper); /* the punched hole shows the page behind it */
  box-shadow: inset 0 .12em .2em rgba(0, 0, 0, .35);
}
/* The photo is printed edge to edge, the way the blue band is at the foot of the card */
.badge__photo {
  height: 11.5em;
  margin: 0 -1.6em;
  background: #E4DED3; /* the photo's own warm tone, shown while it loads */
}
.badge__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  pointer-events: none; /* the whole badge is the thing you grab */
  -webkit-user-drag: none;
}
/* Like a real staff pass: the name, with the monogram and the tracks beside it */
.badge__id {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1em;
  margin-top: 1.2em;
}
.badge__side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.badge__logo {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: .6em;
  background: var(--b-ink);
  color: #F5F4F0;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -.03em;
}
.badge__tracks {
  font-size: .78em;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  color: var(--b-ink-2);
}
.badge__first {
  font-size: 4.1em;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
}
.badge__last {
  margin-top: .1em;
  font-size: 2.2em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}
.badge__role {
  margin-top: .5em;
  font-family: var(--serif);
  font-size: 1.4em;
  font-style: italic;
  line-height: 1.1;
}
.badge__foot {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1.2em;
  padding-top: 1.2em;
  border-top: 1.5px dashed var(--b-line);
}
.badge__qr { width: 5.6em; height: 5.6em; flex: none; color: var(--b-ink); }
.badge__scan { font-size: .8em; line-height: 1.4; color: var(--b-ink-2); }
.badge__scan strong { display: block; margin-top: .2em; font-size: 1.12em; font-weight: 600; color: var(--b-ink); }
.badge__band {
  display: flex;
  align-items: center;
  margin: 1.3em -1.6em 0;
  padding: .75em 1.6em .8em;
  background: #2E44FF;
}
.badge__band span {
  font-size: 1.55em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.badge__sheen {
  position: absolute;
  inset: -30% -80%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%);
  mix-blend-mode: overlay;
  transform: translateX(calc(var(--sheen, 0) * 18%));
  pointer-events: none;
}

/* A note in the margin, pointing at the badge */
.hero__hint {
  position: absolute;
  right: calc(50% + 176px);
  bottom: 12%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink-2);
  pointer-events: none;
  animation: rise .8s 1.7s var(--ease) backwards;
  transition: opacity .5s var(--ease);
}
.hero__hint.is-gone { opacity: 0; }
.hero__hint-arrow { order: 2; flex: none; width: 56px; max-width: none; height: 40px; transform: translateY(-16px); }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

/* ---------- Firms I work with ----------
   The "trusted by" plaque from recruiting sites: a centred title over a short
   blue rule, then the names in one rounded frame with hairlines between them.
   Set in the page's own type rather than logos. */

.firms__title { margin-bottom: 26px; text-align: center; }
.firms__title::after {
  content: "";
  display: block;
  width: 140px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.firms__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.firms__grid li {
  display: grid;
  place-items: center;
  min-height: clamp(76px, 7.4vw, 104px);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink-2);
}
.firms__grid li:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.firms__grid li:nth-last-child(-n + 4) { border-bottom: 0; } /* the frame closes the last row */

/* ---------- Sections ---------- */

.section { padding-block: clamp(88px, 10vw, 144px); }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Section heading: a numbered label, the title, and a line in the serif beside it */
.head,
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 6vw, 96px);
}
.head { align-items: end; }
.split { align-items: start; }
.head__title { min-width: 0; }
.head__title .label { margin-bottom: 20px; }

.h2 {
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.24;
  letter-spacing: -.005em;
  color: var(--ink);
}

/* What I do */
.about__text { display: grid; gap: 18px; padding-top: 36px; } /* level with the title, below its label */
.about__text p:not(.lead) { color: var(--ink-2); }

/* The punched slot of an ID badge, borrowed from the one in the hero */
.slot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 60px;
  height: 11px;
  margin-left: -30px;
  border-radius: 99px;
  background: var(--paper);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35);
}

/* What talking to me looks like: one black badge-shaped card, then four promises
   in a single ruled grid. The borders are set per cell so neighbours share one line. */
.promises {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
}
.promise {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.4vw, 32px);
  border: 0 solid var(--line-strong);
}
.promise:nth-child(2) { grid-column: 2; border-width: 1px; border-radius: var(--radius) 0 0 0; }
.promise:nth-child(3) { grid-column: 3; border-width: 1px 1px 1px 0; border-radius: 0 var(--radius) 0 0; }
.promise:nth-child(4) { grid-column: 2; border-width: 0 1px 1px; border-radius: 0 0 0 var(--radius); }
.promise:nth-child(5) { grid-column: 3; border-width: 0 1px 1px 0; border-radius: 0 0 var(--radius) 0; }
.promise__icon { display: block; width: 24px; height: 24px; margin-bottom: 14px; color: var(--ink); }
.promise__icon svg { width: 24px; height: 24px; }
.promise h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.promise p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

.promise--lead {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-content: flex-end;
  gap: 16px;
  margin-right: clamp(12px, 1.4vw, 20px);
  padding: 84px clamp(28px, 3vw, 40px) clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--inv);
  color: var(--inv-fg);
}
.promise--lead h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.promise--lead p { max-width: 44ch; font-size: 16.5px; color: var(--inv-fg-2); }
.promise--lead .btn { align-self: flex-start; margin-top: 10px; }

/* Fields */
.fields__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}

/* The diagram sits on a dotted pad, like a page from a lab notebook */
.fields__visual {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-position: 10px 10px;
  background-size: 20px 20px;
}
/* It stays in view while the three fields scroll past. main.js adds can-stick only when
   the columns sit side by side and the screen is tall enough to show the whole pad. */
.fields__visual.can-stick { position: sticky; top: calc(var(--nav-h) + 24px); }

.venn { width: 100%; max-width: 390px; justify-self: center; }
.venn__svg { width: 100%; height: auto; overflow: visible; }
.venn__ring {
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 1.25;
  transition: fill .45s var(--ease), stroke .45s var(--ease), stroke-width .45s var(--ease);
}
/* is-armed comes from main.js, so the rings never stay hidden if the script fails */
.venn.is-armed .venn__ring { stroke-dasharray: 720; stroke-dashoffset: 720; }
.venn.is-armed.is-in .venn__ring {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s var(--ease), fill .45s var(--ease), stroke .45s var(--ease), stroke-width .45s var(--ease);
}
.venn.is-armed.is-in .venn__ring--ai { transition-delay: .18s, 0s, 0s, 0s; }
.venn.is-armed.is-in .venn__ring--robotics { transition-delay: .36s, 0s, 0s, 0s; }
.venn[data-active="web3"] .venn__ring--web3,
.venn[data-active="ai"] .venn__ring--ai,
.venn[data-active="robotics"] .venn__ring--robotics {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 2.25;
}
.venn__label,
.venn__you-label {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  fill: var(--ink);
  /* a halo in the colour of the pad, so the labels stay readable where they cross a ring */
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.venn__you-label { font-family: var(--serif); font-size: 25px; font-style: italic; font-weight: 400; letter-spacing: 0; }
.venn__orbit {
  fill: var(--ink);
  transform-box: view-box;
  animation: orbit 26s linear infinite;
  animation-play-state: paused;
}
.venn.is-in.is-visible .venn__orbit { animation-play-state: running; }
.venn__orbit--web3 { transform-origin: 220px 156px; }
.venn__orbit--ai { transform-origin: 154.2px 270px; animation-duration: 32s; animation-direction: reverse; }
.venn__orbit--robotics { transform-origin: 285.8px 270px; animation-duration: 38s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.venn__you { fill: var(--accent); }
.venn__pulse {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .5; }
  80%, 100% { transform: scale(3.4); opacity: 0; }
}

/* Where they meet: each overlap drawn as two rings */
.overlaps { padding-top: clamp(18px, 2vw, 24px); border-top: 1px solid var(--line-strong); }
.overlaps__title { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.overlaps__list { display: grid; gap: 14px; margin-top: 14px; }
.overlaps__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; }
.pair { width: 36px; height: 24px; margin-top: 1px; color: var(--accent); fill: var(--accent-soft); stroke: var(--ink); stroke-width: 1.25; }
.overlaps__list p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.overlaps__list strong { display: block; font-weight: 600; color: var(--ink); }

.tracks { display: grid; }
.track { padding: 36px 0; border-top: 1px solid var(--line-strong); }
.track:first-child { padding-top: 0; border-top: 0; }
.track:last-child { padding-bottom: 0; }
.track__head { display: flex; align-items: center; gap: 18px; }
.track__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease),
              transform .6s var(--spring);
}
.track__glyph svg { width: 34px; height: 34px; }
/* The field being read, or pointed at, lights up here and in the diagram */
.track.is-current .track__glyph { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.track__name {
  font-size: clamp(36px, 3.6vw, 50px);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  line-height: 1;
  letter-spacing: -.035em;
  transition: font-variation-settings .6s var(--spring), color .3s var(--ease);
}
@media (hover: hover) {
  .track:hover .track__name { font-variation-settings: "wght" 700; color: var(--accent); }
  .track:hover .track__glyph { transform: rotate(-8deg); }
}
.track p { max-width: 56ch; margin-top: 12px; color: var(--ink-2); }
.track .track__head + p { margin-top: 18px; }
.track .track__sharp { margin-top: 10px; font-size: 15.5px; }
.track__sharp strong { font-weight: 600; color: var(--ink); }
.track .track__label {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags li { font-size: 14px; }

/* Who I hire: a checklist people can tick, and a gauge that keeps count */
.who__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}
html:not(.js) .who__grid { grid-template-columns: minmax(0, 1fr); }

.traits {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.traits li + li { border-top: 1px solid var(--line); }
.trait {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.trait:hover { background: var(--hover); }
/* The real checkbox covers the whole row, so focusing it brings the whole row into view */
.trait__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.trait__box {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.trait__box svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset .35s var(--ease) .05s;
}
.trait__text { font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.trait__text strong { font-weight: 600; color: var(--ink); }
.trait__input:checked + .trait__box {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  animation: pop .45s var(--spring);
}
.trait__input:checked + .trait__box svg { stroke-dashoffset: 0; }
.trait__input:focus-visible + .trait__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.trait:has(.trait__input:checked) { background: var(--accent-soft); }
@keyframes pop { 40% { transform: scale(1.08); } }

/* The gauge: a black badge whose ring fills as you tick, and turns blue at four */
.meter {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 58px 28px 30px;
  border-radius: var(--radius);
  background: var(--inv);
  color: var(--inv-fg);
  text-align: center;
}
.meter__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--inv-fg-2);
}
.meter__dial { position: relative; width: 156px; height: 156px; margin: 6px 0 8px; }
.meter__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter__track,
.meter__fill { fill: none; stroke-width: 8; }
.meter__track { stroke: var(--inv-line); }
.meter__fill {
  stroke: var(--inv-fg);
  stroke-linecap: round;
  stroke-dasharray: 326.73; /* the ring's circumference, 2π × 52 */
  stroke-dashoffset: calc(326.73px * (1 - var(--fit, 0)));
  opacity: 0;
  transition: stroke-dashoffset .8s var(--ease), stroke .4s var(--ease), opacity .3s var(--ease);
}
.meter.has-any .meter__fill { opacity: 1; }
.meter.is-fit .meter__fill { stroke: var(--inv-accent); }
.meter__count { position: absolute; inset: 0; display: grid; place-items: center; line-height: 1; }
.meter__n {
  display: inline-block;
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.meter__of { margin-left: 2px; font-size: 22px; font-weight: 500; color: var(--inv-fg-2); }
.meter__status { font-family: var(--serif); font-size: 27px; line-height: 1.12; text-wrap: balance; }
.meter__hint { font-size: 14.5px; line-height: 1.45; color: var(--inv-fg-2); }
.meter .btn { margin-top: 10px; }
[data-traits-cta]:not([hidden]) { animation: rise .5s var(--ease); }

.roles { margin-top: clamp(64px, 8vw, 112px); }
.roles__title { font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.roles__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: 24px;
}
.roles__list li { padding-top: 16px; border-top: 1px solid var(--ink); }
.roles__list strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.roles__list li > span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* How it works: four ruled cells; a blue line fills their top edge as you scroll */
.how__title { max-width: 760px; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}
html:not(.js) .steps { --progress: 1; }
.step { position: relative; padding: clamp(28px, 2.6vw, 36px) clamp(22px, 2.2vw, 30px) clamp(30px, 3vw, 40px); }
.step + .step { border-left: 1px solid var(--line-strong); }
.step__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease),
              transform .6s var(--spring);
}
.step.is-active .step__num {
  border-color: var(--accent-fill);
  background: var(--accent-fill);
  color: var(--on-accent);
  transform: scale(1.06);
}
.step h3 { margin-top: 28px; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }

/* Questions: ruled rows that open in place. One is open at a time (details name="faq");
   the plus turns into a cross on a black disc. */
.faq__list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.2vw, 28px) 0;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform .45s var(--spring), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -.75px 0 0 -7px;
  border-radius: 1px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item summary:hover .faq__icon { border-color: var(--ink); }
.faq__item[open] .faq__icon { border-color: var(--inv); background: var(--inv); color: var(--inv-fg); transform: rotate(45deg); }
.faq__item p {
  max-width: 62ch;
  padding: 0 64px clamp(22px, 2.4vw, 30px) 0;
  color: var(--ink-2);
}
.faq__item[open] p { animation: rise .5s var(--ease) backwards; }
.faq__item p a { color: var(--ink); text-underline-offset: .18em; transition: color .2s var(--ease); }
.faq__item p a:hover { color: var(--accent); }

/* Write your first message */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}
html:not(.js) .builder { display: none; }
.builder__form { display: grid; gap: 28px; }
.field { display: grid; gap: 12px; min-width: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--inv); background: var(--inv); color: var(--inv-fg); animation: pop .45s var(--spring); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
textarea.input { min-height: 92px; resize: vertical; }

.builder__preview { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px; }
.chat {
  overflow: hidden;
  border-radius: 24px;
  background: var(--inv);
  color: var(--inv-fg);
  box-shadow: 0 50px 90px -50px var(--shadow);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--inv-line);
}
.chat__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.chat__who { display: grid; gap: 2px; line-height: 1.25; }
.chat__who strong { font-size: 16px; font-weight: 600; }
.chat__who span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--inv-fg-2); }
.chat__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  min-height: 300px;
  padding: 28px 20px 24px;
  background-image: radial-gradient(var(--inv-line) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.chat__label {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--inv-line);
  font-size: 12px;
  font-weight: 500;
  color: var(--inv-fg-2);
}
.bubble {
  position: relative;
  max-width: 92%;
  padding: 12px 16px 28px;
  border-radius: 20px 20px 6px 20px;
  background: var(--accent-fill);
  color: var(--on-accent);
  transform-origin: bottom right;
}
.bubble.is-bump { animation: bump .4s var(--spring); }
@keyframes bump { 40% { transform: scale(1.02); } }
.bubble__text { font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.is-typing .bubble__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.18em;
  background: currentColor;
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.ph { color: rgba(255, 255, 255, .85); border-bottom: 1.5px dashed rgba(255, 255, 255, .55); }
.bubble__meta {
  position: absolute;
  right: 12px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .85);
}
.ticks { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks__two { opacity: 0; transition: opacity .3s var(--ease); }
.bubble.is-sent .ticks__two { opacity: 1; }
.bubble.is-sent .bubble__meta { color: #FFFFFF; }
.chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--inv-line);
}
.write.band { border-bottom: 0; } /* the footer's rule closes the band */
.builder-fallback { margin-top: 32px; font-size: 19px; }
.js .builder-fallback { display: none; }

.plane { position: fixed; z-index: 260; width: 22px; height: 22px; color: var(--accent); pointer-events: none; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: clip;
  padding: clamp(96px, 12vw, 168px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 100%;
  text-decoration: none;
}
.footer__big {
  font-size: clamp(64px, 12vw, 196px);
  font-weight: 500;
  font-variation-settings: "wdth" 100, "wght" 500;
  line-height: .88;
  letter-spacing: -.055em;
  white-space: nowrap;
  transition: font-variation-settings .9s var(--spring);
}
.footer__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(56px, 8vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--inv);
  color: var(--inv-fg);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .7s var(--spring);
}
.footer__arrow svg { width: 42%; height: 42%; }
/* Hover only where there is a real pointer, so a tap on a phone doesn't leave the text squeezed. */
@media (hover: hover) {
  .footer__cta:hover .footer__big { font-variation-settings: "wdth" 75, "wght" 700; }
  .footer__cta:hover .footer__arrow { background: var(--accent-fill); color: var(--on-accent); transform: rotate(45deg); }
}
.footer__cta:focus-visible .footer__arrow { background: var(--accent-fill); color: var(--on-accent); }
/* Where to find me: Telegram first, on a black card, then X. Each card is one link;
   the copy button sits above that link. */
.reach {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.reach__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .25s var(--ease);
}
.reach__card:hover { border-color: var(--ink); }
.reach__card--main,
.reach__card--main:hover { border-color: transparent; background: var(--inv); color: var(--inv-fg); }
.reach__label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reach__card--main .reach__label { color: var(--inv-fg-2); }
.reach__handle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.reach__handle::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.reach__handle:focus-visible { outline: none; }
.reach__card:has(.reach__handle:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.reach__arrow { flex: none; width: .46em; height: .46em; margin-top: .14em; transition: transform .35s var(--ease); }
.reach__card:hover .reach__arrow { transform: translate(3px, -3px); }
.reach__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: clamp(28px, 3.4vw, 44px);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}
.reach__card--main .reach__foot { color: var(--inv-fg-2); }
.reach .live { font-size: inherit; font-weight: 400; white-space: normal; }
.reach__copy {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--inv-line-strong);
  border-radius: 12px;
  color: var(--inv-fg);
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.reach__copy:hover { border-color: var(--inv-fg); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 404 ---------- */

.lost { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: 64px; }
.lost .wrap { display: grid; justify-items: start; gap: 22px; }
.lost .h2 { max-width: 12em; }

/* ---------- Floating bits ---------- */

.dock { display: none; }

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 220;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
}
.cursor__pill {
  display: block;
  margin: 18px 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--inv);
  color: var(--inv-fg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: scale(0);
  transform-origin: 0 0;
  transition: transform .4s var(--spring);
}
.cursor.is-on .cursor__pill { transform: scale(1); }
.cursor.is-dragging .cursor__pill { transform: scale(.85); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 250;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--inv);
  color: var(--inv-fg);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 20px 40px -20px var(--shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .25s var(--ease), transform .5s var(--spring);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav .live { display: none; }
}

@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .nav__end { gap: 8px; } /* keeps clear of the section links down to 901px */
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 36vw); }
  .hero__hint { display: none; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise--lead { grid-column: 1 / -1; grid-row: auto; margin: 0 0 16px; padding-top: 76px; }
  .promise:nth-child(2),
  .promise:nth-child(4) { grid-column: 1; }
  .promise:nth-child(3),
  .promise:nth-child(5) { grid-column: 2; }
  .roles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* While the black card runs the full width, its title takes the left half
   and the text with the button the right, so the card has no empty side. */
@media (min-width: 761px) and (max-width: 1100px) {
  .promise--lead {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 64px);
    row-gap: 18px;
  }
  .promise--lead h3 { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
  .promise--lead p { grid-column: 2; grid-row: 1; align-self: end; }
  .promise--lead .btn { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
}

@media (max-width: 900px) {
  .nav__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav__links { display: none; }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(32px, 8vw, 56px);
    padding-bottom: 48px;
  }
  .hero__name { font-size: min(19vw, 150px); font-size: min(26cqi, 150px); }
  .hero__stage { flex-direction: column; min-height: 0; margin-top: 16px; padding-top: 128px; }
  .rig { --strap: 128px; font-size: 14px; }
  .rig__strap {
    -webkit-mask-image: linear-gradient(to top, #000 45%, transparent);
    mask-image: linear-gradient(to top, #000 45%, transparent);
  }
  .hero__hint { position: static; display: flex; justify-content: center; margin-top: 28px; animation-delay: 1.4s; }
  .hero__hint-arrow { display: none; }

  .head,
  .split,
  .fields__grid,
  .who__grid,
  .builder { grid-template-columns: minmax(0, 1fr); }
  .head { align-items: start; }
  .about__text { padding-top: 0; }
  .venn { max-width: 400px; }
  .builder__preview { position: static; }
  .roles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach { grid-template-columns: minmax(0, 1fr); }

  /* The gauge lies flat under the checklist: dial on the left, words on the right */
  .meter {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "dial title" "dial status" "dial hint" "cta cta";
    justify-items: start;
    align-items: center;
    column-gap: 22px;
    row-gap: 4px;
    padding: 24px;
    text-align: left;
  }
  .meter .slot { display: none; }
  .meter__title { grid-area: title; align-self: end; }
  .meter__dial { grid-area: dial; width: 104px; height: 104px; margin: 0; }
  .meter__status { grid-area: status; font-size: 24px; }
  .meter__hint { grid-area: hint; align-self: start; }
  .meter .btn { grid-area: cta; width: 100%; margin-top: 16px; }
  .meter__n { font-size: 40px; }
  .meter__of { font-size: 16px; }

  /* The steps stack; the line runs down their left edge instead */
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::after {
    width: 3px;
    height: 100%;
    transform: scaleY(var(--progress, 0));
    transform-origin: center top;
  }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; padding: 26px 24px 28px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-strong); }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 8px; }
  .step p { margin-top: 6px; }

  /* Focus and in-page links stop above the dock instead of behind it */
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .dock {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    display: block;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .dock.is-visible { visibility: visible; transform: none; transition: transform .5s var(--ease), visibility 0s; }
  .dock .btn { width: 100%; box-shadow: 0 18px 40px -18px var(--shadow); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .nav__inner { gap: 12px; }
  .nav .btn--nav { padding: 0 12px; }
  .hero__actions .btn { width: 100%; }
  .rig { font-size: 13px; }
  .section { padding-block: 80px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .promise:nth-child(n) { grid-column: 1; border-width: 0 1px 1px; border-radius: 0; }
  .promise:nth-child(2) { border-width: 1px; border-radius: var(--radius) var(--radius) 0 0; }
  .promise:nth-child(5) { border-radius: 0 0 var(--radius) var(--radius); }
  .promise--lead.promise { border-width: 0; border-radius: var(--radius); padding: 68px 24px 26px; }
  .promise--lead .btn { align-self: stretch; }
  .track__glyph { width: 50px; height: 50px; border-radius: 13px; }
  .track__glyph svg { width: 30px; height: 30px; }
  .trait { gap: 14px; padding: 18px 20px; }
  .roles__list { grid-template-columns: minmax(0, 1fr); }
  .chat__actions .btn { width: 100%; }
  .firms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .firms__grid li:not(:nth-child(4n)) { border-right: 0; }
  .firms__grid li:nth-child(odd) { border-right: 1px solid var(--line); }
  .firms__grid li:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .firms__grid li:nth-last-child(-n + 2) { border-bottom: 0; }
  .faq__item summary { gap: 16px; }
  .faq__item p { padding-right: 0; }
}

@media (max-width: 480px) {
  .nav__icon { display: none; } /* no room next to the Telegram button; X stays in the footer */
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .rig { --swing: 0deg; }
  .rig { cursor: auto; touch-action: auto; } /* the badge stays still, so it shouldn't look grabbable */
  .hero__hint { display: none; } /* and there is nothing to swing */
  .cursor { display: none; }
  .live__dot::after,
  .venn__pulse { display: none; }
  .venn__orbit { animation: none; }
}
