/* ============================================================
   Arcvise — shared design system, v3 (2026-09-10)
   Layout of v1 (wide container, nav, sections that flow, card
   grids) in the language of the bio: white page, one black
   panel per section end, the arc of the logo as the only colour.
   Montserrat carries names and headlines, Archivo carries text.
   bio.html keeps its own inline CSS; every other page uses this.
   ============================================================ */

:root {
  /* the design is white on every device: dark-mode variants are switched off via data-theme="light" on <html> */
  color-scheme: light;
  --paper:   #FFFFFF;
  --raised:  #FFFFFF;
  --ink:     #0B0B0D;
  --ink-2:   #5C5F6A;
  --ink-3:   #8E8E98;
  --line:    #DDDFE5;
  --line-2:  #EEEFF3;

  --arc-1:   #6FA6FF;
  --arc-2:   #7C8BFA;
  --arc-3:   #8C6FD6;

  --panel:       #0B0B0D;
  --panel-ink:   #FFFFFF;
  --panel-ink-2: rgba(255,255,255,.78);

  --bad: #C2453A;
  --ok:  #3F9A6A;

  --shadow-panel: 0 1px 2px rgba(11,11,13,.10), 0 22px 48px -14px rgba(11,11,13,.42);
  --shadow-card:  0 0 0 1px var(--line), 0 1px 2px rgba(11,11,13,.04);
  --shadow-lift:  0 0 0 1px var(--ink-3), 0 18px 36px -18px rgba(11,11,13,.35);

  --display: "Montserrat", "Archivo", -apple-system, sans-serif;
  --body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2,.8,.3,1);
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px;
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#08080A; --raised:#101014; --ink:#F4F4F6; --ink-2:#B4B4BE; --ink-3:#6E6E78; --line:#1F1F25; --line-2:#17171C;
    --panel:#131319; --panel-ink-2:rgba(255,255,255,.72);
    --bad:#E0695E; --ok:#5DBA88;
    --shadow-panel: 0 0 0 1px rgba(124,139,250,.22), 0 22px 48px -16px rgba(0,0,0,.8);
    --shadow-card: 0 0 0 1px var(--line);
    --shadow-lift: 0 0 0 1px var(--ink-3), 0 18px 36px -18px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --paper:#08080A; --raised:#101014; --ink:#F4F4F6; --ink-2:#B4B4BE; --ink-3:#6E6E78; --line:#1F1F25; --line-2:#17171C;
  --panel:#131319; --panel-ink-2:rgba(255,255,255,.72);
  --bad:#E0695E; --ok:#5DBA88;
  --shadow-panel: 0 0 0 1px rgba(124,139,250,.22), 0 22px 48px -16px rgba(0,0,0,.8);
  --shadow-card: 0 0 0 1px var(--line);
  --shadow-lift: 0 0 0 1px var(--ink-3), 0 18px 36px -18px rgba(0,0,0,.7);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--arc-2); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.026em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.018em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.page { position: relative; z-index: 1; }

/* the brand line at the very top of every page */
.brandline { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 30;
  background: linear-gradient(90deg, var(--arc-1), var(--arc-2) 50%, var(--arc-3)); }

