/* The Network Source. One typeface, night and paper grounds, one ember accent: the colour of a connection being made. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --night: #07090D;
  --night-2: #10141B;
  --night-3: #1A1F28;
  --chalk: #F2F3F5;
  --chalk-2: #A3AAB6;
  --paper: #EEF0F2;
  --paper-2: #E2E5E9;
  --ink: #0B0E13;
  --ink-2: #48505E;
  --ember: #FF5B2E;
  --ember-ink: #C9380F;

  --f: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(52px, 8.6vw, 148px);
  --t-h1: clamp(46px, 7vw, 116px);
  --t-h2: clamp(38px, 5.4vw, 88px);
  --t-h3: clamp(24px, 2.3vw, 34px);
  --t-lead: clamp(20px, 1.75vw, 26px);
  --t-body: 18px;
  --t-small: 14px;

  --m: clamp(16px, 3.2vw, 40px);
  --gap: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { font: 400 var(--t-body)/1.55 var(--f); font-stretch: 100%; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.frame { width: 100%; max-width: 1480px; margin: 0 auto; padding-inline: var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ember); color: var(--night); }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ember); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 600; font-stretch: 78%; letter-spacing: -0.035em; line-height: .94; text-wrap: balance; }
h3 { font-stretch: 85%; letter-spacing: -0.02em; line-height: 1.05; font-size: var(--t-h3); }
.h2 { font-size: var(--t-h2); }
.lead { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; max-width: 36ch; }
.night { background: var(--night); color: var(--chalk); }
.night .lead, .night .muted { color: var(--chalk-2); }
.muted { color: var(--ink-2); }

/* Buttons: fully round, decided once */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ember); color: var(--night); padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 17px; line-height: 1; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: #FF7550; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--chalk); color: var(--night); box-shadow: none; }
.paper .btn-ghost:hover, .btn-ghost.on-paper:hover { background: var(--ink); color: var(--paper); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(4px); }

/* Mark: two circles meeting; the overlap is the connection */
.mark { width: 36px; height: 32px; flex: none; overflow: visible; }
.mark circle { fill: none; stroke: currentColor; stroke-width: 2.2; }
.mark .lens { fill: var(--ember); }
.mark-anim .m-a { animation: meet-a 1.1s var(--ease) both; }
.mark-anim .m-b { animation: meet-b 1.1s var(--ease) both; }
.mark-anim .lens { animation: spark .5s .8s var(--ease) both; transform-origin: 18px 16px; }
@keyframes meet-a { from { transform: translateX(-7px); } }
@keyframes meet-b { from { transform: translateX(7px); } }
@keyframes spark { from { opacity: 0; transform: scale(.3); } }

/* Bar */
.bar { position: sticky; top: 0; z-index: 30; background: var(--night); color: var(--chalk); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; view-transition-name: brand; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--chalk-2); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a:not(.btn) { text-decoration: none; color: var(--chalk-2); font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--chalk); }
.nav .btn { padding: 11px 20px; font-size: 15px; }
.menu-toggle, .menu-btn { display: none; }

