/* Upthink: one continuous, moving environment.
   The background is a single canvas (js/atmosphere.js) that shifts mood by section:
   night → day → dusk → dawn → day → latte → day. Text colours follow each section's tone.
   Palette: matcha green, matcha-latte cream, and peach as the one accent. */

:root {
  color-scheme: dark;

  --ink: #0f1611;
  --ink-2: #19251b;
  --paper: #eef0e0;
  --white: #ffffff;
  --accent-dark: #ffb894;     /* peach on dark */
  --accent-ai: #ffc4a3;       /* the most vivid accent, reserved for the AI chapter */
  --accent-light: #3c6530;    /* deep matcha on light (AA) */
  --line: #f29b74;            /* the continuous line, buttons, underlines */
  --on-line: #1d120c;         /* text on a --line button */
  --day-fg: #18221a;
  --day-muted: #44513f;
  --latte: #f6f4ea;           /* the Clients section: milk swirling into matcha */
  --latte-ink: #2f5a2a;       /* deep green line and accent on latte */

  /* Tone tokens: dark by default, light under [data-tone="day"] and [data-tone="latte"]. */
  --fg: #f3f5ee;
  --muted: rgba(236, 240, 228, 0.84);   /* green reads bright, so secondary text needs this much lift */
  --accent: var(--accent-dark);
  --rule: rgba(255, 255, 255, 0.14);
  --node-fill: var(--ink);

  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --display: var(--sans);
  --gutter: clamp(24px, 4vw, 56px);
  --max: 1360px;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-tone="dusk"], [data-tone="dawn"] { --accent: var(--accent-ai); }

[data-tone="day"] {
  --fg: var(--day-fg);
  --muted: var(--day-muted);
  --accent: var(--accent-light);
  --rule: rgba(24, 34, 26, 0.14);
  --node-fill: var(--paper);
}

[data-tone="matcha"] {
  --fg: #142018;
  --muted: #34442f;
  --accent: #2d5826;
  --rule: rgba(20, 32, 24, 0.2);
  --node-fill: #d3e2b2;
}

[data-tone="latte"] {
  --fg: #172019;
  --muted: #3f4c3b;
  --accent: var(--latte-ink);
  --rule: rgba(23, 32, 25, 0.18);
  --node-fill: var(--latte);
}

/* Editorial serif option for headlines (open the page with #serif). */
.serif { --display: var(--serif); }
.serif .hero__title, .serif .title { font-weight: 300; letter-spacing: -0.02em; }
.serif .hero__title { line-height: 1.02; }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: linear-gradient(to bottom, #17251b 50%, #141d17 50%);
  overscroll-behavior-y: none;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Layers ───────────────────────────────────────────── */

/* Order, back to front: surfaces (section colours, scroll with the page) → texture canvas
   (fixed, soft-light) → the line → content. .page deliberately has no z-index, so these
   layers share one stacking context and the canvas can blend with the surfaces below it. */
.surfaces { position: absolute; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; background-repeat: no-repeat; }
.atmos {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;  /* stable when mobile browser bars move */
  z-index: 1; pointer-events: none;
  display: block; mix-blend-mode: soft-light;
}
.page { position: relative; overflow-x: clip; }
[data-tone] { color: var(--fg); transition: color .6s var(--ease); }
.header, .footer, main > section > * { position: relative; z-index: 3; }
.header { z-index: 20; }   /* above the page content, so the open menu is never covered */

/* No WebGL: the surfaces alone carry the colours; only the drifting texture is missing. */
.no-gl .atmos { display: none; }
.i18n-wait .page, .i18n-wait .atmos { visibility: hidden; }   /* see the language check in index.html */

/* ── Type ─────────────────────────────────────────────── */

.eyebrow {
  font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.title--xl { font-size: clamp(2.1rem, 5vw, 4.5rem); margin-bottom: 2.25rem; }
.accent { color: var(--accent); }
.body { max-width: 34em; color: var(--muted); font-size: 1.0625rem; }
.body--lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--fg); max-width: 30em; }

