/* ═══════════════════════════════════════════════════
   ARCLINE — AI that does the work (international) · "One Line"
   The studio's "Vineyard" palette (aubergine ink, soft paper ground),
   with the AI category's violet as the accent.
   The logo is one thick line with square ends and square dots; the page is built
   from it. One line (line.js) runs through every section; headings sit on it,
   the steps are stops on it, and everything else is square-cornered like the
   logo. Only the chat bubbles stay round: they are conversations.
   Schibsted Grotesk (headings) · DM Sans (body) · DM Mono (labels)
════════════════════════════════════════════════════ */

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

:root {
  color-scheme: light;

  --ink:          #22162A;   /* aubergine: text and headings */
  --band:         #2B1631;   /* dark panels: problem, contact */
  --accent:       #5A3C9E;   /* violet: buttons, labels, numbers */
  --accent-soft:  #ECE6F7;   /* violet tint: chips, demo answer */
  --accent-light: #C3AEF2;   /* violet on the dark panels */
  --paper:        #F6F5F2;   /* page background */
  --paper-2:      #FFFFFF;   /* tiles and cards */
  --text:         #22162A;
  --muted:        #645A6B;
  --rule:         #E4DFE3;
  --on-band:      #D9CCDC;

  /* the three jobs: strong / soft / light (on the band), from the studio palette */
  --docs:    #5A3C9E;  --docs-soft:    #ECE6F7;  --docs-light:    #C3AEF2;
  --queries: #7B2346;  --queries-soft: #F5E4EB;  --queries-light: #E8A0BC;
  --reports: #2C6E73;  --reports-soft: #E1F0F0;  --reports-light: #8FD3D6;

  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --mono:    'DM Mono', ui-monospace, monospace;

  --r-sm: 0px;                        /* square, like the logo's ends */
  --r:    0px;
  --r-lg: 0px;
  --pill: 0px;
  --hard: 10px 10px 0;                /* the hard shadow under boxes */

  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);

  --max: 1320px;
  --gutter: clamp(30px, 6vw, 72px);
  --nav-h: 72px;
}

[data-job="docs"]    { --c: var(--docs);    --c-soft: var(--docs-soft);    --c-light: var(--docs-light); }
[data-job="queries"] { --c: var(--queries); --c-soft: var(--queries-soft); --c-light: var(--queries-light); }
[data-job="reports"] { --c: var(--reports); --c-soft: var(--reports-soft); --c-light: var(--reports-light); }