/* ---------------- Home: the world. One pinned stage: one person, the planet, then six handshakes */
.world { position: relative; height: 760vh; }
.world-stage { position: sticky; top: 72px; height: calc(100svh - 72px); overflow: hidden; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.hero-layer, .story-layer { position: absolute; inset: 0; pointer-events: none; }
.hero-layer a, .hero-layer button, .story-layer a { pointer-events: auto; }
.hero-top { padding-top: clamp(24px, 5.5vh, 72px); text-align: center; }
.hero-top h1 { font-size: clamp(46px, 6.2vw, 108px); max-width: 13ch; margin-inline: auto; }
.hero-top .lead { margin: 24px auto 0; max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.hero-top .actions { justify-content: center; margin-top: 28px; }
.js .after-intro { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform 1s var(--ease); pointer-events: none; }
.js .settled .after-intro { opacity: 1; transform: none; pointer-events: auto; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vh, 32px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.grow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.grow strong { font-size: clamp(40px, 4.4vw, 72px); font-weight: 600; font-stretch: 78%; letter-spacing: -0.035em; color: var(--ember); font-variant-numeric: tabular-nums; line-height: .9; }
.grow span { color: var(--chalk-2); font-size: 17px; max-width: 22ch; }
.hero-meta { max-width: 46ch; text-align: right; }
.globe-note { font-size: var(--t-small); color: var(--chalk-2); }
.globe-note strong { color: var(--chalk); font-weight: 600; }
.hero-tools { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; font-size: var(--t-small); }
.replay { color: var(--chalk-2); text-decoration: underline; text-underline-offset: 4px; font-size: var(--t-small); }
.replay:hover { color: var(--chalk); }
#replay, .js .settled #skip { display: none; }
.js .settled #replay { display: inline; }
.cue { color: var(--chalk-2); }
.story-in { height: 100%; display: flex; align-items: center; }
.story-copy { width: min(30ch, 40%); display: flex; flex-direction: column; gap: clamp(20px, 4vh, 44px); }
.steps { display: grid; }
.step { max-width: 30ch; }
.step h2 { font-size: var(--t-h2); margin-bottom: 28px; }
.step p { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; color: var(--chalk-2); }
.step p + p { margin-top: 18px; }
.step strong, .step [data-far], .step [data-me], .step [data-dist] { color: var(--chalk); font-weight: 600; }
/* All steps share one grid cell, so the block is as tall as the longest step and nothing below it can be overlapped */
.js .step { grid-area: 1 / 1; align-self: center; transform: translateY(14px); opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .step.on { opacity: 1; transform: none; }
.js .step:not(.on) a { pointer-events: none; }
.step .btn { margin-top: 28px; }
.between { display: flex; align-items: baseline; gap: 12px; }
.between strong { font-size: clamp(52px, min(7vw, 11vh), 112px); font-weight: 600; font-stretch: 75%; letter-spacing: -0.04em; line-height: .9; color: var(--ember); font-variant-numeric: tabular-nums; }
.between span { color: var(--chalk-2); font-size: 16px; max-width: 14ch; line-height: 1.3; }
html:not(.js) .world { height: auto; }
html:not(.js) .world-stage { position: static; height: auto; overflow: visible; }
html:not(.js) #globe, html:not(.js) .hero-bottom, html:not(.js) .between { display: none; }
@media (max-height: 820px) and (min-width: 1081px) { .step p { font-size: 19px; } .step h2 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 18px; } }
html:not(.js) .hero-layer, html:not(.js) .story-layer { position: static; }
html:not(.js) .story-in { display: block; padding-block: var(--gap); }
html:not(.js) .step + .step { margin-top: 48px; }

/* ---------------- Home: same people, different connections */
.shapes { padding-block: var(--gap); }
.shapes-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.shapes-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.tabs { display: grid; gap: 4px; }
.tabs button { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 22px 26px; border-radius: 18px; background: var(--paper-2); font-size: var(--t-h3); font-weight: 600; font-stretch: 85%; letter-spacing: -0.02em; transition: background .25s, color .25s; }
.tabs button:hover { background: #D6DADF; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tabs button .arrow { opacity: 0; }
.tabs button[aria-pressed="true"] .arrow { opacity: 1; }
.shape-copy { margin-top: 28px; min-height: 5.4em; }
.shape-copy p { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; max-width: 34ch; }
.shape-canvas { background: var(--paper-2); border-radius: 28px; overflow: hidden; }
#shapes { width: 100%; aspect-ratio: 4 / 3; color: var(--ink); }
.shapes-note { margin-top: 18px; font-size: var(--t-small); }

/* ---------------- Home: facts, on an ember field */
.facts { background: var(--ember); color: var(--night); padding-block: var(--gap); }
.facts .h2 { max-width: 15ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 6vw, 96px); }
.stats dt { font-size: clamp(56px, 7.5vw, 124px); font-weight: 600; font-stretch: 75%; letter-spacing: -0.045em; line-height: .9; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 18px; font-size: 19px; font-weight: 500; max-width: 24ch; }
.stats cite { display: block; margin-top: 10px; font-size: var(--t-small); font-style: normal; opacity: .75; }
.stats cite a { text-underline-offset: 3px; }
.facts .closing { margin-top: clamp(56px, 6vw, 96px); font-size: var(--t-lead); font-weight: 600; max-width: 30ch; }

/* ---------------- Home: principles */
.principles { padding-block: var(--gap); }
.p-list { margin-top: clamp(40px, 5vw, 72px); }
.p-list li { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: baseline; padding-block: clamp(26px, 3vw, 44px); border-top: 2px solid var(--night-3); }
.p-list h3 { font-size: clamp(30px, 3.8vw, 60px); font-stretch: 78%; letter-spacing: -0.035em; }
.p-list p { color: var(--chalk-2); font-size: 19px; max-width: 42ch; }

/* ---------------- Doors: build it with us */
.doors { padding-block: var(--gap); }
.door { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: center; text-decoration: none; padding: clamp(26px, 3vw, 44px) clamp(22px, 2.6vw, 40px); border-radius: 24px; background: var(--paper-2); margin-top: 6px; transition: background .25s, color .25s; }
.door h3 { font-size: clamp(36px, 5.4vw, 88px); font-stretch: 76%; letter-spacing: -0.04em; line-height: .9; }
.door p { font-size: var(--t-lead); line-height: 1.35; font-weight: 500; max-width: 30ch; }
.door .arrow { width: clamp(30px, 3.4vw, 52px); height: clamp(30px, 3.4vw, 52px); stroke-width: 2.4; }
.door:hover { background: var(--ember); }
.doors .h2 { margin-bottom: clamp(40px, 5vw, 72px); }

/* ---------------- Inner pages */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(96px, 12vw, 200px) clamp(72px, 8vw, 128px); }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .frame { position: relative; pointer-events: none; }
.page-hero .frame a, .page-hero .frame button { pointer-events: auto; }
.page-hero h1 { font-size: var(--t-h1); max-width: 14ch; }
.page-hero .lead { margin-top: 32px; }
.crumbs { font-size: var(--t-small); color: var(--chalk-2); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--chalk); }
.prose-wrap { padding-block: var(--gap); }
.qa { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 96px); padding-block: clamp(40px, 5vw, 72px); border-top: 2px solid var(--paper-2); }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa h2 { font-size: clamp(30px, 3.6vw, 56px); }
.qa .body p { font-size: 19px; max-width: 60ch; }
.qa .body p + p { margin-top: 18px; }
.qa .body .first { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; }
.qa .body ul { margin-top: 18px; display: grid; gap: 4px; }
.qa .body li { background: var(--paper-2); padding: 18px 22px; border-radius: 14px; }
.qa .body li strong { display: block; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.src { font-size: var(--t-small); color: var(--ink-2); }
.src a { text-underline-offset: 3px; }
.band { padding-block: clamp(96px, 10vw, 160px); }
.band .h2 { max-width: 16ch; }
.band .actions { margin-top: 44px; }
.legal { padding-block: clamp(64px, 8vw, 120px) var(--gap); }
.legal .frame > * { max-width: 72ch; }
.legal h2 { font-size: clamp(26px, 2.6vw, 38px); font-stretch: 85%; margin: 56px 0 16px; }
.legal p, .legal li { font-size: 18px; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.legal .updated { color: var(--ink-2); }

/* Contact */
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 112px); padding-block: var(--gap); }
.contact-in .h2 { margin-bottom: 28px; }
.direct { margin-top: 40px; display: grid; gap: 4px; }
.direct a, .direct div { display: block; background: var(--paper-2); padding: 20px 24px; border-radius: 16px; text-decoration: none; }
.direct span { display: block; font-size: var(--t-small); color: var(--ink-2); }
.direct strong { font-size: 21px; font-weight: 600; }
.direct a:hover { background: var(--ember); }
.form { display: grid; gap: 18px; background: var(--night); color: var(--chalk); padding: clamp(24px, 3vw, 44px); border-radius: 28px; align-self: start; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--f); color: var(--chalk); background: var(--night-3); border: 0; border-radius: 12px; padding: 14px 16px; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--ember); outline-offset: 0; }
.form .btn { justify-self: start; }
.form .fine { font-size: var(--t-small); color: var(--chalk-2); font-weight: 400; }
.form .fine a { color: var(--chalk); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; background: #183A26; color: #9AE6B4; }
.notice.err { background: #3B1A14; color: #FFB4A1; }

/* Footer: the mark returns at full width */
.footer { padding-block: clamp(72px, 9vw, 140px) 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.foot-brand .mark { width: clamp(64px, 8vw, 120px); height: auto; }
.foot-brand p { font-size: clamp(28px, 3.4vw, 54px); font-weight: 600; font-stretch: 78%; letter-spacing: -0.035em; line-height: .95; }
.foot-brand small { display: block; margin-top: 14px; font-size: 15px; color: var(--chalk-2); }
.foot-col h2 { font-size: var(--t-small); font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--chalk-2); margin-bottom: 14px; }
.foot-col a { display: block; text-decoration: none; padding-block: 5px; font-weight: 500; }
.foot-col a:hover { color: var(--ember); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: clamp(56px, 7vw, 104px); font-size: var(--t-small); color: var(--chalk-2); }
.foot-bottom nav { display: flex; gap: 22px; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--chalk); }

/* Motion: content is visible without script; with it, parts rise in order */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.word { display: inline-block; }
.js .split .word { opacity: 0; transform: translateY(.45em); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms + 120ms); }
.js .split.in .word { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal], .js .split .word { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .shapes-head, .shapes-in, .qa, .contact-in { grid-template-columns: 1fr; }
  .story-in { align-items: flex-end; padding-bottom: clamp(24px, 5vh, 56px); }
  .story-copy { width: 100%; gap: 14px; }
  .js .step { align-self: end; }
  .step h2 { font-size: clamp(34px, 8vw, 56px); margin-bottom: 14px; }
  .p-list li, .door { grid-template-columns: 1fr; gap: 12px; }
  .door .arrow { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .menu-btn { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menu-btn span[aria-hidden], .menu-btn span[aria-hidden]::before, .menu-btn span[aria-hidden]::after { position: absolute; left: 9px; width: 26px; height: 2px; border-radius: 2px; background: var(--chalk); content: ""; transition: transform .25s var(--ease); }
  .menu-btn span[aria-hidden] { top: 21px; }
  .menu-btn span[aria-hidden]::before { top: -7px; left: 0; }
  .menu-btn span[aria-hidden]::after { top: 7px; left: 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: 8px var(--m) 28px; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 26px; font-weight: 600; font-stretch: 80%; color: var(--chalk); }
  .nav .btn { justify-content: center; margin-top: 16px; padding: 16px; font-size: 17px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--ember); border-radius: 8px; }
  .brand-text > span { font-size: 17px; }
  .brand-text small { font-size: 11px; }
  .stats { grid-template-columns: 1fr; gap: 44px; }
  .between strong { font-size: 48px; }
  .between span { font-size: 14px; }
  .step p { font-size: 17px; }
  .step p + p { margin-top: 10px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-meta { text-align: left; }
  .hero-tools { justify-content: flex-start; }
  .cue { display: none; }
  .grow strong { font-size: 40px; }
  .tabs button { padding: 18px 20px; }
  .foot-top { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
}

/* Colour chapters: the whole page glides from one ground to the next as you scroll */
.js body { transition: background-color .8s var(--ease); }
.js body[data-ground="night"] { background: var(--night); }
.js body[data-ground="paper"] { background: var(--paper); }
.js body[data-ground="ember"] { background: var(--ember); }
.js [data-ground] { background: transparent; transition: color .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js [data-ground] { background: revert-layer; } }

/* Threads: links reach out to the pointer when it comes near */
.threads { position: fixed; inset: 0; z-index: 40; pointer-events: none; width: 100%; height: 100%; }
.threads line { stroke: var(--ember); stroke-width: 1.5; stroke-linecap: round; }
.threads circle { fill: var(--ember); }