/* accent words: the arc of the logo */
em.arc, .lede em, h1 em, h2 em, .pitch em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(90deg, var(--arc-2), var(--arc-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand__light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__dark { display: none; } :root:not([data-theme="light"]) .brand__light { display: block; } }
:root[data-theme="dark"] .brand__dark { display: none; }
:root[data-theme="dark"] .brand__light { display: block; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { display: block; padding: 12px 0; font-size: 16px; }
  .nav__toggle { display: grid; place-items: center; }
  .nav .nav__cta-desk { display: none; }
  .nav__links .nav__cta-mob { display: block; padding-top: 10px; }
  .nav__links .nav__cta-mob a { display: inline-flex; padding: 12px 20px; color: var(--paper); font-size: 15px; }
}
.nav__cta-mob { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 13px 22px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(124,139,250,.6); }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.btn--white { background: #FFFFFF; color: #0B0B0D; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { font-size: 14px; padding: 10px 16px; }

/* ---------- text helpers ---------- */

.kicker { font-size: 13.5px; color: var(--ink-3); }
.kicker b { color: var(--ink-2); font-weight: 500; }
.lede { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.45; color: var(--ink-2); max-width: 30em; text-wrap: balance; }
.muted { color: var(--ink-3); font-size: 14px; }
.tag { font-family: var(--body); font-size: 11.5px; font-weight: 500; letter-spacing: .01em; color: var(--ink-2); border: 1px solid var(--line); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }

/* ---------- layout blocks: the page flows section → section ---------- */

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 16.5px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* page header */
.page-head { padding-top: 64px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.page-head .lede { max-width: 34em; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.crumb { font-size: 13.5px; color: var(--ink-3); }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }

/* trust line under a page head */
.trust { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.trust b { font-family: var(--display); font-weight: 800; color: var(--ink); }
.trust__dots { display: inline-flex; }
.trust__dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 2px var(--paper); margin-left: -7px; }
.trust__dots i:first-child { margin-left: 0; }
.trust__dots i:nth-child(1) { background: linear-gradient(135deg, var(--arc-1), var(--arc-2)); }
.trust__dots i:nth-child(2) { background: var(--ink); }
.trust__dots i:nth-child(3) { background: linear-gradient(135deg, var(--arc-2), var(--arc-3)); }

/* ---------- cards: white, hairline, lift on hover ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  position: relative; overflow: hidden;
  background: var(--raised); border-radius: var(--r-md); padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card > * { position: relative; }
.card p { color: var(--ink-2); font-size: 15px; }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; }
.card li::marker { color: var(--ink-3); }
.card__icon {
  position: relative; overflow: hidden;
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  transition: color .25s;
}
.card__icon::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.card__icon::after {
  content: ""; position: absolute; inset: -60%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(124,139,250,.75) 0%, rgba(111,166,255,.35) 22%, rgba(140,111,214,.12) 40%, transparent 55%);
  transition: opacity .3s;
  animation: wander 5s ease-in-out infinite alternate;
}
@keyframes wander {
  0%   { transform: translate(-22%, -22%) scale(1); }
  50%  { transform: translate(18%, 6%) scale(1.15); }
  100% { transform: translate(-6%, 22%) scale(.95); }
}
a.card:hover .card__icon { color: var(--paper); }
a.card:hover .card__icon::before { transform: translateY(0); }
a.card:hover .card__icon::after { opacity: 1; }
.card__icon svg { position: relative; z-index: 1; width: 22px; height: 22px; }
.card__icon .kw { position: relative; z-index: 1; font-family: var(--display); font-size: 9.5px; font-weight: 800; letter-spacing: .02em; }
.card__icon .kw--long { font-size: 8px; letter-spacing: 0; }
a.card:hover .card__icon svg { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1.08); } }
.card__link { margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.card__link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
a.card:hover .card__link svg { transform: translate(3px,-3px); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }

/* steps: only where the content is a sequence */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--raised); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .04em; background: linear-gradient(90deg, var(--arc-2), var(--arc-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--ink-2); font-size: 15px; }

/* split: two columns that talk to each other */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- the black panel: the one dark thing on a page ---------- */

.panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  text-decoration: none;
  background: var(--panel); color: var(--panel-ink);
  border-radius: var(--r-lg); padding: 48px;
  box-shadow: var(--shadow-panel);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease), box-shadow .4s;
  transform-style: preserve-3d;
}
.panel::before {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 85%) var(--my, 15%),
    rgba(124,139,250,.38) 0%, rgba(111,166,255,.14) 16%, rgba(140,111,214,.05) 30%, transparent 42%);
}
.panel > * { position: relative; }
a.panel:hover { box-shadow: 0 1px 2px rgba(11,11,13,.10), 0 30px 60px -18px rgba(124,139,250,.45); }
.panel--center { align-items: center; text-align: center; }
.panel__for { font-size: 13px; color: var(--panel-ink-2); }
.panel__head { font-family: var(--display); font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.028em; line-height: 1.12; color: var(--panel-ink); max-width: 16em; text-wrap: balance; }
.panel__logo { display: inline-block; height: 1.22em; width: auto; vertical-align: -.05em; }
.panel__sub { font-size: 16px; color: var(--panel-ink-2); line-height: 1.5; max-width: 52ch; text-wrap: balance; }
.panel .btn { margin-top: 6px; }