html {
  scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* smooth in-page jumps, switched on by script.js once the page has loaded */
html.is-ready { scroll-behavior: smooth; }

a { color: inherit; }
[hidden] { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 300;
  background: var(--ink); color: #fff; padding: 8px 16px; text-decoration: none; border-radius: var(--pill);
}
.skip:focus { top: 12px; }

/* ─── shared type ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
/* each section's label is a station sign: a large number square and the section's name,
   sized to sit with the big headline under it */
.block .eyebrow, .contact .eyebrow {
  font-size: clamp(18px, 2.2vw, 30px); letter-spacing: 0.12em; line-height: 1;
  gap: .6em; margin-bottom: clamp(22px, 2.6vw, 36px);
}
.eyebrow--light { color: var(--accent-light); }
main { counter-reset: station; }
.block .eyebrow::before, .contact .eyebrow::before {
  counter-increment: station; content: counter(station, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 2.3em; height: 2.3em; flex: none;
  font-size: .78em; letter-spacing: 0; color: var(--paper); background: var(--ink);
  transition: background .5s, color .5s, transform .5s var(--spring);
}
.contact .eyebrow::before { background: var(--paper); color: var(--band); }
/* the line has reached this section: its number takes the colour */
.is-reached .eyebrow::before { background: var(--accent); color: #fff; animation: station-pop .5s var(--spring); }
@keyframes station-pop { 40% { transform: scale(1.3); } }
.contact.is-reached .eyebrow::before { background: var(--accent-light); color: var(--band); }

.block__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .94;
  letter-spacing: -0.05em;
  max-width: 13em;
  text-wrap: balance;
  margin-bottom: clamp(48px, 6vw, 88px);
}

/* ─── buttons: pills ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 28px;
  font-family: var(--body); font-size: 16px; font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--pill);
  box-shadow: 0 0 0 var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn::after { content: ''; width: 10px; height: 10px; background: currentColor; margin-left: 4px; transition: transform .35s var(--spring); }
.btn:hover::after { transform: translateX(4px) rotate(90deg); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--accent-light); border-color: var(--accent-light); color: var(--band); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ════ NAV: a flat bar at the top, a floating pill once the page scrolls ════ */
.nav { position: sticky; top: 0; z-index: 200; height: var(--nav-h); }
.nav__inner {
  position: relative;
  max-width: 100%; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  /* flat: edge to edge, its content lined up with the page */
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(246,245,242,0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 0;
  box-shadow: 0 1px 0 var(--rule);
  transition: max-width .6s var(--ease), padding .6s var(--ease), border-radius .6s var(--ease),
              transform .6s var(--ease), background .4s, box-shadow .4s;
}
/* scrolled: it lifts off the top edge and rounds into a pill (script.js sets .is-scrolled) */
.nav.is-scrolled .nav__inner {
  max-width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
  padding: 0 10px 0 28px;
  border-radius: 0;
  transform: translateY(12px);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 var(--ink);
}
.nav__logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav__mark { height: 32px; width: auto; flex: none; display: block; }
.nav__mark-word { fill: none; stroke: var(--ink); }
.nav__mark-dot { fill: var(--c, var(--accent)); transition: fill .5s; }
/* the logo's baseline fills with scroll progress */
.nav__mark-fill { fill: none; stroke: var(--c, var(--accent)); stroke-width: 13; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .5s; }

/* the section in view, beside the logo */
.nav__where {
  margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  opacity: 0; transition: opacity .3s;
}
.nav__where b { font-weight: 400; color: var(--c, var(--accent)); margin-right: 6px; }
.nav__where.is-on { opacity: 1; animation: where-in .45s var(--ease); }
@keyframes where-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1099px) { .nav__where { display: none; } }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 16.5px; text-decoration: none; color: var(--muted);
  padding: 10px 16px; border-radius: var(--pill);
  transition: color .2s, background .2s;
}
.nav__links a:not(.nav__cta):hover, .nav__links a.is-active:not(.nav__cta) { color: var(--text); }
.nav__links a.is-active:not(.nav__cta) { background: var(--accent-soft); }
.nav__links .nav__cta { color: #fff; background: var(--accent); padding: 14px 24px; font-weight: 500; margin-left: 10px; }
/* the current section's pill (script.js): a faint violet edge, a beam circling it, gliding between links */
.nav__links.has-pill { position: relative; }
.nav__links.has-pill a { position: relative; z-index: 1; }
.nav__pill {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  border-radius: var(--pill); overflow: hidden; isolation: isolate; opacity: 0;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 24px -10px var(--accent);
  transition: transform .6s cubic-bezier(.34,1.3,.64,1), width .6s cubic-bezier(.34,1.3,.64,1), height .6s var(--ease), opacity .3s;
}
.nav__pill.is-on { opacity: 1; }
.nav__pill.is-still { transition: none; }
.nav__pill::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 320px; aspect-ratio: 1; z-index: -2;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 260deg, var(--accent) 335deg, transparent 360deg);
  transform: translate(-50%, -50%);
  animation: nav-beam 3s linear infinite;
}
.nav__pill::after {
  content: ''; position: absolute; inset: 1.5px; z-index: -1;
  border-radius: inherit; background: var(--accent-soft);
}
@keyframes nav-beam { to { transform: translate(-50%, -50%) rotate(360deg); } }
.nav__links.has-pill a.is-active:not(.nav__cta) { background: transparent; }
@media (max-width: 760px) {
  .nav__pill { display: none; }
  .nav__links.has-pill a.is-active:not(.nav__cta) { background: var(--accent-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__pill { transition: none; background: color-mix(in srgb, var(--accent) 45%, transparent); }
  .nav__pill::before { display: none; }
}
.nav__links .nav__cta:hover { color: #fff; background: var(--ink); }

.nav__toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative; border-radius: 50%;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, top .25s;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child  { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* ════ HERO ════ */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); }

/* the logo's "a." heads the page; its full stop is a square per job */
.hero__mark { position: relative; width: min(100%, 300px); margin: 0 0 clamp(20px, 3vw, 36px); }
.mark { display: block; width: 100%; height: auto; overflow: visible; }
.mark__a path { fill: none; stroke: var(--ink); stroke-width: 13; }
.mark__dot { cursor: pointer; outline: none; }
.mark__hit { fill: transparent; }
.mark__core {
  fill: var(--c);
  transform-box: fill-box; transform-origin: center;
  transition: transform .4s var(--spring);
}
.mark__halo {
  fill: var(--c); fill-opacity: .14; stroke: var(--c); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(.5);
  transition: opacity .3s, transform .45s var(--spring);
}
.mark__dot:hover .mark__core, .mark__dot:focus-visible .mark__core { transform: scale(1.25); }
.mark__dot:hover .mark__halo, .mark__dot:focus-visible .mark__halo { opacity: 1; transform: none; animation: none; }
.mark__tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 7px 13px; border-radius: var(--pill);
  opacity: 0; transition: opacity .2s;
  transform: translate(calc(var(--ax, .5) * -100%), calc(-100% - 26px));
}
.mark__tip.is-on { opacity: 1; }
.mark__tip b { font-weight: 400; color: var(--c-light); margin-right: 4px; }

.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 4.2vw, 64px); line-height: .92; letter-spacing: -0.05em;
  text-wrap: balance;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.hero__title span { display: block; color: var(--accent); text-wrap: balance; }

