/* ─────────────────────────────────────────────
   Highway Studio — landing
   Monochrome: ink on off-white, ink highlight with white text.
   ───────────────────────────────────────────── */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #26262a;
  --muted: #6d6d73;
  --faint: #a3a3a8;
  --line: #e6e6e2;
  --line-2: #efefec;

  --dark: #0b0b0c;
  --dark-2: #161618;
  --dark-line: #2a2a2e;
  --dark-muted: #8e8e95;

  --mark-road: #ffffff;

  --radius: 24px;
  --shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 12px 32px -14px rgba(11, 11, 12, .12);
  --shadow-lg: 0 2px 4px rgba(11, 11, 12, .05), 0 40px 80px -36px rgba(11, 11, 12, .35);

  --font-display: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.03em; line-height: 1.04; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; margin-top: 56px; }

/* ───────── Highlight: ink block, white text ───────── */
.hl {
  color: inherit;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 50% / 0% 92%;
  padding: 0 .12em;
  margin: 0 -.02em;
  border-radius: .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .8s var(--ease) .3s, color .35s ease .55s;
}
.is-in .hl { background-size: 100% 92%; color: #fff; }

/* ───────── Buttons & links ───────── */
.btn {
  --h: 44px;
  --b-bg: var(--ink); --b-fg: #fff; --b-fill: #fff; --b-fill-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 7px 0 20px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  color: var(--b-fg); background: var(--b-bg);
  border: 1.5px solid var(--b-bg);
  border-radius: 999px;
  transition: color .45s var(--ease), background-color .3s ease, border-color .3s ease;
}
/* Fill wipes in from the left on hover, and out to the right on leave */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--b-fill); border-radius: inherit;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--b-fill-fg); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 7px 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ink { --b-bg: var(--ink); --b-fg: #fff; --b-fill: #fff; --b-fill-fg: var(--ink); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-fill: var(--ink); --b-fill-fg: #fff; }
.btn__icon {
  display: grid; place-items: center;
  width: calc(var(--h) - 15px); height: calc(var(--h) - 15px);
  border-radius: 50%; color: var(--b-fg); background: color-mix(in srgb, var(--b-fg) 16%, transparent);
  transition: transform .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease);
}
.btn--light .btn__icon { color: #fff; background: var(--ink); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(3px); color: var(--b-fill); background: var(--b-fill-fg); }
.btn__icon svg { width: 16px; height: 16px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--ink);
}
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link--muted { color: var(--muted); }
.link--muted:hover { color: var(--ink); }

.nowrap { white-space: nowrap; }

/* ───────── Nav ───────── */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 28px);
  width: max-content; max-width: calc(100% - 24px);
  padding: 6px 6px 6px 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(11, 11, 12, .07);
  border-radius: 999px;
  box-shadow: 0 8px 30px -14px rgba(11, 11, 12, .2);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
  animation: nav-in .9s var(--ease) both .1s;
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-16px); } }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--muted);
  border-radius: 999px; transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(11,11,12,.05); }