/* ---------- prose (guides, privacy) ---------- */

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.62; color: var(--ink-2); }
.prose h2 { font-size: 24px; color: var(--ink); margin-top: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose code { font-family: var(--mono); font-size: 13.5px; background: var(--line-2); color: var(--ink); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.prose a { color: var(--ink); }
.callout { background: var(--line-2); border-radius: var(--r-md); padding: 16px 18px; color: var(--ink-2); font-size: 15px; }
.callout strong { color: var(--ink); font-weight: 600; }

/* resource page: text on the left, the prompt on the right */
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.res-grid > .prose { max-width: none; }
.res-grid__side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; gap: 28px; } .res-grid__side { position: static; } }

/* the prompt block: black, like the panel, with a copy button */
.prompt { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--panel); color: var(--panel-ink); box-shadow: var(--shadow-panel); }
.prompt::before {
  content: ""; position: absolute; top: -140px; right: -120px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(124,139,250,.32) 0%, rgba(111,166,255,.12) 42%, transparent 70%);
}
.prompt__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; color: var(--panel-ink-2); }
.prompt pre { position: relative; margin: 0; padding: 18px 20px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.58; color: rgba(255,255,255,.9); white-space: pre-wrap; word-break: break-word; max-height: 70vh; }
.copy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0B0B0D; background: #FFFFFF; border: 0; border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: transform .2s var(--ease); }
.copy:hover { transform: translateY(-1px); }
.copy.is-done { background: var(--arc-2); color: #fff; }

/* tables (resource map) */
.table-scroll { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--shadow-card); }
table.map { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.map th, table.map td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.map th { font-family: var(--display); font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--line-2); }
table.map tr:last-child td { border-bottom: 0; }
table.map td:nth-child(2) { font-weight: 600; white-space: nowrap; }
table.map td:nth-child(3) { color: var(--ink-2); }
@media (max-width: 640px) {
  table.map { min-width: 0; }
  table.map thead { display: none; }
  table.map tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.map tr:last-child { border-bottom: 0; }
  table.map td { display: block; padding: 0; border: 0; }
  table.map td:first-child { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
  table.map td:nth-child(2) { display: inline-block; margin: 6px 0 4px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--line-2); padding: 2px 9px; border-radius: 999px; }
  table.map td:nth-child(3) { font-size: 14px; }
}

/* ---------- builds (the work) ---------- */

.builds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.build { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-md); background: var(--raised); box-shadow: var(--shadow-card); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.build:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.build__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* the tile: a category mark for examples; a real client logo goes in as <img> once there is one */
.build__logo { width: 44px; height: 44px; border-radius: 12px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-3); font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .04em; flex: none; overflow: hidden; }
.build__logo img { width: 100%; height: 100%; object-fit: cover; }
.build__who { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.build__nda { font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.build__problem { color: var(--ink-2); font-size: 15px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 6px; }
.flow__node { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px; border-radius: 12px; background: var(--line-2); min-width: 0; }
.flow__node b { font-family: var(--display); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink-3); }
.flow__node span { font-size: 13px; color: var(--ink); line-height: 1.35; }
.flow__node--out { background: var(--panel); }
.flow__node--out b { color: var(--panel-ink-2); }
.flow__node--out span { color: var(--panel-ink); }
.flow__arrow { align-self: center; color: var(--ink-3); width: 14px; height: 14px; }
/* what changed, in the three numbers an owner cares about: sales, time, money */
.build__result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.build__result > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.build__result i { font-style: normal; font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.build__result b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; background: linear-gradient(90deg, var(--arc-2), var(--arc-3)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.build__result span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 400px) { .build__result { grid-template-columns: 1fr; gap: 12px; } .build__result > div { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; } .build__result i { flex-basis: 100%; } }
.build__stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* big numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 20px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-2); }

/* ---------- video marquee ---------- */