/* the text column holds the mark, the headline (it runs over the example's column) and
   the buttons; the example sits under the headline, on the right */
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr;
  gap: 0 clamp(32px, 5vw, 80px); align-items: start;
}
.hero__text { display: contents; }
.hero__mark, .hero__title { grid-column: 1 / -1; }
.hero__sub, .hero__actions { grid-column: 1; }
.hero__actions { align-self: start; }
.demo { grid-column: 2; grid-row: 3 / span 3; }
.hero__sub { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; max-width: 17em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the example: a buyer's email, the reply the AI drafted, and Approve.
   A visitor can paste their own email; it goes to /api/demo (script.js). */
.demo { margin: 0; position: relative; }
.demo::before {
  /* a soft violet glow behind the window */
  content: ''; position: absolute; inset: 12% 8% -6%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(20px);
}
.demo__window {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: var(--hard) var(--accent);
  overflow: hidden;
}
.demo__bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--on-band);
  font-family: var(--mono); font-size: 11px;
}
.demo__bar i { width: 9px; height: 9px; background: var(--docs-light); flex: none; }
.demo__bar i:nth-child(2) { background: var(--queries-light); }
.demo__bar i:nth-child(3) { background: var(--reports-light); }
.demo__bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo__bar b {
  margin-left: auto; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: var(--pill);
}
.demo__bar b.is-live { color: #fff; background: var(--reports); }
.demo__chat { display: grid; align-content: start; gap: 14px; padding: clamp(18px, 2.6vw, 28px); }

/* a conversation (after @kobra/conversation): the buyer's bubble on the left, the AI's on the
   right; back-to-back bubbles from one side join, with a tight corner where they meet */
.demo__mail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 86%; }
.demo__from, .demo__a::before {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 0 14px;
}
.demo__text {
  background: #ECE9EE; color: var(--ink);
  padding: 10px 15px; border-radius: 18px 18px 18px 8px;
  font-size: 15.5px; line-height: 1.45;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* the AI's answer: a short note, then the drafted reply, joined */
.demo__a {
  justify-self: end; max-width: 90%;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-size: 15.5px; line-height: 1.45;
}
.demo__a::before { content: 'Your AI'; margin-bottom: 1px; }
.demo__lead, .demo__a > p:not([class]) {
  background: var(--accent-soft); color: var(--ink);
  padding: 10px 15px; border-radius: 18px 18px 8px 18px; font-weight: 500;
}
.demo__reply {
  position: relative;
  background: var(--accent); color: #fff;
  padding: 10px 15px; border-radius: 18px 8px 8px 18px;
  font-size: 15px; line-height: 1.5; white-space: pre-line;
  max-height: 12em; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent;
}
.demo__a > :is(.demo__lead, p:not([class])):last-of-type,
.demo__a > .demo__reply:last-of-type { border-bottom-right-radius: 8px; }
/* send it? waiting for approval */
.demo__doc { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; font-size: 14px; width: 100%; }
.demo__name { min-width: 0; color: var(--muted); }
.demo__ok {
  flex: none; padding: 8px 16px; border: 0; border-radius: var(--pill); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none;
  color: #fff; background: var(--accent);
  transition: background .35s, color .35s;
}
.demo__ok:hover { background: var(--ink); }
.demo__ok span:last-child { display: none; }
.demo.is-approved .demo__ok { background: var(--reports); animation: ok-pop .45s var(--spring); }
.demo.is-approved .demo__ok span:first-child { display: none; }
.demo.is-approved .demo__ok span:last-child { display: inline; }
.demo.is-approved .demo__ok span:last-child::before { content: '✓ '; }
@keyframes ok-pop { 40% { transform: scale(1.12); } }
.demo__ok:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* once the answer is in, Approve calls for a press */
.demo.is-answered:not(.is-approved) .demo__ok { animation: ok-pulse 1.6s ease-out 1.2s infinite; }
@keyframes ok-pulse { 0% { box-shadow: 0 0 0 0 rgba(90,60,158,.45); } 100% { box-shadow: 0 0 0 10px rgba(90,60,158,0); } }
.demo__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin-top: 8px; font-size: 13.5px; color: var(--reports); font-weight: 500; width: 100%;
}
/* after Approve: the next step for the visitor */
.demo__call {
  flex: none; padding: 8px 16px; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: #fff; background: var(--ink); transition: background .3s;
}
.demo__call::after { content: ' →'; }
.demo__call:hover { background: var(--accent); }
.demo__call:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.js .demo__note { display: none; }
.js .demo.is-approved .demo__note { display: flex; animation: act-in .45s var(--ease) both; }

/* the cursor that shows the step: glides to Approve and presses it (script.js) */
.demo__cursor {
  position: absolute; left: 0; top: 0; z-index: 3; width: 26px; height: 26px;
  margin: -2px 0 0 -4px; pointer-events: none; opacity: 0;
  transition: transform 1s cubic-bezier(.45,.05,.2,1), opacity .35s ease;
}
.demo__cursor.is-on { opacity: 1; }
.demo__cursor svg { display: block; width: 100%; height: 100%; transform-origin: 15% 8%; transition: transform .14s ease; filter: drop-shadow(0 3px 4px rgba(34,22,42,.3)); }
.demo__cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.demo__cursor.is-press svg { transform: scale(.82); }
.demo__cursor::after {
  /* the press: a ring at the tip */
  content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -15px 0 0 -13px;
  border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.3);
}
.demo__cursor.is-tap::after { animation: press-ring .5s ease-out forwards; }
@keyframes press-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.2); } }

/* typing dots, while the AI works */
.demo__typing {
  display: none; justify-self: end; gap: 5px;
  background: var(--accent-soft); padding: 13px 16px; border-radius: 18px 18px 8px 18px;
}
.demo__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: typing 1s ease-in-out infinite; }
.demo__typing i:nth-child(2) { animation-delay: .15s; }
.demo__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* the typing dots sit where the reply will be, and the reply keeps its space while hidden,
   so the box doesn't change height when the reply arrives */