/* ── Actions ──────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 0.9em;
  min-height: 48px; padding: 0 1.5em;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 400;
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
button.btn { font-family: inherit; line-height: inherit; border: 0; cursor: pointer; }   /* <button> does not inherit these like a link does */
.btn--solid { background: var(--line); color: var(--on-line); }
.btn--solid:hover { filter: brightness(1.08) saturate(1.05); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.link {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 48px;
  font-size: 0.9375rem; text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.link:hover .arrow { transform: translateY(3px); }

/* ── Header ───────────────────────────────────────────── */

.header {
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem);
  padding-top: 28px; padding-bottom: 28px;
}
.header__logo { display: block; color: var(--white); }
.header__logo svg { height: 26px; width: auto; aspect-ratio: 1032 / 243; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.nav a { font-size: 0.875rem; font-weight: 400; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.header__cta { min-height: 42px; font-size: 0.875rem; white-space: nowrap; }
.lang { display: flex; align-items: center; gap: 2px; height: 42px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); }
.lang button {
  min-width: 40px; min-height: 34px; padding: 0 0.7em; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--muted); font: inherit; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--fg); }
.header__menu { display: none; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: min(820px, calc(100svh - 104px));
  padding-top: clamp(48px, 10vh, 120px);
  padding-bottom: clamp(56px, 12vh, 140px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.1rem, 8.4vw, 8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.hero__title .line { display: block; }
.hero__lede { max-width: 26em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.hero__stats { display: grid; gap: 1.75rem; padding-bottom: 0.4rem; }
.hero__stats li { display: grid; gap: 0.35rem; padding-left: 1.1rem; border-left: 1px solid var(--rule); max-width: 14.5rem; }
.hero__stats strong {
  font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 3.4vw, 3rem); color: var(--accent);
}
.hero__stats span { font-size: 0.875rem; line-height: 1.4; color: var(--muted); text-wrap: balance; }

/* ── Services (day) ───────────────────────────────────── */

.services {
  display: grid; gap: 56px;
  padding-top: clamp(140px, 20vh, 240px);
  padding-bottom: clamp(140px, 20vh, 240px);
}
.service__no {
  display: block; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted);
  margin-bottom: 0.6rem; transition: color .4s var(--ease);
}
.service.is-reached .service__no { color: var(--accent); }
.service__name { font-weight: 400; font-size: 1.125rem; line-height: 1.25; margin-bottom: 0.5rem; }
.service__text { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.service__text a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* One partner, one invoice: how IT management is priced, with licences and security alongside. */
.plan {
  grid-column: 1 / -1; display: grid; gap: 2.5rem;
  margin-top: clamp(24px, 4vw, 56px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule);
}
.plan__title {
  font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em;
  font-size: clamp(1.9rem, 2.9vw, 2.6rem); margin-bottom: 1.25rem; text-wrap: balance;
}
.plan__intro .body { margin-bottom: 1rem; }
.plan__items { display: grid; gap: 1rem; }
.plan__item {
  display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--rule); border-radius: 18px; background: rgba(255, 255, 255, 0.28);
}
.plan__tag { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.plan__name { font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
.plan__text { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* ── Split layouts (AI, approach) ─────────────────────── */

.split { display: grid; gap: 48px; }
/* ── AI chapter (dusk) ────────────────────────────────── */

.ai { padding-top: clamp(140px, 20vh, 240px); padding-bottom: clamp(56px, 8vw, 110px); }
.ai-row { display: grid; gap: 0 1.5rem; }
.ai-row__body { min-width: 0; }
.ai__intro { padding-bottom: clamp(72px, 10vw, 140px); }
.ai__intro .body--lead { max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }

.credential {
  margin-top: 2.5rem; padding-top: 1.5rem; max-width: 34em;
  border-top: 1px solid var(--rule);
  font-family: var(--display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.4; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.credential__label {
  display: block; margin-bottom: 0.75rem;
  font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
}
html[lang="et"] .principles { display: none; }   /* removed from the Estonian version only */
.principles { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2.25rem; max-width: 46rem; }
.principles li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9375rem; color: var(--muted); }
.principles li::before {   /* the triangle from the wordmark's i */
  content: ""; flex: none; width: 9px; height: 8px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.stages { display: grid; }
.stage { position: relative; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule); }
.stage__ghost {   /* oversized, barely-there stage number for scale */
  position: absolute; right: 0; top: clamp(8px, 2vw, 24px); z-index: -1;
  font-family: var(--display); font-weight: 300; line-height: 0.8; letter-spacing: -0.04em;
  font-size: clamp(9rem, 24vw, 22rem); color: rgba(255, 255, 255, 0.045);
  pointer-events: none; user-select: none; font-variant-numeric: tabular-nums;
}
.stages { position: relative; z-index: 2; }  /* own stacking context keeps the ghost numbers behind the text */
.stage__label { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.25rem; }
.stage__no {
  font-family: var(--display); font-size: clamp(2.25rem, 3vw, 3rem); font-weight: 300; line-height: 1;
  color: var(--muted); transition: color .5s var(--ease); font-variant-numeric: tabular-nums;
}
.stage.is-reached .stage__no { color: var(--accent); }
.stage__verb { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.stage__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.stage__text { max-width: 36em; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.55; }
.stage__detail { display: grid; gap: 2.5rem; margin-top: 2.75rem; }
.stage__sub { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.stage__list { display: grid; gap: 0.7rem; }
.stage__list li { position: relative; padding-left: 1.4rem; font-size: 0.9375rem; color: var(--muted); max-width: 32em; }
.stage__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 1px; background: var(--accent); }
.stage__example p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); max-width: 30em; }
.stage__example { border-top: 1px solid var(--rule); padding-top: 1.25rem; }

.stage__more { margin-top: 2rem; }

.footnote { margin-top: 2rem; font-size: 0.8125rem; color: var(--muted); }

/* ── Training (matcha): the first AI course, as a section of its own ── */

.training { padding-top: clamp(170px, 18vw, 250px); padding-bottom: clamp(100px, 12vw, 170px); display: grid; gap: clamp(48px, 6vw, 88px); }
.training__head { display: grid; gap: 2rem; }
.training__title {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.045em; line-height: 0.9;
  font-size: clamp(3.75rem, 10vw, 9rem);
}
.training__lead { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 20em; }
.training__facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.training__facts li {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 1em; border-radius: 999px;
  border: 1px solid var(--rule); font-size: 0.875rem; color: var(--fg);
}
.training__price {
  display: grid; gap: 0.7rem; justify-items: start;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.training__amount {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.25rem, 3.6vw, 3.1rem);
}
.training__amount span { font-size: 0.42em; letter-spacing: 0; color: var(--muted); }
.training__per { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.training .actions { margin-top: 2rem; }

/* What's included, and the practical details. */
.training__details { display: grid; gap: 2.5rem; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.training__sub { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
.training__list { display: grid; gap: 0.75rem; }
.training__list li { position: relative; padding-left: 1.6rem; font-size: 1.0625rem; line-height: 1.45; max-width: 30em; }
.training__list li::before {   /* the triangle from the wordmark's i */
  content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 8px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* The day as a short journey: five stops on one line. */
.track { display: grid; gap: 1.5rem; position: relative; }
.track li { position: relative; display: grid; gap: 0.4rem; padding-left: 2.75rem; }
.track li::before {   /* the line between stops */
  content: ""; position: absolute; left: 0.8rem; top: 1.9rem; bottom: -1.5rem; width: 1px; background: var(--accent); opacity: 0.35;
}
.track li:last-child::before { display: none; }
.track__no {
  position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.6875rem; font-variant-numeric: tabular-nums;
  background: var(--accent); color: #eef0e0;
}
.track strong { font-weight: 400; font-size: 1.125rem; line-height: 1.3; }
.track li > span:last-child { color: var(--muted); font-size: 0.9375rem; }

/* ── Approach (day): the first thing after the opening ── */

.approach { padding-top: clamp(150px, 18vw, 260px); padding-bottom: 0; }
.approach .title { font-size: clamp(2rem, 4.4vw, 4.1rem); margin-bottom: 0; }
.approach + .services { padding-top: clamp(110px, 14vh, 170px); }
.approach__lead {
  font-family: var(--display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.45; letter-spacing: -0.01em;
  color: var(--fg); max-width: 27em; text-wrap: pretty;
}
.approach__next { margin-top: 2.25rem; }

/* ── Founders (day, with a soft glow in the background) ── */

.founders { display: grid; gap: 48px; align-items: end; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(16px, 3vw, 40px); }
.founders__copy .body { max-width: 30em; }
.founders__photo { margin: 0; justify-self: center; width: min(100%, 640px); }
.founders__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 781;
  /* they rise out of the field: the photo fades out at the waist, and at the right edge where the original frame cuts the arm */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to left, transparent 0, #000 7%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to left, transparent 0, #000 7%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

.founders__caption {
  margin-top: 0.75rem; text-align: center;
  font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.founders__caption span { display: block; margin-bottom: 0.4rem; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; color: var(--fg); font-weight: 400; }

/* ── Clients (latte): one voice at a time, on one screen ── */

.clients { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(64px, 8vw, 120px); }
.clients__head .title { margin-bottom: 0; }

/* The company names are the way in: the speaking one is underlined, and the underline doubles as
   the timer before the next voice arrives. */
.client-names { display: flex; flex-wrap: wrap; gap: 0.4rem clamp(1rem, 2vw, 2rem); margin-top: 1.75rem; }
.client-names button {
  position: relative; padding: 6px 0 8px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: clamp(0.6875rem, 0.8vw, 0.75rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color .3s var(--ease);
}
.client-names button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--latte-ink); transform: scaleX(0); transform-origin: left;
}
.client-names button:hover { color: var(--fg); }
.client-names button[aria-selected="true"] { color: var(--fg); }
.client-names button[aria-selected="true"]::after { transform: scaleX(1); }
.voices.is-playing .client-names button[aria-selected="true"]::after { animation: voice-timer var(--dur, 8s) linear both; }
.voices.is-paused .client-names button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes voice-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* All voices share one spot, so the section is as tall as the longest and never jumps. */
.voices__body { margin-top: clamp(40px, 6vw, 80px); }
.voices__stack { display: grid; }
.voice {
  grid-area: 1 / 1; margin: 0; display: grid; align-content: start; gap: 1.25rem; max-width: 62rem;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.voice.is-active { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
/* The big phrase rises in word by word; the full quote and the name follow just after. */
.voice__phrase .w { display: inline-block; }
.js .voice__phrase .w {
  opacity: 0; transform: translateY(0.45em);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.js .voice.is-active .voice__phrase .w {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease) calc(.15s + var(--i, 0) * 55ms), transform .8s var(--ease) calc(.15s + var(--i, 0) * 55ms);
}
.js .voice .voice__full, .js .voice figcaption { opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.js .voice.is-active .voice__full, .js .voice.is-active figcaption { opacity: 1; transform: none; transition: opacity .7s var(--ease) .55s, transform .8s var(--ease) .55s; }
.js .voice.is-active figcaption { transition-delay: .7s; }
/* Scroll drift: the phrase moves a touch faster than the page. */
.voices__stack { transform: translateY(calc(var(--sp, 0) * -28px)); }
.voice__phrase {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2rem, 4.8vw, 4.4rem); max-width: 16em; text-wrap: balance;
}
.voice__full { margin: 0; max-width: 42em; font-size: clamp(0.9375rem, 1.1vw, 1.0625rem); line-height: 1.6; color: var(--muted); }
.voice__full .mark { color: var(--fg); }
.voice figcaption { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.875rem; }
.quote__name { color: var(--fg); font-weight: 400; }
.quote__role { color: var(--muted); }

.voices__nav { display: flex; align-items: center; gap: 1rem; margin-top: clamp(28px, 4vw, 48px); }
.voices__btn {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%; background: none; color: var(--fg);
  font: inherit; font-size: 1.0625rem; cursor: pointer; transition: border-color .25s var(--ease);
}
.voices__btn:hover { border-color: var(--fg); }
.voices__count { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }
.voices__count b { font-weight: 400; color: var(--fg); }

[data-tone="latte"] .mark { background-image: linear-gradient(var(--latte-ink), var(--latte-ink)); }

/* The key phrase in each quote: underlined by the line as the quote arrives. */
.mark {
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: 0.08em;
}

.contact { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(96px, 12vw, 180px); }

/* The footer is a calm dark landing: tall enough that the light-to-dark change has room to
   finish before the wordmark, with a hairline that fades out at both ends instead of a hard rule. */
.footer {
  display: grid; gap: 28px;
  padding-top: clamp(150px, 16vw, 240px); padding-bottom: 44px;
  font-size: 0.8125rem; color: var(--muted);
}
/* Two rows that mirror each other: brand on the left with contact columns on the right,
   then the legal line split the same way, so every element sits on the same grid. */
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start;
  column-gap: clamp(56px, 8vw, 128px); row-gap: 2.25rem;
}
.footer__brand { display: grid; gap: 0.9rem; align-content: start; }
.footer__logo { height: 22px; width: auto; aspect-ratio: 1032 / 243; color: var(--white); }
.footer__tag { font-family: var(--display); font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--muted); }
.footer__col { display: grid; gap: 0.45rem; align-content: start; font-style: normal; font-size: 0.9375rem; }
.footer__label { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.footer__col a { color: var(--fg); text-decoration: none; width: fit-content; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer__legal {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 1.5rem;
  padding-top: 24px;
}
.footer__legal::before {   /* a hairline that fades out at both ends */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 12%, var(--rule) 88%, transparent);
}

/* ── Continuous line ──────────────────────────────────── */

.journey__extra { fill: none; stroke: var(--line); stroke-width: 1; stroke-linecap: round; opacity: .55; }
.journey__end { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0; transition: opacity .4s var(--ease); }
.journey__end.is-on { opacity: .7; }

.journey {
  position: absolute; inset: 0 auto auto 0;
  z-index: 2; pointer-events: none; overflow: visible;
}
.journey__path {
  fill: none; stroke: var(--line); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.journey__node { stroke: var(--line); stroke-width: 1.25; opacity: .6; transition: fill .35s var(--ease), opacity .35s var(--ease); }
.journey__node--day { fill: var(--paper); }
.journey__node--night { fill: var(--ink); }
.journey__node.is-on { fill: var(--line); opacity: 1; }
.journey__head { fill: var(--line); opacity: 0; transition: opacity .3s var(--ease); }
.journey__head.is-on { opacity: 1; }
.journey__tip { fill: var(--line); opacity: 0; transform: translateY(6px); transform-box: fill-box; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.journey__tip.is-on { opacity: 1; transform: none; }

/* ── Layouts: wide ────────────────────────────────────── */

@media (min-width: 1200px) {
  .services { grid-template-columns: minmax(300px, 360px) 1fr; gap: 64px; align-items: start; }
  .services__intro .title { font-size: clamp(2rem, 2.7vw, 2.6rem); }
  .service-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; padding-top: 120px; }
  /* The six steps rise left to right; the line threads their nodes. */
  .service { padding-top: 34px; }
  .service:nth-child(1) { margin-top: 76px; }
  .service:nth-child(2) { margin-top: 62px; }
  .service:nth-child(3) { margin-top: 50px; }
  .service:nth-child(4) { margin-top: 30px; }
  .service:nth-child(5) { margin-top: 12px; }
  .service:nth-child(6) { margin-top: 0; }
  .service__name { font-size: 1.0625rem; }
  .service__text { font-size: 0.875rem; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(96px, 10vw, 180px); align-items: start; }
  .plan { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .plan__items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  /* The headline gets the wider column so it holds its two lines; the text starts level with it. */
  .approach.split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(64px, 7vw, 120px); }
  .approach .split__b { padding-top: 2.6rem; }

  /* AI chapter: label | lane for the line | content */
  .ai-row { grid-template-columns: 200px 120px minmax(0, 1fr); gap: 0; }
  .ai-row__body { grid-column: 3; }
  .stage__label { grid-column: 1; flex-direction: column; gap: 0.6rem; margin: 0.35rem 0 0; }
  .stage { border-top: 0; }
  .stage .ai-row__body { border-top: 1px solid var(--rule); padding-top: clamp(40px, 4vw, 56px); }
  .stage__label { padding-top: clamp(40px, 4vw, 56px); }
  .stage__detail { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }

  .training__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; column-gap: clamp(64px, 8vw, 140px); }
  .training__details { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(64px, 8vw, 140px); }
  .track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
  .track li { padding-left: 0; padding-top: 2.75rem; }
  .track li::before { left: 1.9rem; right: -28px; top: 0.8rem; bottom: auto; width: auto; height: 1px; }
  .founders { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(64px, 8vw, 140px); }
  .founders__copy { padding-bottom: clamp(80px, 9vw, 140px); }
}

/* ── Layouts: narrow (tablet + phone) ─────────────────── */

@media (max-width: 1199.98px) {
  .service { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
  .service:last-child { border-bottom: 1px solid var(--rule); }
  .plan { border-top: 0; padding-top: 0; margin-top: clamp(64px, 9vw, 104px); }   /* the list already ends with a rule; no second one */
  .stage__detail { grid-template-columns: 1fr; }
}

@media (min-width: 760px) and (max-width: 1199.98px) {
  .plan__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { display: grid; grid-template-columns: 3rem minmax(0, 15rem) minmax(0, 1fr); gap: 0 1.5rem; align-items: center; }   /* number, name and text centred in the row, also when the text wraps */
  .service__no, .service__name { margin: 0; }
  /* One shared grid for all six rows: each column is as wide as its widest entry and the
     gaps between number, name and text are the same everywhere. */
  @supports (grid-template-columns: subgrid) {
    .service-list { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3rem); }
    .service { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: normal; }   /* normal = use the list's gap */
  }
  .split { grid-template-columns: 1fr; }
}

/* Below 1180px the full menu no longer fits on one line, so it folds into the Menu button. */
@media (max-width: 1179.98px) {
  .nav, .header__cta { display: none; }
  .header { gap: 0.6rem; }
  .lang { margin-left: auto; }
  .header__menu {
    order: 3; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 1.15em;
    background: none; color: inherit; border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px; font: inherit; font-size: 0.875rem; font-weight: 400; line-height: 1; cursor: pointer;
  }
  .header.is-open .nav {
    display: block; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 8px 20px;
  }
  .header.is-open .nav ul { flex-direction: column; gap: 0; }
  .header.is-open .nav a { display: block; padding: 14px 0; font-size: 1rem; }
}

@media (max-width: 899.98px) {
  /* Small screens: the numbers sit above the buttons, so the line leaving "Get to know us" has a clear run. */
  .hero__copy { display: contents; }
  .hero__copy > * { position: relative; z-index: 3; }   /* keep them above the background once the wrapper is gone */
  .hero__title { order: 1; } .hero__lede { order: 2; } .hero__stats { order: 3; } .hero__actions { order: 4; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2.25rem; padding-bottom: 0; }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 759.98px) {
  .client-names { gap: 0.2rem 1.25rem; }
  .client-names button { font-size: 0.6875rem; }
  .hero { min-height: min(680px, calc(100svh - 100px)); padding-top: 24px; }
  .split { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; }
}

/* ── Motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero__title .line, .hero__lede, .hero__actions, .hero__stats { animation: enter 1.1s var(--ease) both; }
  .hero__title .line:nth-child(2) { animation-delay: .1s; }
  .hero__lede { animation-delay: .22s; }
  .hero__actions { animation-delay: .32s; }
  .hero__stats { animation-delay: .5s; }

  .atmos { animation: fade-in 1.6s var(--ease) both; }
  .js .journey { animation: fade-in .8s var(--ease) 1s both; }
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Founders come into focus: muted and soft, then sharp and in colour. */
  .js [data-focus] img { filter: grayscale(1) blur(10px); opacity: .55; transform: translateY(28px); transition: filter 1.8s var(--ease), opacity 1.4s var(--ease), transform 1.8s var(--ease); }
  .js [data-focus].is-in img { filter: none; opacity: 1; transform: none; }
  @media (max-width: 900px), (pointer: coarse) {   /* animating blur is costly on phones: fade from grey instead */
    .js [data-focus] img { filter: grayscale(1); }
  }

  .js .mark { background-size: 0% 1.5px; transition: background-size 1.4s var(--ease) .45s; }
  .js .is-in .mark { background-size: 100% 1.5px; }
  .js .voice .mark { background-size: 0% 1.5px; transition: background-size 1.2s var(--ease) .5s; }
  .js .voice.is-active .mark { background-size: 100% 1.5px; }
}

@keyframes enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ── Let's talk: the form opens as a circle of deep matcha from the button you pressed ── */

.talk {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--fg); overflow: hidden;
}
.talk::backdrop { background: transparent; }
.talk__inner {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2);
  display: grid; align-content: start; gap: clamp(32px, 5vw, 56px);   /* centred only where it fits (below) */
  padding: clamp(72px, 10vh, 120px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(48px, 8vh, 96px) max(var(--gutter), env(safe-area-inset-left, 0px));
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%));
}
.talk.is-shown .talk__inner { clip-path: circle(var(--r, 150vmax) at var(--ox, 50%) var(--oy, 50%)); }
.talk__close {
  position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: calc(20px + env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
  background: none; color: var(--fg); font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.talk__close:hover { border-color: var(--fg); }
.talk__intro .body { margin-top: 1.25rem; }
.talk__line { width: 200px; height: 18px; margin-top: 0.25rem; overflow: visible; }
.talk__line path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }

.talk__form { display: grid; gap: 1.25rem 1.5rem; max-width: 40rem; }
.chips { border: 0; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips legend { width: 100%; margin-bottom: 0.9rem; padding: 0; font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.9375rem;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--line); border-color: var(--line); color: var(--on-line); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.875rem; color: var(--muted); }
.optional { opacity: 0.8; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent; color: var(--fg); font: inherit; font-size: 1.0625rem; border-radius: 0;
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--line); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--line); }
.field [aria-invalid="true"] { border-bottom-color: #ff9d8a; }
.talk__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.talk__status { font-size: 0.9375rem; color: var(--muted); max-width: 26em; }
.talk__status.is-error { color: #ffb4a5; }
.talk__status a { color: var(--fg); text-underline-offset: 4px; }
.talk__privacy { font-size: 0.8125rem; color: var(--muted); max-width: 34em; }
.talk__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 760px) {
  .talk__form { grid-template-columns: 1fr 1fr; }
  .chips, .field--wide, .talk__actions, .talk__privacy { grid-column: 1 / -1; }
}
@media (min-width: 1100px) and (min-height: 720px) { .talk__inner { align-content: center; } }
@media (min-width: 1100px) {
  .talk__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: clamp(64px, 8vw, 140px); }
  .talk__inner > * { max-width: none; }
  .talk__inner { padding-inline: max(calc((100vw - var(--max)) / 2), var(--gutter)); }
}
body.talk-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .talk__inner { transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); }
  .talk.is-closing .talk__inner { transition-duration: .5s; }
  .talk__intro, .talk__form { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
  .talk.is-shown .talk__intro { opacity: 1; transform: none; transition-delay: .35s; }
  .talk.is-shown .talk__form { opacity: 1; transform: none; transition-delay: .45s; }
  .talk.is-closing .talk__intro, .talk.is-closing .talk__form { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
  .talk__line path { stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-io) .55s; }
  .talk.is-shown .talk__line path { stroke-dashoffset: 0; }
}

@media print {
  .atmos, .journey, .header__menu, .talk { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Reduced motion: voices switch instantly and nothing drifts. */
@media (prefers-reduced-motion: reduce) {
  .js .voice__phrase .w, .js .voice .voice__full, .js .voice figcaption { transition: none !important; }
  .voices__stack { transform: none; }
}