.marquee { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.clip { position: relative; width: 190px; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; background: var(--line-2); box-shadow: var(--shadow-card); flex: none; cursor: pointer; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip__play { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(11,11,13,.7); color: #fff; display: grid; place-items: center; pointer-events: none; }
.clip__play svg { width: 12px; height: 12px; margin-left: 2px; }
.clip.is-live .clip__play { display: none; }
@media (max-width: 640px) { .clip { width: 150px; } }

/* ---------- embed (calendar) ---------- */

.embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); background: var(--raised); }
.embed iframe { display: block; width: 100%; min-height: 720px; border: 0; }
.embed__alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--raised);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--arc-2); outline-offset: 1px; border-color: transparent; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.consent a { color: var(--ink-2); }
.err { color: var(--bad); font-size: 13px; display: none; }
.err.on { display: block; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 24px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

/* ---------- quiz (check.html, check-training.html): a narrow tool, not a page ---------- */

.quiz { width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 20px 64px; display: flex; flex-direction: column; gap: 26px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; }
.topbar__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.topbar__back svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.topbar__back:hover { color: var(--ink); }
.topbar__back:hover svg { transform: translateX(-3px); }
.topbar__mark { height: 18px; width: auto; }
.topbar__mark--light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar__mark--dark { display: none; } :root:not([data-theme="light"]) .topbar__mark--light { display: block; } }
:root[data-theme="dark"] .topbar__mark--dark { display: none; }
:root[data-theme="dark"] .topbar__mark--light { display: block; }
.bar { height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--arc-1), var(--arc-3)); transition: width .35s var(--ease); }
.screen { display: none; flex-direction: column; gap: 18px; }
.screen.on { display: flex; animation: in .28s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.step-n { font-size: 12.5px; color: var(--ink-3); }
.q { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.026em; line-height: 1.16; text-wrap: balance; }
.hint { margin: -8px 0 0; font-size: 14px; color: var(--ink-3); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--raised); border: 0; box-shadow: 0 0 0 1px var(--line); border-radius: 14px;
  padding: 14px 16px; cursor: pointer;
  transition: box-shadow .15s, transform .2s var(--ease), background .15s, color .15s;
}
.opt:hover { box-shadow: 0 0 0 1px var(--ink-3); transform: translateY(-1px); }
.opt[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--ink); background: var(--ink); color: var(--paper); }
.opt .k { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; }
.opt[aria-pressed="true"] .k { border-color: var(--paper); }
.opt[aria-pressed="true"] .k::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.opt.multi .k { border-radius: 5px; }
.opt.multi[aria-pressed="true"] .k::after { border-radius: 2px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.back { background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink-3); cursor: pointer; padding: 6px 0; }
.back:hover { color: var(--ink); }
.result { display: none; flex-direction: column; gap: 22px; }
.result.on { display: flex; animation: in .35s var(--ease); }
.result .panel { padding: 26px 24px 24px; align-items: stretch; transform: none; gap: 0; }
.panel .lab { font-size: 12.5px; color: var(--panel-ink-2); }
.panel .big { margin: 8px 0 4px; font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.panel .big small { display: inline-block; white-space: nowrap; font-size: 20px; font-weight: 500; color: var(--panel-ink-2); letter-spacing: 0; margin-left: 4px; }
.panel .sub { margin: 0; font-size: 14px; color: var(--panel-ink-2); max-width: 32ch; }
.findings { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.finding { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 10px 1fr; gap: 14px; align-items: start; }
.finding i { display: block; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--ink-3); }
.finding i.bad { background: var(--bad); }
.finding i.ok  { background: var(--ok); }
.finding p { margin: 0; color: var(--ink-2); font-size: 15px; }
.finding p b { color: var(--ink); font-weight: 600; }
.first { display: flex; flex-direction: column; gap: 6px; }
.first .lab { font-size: 12.5px; color: var(--ink-3); }
.first p { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
/* the training result splits the day in two rows: a small label, then the plan in normal weight */
.first__row { display: block; font-family: var(--body); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); line-height: 1.5; }
.first__row + .first__row { margin-top: 10px; }
.first__row i { display: block; font-style: normal; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.next { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 6px; }
.next p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.quiz .tail { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.quiz .tail a { color: var(--ink); text-decoration: underline; }

/* ---------- mobile tuning + motion ---------- */

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .section-head { margin-bottom: 22px; }
  .page-head { padding: 36px 0 16px; }
  .lede { font-size: 17.5px; }
  .card, .step, .build { padding: 22px; }
  .panel { padding: 30px 24px; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .embed iframe { min-height: 640px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .q { font-size: 22px; }
  .panel .big { font-size: 38px; }
  /* headline line breaks are set for desktop; on a phone the text wraps on its own */
  .page-head h1 br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee__track { width: auto; overflow-x: auto; }
}