.demo__typing, .demo__a { grid-row: 2; grid-column: 1; align-self: start; }
.demo.is-thinking .demo__typing { display: flex; }
.demo.is-thinking .demo__a { visibility: hidden; }
.demo.is-answered .demo__a { animation: act-in .5s var(--ease) both; }
.demo__mail.is-new { animation: act-in .45s var(--ease) both; }

/* their own email: one quiet link that opens a box */
.demo__ask { border-top: 1px solid var(--rule); padding: 12px clamp(18px, 2.6vw, 28px); display: grid; gap: 10px; }
.demo__try {
  justify-self: start; border: 0; background: none; cursor: pointer; padding: 4px 0;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px;
}
.demo__try:hover { color: var(--ink); }
.demo__own { display: grid; gap: 8px; }
.demo__own textarea {
  width: 100%; resize: vertical; min-height: 76px;
  font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink);
  padding: 10px 14px; border: 0; border-radius: var(--r-sm);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule);
}
.demo__own textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.demo__own.is-short textarea { box-shadow: inset 0 0 0 1.5px var(--queries); }
.demo__send-row { display: flex; align-items: center; gap: 12px; }
.demo__fine { flex: 1; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.demo__send {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: var(--pill); color: #fff; background: var(--accent);
  transition: background .2s;
}
.demo__send:hover { background: var(--ink); }
.demo__send:disabled { opacity: .55; cursor: progress; }

@keyframes act-in { from { opacity: 0; transform: translateY(8px); } }

/* what your AI works with: a strip of pills that drifts and speeds up with the scroll */
.marquee {
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; list-style: none; flex: none; }
.marquee__list li {
  display: flex; align-items: center; gap: 10px;
  margin-right: 10px; padding: 10px 18px; white-space: nowrap;
  background: var(--paper-2); border-radius: var(--pill); box-shadow: inset 0 0 0 2px var(--ink);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
/* the bullets stay square: the logo's dot */
.marquee__list li::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex: none; }
.marquee__list li:nth-child(3n+2)::before { background: var(--queries); }
.marquee__list li:nth-child(3n)::before { background: var(--reports); }
.marquee__list li:hover { color: var(--text); }
/* hovering a pill shows what the AI does with it (script.js) */
.pill-card {
  position: fixed; z-index: 300; left: 0; top: 0; width: max-content; max-width: min(300px, calc(100vw - 32px));
  padding: 14px 16px 15px; border-radius: var(--r-sm);
  background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -24px rgba(34,22,42,0.45);
  pointer-events: none; opacity: 0; translate: 0 6px;
  transition: opacity .2s ease, translate .3s var(--ease);
}
.pill-card.is-on { opacity: 1; translate: 0 0; }
.pill-card__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.pill-card__label::before { content: ''; width: 7px; height: 7px; background: var(--dot, var(--accent)); }
.pill-card__ask {
  font-size: 14.5px; line-height: 1.4; color: #fff; background: var(--ink);
  padding: 9px 12px; border-radius: 14px 14px 4px 14px; margin-bottom: 8px;
}
.pill-card__does { font-size: 13.5px; line-height: 1.45; color: var(--ink); background: var(--accent-soft); padding: 9px 12px; border-radius: 14px 14px 14px 4px; }
.marquee__list li[data-ask] { cursor: default; }
.marquee:not(.is-moving) .marquee__track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
.marquee:not(.is-moving) .marquee__list { flex-wrap: wrap; row-gap: 10px; justify-content: center; }
.marquee:not(.is-moving) { -webkit-mask-image: none; mask-image: none; }

/* ════ BLOCKS ════ */
.block { padding: clamp(96px, 13vw, 200px) 0 0; }
.block--tight { padding-top: clamp(48px, 7vw, 96px); }

/* problem: one sentence on the page's paper, the hero's three dots as its full stop */
#problem {
  padding: clamp(96px, 13vw, 200px) 0 clamp(72px, 9vw, 128px);
}
.panel { position: relative; }
.panel::after {
  content: ''; position: absolute; right: 0; bottom: clamp(-96px, -7vw, -48px);
  width: 22px; height: 22px; background: var(--reports);
  box-shadow: -36px 0 0 var(--queries), -72px 0 0 var(--docs);
}
.statement {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(42px, 5.6vw, 88px); line-height: .9; letter-spacing: -0.055em;
  max-width: 10em; text-wrap: balance;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.statement__after { font-size: clamp(20px, 2.3vw, 30px); color: var(--muted); max-width: 24em; margin-left: auto; width: fit-content; }
.statement__after strong { font-weight: 500; color: var(--queries); }

/* what we build: three tiles hanging from the line, each with a bar of its colour */
.jobs {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px);
}
.jobs li {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  min-height: 340px; padding: clamp(24px, 3vw, 36px);
  background: var(--c-soft); border-top: 13px solid var(--c);
  transition: translate .45s var(--spring), background .35s, color .35s;
}
/* a drop from the line above to each tile */
.jobs li::before {
  content: ''; position: absolute; left: clamp(24px, 3vw, 36px); bottom: 100%; width: 3px;
  height: calc(clamp(48px, 6vw, 88px) - 22px + var(--drop, 0px)); margin-bottom: 13px; background: var(--c);
}
.jobs li:nth-child(2) { margin-top: 48px; --drop: 48px; }
.jobs li:nth-child(3) { margin-top: 96px; --drop: 96px; }
.jobs__n {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(80px, 7vw, 112px); line-height: .8; letter-spacing: -0.07em;
  color: var(--c);
}
.jobs h3 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -0.03em; color: var(--c); margin-bottom: 10px; }
.jobs p { font-size: 17px; max-width: 22em; }

