/* Co-team identity v1 — core tokens, type and shell.
   Colours, type and motion follow the Figma sheets 01–06 (Identity v1):
   Ink 60 · Surface 20 · Lime 15 · White 5. One module is the only building block;
   motion is stepped (the grid assembling itself), never a soft fade. */

@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url('../fonts/fragment-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #0A0A0B;
  --lime: #C3F44D;
  --white: #FFFFFF;
  --surface: #F4F4F4;
  --surface-2: #E9E9E9;
  --graphite: #151516;
  --line: #2A2A2C;
  --muted: #6E6E70;
  --rule: rgba(10, 10, 11, .12);
  --rule-ink: rgba(255, 255, 255, .12);

  --sans: 'Switzer', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: min(1200px, calc(100vw - 2 * var(--gut)));
  --gut: clamp(16px, 4vw, 60px);
  --u: 8px;                       /* module */
  --tick: 80ms;                   /* motion tick: steps(n), no fades */
  --r: 4px;                       /* containers are squares that grew up: barely rounded */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

/* ── type ─────────────────────────────────────────────── */
.d1, .d2, .d3, .d4 { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
.d1 { font-size: clamp(48px, 8.4vw, 132px); }
.d2 { font-size: clamp(38px, 5.2vw, 76px); }
.d3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; }
.d2 { line-height: 1.07; }
.d4 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.22; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); margin: 0; text-wrap: pretty; }
.on-ink .lead, .ink .lead { color: #A3A3A6; }
.lbl { font: 400 12px/1.3 var(--mono); letter-spacing: 0; color: var(--muted); }
.mono { font-family: var(--mono); }
.hl { color: var(--lime); }
.ink .hl-ink, .hl-ink { background: var(--lime); color: var(--ink); padding: 0 .12em; }

/* ── shell ────────────────────────────────────────────── */
.wrap { width: var(--wrap); margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(64px, 7.5vw, 112px); }
.ink { background: var(--ink); color: var(--white); }
.lime { background: var(--lime); color: var(--ink); }
.white { background: var(--white); }
.surface { background: var(--surface); }
.grey { background: #D3D3D3; }

/* nav: transparent, the mark + wordmark left, two links and the call right */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut); pointer-events: none; transition: background .2s steps(2), color .2s steps(2); }
.nav > * { pointer-events: auto; }
.nav.solid { background: rgba(244, 244, 244, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav.on-ink { color: var(--white); }
.nav.on-ink.solid { background: rgba(10, 10, 11, .82); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.03em; line-height: 1; }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav-r { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-l { font-size: 15px; text-decoration: none; position: relative; padding: 4px 0; }
.nav-l::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .24s steps(6); }
.nav-l:hover::after, .nav-l[aria-current]::after { transform: scaleX(1); }
button.nav-l { background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; color: inherit; }
.nav-dd { position: relative; }
.nav-dd > button::before { content: ''; position: absolute; right: -12px; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: currentColor; }
.nav-dd > button { margin-right: 12px; }
.nav-menu { position: absolute; left: -18px; top: calc(100% + 12px); display: none; width: 300px; padding: 8px; border-radius: 8px; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -18px rgba(10,10,11,.35); }
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dd.open .nav-menu { display: grid; gap: 2px; }
.nav-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current] { background: var(--surface); }
.nav-menu b { font-weight: 600; font-size: 15px; }
.nav-menu span { color: var(--muted); font-size: 13px; }
/* phones: the links move into a sheet behind a two-bar button */
.nav-burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .16s steps(2); }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 25px; }
.nav.sheet-open .nav-burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav.sheet-open .nav-burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-sheet { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px var(--gut) 20px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 30px -24px rgba(10,10,11,.4); }
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.nav-sheet a[aria-current] { color: var(--muted); }
.nav.sheet-open { background: var(--surface); color: var(--ink); }
@media (max-width: 640px) { .nav-l, .nav-dd { display: none; } .nav-burger { display: block; } .nav-r { gap: 10px; } .nav .btn { height: 40px; padding: 0 16px; } }

/* buttons: a lime pill with a cursor module that blinks on hover */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--lime); color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn .cur { width: 7px; height: 14px; background: currentColor; display: none; }
.btn:hover .cur { display: inline-block; animation: blink .8s steps(1) infinite; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }
@keyframes blink { 50% { opacity: 0; } }
.link { font: 400 14px/1 var(--mono); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link::after { content: '→'; transition: transform .2s steps(3); }
.link:hover::after { transform: translateX(6px); }

/* footer: the big lockup, as on the Figma home */
.foot { background: var(--white); color: var(--ink); padding: clamp(56px, 6vw, 88px) 0 28px; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 72px); }
.foot-cta .d2 { display: inline-flex; align-items: baseline; gap: .12em; }
.foot-cur { display: inline-block; width: .42em; height: .42em; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); animation: blink 1.1s steps(1) infinite; }
.foot-act { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .foot-cur { animation: none; } }
.foot-top { display: flex; justify-content: flex-end; align-items: center; gap: 24px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); flex-wrap: wrap; }
.foot-top a { text-decoration: none; font-size: 15px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-big { display: block; width: 100%; height: auto; margin-top: 40px; color: var(--ink); overflow: visible; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 13px; }

/* the module grid as a visible texture */
.gridbg { background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 48px 48px; }

/* no reveal on scroll: text is simply there. The stepped top-to-bottom build drew the eye to every
   block on the way down, and she asked for it gone (14 Oct). .rv stays in the markup as a no-op hook. */

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

/* films (loops.js): a still frame over every video until it really plays. In Low Power Mode it simply
   stays, instead of iPhone's play button over a bare video. The frame is hidden, never the video:
   Safari may not start a video it cannot see. */
.lp { position: relative; display: block; width: 100%; height: 100%; }
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .4s; }
.vplaying > .vposter { opacity: 0; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
