/* ---------------------------------------------------------------------------
   beternu — "Atelier" variant (human-first marketing & AI content engine)
   Light editorial counterpart to the dark "Noir" variant:
   paper, serif, cobalt, grain.
--------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Self-hosted fonts (GDPR-safe, no third-party runtime dependency).
   Families/axes match the previous Google Fonts <link> exactly:
   Fraunces ital + opsz 9..144 + wght 300..700 (normal & italic),
   Archivo wght 300..600. All use font-display: swap.
   Source: Google Fonts woff2 (Fraunces v38, Archivo v25), vendored to /fonts.
   If these files were missing, the HTML keeps the Google Fonts <link> as a
   fallback (see variant2.html), so typography never breaks.
--------------------------------------------------------------------------- */

/* Archivo — latin */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo — latin-ext */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo — vietnamese */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Fraunces — normal — latin */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces — normal — latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces — normal — vietnamese */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces — italic — latin */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces — italic — latin-ext */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces — italic — vietnamese */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --paper: #f3efe6;
  --paper-deep: #e9e3d5;
  --ink: #1b1812;
  --ink-soft: #6e675a;
  /* Darker soft-ink for small text on --paper-deep panels: 5.68:1 (WCAG AA).
     --ink-soft (#6e675a) only hits 4.38:1 on paper-deep, below AA for normal text. */
  --ink-soft-deep: #5d5648;
  --cobalt: #2742f5;
  --rule: rgba(27, 24, 18, 0.16);

  --serif: "Fraunces", serif;
  --sans: "Archivo", sans-serif;

  --display: clamp(3rem, 11vw, 9.5rem);
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
  --gap-section: clamp(6rem, 16vh, 12rem);
}

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

html {
  scroll-behavior: smooth;
}

/* Skip link: off-screen until focused, then visible top-left */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.7rem 1.1rem;
  background: var(--cobalt);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* WCAG 2.1 AA — 2.4.7 Focus Visible.
   Consistent cobalt focus ring on every keyboard-focusable element.
   :focus-visible keeps it keyboard-only. Cobalt on paper is 5.75:1, above AA. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cobalt);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Curtain preloader: a sheet of ink that lifts off the page
-------------------------------------------------------------------------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  /* hidden by default so it cannot cover the page when JS never runs */
  display: none;
  align-items: center;
  justify-content: center;
}

.js .curtain {
  display: flex;
}

.curtain__word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--paper);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Film grain — an SVG turbulence tile, fixed over everything
-------------------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 3%); }
  50%  { transform: translate(3%, -2%); }
  75%  { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* --------------------------------------------------------------------------
   Ring cursor
-------------------------------------------------------------------------- */

.ring-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
}

.ring-cursor.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(39, 66, 245, 0.12);
  border-color: var(--cobalt);
}