/* why: three promises in giant type; the logo's square is each one's full stop */
.vows { list-style: none; display: grid; gap: clamp(4px, 1vw, 12px); margin-bottom: clamp(48px, 6vw, 80px); }
.vows li {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5vw, 80px); line-height: .98; letter-spacing: -0.055em;
  text-wrap: balance;
  transition: opacity .35s, color .35s;
}
.vows li::after {
  content: ''; display: inline-block; width: .18em; height: .18em; margin-left: .07em;
  background: var(--c);
}
.vows li:nth-child(2) { padding-left: 8%; }
.vows li:nth-child(3) { padding-left: 16%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats div {
  border-left: 3px solid var(--c);
  padding: 4px 0 4px clamp(16px, 2vw, 26px);
}
.stats dt {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(64px, 5.6vw, 88px); line-height: .9; letter-spacing: -0.06em;
  color: var(--c); margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stats dd { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* proof: rounded cards, the right column set lower */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); padding-bottom: 96px; }
.cards .card:nth-child(even) { translate: 0 96px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 250px; padding: clamp(24px, 3vw, 34px);
  background: var(--paper-2); border: 2px solid var(--ink);
  box-shadow: 0 0 0 var(--c);
  transition: box-shadow .35s var(--ease), translate .35s var(--ease);
}
.card::after {
  /* the card's colour as a square in the corner: the logo's dot */
  content: ''; position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; background: var(--c);
}
.card__top { display: flex; align-items: center; gap: 12px; margin-bottom: auto; padding-bottom: 32px; }
.card__flag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; line-height: 1.3; white-space: nowrap; border-radius: var(--pill);
}
.chip--done { background: var(--c-soft); color: var(--c); }
.chip--done::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: 7px; vertical-align: 0.12em;
}
.chip--open { box-shadow: inset 0 0 0 1px var(--rule); color: var(--muted); }
.card__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.card__desc { font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 26em; }
.card__safe {
  display: flex; gap: 10px; align-items: baseline; margin-top: 14px;
  font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--ink);
}
.card__safe::before { content: ''; flex: none; width: 9px; height: 9px; background: var(--c); translate: 0 -1px; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding-right: 34px; }
.card__tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--muted);
}
.card__goals { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.card__goals-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.card__goals dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card__goals dt { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.card__goals dd { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cards__note { font-size: 17px; color: var(--muted); margin: 0 0 clamp(20px, 3vw, 32px); max-width: 34em; }
.demo__cap { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: clamp(36px, 5vw, 64px); padding: clamp(20px, 3vw, 30px);
  background: var(--accent-soft); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.cta__text { flex: 1 1 22em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.cta__text strong { font-weight: 700; color: var(--ink); }
.built {
  margin-top: clamp(32px, 5vw, 64px); padding-top: 22px; border-top: 2px solid var(--ink);
  font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 60em;
}
.built__label {
  display: inline-block; margin-right: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}

/* process: four stops on the line itself (line.js runs it along the top of the list) */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px);
  padding-top: 0;
}
.steps li { position: relative; padding-top: 52px; }
.steps li::before {
  /* the stop: a square on the line */
  content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 34px; translate: 0 -50%;
  background: var(--paper); border: 3px solid var(--ink);
}
.steps li:nth-child(2)::before { background: var(--accent-soft); }
.steps li:nth-child(3)::before { background: var(--accent-light); }
.steps li:nth-child(4)::before { background: var(--accent); border-color: var(--accent); width: 46px; height: 46px; }
.steps__n {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--accent);
}
.steps h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.035em; }
html:not(.has-line) .steps { border-top: 13px solid var(--ink); }

/* your numbers: three inputs on the left, the yearly cost rolling up on the right */
.cost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.cost__form { display: grid; align-content: start; }
.cost__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px;
}
.cost__row:first-child { border-top: 2px solid var(--ink); }
.cost__row:last-child { border-bottom: 2px solid var(--ink); }
.cost__money { display: flex; gap: 8px; }
.cost input, .cost select {
  font: 600 18px/1 var(--body); color: var(--ink);
  background: var(--paper-2); border: 0; border-radius: var(--pill);
  box-shadow: inset 0 0 0 2px var(--ink); padding: 11px 16px; height: 48px;
  transition: box-shadow .2s;
}
.cost input { width: 6.5em; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.cost input::-webkit-inner-spin-button { opacity: .4; }
.cost select { cursor: pointer; padding-right: 12px; }
.cost input:hover, .cost select:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cost input:focus-visible, .cost select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.cost__result {
  background: var(--accent-soft); border: 2px solid var(--ink); box-shadow: var(--hard) var(--ink); container-type: inline-size;
  padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; align-items: flex-start;
}
.cost__label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cost__total {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  font-size: min(clamp(44px, 5vw, 64px), 100cqi / (var(--n, 9) * .62)); color: var(--ink); margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; max-width: 100%;
}
.cost__sum { display: inline-flex; align-items: center; }
.cost__hours { font-size: 18px; color: var(--muted); }
.cost__hours b { color: var(--ink); font-weight: 600; }
.cost__note { margin: auto 0 18px; padding-top: 28px; font-size: 18px; font-weight: 500; }
/* the rolling digits: a column of 0-9 per place, faded at the top and bottom */
.roll { position: relative; display: inline-grid; overflow: hidden; height: 1.15em; line-height: 1.15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%); }
.roll__size { visibility: hidden; grid-area: 1 / 1; }
.roll__stack { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; will-change: transform; }
.roll__stack span { height: 1.15em; display: flex; align-items: center; justify-content: center; }
.roll__mark { display: inline-block; margin: 0 -.05em; }