.nav.on-dark { background: rgba(22, 22, 24, .8); border-color: rgba(255,255,255,.08); color: #fff; --mark-road: var(--ink); }
.nav.on-dark .brand__mark { color: #fff; }
.nav.on-dark .nav__links a { color: var(--dark-muted); }
.nav.on-dark .nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__lang {
  margin-left: calc(clamp(12px, 3vw, 28px) * -1 + 2px);
  padding: 6px 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  border-radius: 999px; transition: color .2s ease, background-color .2s ease;
}
.nav__lang:hover { color: var(--ink); background: rgba(11,11,12,.05); }
.nav.on-dark .nav__lang { color: var(--dark-muted); }
.nav.on-dark .nav__lang:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav.on-dark .btn--ink { --b-bg: #fff; --b-fg: var(--ink); --b-fill: var(--ink); --b-fill-fg: #fff; }

.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 17px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand__mark { width: 28px; height: 28px; flex-shrink: 0; color: var(--ink); }

/* On-page anchors (offer, method, FAQ) only where there is room; the pages stay everywhere. */
@media (max-width: 1000px) {
  .nav__links .nav__anchor { display: none; }
}
/* Mobile menu: the links fold behind a toggle and open as a panel under the pill. */
.nav__toggle, .nav__menu-lang { display: none; }
@media (max-width: 720px) {
  .nav { gap: 10px; }
  .nav__lang { display: none; }
  .nav .btn--sm { margin-left: auto; }
  .nav__toggle {
    display: grid; place-content: center; gap: 5px; width: 38px; height: 38px; margin-left: -4px;
    border-radius: 999px; color: inherit; transition: background-color .2s ease;
  }
  .nav__toggle:hover { background: rgba(11,11,12,.05); }
  .nav.on-dark .nav__toggle:hover { background: rgba(255,255,255,.08); }
  .nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border: 1px solid rgba(11, 11, 12, .07); border-radius: 22px;
    box-shadow: 0 18px 40px -18px rgba(11, 11, 12, .3);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .25s ease, translate .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .nav__links a { padding: 12px 14px; font-size: 16px; color: var(--ink); border-radius: 14px; }
  .nav__links .nav__menu-lang { display: block; position: relative; margin-top: 13px; font-size: 14px; color: var(--muted); }
  .nav__menu-lang::before { content: ""; position: absolute; left: 14px; right: 14px; top: -8px; height: 1px; background: var(--line); }
  .nav.on-dark .nav__links { background: #161618; border-color: rgba(255,255,255,.08); }
  .nav.on-dark .nav__links a { color: #fff; }
  .nav.on-dark .nav__links .nav__menu-lang { color: var(--dark-muted); }
  .nav.on-dark .nav__menu-lang::before { background: rgba(255,255,255,.1); }
}
@media (max-width: 400px) {
  .nav__cta-more { display: none; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: max(100svh, 760px);
  padding: clamp(120px, 16vh, 160px) 0 clamp(170px, 20vh, 220px);
  isolation: isolate;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
  max-width: 13ch;
  font-size: clamp(46px, 8.2vw, 104px);
  font-weight: 700; letter-spacing: -.045em; line-height: .98;
}
.hero__lead { margin-top: 28px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero__cta { margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero__meta li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 18px -12px rgba(11, 11, 12, .25);
}
.hero__meta li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Background: dot grid, vignetted, drifting slowly; a darker spot follows the pointer
   (or wanders on its own on touch screens). */
.dots {
  --spot-x: 30%; --spot-y: 40%;
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(0,0,0,.3) 0%, #000 42%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(0,0,0,.3) 0%, #000 42%, transparent 80%);
}
.dots::before, .dots::after {
  content: ""; position: absolute; inset: 0;
  background-size: 24px 24px;
  animation: dots-drift 40s linear infinite;
}
.dots::before { background-image: radial-gradient(circle, #cfcfca 1.1px, transparent 1.6px); }
.dots::after {
  background-image: radial-gradient(circle, #6d6d73 1.2px, transparent 1.7px);
  -webkit-mask-image: radial-gradient(circle 260px at var(--spot-x) var(--spot-y), #000, transparent);
  mask-image: radial-gradient(circle 260px at var(--spot-x) var(--spot-y), #000, transparent);
  opacity: .55;
}
@keyframes dots-drift { to { background-position: 24px -48px; } }
@property --spot-x { syntax: "<length-percentage>"; inherits: true; initial-value: 30%; }
@property --spot-y { syntax: "<length-percentage>"; inherits: true; initial-value: 40%; }
.dots { animation: spot-wander 18s ease-in-out infinite alternate; }
.dots.has-pointer { animation: none; }
@keyframes spot-wander {
  0% { --spot-x: 22%; --spot-y: 34%; }
  35% { --spot-x: 72%; --spot-y: 26%; }
  70% { --spot-x: 64%; --spot-y: 68%; }
  100% { --spot-x: 30%; --spot-y: 62%; }
}

/* Split-word title animation */
.w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 150ms); }
.w.is-in { opacity: 1; transform: none; filter: none; }
.w .hl { transition-delay: calc(var(--i) * 70ms + 300ms), calc(var(--i) * 70ms + 480ms); }

/* Isometric stage */
.stage {
  position: absolute; inset: 0; z-index: -1;
  max-width: 1500px; margin-inline: auto;
  pointer-events: none;
}
.tile {
  position: absolute; left: var(--x); top: var(--y);
  --size: clamp(78px, 9vw, 128px);
  width: var(--size); height: var(--size);
  translate: -50% -50%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .6s var(--ease);
}
.tile--sm { --size: clamp(60px, 6.5vw, 92px); }
.tile__float { width: 100%; height: 100%; animation: float 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.tile__slab {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--ink);
  background: linear-gradient(135deg, #fff 35%, #f4f4f1);
  border-radius: 24%;
  transform: rotateX(58deg) rotateZ(45deg);
  box-shadow:
    1px 1px 0 #ebebe7, 2px 2px 0 #e8e8e4, 3px 3px 0 #e5e5e1, 4px 4px 0 #e3e3df,
    5px 5px 0 #e0e0dc, 6px 6px 0 #deded9, 7px 7px 0 #dbdbd7, 8px 8px 0 #d9d9d4,
    9px 9px 0 #d6d6d2,
    34px 34px 40px rgba(11,11,12,.09);
  opacity: 0; scale: .7;
  animation: tile-in 1s var(--ease) forwards;
  animation-delay: calc(.55s + var(--depth) * .35s);
}
.tile--dark .tile__slab {
  color: #fff;
  background: linear-gradient(135deg, #2a2a2e, var(--ink) 60%);
  box-shadow:
    1px 1px 0 #1c1c1f, 2px 2px 0 #19191c, 3px 3px 0 #171719, 4px 4px 0 #151517,
    5px 5px 0 #131315, 6px 6px 0 #111113, 7px 7px 0 #0f0f11, 8px 8px 0 #0d0d0f,
    9px 9px 0 #0b0b0c,
    34px 34px 40px rgba(11,11,12,.18);
}
@keyframes tile-in { to { opacity: 1; scale: 1; } }
.tile__slab svg { width: 44%; height: 44%; stroke-width: 1.9; transform: rotate(-45deg); }
.tile__slab svg text { font: 800 7px var(--font-display); fill: currentColor; stroke: none; }

@media (max-width: 1000px) {
  .tile:nth-child(1), .tile:nth-child(6) { display: none; }
  .tile:nth-child(2) { --x: 12% !important; --y: calc(100% - 110px) !important; }
  .tile:nth-child(3) { --x: 38% !important; --y: calc(100% - 70px) !important; }
  .tile:nth-child(4) { --x: 64% !important; --y: calc(100% - 90px) !important; }
  .tile:nth-child(5) { --x: 88% !important; --y: calc(100% - 120px) !important; }
}
@media (max-width: 560px) {
  .tile:nth-child(4) { display: none; }
  .tile:nth-child(2) { --x: 16% !important; }
  .tile:nth-child(3) { --x: 50% !important; --y: calc(100% - 60px) !important; }
  .tile:nth-child(5) { --x: 84% !important; }
}

/* ───────── Sections ───────── */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section h2 { font-size: clamp(36px, 5.6vw, 66px); letter-spacing: -.04em; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ───────── Offer ───────── */
.price-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 860px; margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 64px);
  color: #fff; background: var(--dark);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}
.price-card::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 620px; height: 420px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.1), transparent);
  pointer-events: none;
}
.price { font: 700 clamp(72px, 12vw, 144px)/.9 var(--font-display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.price-card__lead { margin-top: 22px; max-width: 40ch; color: var(--dark-muted); font-size: 17px; }
.checks {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 14px 36px;
  width: 100%; margin: 36px 0 40px; padding-top: 36px;
  border-top: 1px solid var(--dark-line); text-align: left;
}
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.offer__more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 20px auto 0; }
.note {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.note h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.note p { color: var(--muted); font-size: 15.5px; }
.note .link { margin-top: auto; padding-top: 6px; }

@media (max-width: 760px) {
  .checks { grid-template-columns: repeat(2, auto); }
  .offer__more { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .checks { grid-template-columns: auto; }
}

/* ───────── Process ───────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Desktop (3 columns): cards enter one after another instead of all at once.
   --sd delays the card and every animation inside it. Single column keeps --sd: 0. */
@media (min-width: 921px) {
  .steps .step:nth-child(2) { --sd: 1.1s; }
  .steps .step:nth-child(3) { --sd: 2.2s; }
  .steps .step.reveal { transition-delay: var(--sd, 0s); }
}
.step { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 30px; }
.step > :not(.step__visual) { padding: 0 14px; }
.step h3 { font-size: 23px; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .step__num { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }

.step__visual {
  position: relative; height: 200px; display: grid; place-items: center;
  background: var(--bg); border-radius: 16px; overflow: hidden;
}

/* 01 — Define: a wireframe that draws itself on a blueprint grid.
   Same timing as the 02 progress bar: 1.8s, after .5s. */
.step__visual:has(.blueprint) {
  background-image:
    linear-gradient(#ebebe7 1px, transparent 1px),
    linear-gradient(90deg, #ebebe7 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
}
.blueprint { width: 100%; height: 88%; }
.blueprint .draw {
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) calc(.5s + var(--sd, 0s));
}
.blueprint .bp-bold { stroke-width: 3.5; }
.blueprint .bp-faint { stroke: var(--faint); stroke-width: 1; }
.blueprint .bp-ghost { opacity: .4; }
.blueprint .bp-btn { fill: var(--ink); fill-opacity: 0; transition: stroke-dashoffset 1.8s var(--ease) calc(.5s + var(--sd, 0s)), fill-opacity .5s ease calc(1.8s + var(--sd, 0s)); }
.blueprint .bp-label { font: 700 10px var(--font-body); text-anchor: middle; fill: var(--ink); opacity: 0; transition: opacity .4s ease calc(1.9s + var(--sd, 0s)); }
.is-in .blueprint .draw { stroke-dashoffset: 0; }
.is-in .blueprint .bp-btn { fill-opacity: 1; }
.is-in .blueprint .bp-label { opacity: 1; }

.stamp {
  position: absolute; bottom: 14px; left: 50%; translate: -50% 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 11px 5px 8px; font-size: 12px; font-weight: 600;
  color: #fff; background: var(--ink); border-radius: 999px;
}

/* 03 — Ship: black warp field that opens as a circle from the centre */
.warp {
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) calc(.35s + var(--sd, 0s));
}
.warp__stars { display: block; width: 100%; height: 100%; }
.is-in .warp { clip-path: circle(75% at 50% 50%); }
.launch { position: relative; z-index: 1; width: 100%; height: 100%; }
.launch, .stamp--light { opacity: 0; transition: opacity .6s ease calc(1.1s + var(--sd, 0s)), transform .9s var(--ease) calc(1.1s + var(--sd, 0s)); }
.launch { transform: translateY(24px); }
.is-in .launch, .is-in .stamp--light { opacity: 1; transform: none; }
.stamp--light { color: var(--ink); background: #fff; }
.stamp--light .stamp__dot { background: var(--ink); animation-name: pulse-ink; }
.launch__rocket { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.launch__flame { transform-box: fill-box; transform-origin: 50% 0; animation: flame .14s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(.92, .78); } to { transform: scale(1, 1.14); } }
.stamp__dot { width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
@keyframes pulse-ink { 0% { box-shadow: 0 0 0 0 rgba(11,11,12,.5); } 100% { box-shadow: 0 0 0 6px rgba(11,11,12,0); } }

.mini-panel {
  width: min(250px, 86%); padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 12.5px;
}
.mini-panel__head { display: flex; justify-content: space-between; color: var(--muted); }
.mini-panel__head strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 6px; margin: 10px 0 12px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width 1.8s var(--ease) calc(.5s + var(--sd, 0s)); }
.is-in .bar span { width: 64%; }
.mini-list { display: grid; gap: 7px; }
.mini-list li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mini-list li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; }
.mini-list .done::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 9px no-repeat; }
.mini-list .doing { color: var(--muted); }
.mini-list .doing::before { border: 2px solid #dcdcd8; border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ───────── Work ───────── */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card__media {
  position: relative; height: 280px; display: grid; place-items: end center;
  background: #ededea; overflow: hidden;
}
.phone {
  position: relative; z-index: 1;
  width: 150px; height: 250px; margin-bottom: -40px;
  padding: 7px; background: var(--ink); border-radius: 28px;
  box-shadow: 0 30px 50px -20px rgba(11,11,12,.45);
  transition: transform .6s var(--ease);
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 22px; overflow: hidden;
  background:
    linear-gradient(var(--ink), var(--ink)) 14px 40px / 60% 10px no-repeat,
    linear-gradient(#e6e6e2, #e6e6e2) 14px 60px / 40% 7px no-repeat,
    linear-gradient(#efefec, #efefec) 14px 80px / calc(100% - 28px) 70px no-repeat,
    linear-gradient(#efefec, #efefec) 14px 164px / calc(100% - 28px) 26px no-repeat,
    linear-gradient(#efefec, #efefec) 14px 198px / calc(100% - 28px) 26px no-repeat,
    #fff;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone--back { position: absolute; left: 50%; bottom: 0; z-index: 0; translate: -10% 0; transform: rotate(10deg); background: #3a3a3f; box-shadow: none; }
.phone--back .phone__screen { background: #d9d9d5; }
.work-card:hover .phone:not(.phone--back) { transform: translateY(-10px) rotate(-3deg); }
.work-card:hover .phone--back { transform: rotate(14deg) translateX(10px); }
.work-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 26px 26px; }
.work-card__body h3 { font-size: 24px; letter-spacing: -.025em; }
.work-card__body p { color: var(--muted); }
.work-card .work-card__time { color: var(--ink); font-weight: 600; }
.work-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }

@media (max-width: 920px) {
  .work { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ───────── Testimonials: vertical marquee wall ───────── */
.wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  height: 600px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}
.wall__col { min-width: 0; }
.wall__track { animation: wall-up var(--dur, 40s) linear infinite; }
.wall__col--down .wall__track { animation-direction: reverse; }
@keyframes wall-up { to { transform: translateY(-50%); } }

.quote {
  margin: 0 0 20px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 22px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; font-size: 15px; color: #fff; background: var(--ink); }

@media (max-width: 920px) {
  .wall { grid-template-columns: 1fr 1fr; }
  .wall__col:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .wall { grid-template-columns: 1fr; height: 520px; }
  .wall__col:nth-child(2) { display: none; }
}

/* ───────── FAQ ───────── */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__head { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq__head h2 { font-size: clamp(36px, 4.6vw, 56px); }
.faq__head p { color: var(--muted); margin-top: 4px; }
.accordion { display: grid; gap: 10px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s ease; }
.acc:has([aria-expanded="true"]) { box-shadow: var(--shadow); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 22px; text-align: left;
  font: 600 18px/1.3 var(--font-display); letter-spacing: -.01em;
}
.acc__q i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); transition: background-color .3s ease, color .3s ease, transform .4s var(--ease); }
.acc__q i::before, .acc__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.acc__q i::after { transform: rotate(90deg); }
.acc__q[aria-expanded="true"] i { background: var(--ink); color: #fff; transform: rotate(180deg); }
.acc__q[aria-expanded="true"] i::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 22px; color: var(--muted); }
.acc__a p + p { margin-top: 10px; }
.acc__a p:last-child { padding-bottom: 22px; }
.acc__a strong { color: var(--ink); }
.acc__q[aria-expanded="true"] + .acc__a { grid-template-rows: 1fr; }

@media (max-width: 880px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ───────── Contact ───────── */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact h2 { font-size: clamp(44px, 7vw, 84px); }
.contact__lead { font-size: 20px; color: var(--muted); }
.next { display: grid; gap: 14px; margin-top: 16px; }
.next li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); max-width: 40ch; }
.next span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; translate: 0 5px; font-size: 13px; font-weight: 600; color: #fff; background: var(--ink); border-radius: 50%; }

.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 0; }
.field em { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 4px; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,11,12,.08); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 6px; text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 10px; transition: background-color .2s ease, color .2s ease; }
.seg input:checked + span { color: #fff; background: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; }
.form .btn { margin-top: 6px; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--muted); text-align: center; }
.form__status.ok { color: var(--ink); }
.form__status.err { color: #b42318; }
.form.is-sent .field, .form.is-sent .form__row, .form.is-sent .btn { display: none; }
.form.is-sent .form__status { font: 600 22px/1.35 var(--font-display); padding: 48px 8px; }

@media (max-width: 880px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ───────── Footer ───────── */
.footer { background: var(--dark); color: #fff; padding: clamp(64px, 9vw, 104px) 0 28px; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer__pitch { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer__tagline { font: 700 clamp(32px, 4.4vw, 52px)/1.02 var(--font-display); letter-spacing: -.04em; }
.footer__tagline span { color: var(--dark-muted); }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols p { margin-bottom: 6px; font-size: 13px; color: var(--dark-muted); }
.footer__cols a { font-size: 15px; color: #e4e4e7; transition: color .2s ease; }
.footer__cols a:hover { color: #fff; }

.footer__word {
  /* Solid white text faded by an overlay (not background-clip: text, which some engines
     clip to the box and cut the "g" descender / last letter). Padding keeps descenders
     under the overlay; negative margins keep the ink aligned with the container edges. */
  position: relative;
  margin: clamp(48px, 7vw, 88px) -.12em -.14em;
  padding: 0 .12em .24em;
  font: 700 clamp(40px, 14.4vw, 180px)/1 var(--font-display); letter-spacing: -.055em;
  white-space: nowrap; text-align: center;
  color: #fff;
  user-select: none;
}
.footer__word::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,.86) 100%);
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--dark-line);
  font-size: 13.5px; color: var(--dark-muted);
}
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease; }
.footer__top-link:hover { color: #fff; }
.footer__top-link svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .footer__top { flex-direction: column; }
}

/* ───────── Case-study cards (home #work, /etudes-de-cas/, related) ───────── */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cases--3 { grid-template-columns: repeat(3, 1fr); }
.case-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* White plate; on hover black opens as a circle from the centre, like the 03 Ship warp. */
.case-card__plate {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  height: clamp(170px, 18vw, 220px); padding: 24px 26px;
  color: var(--ink); background-color: var(--surface);
  background-image: radial-gradient(circle, #dcdcd7 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  transition: color .45s ease .1s;
}
.case-card__plate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--ink);
  background-image: radial-gradient(circle, #2c2c30 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path .7s cubic-bezier(.7, 0, .2, 1);
}
.case-card:hover .case-card__plate,
.case-card:focus-visible .case-card__plate { color: #fff; }
.case-card:hover .case-card__plate::before,
.case-card:focus-visible .case-card__plate::before { clip-path: circle(75% at 50% 50%); }
.case-card__title {
  font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
  white-space: nowrap; transition: transform .6s var(--ease);
}
.case-card:hover .case-card__title { transform: translateX(6px); }
/* Hover: the 03 Ship rocket flies in from the right edge, nose up-left at 45°, hovers on its thrust,
   while star streaks rush past along the same axis. */
.case-card__title { position: relative; }
.case-card__rocket {
  position: absolute; top: 14px; right: 44px; width: 44px; height: 98px; overflow: visible;
  rotate: -45deg; translate: 110px 110px; opacity: 0; pointer-events: none;
  transition: translate .9s var(--ease), opacity .3s ease;
}
.cases--3 .case-card__rocket, .cases--prose .case-card__rocket { top: 8px; right: 34px; width: 34px; height: 76px; }
.case-card:hover .case-card__rocket,
.case-card:focus-visible .case-card__rocket { translate: 0 0; opacity: 1; transition-delay: .2s; }
.case-card__thrust { animation: thrust 1.1s ease-in-out infinite alternate paused; }
@keyframes thrust { from { transform: translateY(9px); } to { transform: translateY(-11px); } }
/* Rotated layer, larger than the plate so the streaks cover it whatever its size. Local "down" = screen down-right. */
.case-card__streaks {
  position: absolute; inset: -60%; rotate: -45deg; pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
}
.case-card__streaks i {
  position: absolute; width: 1.5px; border-radius: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55));
  animation: streak 1s linear infinite paused;
}
@keyframes streak {
  from { transform: translateY(-160px); opacity: 0; }
  15%, 75% { opacity: 1; }
  to { transform: translateY(220px); opacity: 0; }
}
.case-card:hover .case-card__streaks,
.case-card:focus-visible .case-card__streaks { opacity: 1; transition-delay: .25s; }
.case-card:hover :is(.case-card__thrust, .case-card__streaks i),
.case-card:focus-visible :is(.case-card__thrust, .case-card__streaks i) { animation-play-state: running; }
.case-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 26px 26px; }
.case-card__body p { color: var(--muted); font-size: 15.5px; }
.case-card__body .case-card__kicker { color: var(--ink); font-weight: 600; font-size: 16px; }
.case-card__body .link { margin-top: auto; padding-top: 8px; }
.case-card:hover .link svg { transform: translateX(4px); }
.cases--3 .case-card__title { font-size: clamp(36px, 3.6vw, 48px); }
.prose .cases--prose { gap: 14px; margin-top: 1.6em; }
.cases--prose .case-card__title { margin: 0; font-size: clamp(34px, 4vw, 46px); color: inherit; }
.cases--prose .case-card__plate { height: 150px; }
.cases--prose .case-card__body p { font-size: 15px; line-height: 1.55; }

@media (max-width: 920px) {
  .cases--3 { grid-template-columns: 1fr 1fr; }
  .cases--3 .case-card:nth-child(3) { display: none; }
}
@media (max-width: 680px) {
  .cases, .cases--3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .cases--3 .case-card:nth-child(3) { display: flex; }
}

/* ───────── Generated pages: header ───────── */
.page .hl { background-size: 100% 92%; color: #fff; transition: none; }
.container--text { max-width: 820px; }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(11,11,12,.05); }

.page-head { position: relative; isolation: isolate; padding: clamp(128px, 17vh, 176px) 0 clamp(36px, 5vw, 56px); }
.page-head .dots { z-index: -1; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; line-height: 1.05; }
.page-head--index { text-align: center; padding-bottom: clamp(48px, 7vw, 80px); }
.page-head--index h1 { font-size: clamp(52px, 9vw, 112px); letter-spacing: -.05em; line-height: .98; }
.page-head--index .crumbs ol { justify-content: center; }
.page-head__lead { max-width: 46ch; margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.page-head__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 36px; }
.page-head--404 { min-height: 78svh; display: flex; align-items: center; }

.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { transition: color .2s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

.eyebrow { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.article__date { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.stats li:first-child { color: #fff; background: var(--ink); border-color: var(--ink); }
.stats strong { font: 700 clamp(26px, 3vw, 34px)/1.05 var(--font-display); letter-spacing: -.035em; }
.stats span { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.stats li:first-child span { color: var(--dark-muted); }

/* Case-study cover, figures and video (generated pages) */
.container--cover { max-width: 1120px; }
.cover, .figure, .video { margin-left: 0; margin-right: 0; }
.cover { margin-top: clamp(16px, 2vw, 24px); overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.cover img, .figure img { display: block; width: 100%; height: auto; }
.prose .figure, .prose .video { margin-top: 1.8em; }
/* Figures wider than the text column, centred on it */
.prose .figure { position: relative; left: 50%; width: min(1080px, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%); margin-top: 2.2em; margin-bottom: 2.2em; }
.prose .figure figcaption { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.figure img { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.figure figcaption, .video figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.video__link, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; overflow: hidden; background: var(--ink); }
.video__link { position: relative; }
.video__link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  color: #fff; background: var(--ink); border-radius: 50%; transition: transform .3s var(--ease);
}
.video__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video__link:hover .video__play, .video__link:focus-visible .video__play { transform: scale(1.08); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ───────── Generated pages: article body ───────── */
.prose { padding-top: clamp(40px, 6vw, 64px); font-size: 17.5px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.3em; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.prose h3 { margin-top: 1.9em; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.prose h2 + * { margin-top: .9em; }
.prose h2 + .point, .prose h2 + .point--num { margin-top: 1.2em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn):not(.link):not(.case-card) {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--faint);
  transition: text-decoration-color .2s ease;
}
.prose a:not(.btn):not(.link):not(.case-card):hover { text-decoration-color: var(--ink); }
.prose code { padding: .1em .35em; font-size: .88em; background: var(--line-2); border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.prose ul { display: grid; gap: .55em; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.prose ol:not(.features) { display: grid; gap: .7em; counter-reset: n; }
.prose ol:not(.features) > li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol:not(.features) > li::before {
  content: counter(n); position: absolute; left: 0; top: .18em;
  display: grid; place-items: center; width: 26px; height: 26px;
  font-size: 13px; font-weight: 600; line-height: 1; color: #fff; background: var(--ink); border-radius: 50%;
}

.point + .point { margin-top: 1.5em; }
.point h3 { margin-top: 0; }
.prose > .point { margin-top: 1.6em; }
.point p { margin-top: .45em; }
.point .point__num { margin: 0 0 8px; font: 600 13px/1 var(--font-body); letter-spacing: .04em; color: var(--muted); }

.prose .features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: f; }
.features li {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; counter-increment: f;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  font-size: 15.5px; line-height: 1.5;
}
.features li::before { content: "0" counter(f); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--faint); }
.features strong { font: 700 19px/1.25 var(--font-display); letter-spacing: -.02em; }
.features span { color: var(--muted); }

.callout {
  padding: 24px 28px; font-size: 16px; line-height: 1.65;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.callout > * + * { margin-top: .8em; }
.callout__title { font: 700 20px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.callout ul { gap: .45em; }
.callout .link { margin-top: 4px; }
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.callouts .callout { display: flex; flex-direction: column; }
.callouts .callout p:has(.link) { margin-top: auto; padding-top: 10px; }

.testimonial { margin: 2em 0 0; padding: clamp(26px, 4vw, 40px); color: #fff; background: var(--ink); border-radius: var(--radius); }
.testimonial blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.testimonial blockquote strong { color: #fff; }
.testimonial figcaption { margin-top: 18px; font-size: 14.5px; color: var(--dark-muted); }

.credit { margin-top: 2.4em !important; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); }
.prose__cta { margin-top: 1.6em; }

.table { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.table th { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--bg); }
.table tr + tr td, .table tbody tr:first-child td { border-top: 1px solid var(--line); }
.table td + td, .table th + th { border-left: 1px solid var(--line); }

.article__after { margin-top: 48px; }
.article__after .callout { background: transparent; }

@media (max-width: 700px) {
  .callouts, .prose .features { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .table table { min-width: 560px; }
}

/* ───────── Generated pages: closing call to action ───────── */
.section--cta { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: 0 0 clamp(64px, 9vw, 112px); }
.section--flush { padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 64px);
  color: #fff; background: var(--dark); border-radius: 32px; box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 620px; height: 420px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.1), transparent); pointer-events: none;
}
.cta-card h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.04em; }
.cta-card .hl { background-image: linear-gradient(#fff, #fff); color: var(--ink); }
.cta-card p { max-width: 48ch; color: var(--dark-muted); font-size: 17px; }
.cta-card .btn { margin-top: 8px; }

.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; text-align: left; margin-bottom: 32px; }
.section__head--row h2 { font-size: clamp(28px, 4vw, 44px); }

/* ───────── Blog index ───────── */
.posts { max-width: 960px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.post-row__date { padding-top: 8px; font-size: 14px; color: var(--muted); }
.post-row h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.12; }
.post-row h2 a { transition: opacity .2s ease; }
.post-row h2 a:hover { opacity: .7; }
.post-row p:not(.post-row__date) { margin: 12px 0 16px; max-width: 62ch; color: var(--muted); }
.posts__empty { padding: 48px 0; text-align: center; color: var(--muted); }
@media (max-width: 680px) {
  .post-row { grid-template-columns: 1fr; padding: 28px 0; }
  .post-row__date { padding-top: 0; }
}

/* ───────── Reveal on scroll ───────── */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* No JS → show everything */
.no-js .reveal, .no-js .w { opacity: 1; transform: none; filter: none; }
.no-js .hl { background-size: 100% 92%; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .w { opacity: 1; transform: none; filter: none; }
  .wall { height: auto; -webkit-mask-image: none; mask-image: none; }
  .wall__track { animation: none; transform: none; }
  .wall__track .is-clone { display: none; }
  .blueprint .draw { stroke-dashoffset: 0; }
  .blueprint .bp-btn, .blueprint .bp-label { fill-opacity: 1; opacity: 1; }
  .warp { clip-path: none; }
  .launch, .stamp--light { opacity: 1; transform: none; }
}