@media (hover: none), (pointer: coarse) {
  .ring-cursor {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Variant switcher (shared concept with Noir, styled per page)
-------------------------------------------------------------------------- */

.variant-switch {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: rgba(243, 239, 230, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.variant-switch a {
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.variant-switch a:hover {
  color: var(--ink);
}

.variant-switch a.is-active {
  color: var(--cobalt);
}

.variant-switch__sep {
  width: 1px;
  height: 0.9rem;
  background: var(--rule);
}

/* --------------------------------------------------------------------------
   Header bar
-------------------------------------------------------------------------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem var(--pad-x);
  /* translucent paper so scrolling content can't collide with the bar */
  background: rgba(243, 239, 230, 0.82);
  backdrop-filter: blur(8px);
}

.bar__logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.bar__logo em {
  color: var(--cobalt);
  font-style: normal;
}

.bar__tag,
.bar__mail {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.bar__mail:hover {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Intro / hero
-------------------------------------------------------------------------- */

.intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* extra bottom padding keeps the foot line clear of the fixed switcher */
  padding: 6rem var(--pad-x) 8rem;
}

.intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* WebGL fallback poster — a soft ink-and-cobalt orb echoing the breathing blob,
   tucked into the lower-right like the live mesh. Visible without JS, under
   reduced-motion, or when WebGL is unavailable. Decorative only. */
.intro__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 78% 72%, rgba(39, 66, 245, 0.30), rgba(39, 66, 245, 0.10) 55%, transparent 72%),
    radial-gradient(30% 26% at 84% 80%, rgba(27, 24, 18, 0.55), transparent 70%),
    radial-gradient(26% 22% at 72% 64%, rgba(243, 239, 230, 0.7), transparent 65%);
  transition: opacity 0.6s ease;
}

/* Live WebGL blob took over — retire the poster so it never doubles. */
.webgl-live .intro__poster { opacity: 0; }

.intro__title {
  position: relative;
  font-family: var(--serif);
  font-weight: 350;
  font-size: var(--display);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.intro__row {
  display: block;
  overflow: hidden;
}

.intro__row--mid {
  margin: 0.2em 0;
}

.intro__word {
  display: inline-block;
}

.intro__word--italic {
  font-style: italic;
  font-weight: 300;
  color: var(--cobalt);
}

.intro__small {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.intro__foot {
  position: relative;
  margin-top: clamp(2rem, 6vh, 4rem);
  max-width: 30rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Rotating badge */
.badge {
  position: absolute;
  right: clamp(1rem, 7vw, 7rem);
  bottom: clamp(4.5rem, 12vh, 8rem);
  width: clamp(6.5rem, 11vw, 9.5rem);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge svg {
  position: absolute;
  inset: 0;
  animation: spin 14s linear infinite;
}

.badge text {
  font-family: var(--sans);
  font-size: 8.4px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--ink);
}

.badge__arrow {
  font-size: 1.3rem;
  color: var(--cobalt);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Outline marquee
-------------------------------------------------------------------------- */

.strip {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.strip__track {
  display: inline-flex;
  animation: slide 30s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 3rem);
  /* hollow letters: stroke only, no fill */
  -webkit-text-stroke: 1px var(--ink);
  color: transparent;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Horizontal gallery (GSAP pins .gallery__pin and slides the track)
-------------------------------------------------------------------------- */

.gallery {
  margin-top: var(--gap-section);
}

.gallery__pin {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.gallery__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 0.95;
}

.gallery__head em {
  color: var(--cobalt);
}

.gallery__hint {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.gallery__track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--pad-x);
  width: max-content;
  will-change: transform;
}

.piece {
  width: clamp(17rem, 38vw, 34rem);
  flex-shrink: 0;
}

.piece__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}

/* Editorial duotone plates — pure CSS, no image files */
.piece__art--one {
  background:
    radial-gradient(110% 110% at 80% 0%, #2742f5 0%, transparent 55%),
    radial-gradient(120% 100% at 10% 90%, #18206b 0%, transparent 60%),
    #cfd4f0;
}

.piece__art--two {
  background:
    radial-gradient(120% 100% at 15% 15%, #e4572e 0%, transparent 55%),
    radial-gradient(100% 110% at 85% 85%, #6b2118 0%, transparent 55%),
    #f0d8c8;
}

.piece__art--three {
  background:
    radial-gradient(110% 110% at 75% 20%, #14746f 0%, transparent 55%),
    radial-gradient(120% 100% at 15% 90%, #0b3a38 0%, transparent 60%),
    #cfe5e0;
}

.piece__art--four {
  background:
    radial-gradient(120% 110% at 20% 10%, #8e6c2f 0%, transparent 55%),
    radial-gradient(110% 100% at 85% 90%, #4a3414 0%, transparent 60%),
    #ece0c6;
}

.piece__index {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: rgba(243, 239, 230, 0.9);
}

.piece__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.piece__caption h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
}

.piece__caption p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
}

.piece--cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.piece--cta a {
  width: clamp(11rem, 18vw, 16rem);
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.15;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.piece--cta a:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
}

.piece--cta em {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Engine — "Watch the engine" pipeline + streaming/diff + live demo (Atelier).
   Editorial vocabulary: Fraunces serif, cobalt accent, paper plates, rules.
   Everything is readable without JS; .js-gated bits are progressive
   enhancements. The static demo fallback shows by default and is hidden when
   .js is present.
-------------------------------------------------------------------------- */

.engine {
  padding: var(--gap-section) var(--pad-x) 0;
}

.engine__lead {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  line-height: 1.4;
}
.engine__lead em { color: var(--cobalt); font-style: italic; }

/* Pipeline spine ----------------------------------------------------------- */
.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  border-top: 1.5px solid var(--ink);
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.8rem 1.4rem 1.6rem;
  border-bottom: 1.5px solid var(--ink);
  border-right: 1px solid var(--rule);
}
.stage:last-child { border-right: 0; }

.stage__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--cobalt);
}

.stage__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.stage__role {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stage__desc {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Human-checkpoint badge (item 1) */
.stage__check {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.32rem 0.7rem;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.stage__check--human { color: var(--paper); background: var(--cobalt); }
.stage__check--ai { color: var(--ink); border: 1px solid var(--rule); }

.stage__check-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: currentColor;
}
.stage__check--human .stage__check-dot {
  box-shadow: 0 0 0 0 rgba(243, 239, 230, 0.5);
  animation: provenancePulse 2.6s ease-out infinite;
}

/* Streaming / human-diff signature beat ----------------------------------- */
.stream {
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.stream__tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.stream__tag--human {
  color: var(--paper);
  background: var(--cobalt);
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
}

.stream__line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}
.stream__panel--ai .stream__line { color: var(--ink-soft); font-style: italic; }

.stream__caret { display: none; }
.js .stream.is-typing .stream__caret {
  display: inline-block;
  width: 0.5ch; height: 1.05em;
  margin-left: 0.1em;
  vertical-align: text-bottom;
  background: var(--cobalt);
  animation: streamCaret 0.9s steps(1) infinite;
}
@keyframes streamCaret { 50% { opacity: 0; } }

.stream__arrow {
  margin: 1.2rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.stream__diff del {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(110, 103, 90, 0.7);
}
.stream__diff ins { color: var(--cobalt); text-decoration: none; }
.stream__diff del + ins { margin-left: 0.4ch; }
.js .stream__diff ins { display: inline-block; }
.js .stream.is-typing .stream__diff,
.js .stream:not(.is-revealed) .stream__diff ins { opacity: 0; }
.js .stream.is-revealed .stream__diff ins { opacity: 1; transition: opacity 0.5s ease; }

.stream__foot {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft-deep); /* small text on --paper-deep — needs AA-safe grey */
}

/* Live engine demo --------------------------------------------------------- */
.engine-demo {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.engine-demo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.engine-demo__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}
.engine-demo__title em { font-style: italic; color: var(--cobalt); }

.engine-demo__badge {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed var(--rule);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
}

.engine-demo__live { display: none; }
.js .engine-demo__live { display: block; }
.js .engine-demo__static { display: none; }
.engine-demo__static p { margin-bottom: 0.7rem; line-height: 1.5; font-family: var(--sans); }
.engine-demo__static-intro { color: var(--ink-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.engine-demo__static-final strong { color: var(--cobalt); }
.engine-demo__static-note { color: var(--ink-soft); font-size: 0.82rem; }

.engine-demo__step { margin-bottom: 1.6rem; }
.engine-demo__step[hidden] { display: none; }

.engine-demo__step-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.engine-demo__step-label em { text-transform: none; letter-spacing: 0; font-style: italic; opacity: 0.8; }

.engine-demo__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.85rem;
}

.engine-demo__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.chip {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover, .chip.is-active { border-color: var(--cobalt); color: var(--cobalt); }

.engine-demo__brief {
  width: 100%;
  resize: vertical;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.engine-demo__brief:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.engine-demo__generate,
.engine-demo__approve,
.engine-demo__restart {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 99px;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--cobalt);
  transition: background 0.2s ease, color 0.2s ease;
}
.engine-demo__generate, .engine-demo__approve { background: var(--cobalt); color: var(--paper); }
.engine-demo__generate:hover, .engine-demo__approve:hover { background: transparent; color: var(--cobalt); }
.engine-demo__restart { background: transparent; color: var(--cobalt); }
.engine-demo__restart:hover { background: var(--cobalt); color: var(--paper); }

.engine-demo__variants { list-style: none; display: grid; gap: 0.9rem; }

.variant-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 1.2rem 1.3rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.variant-card:hover { border-color: var(--cobalt); }
.variant-card.is-selected { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }

.variant-card__tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.variant-card.is-selected .variant-card__tag { color: var(--cobalt); }
.variant-card__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.3;
}

.engine-demo__gate-hint, .engine-demo__gate-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.engine-demo__gate-note a, .engine-demo__result-note a { color: var(--cobalt); }

.engine-demo__chosen {
  border-left: 2px solid var(--cobalt);
  padding: 0.4rem 0 0.4rem 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.35;
  color: var(--ink-soft);
}

.engine-demo__gate-copy {
  font-family: var(--sans);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1rem;
  max-width: 40rem;
}
.engine-demo__gate-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.engine-demo__email {
  flex: 1 1 16rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.85rem 1.2rem;
}
.engine-demo__email:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.engine-demo__gate.is-invalid .engine-demo__email { border-color: #c23b1e; }

.engine-demo__step-label--done { color: var(--cobalt); }
.engine-demo__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--paper);
  font-weight: 600;
}

.engine-demo__result {
  border: 1.5px solid var(--cobalt);
  background: var(--paper-deep);
  padding: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
}
.engine-demo__result-note {
  margin: 1.2rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Manifesto
-------------------------------------------------------------------------- */

.manifesto {
  padding: var(--gap-section) var(--pad-x) 0;
  max-width: 68rem;
  margin: 0 auto;
}

.manifesto__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.manifesto__text {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  line-height: 1.25;
}

.manifesto__text em {
  color: var(--cobalt);
}

.mline {
  display: block;
}

/* --------------------------------------------------------------------------
   Practice
-------------------------------------------------------------------------- */

.practice {
  padding: var(--gap-section) var(--pad-x) 0;
}

.practice__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.practice__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
}

.practice__head p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.practice__list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.row {
  display: grid;
  grid-template-columns: clamp(5rem, 12vw, 11rem) 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.row__numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  color: var(--paper-deep);
  -webkit-text-stroke: 1px var(--ink-soft);
  transition: color 0.4s ease;
}

.row:hover .row__numeral {
  color: var(--cobalt);
  -webkit-text-stroke: 1px var(--cobalt);
}

.row__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  margin-bottom: 0.3rem;
}

.row__body p {
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Voices / reviews — same row system as the practice list
-------------------------------------------------------------------------- */

.voices {
  padding: var(--gap-section) var(--pad-x) 0;
}

.voices .row {
  align-items: start;
}

.voices .row__numeral {
  /* serif quote mark instead of a numeral */
  font-style: normal;
  line-height: 0.7;
}

.voices__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  max-width: 42rem;
}

.voices__who {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Compare — brand-first vs human-first before/after slider (signature move)
   No-JS: panels stack as two editorial cards (clip-path only applies with .js),
   handle/range hidden, so both states read. With JS the after panel is clipped
   to a vertical reveal driven by --pos.
-------------------------------------------------------------------------- */

.compare {
  padding: var(--gap-section) var(--pad-x) 0;
}

.compare__lead {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.35;
}

.compare__lead em {
  color: var(--cobalt);
  font-style: italic;
}

.compare__stage {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  /* --pos = reveal position (0..100). JS updates it; default 50. */
  --pos: 50%;
}

.compare__panel {
  /* No-JS / stacked default: panels flow under each other and both show. */
  position: relative;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  min-height: clamp(16rem, 32vh, 21rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compare__panel--after {
  background: var(--ink);
  color: var(--paper);
  border-top: 1.5px solid var(--ink);
}

.js .compare__panel--after {
  position: absolute;
  inset: 0;
  border-top: 0;
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
}

.compare__tag {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.compare__tag--before {
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}

.compare__tag--after {
  color: var(--ink);
  background: var(--paper);
}

.compare__kicker {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.compare__panel--after .compare__kicker {
  color: var(--paper);
  opacity: 0.7;
}

.compare__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.15;
  max-width: 34rem;
}

.compare__headline em {
  font-style: italic;
  color: var(--cobalt);
}

.compare__panel--after .compare__headline em {
  /* cobalt on dark ink stays legible; keep italic accent */
  color: #8ea0ff;
}

.compare__body {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}

.compare__panel--after .compare__body {
  color: rgba(243, 239, 230, 0.78);
}

/* Handle — only meaningful with JS */
.compare__handle {
  display: none;
}

.js .compare__handle {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--cobalt);
  z-index: 3;
  pointer-events: none;
}

.compare__handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cobalt);
  color: var(--paper);
  font-size: 1rem;
}

.compare__range {
  display: none;
}

.js .compare__range {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.6rem;
  height: 100%;
}

.compare__range::-moz-range-thumb {
  width: 2.6rem;
  height: 100%;
  border: 0;
  background: transparent;
}

.js .compare__range:focus-visible ~ .compare__handle .compare__handle-grip {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cobalt);
}

.compare__notes {
  display: none;
}

.js .compare__notes {
  display: block;
  list-style: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.compare__note {
  position: absolute;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  padding-left: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.compare__note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #8ea0ff;
}

.compare__note span {
  display: block;
  color: rgba(243, 239, 230, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6rem;
}

.compare__note--1 { right: 6%; top: 16%; }
.compare__note--2 { right: 9%; top: 47%; }
.compare__note--3 { right: 5%; bottom: 18%; }

.js .compare__stage[data-revealed] .compare__note {
  opacity: 1;
}

.compare__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.compare__legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.compare__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
}

.compare__swatch--ai {
  background: var(--ink-soft);
}

.compare__swatch--human {
  background: var(--cobalt);
}

.compare__foot em {
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Receipts — before→after proof panel inside Stemmen (replaces round stats)
-------------------------------------------------------------------------- */

.receipts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  border-bottom: 1px solid var(--rule);
}

.receipt {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
  background: var(--paper-deep);
}

.receipt__case {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft-deep); /* small text on --paper-deep — needs AA-safe grey */
  margin-bottom: 0.4rem;
}

.receipt__case em {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.75;
}

.receipt__before,
.receipt__after {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.2;
}

.receipt__before {
  color: var(--ink-soft);
}

.receipt__after {
  color: var(--cobalt);
}

.receipt__label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft-deep); /* small text on --paper-deep — needs AA-safe grey */
}

.receipt__arrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
}

.receipt__how {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft-deep); /* small text on --paper-deep — needs AA-safe grey */
  line-height: 1.45;
}

.receipt__ai,
.receipt__human {
  font-weight: 600;
}

.receipt__ai {
  color: var(--ink);
}

.receipt__human {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Provenance — honest "engine wrote this, human approved" strip
-------------------------------------------------------------------------- */

.provenance {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(2.5rem, 7vh, 5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: left;
}

.provenance em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cobalt);
}

.provenance__dot {
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 0 rgba(39, 66, 245, 0.4);
  animation: provenancePulse 2.6s ease-out infinite;
}

@keyframes provenancePulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 66, 245, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(39, 66, 245, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 66, 245, 0); }
}

/* --------------------------------------------------------------------------
   Kennis / reads — editorial article cards (visible by default, no entrance anim)
-------------------------------------------------------------------------- */

.reads {
  padding: var(--gap-section) var(--pad-x) 0;
}

.reads__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.read {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.read:hover {
  border-color: var(--cobalt);
  transform: translateY(-4px);
}

.read__cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 1.1rem;
}

.read__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.read__link {
  margin-top: auto;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}

.read__link:hover {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Urge — urgency CTA
-------------------------------------------------------------------------- */

.urge {
  padding: var(--gap-section) var(--pad-x) 0;
  max-width: 68rem;
  margin: 0 auto;
}

.urge__btn {
  display: inline-block;
  margin-top: 2.6rem;
  padding: 0.8rem 1.9rem;
  border-radius: 99px;
  background: var(--cobalt);
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.35s ease;
}

.urge__btn:hover {
  background: var(--ink);
}

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

.outro {
  padding: var(--gap-section) var(--pad-x) 5rem;
  text-align: center;
}

.outro__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.outro__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  flex-wrap: wrap;
}

.outro__title [data-clip] {
  display: inline-block;
}

.outro__pill {
  font-style: italic;
  color: var(--paper);
  background: var(--cobalt);
  border-radius: 99px;
  padding: 0 0.45em 0.08em;
  transition: background 0.35s ease;
}

.outro__pill:hover {
  background: var(--ink);
}

.outro__sub {
  margin-top: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.outro__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.outro__base nav {
  display: flex;
  gap: 1.4rem;
}

.outro__base a:hover {
  color: var(--cobalt);
}

.outro__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.outro__legal nav {
  display: flex;
  gap: 1.4rem;
}

.outro__legal a:hover {
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   Booking — named human + reassurance at the intake point
-------------------------------------------------------------------------- */

.booking {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  max-width: 44rem;
  margin: clamp(2.4rem, 6vh, 4rem) auto 0;
  padding: 1.6rem;
  text-align: left;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-deep);
}

.booking__portrait {
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  background: var(--cobalt);
}

.booking__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.booking__name em {
  color: var(--cobalt);
  font-style: italic;
}

.booking__role {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.booking__reassure {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   Success — post-conversion confirmation (revealed by form JS in Phase 1)
-------------------------------------------------------------------------- */

.success {
  max-width: 44rem;
  margin: clamp(1.5rem, 4vh, 2.5rem) auto 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  text-align: left;
  border: 1px solid var(--cobalt);
  border-radius: 8px;
  background: var(--paper-deep);
}

/* [hidden] keeps it out of the flow until the form reveals it; no ungated
   opacity:0 means content is never invisibly covered. */
.success[hidden] {
  display: none;
}

.success.is-visible {
  display: block;
}

.success__badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1px solid var(--cobalt);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.2rem;
}

.success__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.success__title em {
  color: var(--cobalt);
  font-style: italic;
}

.success__list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.success__list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.success__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

.success__list strong {
  color: var(--ink);
  font-weight: 500;
}

.success__note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Micro-proof — small indicatief stat next to the claim it backs
-------------------------------------------------------------------------- */

/* gallery-piece stat under the caption */
.piece__proof {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.piece__proof strong {
  color: var(--cobalt);
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
}

.piece__proof em {
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  opacity: 0.75;
}

/* reviews honesty label — quieter inline note in the header */
.indicatief {
  display: inline;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Intake form — the single PRIMARY action
-------------------------------------------------------------------------- */

.intake {
  max-width: 44rem;
  margin: clamp(2.4rem, 6vh, 4rem) auto 0;
  text-align: left;
}

.intake__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem clamp(1.2rem, 3vw, 2rem);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.intake input,
.intake textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.intake textarea {
  resize: vertical;
  min-height: 6rem;
}

.intake input:focus,
.intake textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(39, 66, 245, 0.14);
}

.intake .field.is-invalid input,
.intake .field.is-invalid textarea {
  border-color: #c0341d;
}

.field__error {
  margin-top: 1rem;
  color: #c0341d;
  font-size: 0.9rem;
}

.field__error[hidden] {
  display: none;
}

.intake__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.6rem;
  margin-top: 1.8rem;
}

.intake__submit {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: 99px;
  background: var(--cobalt);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease;
}

.intake__submit:hover {
  background: var(--ink);
}

.intake__submit:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.intake__proof {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.intake__proof strong {
  color: var(--cobalt);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
}

.intake__proof em {
  font-size: 0.76rem;
  opacity: 0.75;
}

.intake.is-done {
  display: none;
}

/* --------------------------------------------------------------------------
   Toolkit lead magnet — the SECONDARY action (deliberately quieter)
-------------------------------------------------------------------------- */

.toolkit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2.4rem;
  max-width: 44rem;
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: left;
  /* dashed paper outline reads as the lighter-weight option (no cobalt fill) */
  border: 1px dashed var(--rule);
  border-radius: 8px;
}

.toolkit__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.toolkit__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 0.5rem;
}

.toolkit__desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 30rem;
}

.toolkit__form {
  flex: 1 1 18rem;
  max-width: 26rem;
}

.toolkit__row {
  display: flex;
  gap: 0.6rem;
}

.toolkit__form input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 0.7rem 1.1rem;
  transition: border-color 0.25s ease;
}

.toolkit__form input:focus {
  outline: none;
  border-color: var(--cobalt);
}

.toolkit__form.is-invalid input {
  border-color: #c0341d;
}

.toolkit__submit {
  flex-shrink: 0;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.toolkit__submit:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--paper);
}

.toolkit__submit:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.toolkit__note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.toolkit__link {
  color: var(--cobalt);
}

.toolkit__link:hover {
  text-decoration: underline;
}

.toolkit__done {
  display: none;
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.toolkit__done strong {
  color: var(--cobalt);
}

.toolkit__form.is-sent .toolkit__row,
.toolkit__form.is-sent .toolkit__note {
  display: none;
}

.toolkit__form.is-sent .toolkit__done {
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Sticky mobile intake bar — small screens only (shown in the 760px query)
-------------------------------------------------------------------------- */

.intake-bar {
  display: none;
  position: fixed;
  left: var(--pad-x);
  right: var(--pad-x);
  /* sits above the variant-switch pill, never covering it */
  bottom: 4.4rem;
  z-index: 65;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.2rem;
  border-radius: 99px;
  background: var(--cobalt);
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(27, 24, 18, 0.25);
}

.intake-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   Animation helpers
-------------------------------------------------------------------------- */

[data-clip] {
  /* pure-layout prop stays ungated so content lays out the same without JS */
  display: inline-block;
}

/* hidden initial states only apply once JS has flagged <html class="js"> */
.js [data-clip] {
  /* children of overflow:hidden rows slide up from below */
  transform: translateY(115%);
}

.js .intro__foot[data-clip],
.js .outro__sub[data-clip],
.js .outro__title [data-clip] {
  transform: none;
  opacity: 0;
}

.js .mline {
  opacity: 0;
  transform: translateY(30px) rotate(1.5deg);
}

@media (prefers-reduced-motion: reduce) {
  [data-clip],
  .intro__foot[data-clip],
  .outro__sub[data-clip],
  .outro__title [data-clip],
  .mline {
    opacity: 1 !important;
    transform: none !important;
  }
  .grain,
  .badge svg,
  .strip__track,
  .provenance__dot,
  .stage__check--human .stage__check-dot {
    animation: none;
  }
  .skip-link,
  .intake input,
  .intake textarea,
  .intake__submit,
  .toolkit__form input,
  .toolkit__submit,
  .intro__poster,
  .compare__note,
  .compare__panel--after,
  .chip,
  .variant-card,
  .engine-demo__generate,
  .engine-demo__approve,
  .engine-demo__restart {
    transition: none;
  }
  /* Slider still drags, just without the smooth clip transition; notes stay
     visible (a designed alternate, not motion). */
  .js .compare__stage[data-revealed] .compare__note {
    opacity: 1;
  }
  /* Streaming caret never blinks; the human diff shows immediately as a static
     drafted-vs-final pair (no typewriter, no fade). */
  .js .stream.is-typing .stream__caret { display: none; }
  .js .stream .stream__diff ins,
  .js .stream.is-revealed .stream__diff ins { opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  /* Pipeline goes 2-up on tablets; the inner vertical rule only on the left col */
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage:nth-child(even) { border-right: 0; }
}

@media (max-width: 760px) {
  .bar__tag {
    display: none;
  }

  .badge {
    right: 1rem;
    bottom: 5.5rem;
    width: 5.5rem;
  }

  .piece {
    width: min(78vw, 22rem);
  }

  .practice__head {
    flex-direction: column;
    gap: 0.4rem;
  }

  .reads__grid {
    grid-template-columns: 1fr;
  }

  .receipts {
    grid-template-columns: 1fr;
  }

  /* Pipeline stacks; the vertical rule between stages becomes a bottom rule */
  .pipeline {
    grid-template-columns: 1fr;
  }
  .stage { border-right: 0; }

  .outro__base {
    flex-direction: column;
    gap: 0.7rem;
  }

  .outro__legal {
    flex-direction: column;
    gap: 0.7rem;
  }

  /* sticky intake bar appears only on small screens */
  .intake-bar {
    display: flex;
  }

  /* clear the sticky bar + switch pill at the end of the page */
  .outro {
    padding-bottom: 9rem;
  }

  .intake__grid {
    grid-template-columns: 1fr;
  }

  .toolkit {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolkit__form {
    width: 100%;
    flex-basis: auto;
  }

  .toolkit__row {
    flex-direction: column;
  }

  .toolkit__submit {
    width: 100%;
  }
}