/* questions: a chat. Questions are grey bubbles on the left; each opens its answer as
   a violet reply on the right, signed with the "a." mark. Without JS every answer shows. */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq { position: relative; display: flex; flex-direction: column; gap: 12px; }
.faq__defs { position: absolute; }
.faq__q {
  align-self: flex-start; max-width: 85%;
  padding: 13px 20px; border: 0; cursor: pointer; text-align: left;
  border-radius: 22px 22px 22px 7px;
  background: #ECE9EE; color: var(--ink);
  font: 500 clamp(16.5px, 1.4vw, 18px)/1.4 var(--body); letter-spacing: -0.01em;
  transition: background-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.faq__q[aria-expanded="true"] { background: var(--paper-2); box-shadow: 0 1px 2px rgba(34,22,42,.08), 0 0 0 1px var(--rule); }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.faq__a { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; transform-origin: 100% 100%; }
.faq__a p {
  max-width: 85%; padding: 13px 20px;
  border-radius: 22px 22px 7px 22px;
  background: var(--accent); color: #fff;
  font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.45; letter-spacing: -0.01em;
}
.faq__avatar {
  flex: none; width: 34px; height: 34px; padding: 8px 7px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 12px 28px -12px rgba(34,22,42,.3);
}
/* with JS, only the open answer shows */
.js .faq__a[hidden] { display: none; }

/* your first pilot: pick a task on the left, the pilot appears on the right */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pilot__plain { font-size: 18px; max-width: 30em; }
.pilot__plain a { color: var(--accent); font-weight: 500; }
.js .pilot__plain { display: none; }
html:not(.js) .pilot { display: none; }
.pilot__form fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pilot__form label { position: relative; cursor: pointer; }
.pilot__form input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pilot__form label span {
  display: block; padding: 14px 22px; border-radius: var(--pill);
  font-size: 17px; font-weight: 500;
  background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ink);
  transition: background .2s, color .2s, box-shadow .2s, translate .2s;
}
.pilot__form label:hover span { box-shadow: inset 0 0 0 1.5px var(--accent); }
.pilot__form input:checked + span { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--ink), 5px 5px 0 var(--ink); translate: -3px -3px; }
.pilot__form input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the pilot: a page from a document */
.plan {
  background: var(--paper-2); border: 2px solid var(--ink);
  box-shadow: var(--hard) var(--accent);
  padding: clamp(22px, 3vw, 34px);
}
.plan__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.plan__top span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan__top b { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.03em; color: var(--accent); text-align: right; }
.plan__list { display: grid; margin-bottom: 22px; }
.plan__list div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.plan__list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.plan__list dd { font-size: 16px; line-height: 1.5; }
.plan__list dd.is-empty { color: var(--muted); }
.plan__list dd.is-new { animation: act-in .45s var(--ease) both; }

/* ════ CONTACT: a dark rounded panel ════ */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(96px, 13vw, 200px) 0 0;
  background: var(--band); color: #fff; padding: clamp(96px, 12vw, 180px) 0 clamp(48px, 6vw, 72px);
}
.contact__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(42px, 7vw, 112px); line-height: .9; letter-spacing: -0.055em;
  max-width: 9em; text-wrap: balance;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.contact__lead { color: var(--on-band); font-size: clamp(19px, 2vw, 24px); max-width: 30em; margin-bottom: 32px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(56px, 7vw, 88px); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px;
}
.contact__grid dt {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-band); margin-bottom: 6px;
}
.contact__grid dd { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.contact__grid div:last-child dd { font-weight: 400; color: var(--on-band); }
.contact__grid a { text-decoration: underline; text-decoration-color: var(--accent-light); text-underline-offset: 4px; }
.contact__grid a:hover { color: var(--accent-light); }

.copy {
  margin-left: 10px; vertical-align: 0.12em;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-band); background: none; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--pill);
  padding: 3px 10px; cursor: pointer; transition: border-color .2s, color .2s;
}
.copy:hover { color: #fff; border-color: var(--accent-light); }

.contact::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px circle at var(--gx, 88%) var(--gy, 0%), rgba(195,174,242,0.16), transparent 62%);
}

