/* Supervisual — the marketing site's shared layer: the landing (styles.css on top of this) and
   the pages around it (/about, /privacy, /terms, which load this file with pages.css).
   Field Index tokens (UI.md §1–§3, §10): six neutrals, color reserved for state, Helvetica Neue
   + system mono, pills, 6/10/3px radii. What lives here: tokens, base, the mark, buttons, the
   bar and its menu, the reveal system, the ink surface, section heads and the footer. */

:root {
  /* state — the product's one color language */
  --done: #27734b; --done-soft: #e9f3ed; --done-line: #8db79c; --done-strong: #195335;
  --active: #a56812; --active-soft: #fcf5e8; --active-line: #d8b77d; --active-strong: #79500e;
  --blocked: #b33232; --blocked-soft: #fbefef; --blocked-line: #deb1b1;
  --planned: #336c9b;
  --planned-soft: color-mix(in srgb, #336c9b 9%, #fff);
  --planned-line: color-mix(in srgb, #336c9b 40%, #fff);

  /* six neutrals */
  --ink: #171717; --graphite: #666666; --edge: #999999; --line: #dedede;
  --silver: #f5f5f5; --hover: #ededed; --paper: #ffffff;

  /* ink surface */
  --ink-line: rgba(255, 255, 255, 0.14);
  --ink-text: rgba(255, 255, 255, 0.62);
  --ink-dim: rgba(255, 255, 255, 0.52);

  /* type */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  /* structure */
  --radius: 6px; --radius-card: 10px; --radius-pill: 999px; --radius-unit: 3px;
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(16px, 3.2vw, 40px);
  --gutter: clamp(16px, 2.2vw, 32px);
  --maxw: 1520px;
  --nav-h: 60px;
  color-scheme: light;
}

/* ───────────────────────── base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; accent-color: var(--ink); }
button { cursor: pointer; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.ink :where(button, a, input, select, textarea, [tabindex]):focus-visible { outline-color: #fff; }
::selection { background: var(--ink); color: var(--paper); }
.ink ::selection { background: #fff; color: var(--ink); }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
/* no orphaned last words: headings balance, running text wraps to a tidy last line */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.muted { color: var(--graphite); }
.ink .muted { color: var(--ink-text); }
.c-done { color: var(--done); }
.c-active { color: var(--active); }
.c-blocked { color: var(--blocked); }
.c-ready { color: var(--planned); }
.glyph { font-family: var(--font); font-weight: 700; font-style: normal; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -64px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-pill);
  font: 500 13px/1 var(--font); text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* mono label */
.sec-ref, .foot-k, .foot-legal {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* the mark — four slanted squares fused at their corners, in the color of the text around it */
.mark {
  --m: 20px;
  display: block;
  flex: none;
  width: calc(var(--m) * 13 / 12); /* the symbol's viewBox is 78 × 72 */
  height: var(--m);
  fill: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.mark-sm { --m: 13px; }
.mark-xl { --m: 0.735em; }

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  --h: 40px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px;
  border-radius: var(--radius-pill); border: 1px solid var(--ink);
  font: 500 14px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--sweep, #000);
  transform: translate3d(0, 102%, 0);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .arr { display: inline-block; transition: transform 0.45s var(--ease-out); }
.btn:hover .arr { transform: translate3d(4px, 0, 0); }
.btn-ink { background: var(--ink); color: #fff; --sweep: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); --sweep: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; border-color: var(--ink); }
.btn-paper { background: #fff; color: var(--ink); border-color: #fff; --sweep: var(--silver); }
.ink .btn-ghost { color: #fff; border-color: var(--ink-line); --sweep: #fff; }
.ink .btn-ghost:hover { color: var(--ink); border-color: #fff; }
.btn-sm { --h: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { --h: 50px; padding: 0 26px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
[data-magnetic] { will-change: transform; }

/* ───────────────────────── navigation ───────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-ink { color: #fff; }
.nav.is-menu { color: var(--ink); }
.nav.is-menu::before { opacity: 1; background: var(--paper); border-color: var(--line); }
.nav.is-ink::before { background: rgba(23, 23, 23, 0.72); border-color: rgba(255, 255, 255, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand-word { font: 500 18px/1 var(--font); letter-spacing: -0.045em; }
.brand:hover .mark { transform: rotate(180deg); } /* a half turn lands the mark back on itself */
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  font: 400 11px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; transition: background-color 0.25s var(--ease), color 0.25s;
}
.nav-links a::before {
  content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--done);
  transform: scale(0); transition: transform 0.4s var(--ease-out); margin-left: -2px;
}
.nav-links a:hover { background: rgba(23, 23, 23, 0.06); }
.nav.is-ink .nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-links a.is-active::before { transform: none; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nav-login { font: 500 13px/1 var(--font); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.nav-login:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav.is-ink .nav-cta { background: #fff; color: var(--ink); border-color: #fff; --sweep: var(--silver); }
.nav-cta-short { display: none; }
.nav-menu {
  display: none; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent;
  font: 500 13px/1 var(--font);
}
.nav.is-ink .nav-menu { border-color: var(--ink-line); }
.nav-menu-icon { display: grid; gap: 4px; width: 22px; height: 22px; place-content: center; border-radius: 50%; background: var(--ink); }
.nav-menu-icon i { display: block; width: 9px; height: 1.5px; background: #fff; transition: transform 0.35s var(--ease-out); }
.nav.is-ink .nav-menu-icon { background: #fff; }
.nav.is-ink .nav-menu-icon i { background: var(--ink); }
.nav-menu[aria-expanded="true"] .nav-menu-icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-menu[aria-expanded="true"] .nav-menu-icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.nav-progress i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font: 500 clamp(32px, 9vw, 52px)/1 var(--font); letter-spacing: -0.06em;
}
.menu nav a span { font: 400 11px/1 var(--mono); letter-spacing: 0.09em; color: var(--graphite); }
.menu-foot { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) nav a { animation: menuIn 0.7s var(--ease-out) both; }
  .menu:not([hidden]) nav a:nth-child(2) { animation-delay: 40ms; }
  .menu:not([hidden]) nav a:nth-child(3) { animation-delay: 80ms; }
  .menu:not([hidden]) nav a:nth-child(4) { animation-delay: 120ms; }
  .menu:not([hidden]) nav a:nth-child(5) { animation-delay: 160ms; }
  .menu:not([hidden]) nav a:nth-child(6) { animation-delay: 200ms; }
}
@keyframes menuIn { from { opacity: 0; transform: translate3d(0, 24px, 0); } }

/* ───────────────────────── reveal system ───────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .sw {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.1em 0.04em 0.16em; margin: -0.1em -0.04em -0.16em;
}
.js [data-split] .swi {
  display: inline-block;
  transform: translate3d(0, 112%, 0);
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i) * 42ms + var(--rd, 0ms));
}
.js [data-split].is-in .swi { transform: none; }

/* ───────────────────────── ink surface ───────────────────────── */
.ink { background: var(--ink); color: #fff; }

/* ───────────────────────── sections ───────────────────────── */
.sec-head {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-top: 22px; margin-bottom: clamp(40px, 6vw, 92px);
}
.sec-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--rule, 1));
  transition: transform 1.4s var(--ease-out);
}
.js .sec-head::before { --rule: 0; }
.js .sec-head.is-in::before { --rule: 1; }
.sec-ref { grid-column: 1 / 4; font-size: 11px; line-height: 1.4; }
.sec-title {
  grid-column: 4 / -1;
  font-weight: 500; font-size: clamp(42px, 6.6vw, 118px); line-height: 0.9; letter-spacing: -0.07em;
  margin-left: -0.05em;
}
.sec-title-sm { font-size: clamp(36px, 4.8vw, 80px); }
.sec-lede {
  grid-column: 7 / -1;
  margin-top: clamp(24px, 3vw, 44px);
  font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; color: var(--graphite); max-width: 34em;
}
/* a maturity label under the lede, for what the section shows that isn't built yet */
.sec-note { grid-column: 7 / -1; }

/* ───────────────────────── footer ───────────────────────── */
.foot { padding: clamp(56px, 7vw, 96px) 0 28px; border-top: 1px solid var(--ink-line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col a { text-decoration: none; color: rgba(255, 255, 255, 0.78); width: fit-content; transition: color var(--dur); }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* the page you are on, on the pages around the landing (the landing itself marks none): the
   bar's active-section dot, hung in the gutter so the column's left edge stays straight */
.foot-col a[aria-current="page"] { position: relative; color: #fff; }
.foot-col a[aria-current="page"]::before {
  content: ""; position: absolute; left: -13px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 1.5px; background: var(--done-line);
}
.foot-k { font-size: 10px; color: var(--ink-dim); margin-bottom: 4px; }
.foot-word {
  display: flex; align-items: flex-end; gap: 0.12em;
  width: min(100% - 2 * var(--pad), var(--maxw)); margin: clamp(56px, 8vw, 120px) auto clamp(20px, 3vw, 40px);
  font-weight: 500; font-size: 16vw; line-height: 0.8; letter-spacing: -0.08em; white-space: nowrap;
}
.foot-word .mark { margin-bottom: 0.015em; }
.foot-word-t { display: inline-block; }
.js .foot-word-t .ch { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 34ms); }
.foot-word-t .chm { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.02em 0.08em; margin: 0 -0.02em -0.08em; }
.js .foot-word.is-in .foot-word-t .ch { transform: none; }
.foot-legal { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; font-size: 10px; color: var(--ink-dim); border-top: 1px solid var(--ink-line); padding-top: 18px; }
.foot-word .period { color: var(--done-line); }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 1180px) {
  .nav-links a { padding: 0 9px; }
  .sec-title { grid-column: 1 / -1; margin-top: 22px; }
  .sec-lede, .sec-note { grid-column: 1 / -1; }
  .sec-ref { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .nav-links a { padding: 0 6px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-login { display: none; }
  .nav-menu { display: inline-flex; }
  /* the hero has no buttons, so the walkthrough stays in the bar; the open menu carries its own */
  .nav-right { gap: 8px; }
  .nav-cta { --h: 34px; }
  .nav.is-menu .nav-cta { visibility: hidden; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 600px) {
  /* a phone's bar has room for one word: it shows, the full label is still what it's called */
  .nav { gap: 16px; }
  .nav-cta-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-cta-short { display: inline; }
  .foot-legal { flex-direction: column; }
  .menu-foot .btn { flex: 1; }
}

@media (max-width: 370px) {
  /* narrower than 375, Menu is its round button alone (the label stays its name), so the walkthrough fits */
  .nav-menu { position: relative; width: 34px; padding: 0; gap: 0; justify-content: center; }
  .nav-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ───────────────────────── reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-split] .swi, .js .foot-word-t .ch { opacity: 1 !important; transform: none !important; }
  .js .sec-head::before { --rule: 1; }
}