/* the "a." again on the band; a dot slides along its line and lands as the full stop */
.mark--band .mark__a path { stroke: var(--paper); }
.mark__traveller .mark__core { fill: var(--accent-light); }
.mark__traveller .mark__halo { fill: var(--accent-light); fill-opacity: .2; stroke: var(--accent-light); }
.contact__mark {
  --w: 230px;
  width: var(--w); pointer-events: none;
  /* stands on the contact grid's top rule without adding height */
  margin: calc(var(--w) * -0.5577) 0 calc(var(--w) * -0.0577) auto;
}
.contact__mark.is-landed .mark__halo { animation: halo 4.2s ease-in-out .2s infinite; }

/* the founder's face: eyes follow the cursor, drag to squish (script.js) */
.contact .wrap { position: relative; }
.founder {
  position: absolute; top: 0; right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.founder__face { width: clamp(200px, 21vw, 260px); overflow: visible; touch-action: none; }
.founder__face path, .founder__face rect { stroke-linejoin: round; }
.founder__disc { fill: var(--accent); }
.founder { --skin: #B07650; --lip: #DDA083; }   /* drawn from the founder's photo */
.founder__body, .founder__hair, .founder__pupil { fill: var(--ink); }
.founder__skin { fill: var(--skin); }
.founder__shirt { fill: var(--paper-2); }
.founder__shade { fill: rgba(34,22,42,.28); }
/* the demo hand that drags the face (script.js) */
.founder__ghost { pointer-events: none; opacity: 0; transition: transform .9s cubic-bezier(.45,.05,.2,1), opacity .35s ease; }
.founder__ghost.is-on { opacity: 1; }
.founder__ghost > g { transform-origin: 2px 2px; transition: transform .14s ease; }
.founder__ghost.is-press > g { transform: scale(.82); }
.founder__ghost path { fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.founder__head, .founder__ear { fill: var(--skin); stroke: var(--ink); stroke-width: 13; }
.founder__ear { stroke-width: 8; }
.founder__nose { fill: none; stroke: var(--ink); stroke-width: 5; }
.founder__white { fill: var(--paper-2); stroke: var(--ink); stroke-width: 5; }
.founder__brow { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: square; }
.founder__mouth { fill: none; stroke: var(--lip); stroke-width: 6; stroke-linecap: square; }
.founder figcaption { text-align: center; }
.founder__name { display: block; margin-bottom: 4px; font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.founder__label {
  display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light);
}
.founder__hint { display: block; font-size: 14px; color: var(--on-band); }
.founder.is-live .founder__face { cursor: grab; }
.founder.is-dragging .founder__face { cursor: grabbing; }

/* ─── toast ─── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 400;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ════════════════════════════════════════════════════
   MOTION
   Driven by script.js. Hidden starting states only apply under html.js and
   with no reduced-motion preference, so the page reads in full without
   JavaScript and for anyone who turns motion off.
════════════════════════════════════════════════════ */
/* proof cards: a soft spotlight follows the cursor */
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--c, var(--accent)) 10%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover::before { opacity: 1; }
  /* tiles lift; the example window straightens */
  .jobs li:hover { translate: 0 -8px; background: var(--c); color: #fff; }
  .jobs li:hover :is(h3, .jobs__n) { color: #fff; }
  .card:hover { translate: -6px -6px; box-shadow: 12px 12px 0 var(--c); }
  .pilot__form label:hover span { translate: -2px -2px; box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--accent); }
  /* point at one promise and the others step back */
  .vows:hover li:not(:hover) { opacity: .28; }
  .vows li:hover { color: var(--c); }
  .faq__q:hover { background: #E3DFE6; }
  .faq__q[aria-expanded="true"]:hover { background: var(--paper-2); }
}

/* live chips keep a slow pulse */
.chip--live::before { animation: live-pulse 2.6s ease-out infinite; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 6px transparent; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s var(--ease) var(--d, 0s), transform .95s var(--ease) var(--d, 0s);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* the staircase climbs: each step grows up from the floor */
  .js .steps li.reveal { transform: translateX(-24px); }
  .js .steps li.reveal.is-in { transform: none; }

  /* the marks: the line and the a draw themselves, then the dots pop in */
  .js .hero__mark.reveal, .js .contact__mark.reveal { opacity: 1; transform: none; }
  .js .mark__a path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) var(--d, .3s); }
  .js .is-in .mark__a path { stroke-dashoffset: 0; }
  .js .hero__mark .mark__pop {
    transform-box: fill-box; transform-origin: center; transform: scale(0);
    transition: transform .7s var(--spring) calc(1.15s + var(--i) * 110ms);
  }
  .js .hero__mark.is-in .mark__pop { transform: none; }
  .js .hero__mark.is-in .mark__halo { animation: halo 4.2s ease-in-out calc(2.4s + var(--i) * .6s) infinite; }

  /* the example: the window rises in */
  .js .demo .demo__window { translate: 0 40px; opacity: 0; transition: translate 1s var(--ease) .3s, opacity .6s ease .3s; }
  .js .demo.is-in .demo__window { translate: none; opacity: 1; }

  .js .contact__mark .mark__traveller { opacity: 0; transition: opacity .8s ease .9s; }
  .js .contact__mark.is-in .mark__traveller { opacity: 1; }
}

@keyframes halo {
  0%, 70%, 100% { opacity: 0; transform: scale(.5); }
  20% { opacity: .7; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.5); }
}

/* ════ RESPONSIVE ════ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__sub, .hero__actions, .demo { grid-column: 1; }
  .demo { grid-row: auto; margin-top: 48px; max-width: 560px; }
  .pilot { grid-template-columns: minmax(0, 1fr); }
  .cost { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: 1fr; }
  .jobs li:nth-child(n) { margin-top: 0; min-height: 0; }
  .jobs li + li::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .steps h3 { font-size: clamp(17px, 3.4vw, 24px); }
  .faq-wrap { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid div:last-child { grid-column: 1 / -1; }
  .founder { position: static; flex-direction: row; justify-content: flex-start; gap: 20px; margin-bottom: 40px; }
  .founder__face { width: 170px; }
  .founder figcaption { text-align: left; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav.is-scrolled .nav__inner { padding: 0 6px 0 20px; transform: translateY(8px); }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper-2); border-radius: var(--r);
    box-shadow: 0 0 0 1px var(--rule), 0 24px 40px -24px rgba(34,22,42,0.45);
    padding: 10px;
    display: none;
  }
  /* .has-pill (desktop) sets position: relative; the phone menu must stay a dropdown */
  .nav__links, .nav__links.has-pill { position: absolute; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 17px; color: var(--text); }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }

  .cards { grid-template-columns: 1fr; padding-bottom: 0; }
  .cards .card:nth-child(even) { translate: none; }
  .demo__window { box-shadow: 6px 6px 0 var(--accent); }
  .card { min-height: 0; }
  .card__top { padding-bottom: 24px; }
  .jobs li { min-height: 0; gap: 28px; }
  .demo__mail, .demo__a { max-width: 100%; }
  .demo__send-row { flex-direction: column; align-items: stretch; }
  .hero__mark { width: min(100%, 240px); }
  .mark__tip { font-size: 11px; }
  .panel::after { width: 16px; height: 16px; box-shadow: -26px 0 0 var(--queries), -52px 0 0 var(--docs); }
  .stats { gap: 10px; }
  .stats div { padding: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(n+3)::before { display: none; }
  .steps li:nth-child(n+3) { padding-top: 0; }
  .vows li:nth-child(n) { padding-left: 0; }
  .card::after { width: 24px; height: 24px; }
  .contact__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact__mark { --w: 190px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html, html.is-ready { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════
   THE ONE LINE (line.js)
   An SVG the size of the page, under the text and over the section backgrounds:
   every .wrap sits above it, the contact band below it.
════════════════════════════════════════════════════ */
.oneline {
  position: absolute; left: 0; top: 0; z-index: 1;
  pointer-events: none; overflow: visible;
}
.oneline__path { fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.oneline__dot { fill: var(--c, var(--accent)); transition: fill .4s; }
.oneline__halo {
  fill: none; stroke: var(--c, var(--accent)); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: halo 2.6s ease-in-out infinite;
}
.oneline__head { transition: opacity .5s; }
.oneline__head.is-done { opacity: 0; }
.has-line .wrap, .has-line .marquee { position: relative; z-index: 2; }
.has-line .nav { z-index: 200; }
/* pointing at the line: it can be pulled */
html.is-on-line, html.is-on-line body { cursor: grab; }
html.is-pulling, html.is-pulling * { cursor: grabbing !important; user-select: none; }
@media (prefers-reduced-motion: reduce) {
  .oneline__head { display: none; }
}

/* ════════════════════════════════════════════════════
   THE FLOCK, IN WINDOWS ON THE LINE (flock.js)
   Each section's label and heading share a .head with a small dark window on the right;
   the line runs under it, so the window sits on the line.
════════════════════════════════════════════════════ */
.head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 64px);
  align-items: end; margin-bottom: clamp(48px, 6vw, 88px);
}
.head > :not(.flock) { grid-column: 1; }
.head .block__title, .head .vows, .head .statement { margin-bottom: 0; }
.head .vows li { font-size: clamp(34px, 5.4vw, 84px); }
.head .vows li:nth-child(2) { padding-left: 5%; }
.head .vows li:nth-child(3) { padding-left: 10%; }
.flock {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  position: relative; width: clamp(180px, 22vw, 300px); aspect-ratio: 1;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(195,174,242,0.16), transparent 70%),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--band);
  border: 2px solid var(--ink); box-shadow: var(--hard) var(--accent);
  overflow: hidden; cursor: crosshair;
}
.flock canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html:not(.js) .flock { display: none; }
.panel .flock { box-shadow: var(--hard) var(--queries); }
#problem .head { margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 760px) {
  .head { grid-template-columns: minmax(0, 1fr); }
  .flock { grid-column: 1; grid-row: auto; width: 100%; aspect-ratio: 16 / 10; margin-top: 28px; box-shadow: 6px 6px 0 var(--accent); }
}
@media print { .flock { display: none !important; } }

@media print {
  .oneline { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .mark__dots, .contact__mark, .marquee, .toast, .copy, .demo__ask, .pilot__form, .plan__wa, .cost__wa { display: none !important; }
}
