/* Home page — edkursiss.com */

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { padding: clamp(24px, 3.4vw, 48px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "title title" "copy board";
  column-gap: clamp(32px, 5vw, 76px);
  row-gap: clamp(16px, 1.8vw, 24px);
  align-items: start;
}
.hero-titlewrap { grid-area: title; position: relative; }
.hero-title { max-width: 16ch; }
@media (min-width: 1081px) { .hero-title { max-width: none; } }
.hero-copy { grid-area: copy; display: grid; align-content: start; }
.hero .board { grid-area: board; scroll-margin-top: 84px; }
.hero-lede { max-width: 34em; }

/* ?for=<industry>: the page says who it was drawn for, in the first screen */
.for-tag { margin: 0 0 12px; justify-self: start; }
.for-tag[hidden] { display: none; }
.for-tag a {
  display: inline-flex; align-items: baseline; gap: 0.6ch; padding: 4px 10px 3px;
  border: 1px dashed var(--accent); border-radius: 4px; background: var(--sheet);
  font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.01em; color: var(--ink-2); text-decoration: none;
  transition: background-color var(--t-ui, 180ms) ease;
}
.for-tag b { font-weight: 600; color: var(--ink); }
.for-tag a:hover { background: var(--accent-wash); }

.fork { display: grid; margin: 20px 0 20px; border-top: 1px solid var(--line-2); }
.fork-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 20px; gap: 16px; align-items: center;
  padding: 13px 10px 13px 6px; border-bottom: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none;
  transition: background-color .2s ease;
}
.fork-row > .ico { color: var(--accent); }
.fork-row:hover { background: var(--sheet); }
.fork-text strong { display: block; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.fork-text > span { display: block; font-size: 0.9375rem; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.fork-price { color: var(--ink-2); white-space: nowrap; }
.fork-arrow { width: 20px; height: 20px; color: var(--ink-3); transition: transform .25s var(--ease-out), color .2s ease; }
.fork-row:hover .fork-arrow { transform: translateX(3px); color: var(--accent); }

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-person { display: flex; align-items: center; gap: 12px; }
.hero-person img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line-2); }
.hero-person p { line-height: 1.3; }
.hero-person strong { display: block; font-size: 0.9375rem; font-weight: 650; }
.hero-person span, .hero-person small { display: block; font-size: 0.875rem; color: var(--ink-3); }
.hero-person small { font-size: 0.8125rem; }

.facts {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  margin-top: clamp(20px, 2.4vw, 30px); padding: 16px 0 clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2);
}
.facts strong { color: var(--ink); font-weight: 680; }

/* ─── Drawing board ────────────────────────────────────────── */
.board {
  margin: 0; padding: 16px 16px 14px;
  background: var(--sheet); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sheet);
}
.board-tb { margin-bottom: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.compare {
  --pos: 54%;
  position: relative; aspect-ratio: 16 / 10.4; border-radius: 8px; overflow: hidden;
  container-type: inline-size;
  border: 1px solid var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-layer { position: absolute; inset: 0; isolation: isolate; }
.compare-built { z-index: 0; }
.compare-plan {
  z-index: 1;
  clip-path: inset(0 0 0 var(--pos));
  background-color: #fbfcfb;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 2.5cqw 2.5cqw, 2.5cqw 2.5cqw, 12.5cqw 12.5cqw, 12.5cqw 12.5cqw;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0;
  border-left: 1.5px solid var(--ink); pointer-events: none; z-index: 3;
}
.compare-handle span {
  position: absolute; top: 50%; left: 0; width: 42px; height: 42px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--sheet); border: 1.5px solid var(--ink); color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(15, 24, 40, .35);
}
.compare-handle svg { width: 18px; height: 18px; }
.compare-label {
  position: absolute; top: 7.6cqw; z-index: 2; pointer-events: none;
  padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em;
}
.compare-label--plan { right: 10px; background: var(--ink); color: var(--on-ink); }
.compare-label--built { left: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 0 0 1px rgba(15, 24, 40, .12); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range { pointer-events: none; }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 600px; cursor: ew-resize; pointer-events: auto; }
.compare-range::-moz-range-thumb { width: 56px; height: 600px; border: 0; cursor: ew-resize; pointer-events: auto; }

/* The concept site itself — its own small brand: oak, sage, warm white */
.mini {
  --s-ink: #22302a; --s-sub: #4d5b53; --s-accent: #5d7a5a; --s-bg: #faf8f4; --s-line: #e7e1d6;
  position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--s-bg); color: var(--s-ink); font-family: var(--font); line-height: 1.2;
}
.mini-bar { display: flex; align-items: center; gap: 2.6cqw; padding: 1.9cqw 3.2cqw; font-size: 1.45cqw; border-bottom: 1px solid var(--s-line); }
.mini-logo { font-weight: 720; font-size: 2.1cqw; font-stretch: 104%; letter-spacing: -0.02em; }
.mini-nav { display: flex; gap: 2.4cqw; color: var(--s-sub); }
.mini-nav i { font-style: normal; }
.mini-lang { margin-left: auto; color: var(--s-sub); font-size: 1.3cqw; letter-spacing: .04em; position: relative; }
.is-plan .mini-lang { padding-right: 2.4cqw; }
.mini-btn { position: relative; background: var(--s-accent); color: #fff; padding: 0.85cqw 2cqw; border-radius: 99px; font-weight: 600; font-size: 1.4cqw; }
.mini-hero { position: relative; overflow: hidden; }
.mini-photo { position: absolute; inset: 0; margin: 0; }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.mini-copy {
  position: relative; z-index: 1; height: 100%; width: 54%;
  display: grid; align-content: center; justify-items: start; gap: 1.5cqw; padding: 3cqw 4cqw;
  background: linear-gradient(90deg, rgba(250, 248, 244, .96) 0%, rgba(250, 248, 244, .88) 62%, rgba(250, 248, 244, 0) 100%);
}
.mini-h { font-size: 4.7cqw; line-height: 1.02; font-weight: 720; font-stretch: 104%; letter-spacing: -0.03em; }
.mini-p { font-size: 1.6cqw; color: var(--s-sub); }
.mini-cta { margin-top: 0.8cqw; background: var(--s-ink); color: #fff; padding: 1.25cqw 2.6cqw; border-radius: 99px; font-size: 1.6cqw; font-weight: 600; }
.mini-slot {
  position: relative; display: inline-flex; align-items: center; gap: 0.9cqw;
  background: #fff; border-radius: 99px; padding: 0.75cqw 1.5cqw; font-size: 1.35cqw; color: var(--s-ink);
  box-shadow: 0 0.4cqw 1.6cqw -0.6cqw rgba(34, 48, 42, .35);
}
.mini-slot i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #2f9e62; }
.mini-strip { display: flex; gap: 3cqw; padding: 1.7cqw 3.2cqw; font-size: 1.4cqw; color: var(--s-sub); border-top: 1px solid var(--s-line); background: var(--s-bg); }
.mini-strip span:last-child { margin-left: auto; color: var(--s-accent); font-weight: 600; position: relative; }

/* Plan skin: same layout, drawn */
.mini.is-plan { --s-ink: var(--ink); --s-sub: var(--ink-3); --s-line: rgba(15, 24, 40, .35); background: transparent; font-family: var(--mono); font-weight: 500; }
.is-plan .mini-bar { border-bottom: 1px solid var(--s-line); }
.is-plan .mini-logo { font-family: var(--mono); font-size: 1.25cqw; font-weight: 600; letter-spacing: .06em; padding: 0.5cqw 1.2cqw; border: 1px dashed var(--s-line); border-radius: 3px; }
.is-plan .mini-nav i { padding: 0.2cqw 0.8cqw; border-bottom: 1px solid var(--s-line); }
.is-plan .mini-btn { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-size: 1.2cqw; letter-spacing: .06em; }
.is-plan .mini-photo {
  background: repeating-linear-gradient(135deg, rgba(15, 24, 40, .07) 0 1px, transparent 1px 1.1cqw);
  border-left: 1px dashed var(--s-line);
  left: 54%;
}
.is-plan .mini-photo span {
  position: absolute; right: 3cqw; bottom: 3cqw; display: inline-flex; align-items: center; padding: 0.6cqw 1.2cqw;
  background: #fbfcfb; border: 1px solid var(--s-line); font-size: 1.15cqw; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase;
}
.is-plan .mini-copy { background: none; }
.is-plan .mini-h { font-family: var(--mono); font-size: 2.9cqw; font-weight: 600; line-height: 1.15; letter-spacing: 0; padding: 1cqw 1.4cqw; border: 1px dashed var(--s-line); }
.is-plan .mini-p { font-size: 1.3cqw; }
.is-plan .mini-cta { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-size: 1.3cqw; letter-spacing: .06em; }
.is-plan .mini-slot { background: transparent; box-shadow: none; border: 1px dashed var(--s-line); font-size: 1.2cqw; color: var(--ink-2); }
.is-plan .mini-strip { background: transparent; }
.is-plan .mini-strip span { padding: 0.2cqw 0.8cqw; border: 1px dashed var(--s-line); border-radius: 3px; }
.is-plan .mini-strip span:last-child { color: var(--ink); border-style: solid; }

.mk {
  display: inline-grid; place-items: center; flex: none;
  width: 2.3cqw; height: 2.3cqw; margin-left: 0.8cqw; vertical-align: middle;
  border-radius: 50%; background: var(--ink); color: var(--sheet); border: 1px solid var(--ink);
  font: 600 1.2cqw/1 var(--mono); font-style: normal;
}
.is-plan .mini-btn .mk, .is-plan .mini-lang .mk { position: absolute; top: -1.4cqw; right: -1.6cqw; margin: 0; }

.board-foot { margin-top: 14px; }
.board-legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; font-size: 0.8125rem; color: var(--ink-2); }
.board-legend li { display: flex; align-items: center; gap: 8px; }
.board-legend .mk { width: 19px; height: 19px; margin: 0; font-size: 11px; }

/* ─── Drawing kit: every inline SVG on this page is drawn with it ───
   Three pens (hairline, object, cut line). Hatch means "before" or "up to".
   Solid cobalt is the point. Colours are tokens, so Plan view redraws it. */
.dwg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dwg-defs .hair { stroke: var(--ink-3); stroke-width: 1; }
.dwg-defs .accs { stroke: var(--accent); stroke-width: 1; }
.dwg { display: block; width: 100%; height: auto; }
.dwg text { font-family: var(--mono); }
.dwg .hair { stroke: var(--ink-3); stroke-width: var(--pen-1, 1px); fill: none; }
.dwg .obj { stroke: var(--ink); stroke-width: var(--pen-2, 1.5px); fill: none; }
.dwg .cut { stroke: var(--ink); stroke-width: var(--pen-3, 2.5px); fill: none; }
.dwg .chain { stroke: var(--ink-2); stroke-width: var(--pen-1, 1px); fill: none; stroke-dasharray: 10 3 2 3; }
.dwg .acc { fill: var(--accent); }
.dwg .accs { stroke: var(--accent); stroke-width: var(--pen-1, 1px); fill: none; }
.dwg .paper { fill: var(--sheet); }
.dwg .ns { vector-effect: non-scaling-stroke; }
.dwg .l { font-size: 12px; font-weight: 500; fill: var(--ink-2); }
.dwg .v { font-size: 13px; font-weight: 600; fill: var(--ink); }
.dwg .halo { paint-order: stroke; stroke: var(--sheet); stroke-width: 6px; stroke-linejoin: round; }

/* Ink moves, words don't: a line is ruled, a mark is set. Finished is the default;
   the start state exists only until the shared trigger adds .is-inked. */
.dwg .rule { transform-box: fill-box; transition: transform var(--t-rule, 700ms) var(--ease-pen, cubic-bezier(0.65, 0, 0.35, 1)) var(--d, 0ms); }
.dwg .rule-x { transform-origin: left center; }
.dwg .rule-y { transform-origin: center top; }
.dwg .set { transition: opacity 0s linear var(--d, 0ms); }
@media (prefers-reduced-motion: no-preference) {
  html.ink [data-ink]:not(.is-inked) .rule-x { transform: scaleX(0); transition: none; }
  html.ink [data-ink]:not(.is-inked) .rule-y { transform: scaleY(0); transition: none; }
  html.ink [data-ink]:not(.is-inked) .set { opacity: 0; transition: none; }
}

/* ─── Measured figures ─────────────────────────────────────── */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 clamp(24px, 3.4vw, 48px); }
.fig { margin: 0; min-width: 0; display: grid; align-content: start; gap: 10px; }
.fig .dwg { max-width: 400px; overflow: visible; }
/* narrower than the 340 units a figure is drawn at: the labels are set larger, so they still read at 12px */
@media (max-width: 371px) {
  .fig .dwg .l { font-size: 14px; }
  .fig .dwg .v { font-size: 15px; }
}
.fig-t { font-size: 1.0625rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.fig figcaption { font: 500 0.75rem/1.45 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.figs .fig { padding: 22px 0 6px; border-top: 1px solid var(--line-2); }

/* ─── Sheet W-01: your homepage, in elevation ──────────────────
   Nine trades, nine different homepages. Each is one block of HTML
   sized in container units, so the same page is the thumbnail in the
   picker, the desktop elevation and (re-flowed) the phone elevation. */

/* 150+ shipped, on a rule: one tick, one site */
.proof { margin: 0; display: grid; gap: 5px; }
.proof-rule { position: relative; margin-right: 13px; }
.proof-rule .dwg { height: 18px; }
.proof-rule::after {
  content: ""; position: absolute; left: 100%; top: -3px; margin-left: 2px;
  border: 4.5px solid transparent; border-left: 9px solid var(--accent); border-right: 0;
}
.proof-scale { position: relative; height: 18px; margin-right: 13px; font: 500 0.75rem/18px var(--mono); color: var(--ink-3); }
.proof-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.proof-scale span:nth-child(1) { left: 0; transform: none; }
.proof-scale span:nth-child(2) { left: 33.4%; }
.proof-scale span:nth-child(3) { left: 66.6%; }
.proof-scale span:nth-child(4) { left: auto; right: 0; transform: none; color: var(--ink); font-weight: 600; }
.proof figcaption { margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); }
.proof figcaption strong { color: var(--ink); font-weight: 650; }

/* Controls: the trade picker is a strip of the nine homepages themselves */
.ws-controls { display: grid; gap: 18px; margin-bottom: clamp(18px, 2.2vw, 26px); }
.ws-film { min-width: 0; margin: 0; padding: 0; border: 0; }
.ws-film legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.ws-reel { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.ws-thumb { position: relative; display: grid; gap: 7px; min-width: 0; }
.ws-thumb input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ws-tf {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size;
  border: var(--pen-1, 1px) solid var(--line-2); border-radius: 4px; background: var(--paper-2);
  transition: border-color var(--t-ui, 180ms) ease;
}
.ws-thumb label { font-size: 0.8125rem; font-weight: 560; line-height: 1.25; color: var(--ink-2); }
.ws-thumb:hover .ws-tf { border-color: var(--ink); }
.ws-thumb input:checked ~ .ws-tf { border-color: var(--ink); outline: var(--pen-3, 2.5px) solid var(--ink); outline-offset: 2px; }
.ws-thumb input:checked ~ label { color: var(--ink); font-weight: 680; }
.ws-thumb input:focus-visible ~ .ws-tf { outline: 2px solid var(--accent); outline-offset: 3px; }
.ws-name { display: grid; grid-template-columns: max-content minmax(0, 360px); justify-content: start; align-items: center; gap: 8px 16px; }
/* without scripts the sheet shows the salon and the plain button: the strip still shows the nine pages */
html:not(.ink) .ws-thumb input, html:not(.ink) .ws-name { display: none; }
/* in Plan view the nine pages stay what they are: samples pinned to the blueprint */
.plan-view .ws-tf picture img { opacity: 1; filter: none; }
.plan-view .ws-tf picture::after { display: none; }

/* The stage: desktop elevation, phone elevation, the ground they stand on, callouts */
.ws-stage { position: relative; aspect-ratio: 1000 / 510; margin: clamp(12px, 1.6vw, 22px) clamp(6px, 1vw, 14px) 0; }
.ws-el {
  position: absolute; display: grid; grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; container-type: inline-size;
  border: var(--pen-2, 1.5px) solid var(--ink); background: var(--sheet);
}
.ws-a { left: 6%; top: 8.63%; width: 66%; aspect-ratio: 16 / 10; border-radius: 3px; }
.ws-ph { left: 79%; bottom: 10.49%; width: 18%; aspect-ratio: 300 / 490; border-radius: 8% / 4.9%; }
.ws-hp { position: relative; min-height: 0; overflow: hidden; }
.ws-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 0.8cqw 2.2cqw;
  border-bottom: var(--pen-1, 1px) solid var(--ink); background: var(--sheet); color: var(--ink-2);
}
.ws-ttl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 1.3cqw/1.4 var(--mono); }
.ws-ttl b { font-weight: 600; color: var(--ink); }
.ws-dom { flex: none; padding: 0.2cqw 1cqw; border: 1px dashed var(--ink-3); border-radius: 3px; font: 500 1.1cqw/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ws-ph .ws-tab { gap: 3cqw; padding: 2.4cqw 6cqw 2cqw; }
.ws-ph .ws-ttl { font-size: 3.8cqw; }
.ws-ph .ws-dom { padding: 0.5cqw 2cqw; font-size: 3.1cqw; }
.ws-ground { position: absolute; left: 2.5%; right: 1.2%; top: 89.51%; height: var(--pen-3, 2.5px); background: var(--ink); }
.ws-ename { position: absolute; top: calc(89.51% + 10px); font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ws-ename--a { left: 6%; }
.ws-ename--b { left: 79%; }

/* leaders are ruled from the part they point at; then the balloon lands */
.ws-leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ws-leads--c { display: none; }
.ws-leads path { fill: none; vector-effect: non-scaling-stroke; }
.ws-leads .halo { stroke: var(--sheet); stroke-width: 4px; }
.ws-leads .lead { stroke: var(--ink); stroke-width: var(--pen-1, 1px); }
.ws-leads .ln { transform-box: fill-box; transition: transform 320ms var(--ease-pen, cubic-bezier(0.65, 0, 0.35, 1)) calc(var(--k) * 140ms + 80ms); }
.ws-leads .dot { fill: var(--ink); stroke: var(--sheet); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transition: opacity 0s linear calc(var(--k) * 140ms); }
.ws-mk {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background: var(--ink); color: var(--sheet); box-shadow: 0 0 0 2px var(--sheet);
  font: 600 12px/24px var(--mono); font-style: normal; text-align: center;
  transition: opacity 0s linear calc(var(--k) * 140ms + 380ms), transform 420ms var(--ease-stamp, cubic-bezier(0.2, 1.3, 0.4, 1)) calc(var(--k) * 140ms + 380ms);
}
.ws-k0 { --k: 0; } .ws-k1 { --k: 1; } .ws-k2 { --k: 2; } .ws-k3 { --k: 3; } .ws-k4 { --k: 4; } .ws-k5 { --k: 5; }
@media (prefers-reduced-motion: no-preference) {
  html.ink .wsample:not(.is-inked) .ln, html.ink .ws-stage.is-armed .ln { transform: scale(0); transition: none; }
  html.ink .wsample:not(.is-inked) .dot, html.ink .ws-stage.is-armed .dot { opacity: 0; transition: none; }
  html.ink .wsample:not(.is-inked) .ws-mk, html.ink .ws-stage.is-armed .ws-mk { opacity: 0; transform: scale(1.7); transition: none; }
}

.ws-cap { margin-top: 2px; padding: 9px clamp(12px, 1.6vw, 22px); font: 500 0.8125rem/1.45 var(--font); color: var(--ink-3); }
.ws-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px 24px; align-items: start; padding: 16px clamp(12px, 1.6vw, 22px); border-top: var(--pen-1, 1px) solid var(--line-2); }
.ws-rowk { padding-top: 3px; font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.ws-legend { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.ws-legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.ws-n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sheet); font: 600 12px/22px var(--mono); font-style: normal; text-align: center; }
/* four dimensions in a row read as one string */
.ws-dims { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ws-dims li { display: grid; gap: 6px; min-width: 0; }
.ws-dims .dim { --dim-c: var(--ink-3); color: var(--ink); font-size: 0.8125rem; font-weight: 600; }
.ws-dims li > span:last-child { text-align: center; font-size: 0.875rem; color: var(--ink-2); }
/* one tick where two dimensions meet (four in a row, or two by two on a phone) */
@media (min-width: 900px) { .ws-dims li + li .dim::before { margin-left: -4.5px; background: linear-gradient(var(--dim-c), var(--dim-c)) center / 100% var(--pen-1, 1px) no-repeat; } }
@media (max-width: 899px) { .ws-dims li:nth-child(even) .dim::before { margin-left: -4.5px; background: linear-gradient(var(--dim-c), var(--dim-c)) center / 100% var(--pen-1, 1px) no-repeat; } }
.ws-tb dd { overflow-wrap: anywhere; }

.ws-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(24px, 3vw, 36px); }
.ws-price { display: grid; gap: 6px; }
.ws-price strong { font-size: 1.5rem; font-weight: 740; font-stretch: 110%; letter-spacing: -0.02em; }
.ws-act { display: grid; justify-items: start; gap: 12px; }

/* ── The same pages on a phone: one column, drawn 2.5 times larger ── */
.ws-ph .hp { --hl: 0.4px; inset: 0 auto auto 0; width: 40%; height: 40%; transform: scale(2.5); transform-origin: 0 0; }
.ws-ph .hp-nav { display: none; }
.ws-ph .hp-bar { gap: 1.6cqw; padding: 1.5cqw 2.4cqw; }
.ws-ph .hp-logo { max-width: 17cqw; }
.ws-ph .hp-btn { min-width: 0; }
.ws-ph .hp-bar .hp-lang { order: 3; margin-left: 0; }
.ws-ph .hp-bar .hp-btn { margin-left: auto; }
.ws-ph .hp-end { gap: 1.6cqw; }
.ws-ph .hp-end .hp-btn { margin-left: 0; }
.ws-ph .hp-copy { padding: 2cqw 2.4cqw; }
.ws-ph .hp--salon { grid-template: "bar" auto "photo" minmax(0, 1fr) "copy" auto / minmax(0, 1fr); }
.ws-ph .hp--salon .hp-h { font-size: 4.2cqw; }
.ws-ph .hp--clinic { grid-template: "bar" auto "copy" auto "photo" minmax(0, 1fr) / minmax(0, 1fr); }
.ws-ph .hp--clinic .hp-copy { gap: 1.3cqw; }
.ws-ph .hp--clinic .hp-h { font-size: 4.4cqw; }
.ws-ph .hp--clinic .hp-photo { margin: 0 2.4cqw 6cqw; border-radius: 1.6cqw; }
.ws-ph .hp-next { justify-self: stretch; width: auto; margin: 0 4.4cqw 2cqw; padding: 1.2cqw 1.4cqw; }
.ws-ph .hp--garage .hp-copy { padding: 0 2.4cqw 2cqw; }
.ws-ph .hp--garage .hp-h { font-size: 4cqw; }
.ws-ph .hp-prices { grid-template-columns: 1fr 1fr; }
.ws-ph .hp-prices li { padding: 0.9cqw 1.4cqw; border-top: var(--hl) solid rgba(20, 24, 31, 0.25); }
.ws-ph .hp--restaurant .hp-bar { grid-template-columns: minmax(0, 1fr) auto; }
.ws-ph .hp--restaurant .hp-logo { justify-self: start; font-size: 1.7cqw; letter-spacing: 0.16em; }
.ws-ph .hp--restaurant .hp-h { font-size: 4.6cqw; }
.ws-ph .hp-reserve { justify-self: stretch; flex-wrap: wrap; margin: 0 2.4cqw 2.4cqw; }
.ws-ph .hp-fields > span:not(.hp-cta) { flex: 1; padding: 1cqw 1.2cqw; }
.ws-ph .hp-fields .hp-cta { flex-basis: 100%; padding: 1.2cqw; }
.ws-ph .hp--guesthouse .hp-copy { padding: 1.8cqw 2.4cqw; background: linear-gradient(180deg, rgba(var(--s-veil), 0.92), rgba(var(--s-veil), 0) 70%); }
.ws-ph .hp--guesthouse .hp-h { font-size: 3.8cqw; }
.ws-ph .hp-booking { justify-self: stretch; flex-wrap: wrap; margin: 0 2.4cqw -6cqw; }
.ws-ph .hp--guesthouse .hp-cards { gap: 1cqw; padding: 7.4cqw 2.4cqw 1.6cqw; font-size: 1.2cqw; }
.ws-ph .hp--guesthouse .hp-cards li { grid-template-columns: minmax(0, 1fr); font-size: 1.2cqw; }
.ws-ph .hp--trades { grid-template: "copy" auto "photo" minmax(0, 1fr) "area" auto / minmax(0, 1fr); }
.ws-ph .hp--trades .hp-copy { padding: 2.6cqw 2.4cqw 2.4cqw; }
.ws-ph .hp--trades .hp-h { font-size: 2.9cqw; }
.ws-ph .hp-tel { font-size: 4cqw; }
.ws-ph .hp--trades .hp-lang { margin: 1.2cqw; }
.ws-ph .hp-area { flex-wrap: wrap; gap: 0.6cqw 1.6cqw; padding: 1.2cqw 2.4cqw 1.6cqw; }
.ws-ph .hp-area i { flex-basis: 100%; }
.ws-ph .hp--physio { grid-template: "bar" auto "copy" auto "week" auto "photo" minmax(0, 1fr) / minmax(0, 1fr); }
.ws-ph .hp--physio .hp-copy { grid-template-columns: minmax(0, 1fr); padding: 1cqw 2.4cqw 1.8cqw; }
.ws-ph .hp--physio .hp-h { font-size: 4.4cqw; }
.ws-ph .hp--physio .hp-cta { grid-column: 1; grid-row: auto; }
.ws-ph .hp-week { margin: 0 2.4cqw 2cqw; padding: 1.2cqw; }
.ws-ph .hp-grid { grid-template-columns: 4.6cqw repeat(5, minmax(0, 1fr)); gap: 0.4cqw; font-size: 1.05cqw; }
.ws-ph .hp-grid { grid-auto-rows: 2.6cqw; }
.ws-ph .hp--physio .hp-photo { margin: 0; border-radius: 0; }
.ws-ph .hp--cafe { grid-template: "bar" auto "copy" auto "photo" minmax(0, 1fr) "menu" auto / minmax(0, 1fr); }
.ws-ph .hp--cafe .hp-copy { padding: 0.6cqw 2.4cqw 2cqw; }
.ws-ph .hp--cafe .hp-h { font-size: 5.6cqw; }
.ws-ph .hp--cafe .hp-photo { margin: 0; border-radius: 0; }
.ws-ph .hp-menu { grid-template-columns: 1fr 1fr; gap: 1.2cqw; padding: 1.4cqw 2.4cqw 1.8cqw; }
.ws-ph .hp-menu li:nth-child(n+3) { display: none; }
.ws-ph .hp--realestate { grid-template: "bar" auto "copy" auto "list" minmax(0, 1fr) / minmax(0, 1fr); }
.ws-ph .hp--realestate .hp-copy { padding: 1.8cqw 2.4cqw; gap: 1.1cqw; }
.ws-ph .hp--realestate .hp-h { font-size: 3.6cqw; }
.ws-ph .hp--realestate .hp-logo { max-width: 15cqw; letter-spacing: 0.08em; }
.ws-ph .hp-search { grid-template-columns: 1fr 1fr; }
.ws-ph .hp-search .hp-seg, .ws-ph .hp-search .hp-cta { grid-column: 1 / -1; }
.ws-ph .hp-listings { grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: 0 2.4cqw 2.4cqw; }
.ws-ph .hp-listings li:nth-child(n+2) { display: none; }

/* ─── Automation path: three replays ───────────────────────── */
.flow {
  --run: 2400ms; --lead: 350ms; --gap: 18px;
  position: relative; margin-bottom: clamp(36px, 4.4vw, 56px);
  padding: 22px 26px 26px; border-radius: var(--r-lg);
  background: var(--ink-band-2); border: 1px solid var(--on-ink-line);
}
.flow-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.replay-stamp {
  flex: none; padding: 6px 11px 5px; border: 1.5px solid var(--accent-on-ink); border-radius: 4px;
  font: 600 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-ink);
  transform: rotate(-2deg);
}
.seg { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--on-ink-line); border-radius: 99px; }
.seg-tab {
  font: 600 0.875rem/1.2 var(--font); padding: 9px 16px; border: 0; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--on-ink-2); transition: background-color .2s ease, color .2s ease;
}
.seg-tab small { font-size: inherit; font-weight: 500; }
.seg-tab:hover { color: var(--on-ink); }
.seg-tab[aria-selected="true"] { background: var(--on-ink); color: var(--ink); }
.seg-tab:focus-visible { outline: 2px solid var(--accent-on-ink); outline-offset: 2px; }

/* With scripts one replay shows at a time; without them all three are simply laid out */
.flow-title { display: none; margin-bottom: 16px; }
html.ink .flow-panel:not(.is-on) { display: none; }
html:not(.ink) .seg { display: none; }
html:not(.ink) .flow-title { display: block; }
html:not(.ink) .flow-panel + .flow-panel { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--on-ink-line); }

.flow-photo { margin-bottom: 26px; }
.flow-photo picture, .flow-photo img { aspect-ratio: 21 / 9; max-height: 260px; object-fit: cover; object-position: left center; }
.flow-photo--mid img { object-position: center 58%; }
.flow-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.flow-steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
/* the track, and on top of it the line that is ruled from the first node to the last */
.flow-steps::before, .flow-steps::after {
  content: ""; position: absolute; left: 6px; right: calc((100% - 4 * var(--gap)) / 5 - 7px); pointer-events: none;
}
.flow-steps::before { top: 6px; height: 1px; background: var(--on-ink-line); }
.flow-steps::after {
  top: 5.5px; height: 2px; border-radius: 2px; background: var(--accent-on-ink);
  transform-origin: left center; transition: transform var(--run) linear var(--lead);
}
.flow-steps li { position: relative; z-index: 1; display: grid; align-content: start; gap: 3px; padding-top: 28px; }
/* a node is a ring; reaching it sets the dot */
.flow-steps li::before, .flow-steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; }
.flow-steps li::before { background: var(--ink-band-2); border: 1.5px solid var(--on-ink-2); }
.flow-steps li::after { background: var(--on-ink); transition: opacity var(--t-set, 240ms) ease calc(var(--lead) + var(--i, 0) * var(--run) / 4); }
.flow-steps li.is-warn::after { background: #ffb199; }
.flow-steps li.is-ok::before { border-color: #47d48f; }
.flow-steps li.is-ok::after { background: #47d48f; }
.flow-steps .mono { color: var(--on-ink-2); font-size: 0.75rem; }
.flow-steps b { color: var(--on-ink); font-weight: 640; font-size: 1rem; line-height: 1.3; }
.flow-steps li > span:last-child { color: var(--on-ink-2); font-size: 0.875rem; line-height: 1.4; }

/* then the wait is measured, in the site's own device */
.flow-dim { margin-top: 22px; color: var(--on-ink); font-size: 0.8125rem; }
.flow-dim b { font-weight: 600; color: #7dedb4; }
.flow-dim i { font-style: normal; }
.flow-dim::before, .flow-dim::after { height: 11px; }
.flow-dim > span { transition: visibility 0s linear calc(var(--lead) + var(--run) + 150ms); }
html.ink .flow .flow-dim::before, html.ink .flow .flow-dim::after {
  transform: none; transition: transform 500ms var(--ease-out) calc(var(--lead) + var(--run) + 150ms);
}
html.ink .flow .flow-dim::before { transform-origin: right center; }
html.ink .flow .flow-dim::after { transform-origin: left center; }

/* Not yet played (its steps have not been on screen), or re-armed by a tab:
   nothing reached but the first node */
@media (prefers-reduced-motion: no-preference) {
  html.ink .flow-steps:not(.is-inked)::after,
  html.ink .flow-panel.is-armed .flow-steps::after { transform: scaleX(0); transition: none; }
  html.ink .flow-steps:not(.is-inked) li:not(:first-child)::after,
  html.ink .flow-panel.is-armed .flow-steps li:not(:first-child)::after { opacity: 0; transition: none; }
  html.ink .flow .flow-steps:not(.is-inked) + .flow-dim::before, html.ink .flow .flow-steps:not(.is-inked) + .flow-dim::after,
  html.ink .flow-panel.is-armed .flow-dim::before, html.ink .flow-panel.is-armed .flow-dim::after { transform: scaleX(0); transition: none; }
  html.ink .flow-steps:not(.is-inked) + .flow-dim > span,
  html.ink .flow-panel.is-armed .flow-dim > span { visibility: hidden; transition: none; }
}

/* The receptionist: the one room worth a closer look */
.feature {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--on-ink-line); border-bottom: 1px solid var(--on-ink-line);
}
.feature-body { display: grid; gap: 10px; }
.feature p { color: var(--on-ink-2); }
.feature .feature-price { color: var(--on-ink); font-weight: 680; font-size: 1.25rem; white-space: nowrap; font-stretch: 106%; }
.feature-price .mono { color: var(--on-ink-2); font-size: 0.75rem; font-weight: 500; font-stretch: 100%; }
.feature-note { max-width: 44ch; }
.automation-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 44px; }

/* ─── Sheet A-01: your business, in plan ───────────────────── */
.sheet { padding: 5px; border: var(--pen-2, 1.5px) solid var(--ink); background: var(--sheet); box-shadow: var(--shadow-sheet); }
.sheet-in { border: var(--pen-1, 1px) solid var(--line-2); }
.plan-draw { padding: clamp(14px, 1.8vw, 26px) clamp(8px, 1.2vw, 18px) clamp(8px, 1vw, 14px); }
.plan-p { display: none; }
.sheet-tb {
  grid-template-columns: 0.6fr 1.3fr 1.3fr 0.8fr;
  border: 0; border-top: var(--pen-2, 1.5px) solid var(--ink); border-radius: 0; background: transparent;
}
.sheet-tb dd { white-space: normal; }
.plan-foot { margin-top: clamp(22px, 2.6vw, 32px); }

/* rooms are links: hatch on hover and focus */
.dwg .room { cursor: pointer; }
.dwg .room:focus-visible { outline: 2px solid var(--accent); outline-offset: -7px; }
.dwg .room-on { opacity: 0; transition: opacity var(--t-ui, 180ms) ease; }
.dwg .room-wash { fill: var(--accent-wash); }
.dwg .room-hatch { fill: url(#hatch-a); opacity: 0.55; }
.dwg .room:hover .room-on, .dwg .room:focus-visible .room-on { opacity: 1; }
.dwg .rn { font-family: var(--font); font-size: 15px; font-weight: 650; fill: var(--ink); letter-spacing: -0.01em; }
.dwg .rd { font-family: var(--font); font-size: 13px; fill: var(--ink-2); }
.dwg .rp { font-size: 13px; font-weight: 600; fill: var(--accent); }
.dwg .room:hover .rp, .dwg .room:focus-visible .rp { text-decoration: underline; }
.dwg .deco { pointer-events: none; }
.dwg .wall { stroke: var(--ink); stroke-width: 8; fill: none; }
.dwg .part { stroke: var(--ink); stroke-width: 4.5; fill: none; }
.dwg .way { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 5; fill: none; }
/* the customer's path is ruled once: paper covers slide off it, segment by segment */
.dwg .pc { fill: var(--sheet); transform-box: fill-box; transition: transform var(--pd, 600ms) linear var(--d, 0ms); }
.dwg .pc-r { transform-origin: right center; transform: scaleX(0); }
.dwg .pc-t { transform-origin: center top; transform: scaleY(0); }
.dwg .pc-b { transform-origin: center bottom; transform: scaleY(0); }
@media (prefers-reduced-motion: no-preference) {
  /* landscape: wait for the title block, by then the whole sheet is on screen. Portrait: the sheet itself. */
  html.ink .sheet:not(.is-inked) .plan-p .pc { transform: none; transition: none; }
  html.ink .sheet:has(.sheet-tb:not(.is-inked)) .plan-l .pc { transform: none; transition: none; }
  html.ink .sheet:has(.sheet-tb:not(.is-inked)) .plan-l .set { opacity: 0; transition: none; }
}

/* ─── Work ─────────────────────────────────────────────────── */
.cases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.case { display: grid; align-content: space-between; gap: 24px; padding: 30px clamp(18px, 2.4vw, 32px) 32px; border-bottom: 1px solid var(--line-2); }
.case:first-child { padding-left: 0; }
.case:last-child { padding-right: 0; }
.case + .case { border-left: 1px solid var(--line-2); }
.case-text { display: grid; gap: 10px; }
.case-text p { color: var(--ink-2); max-width: 54ch; }
.case-text .case-stack { color: var(--ink-3); font-size: 0.75rem; }
.case-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.case-flow li {
  position: relative; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--sheet);
  font: 500 0.75rem/1.3 var(--mono); color: var(--ink-2);
}
.case-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -18px; top: 50%; width: 14px; height: 1px; background: var(--ink-3);
}
.case-flow li:not(:last-child)::before {
  content: ""; position: absolute; right: -18px; top: calc(50% - 3px); width: 5px; height: 5px;
  border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); transform: rotate(45deg);
}
.case-flow li.is-end { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.work-more { margin-top: 28px; }
@media (min-width: 641px) {
  .case-flow { flex-wrap: nowrap; gap: 8px 14px; }
  .case-flow li { padding: 3px 6px; white-space: nowrap; }
  .case-flow li:not(:last-child)::after { right: -12px; width: 9px; }
  .case-flow li:not(:last-child)::before { right: -12px; }
}

/* ─── Process: four steps beside the programme ────────────── */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 36px clamp(40px, 5vw, 76px); align-items: start; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 26px 28px 22px 0; }
.steps li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.steps li:nth-child(n+3) { border-top: 1px solid var(--line); padding-bottom: 4px; }
.step-n { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.75rem; }
.steps p { color: var(--ink-2); font-size: 0.9375rem; }
.steps .dim { margin-top: 12px; }
.fig--programme { padding-top: 24px; border-top: 1px solid var(--ink); }
.terms { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.terms li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.terms .ico { color: var(--ink); margin-top: 1px; }
.terms strong { display: block; color: var(--ink); font-weight: 650; }
.terms li > span { display: grid; gap: 1px; }

/* ─── Prices ───────────────────────────────────────────────── */
.price-table { border-top: 1px solid var(--ink); }
.pt-row {
  display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2.2fr) 120px minmax(150px, 0.8fr);
  gap: 8px 28px; align-items: baseline; padding: 20px 8px; border-bottom: 1px solid var(--line-2);
  transition: background-color .2s ease;
}
.pt-row:not(.pt-head):hover { background: var(--sheet); }
.pt-head { padding-top: 12px; padding-bottom: 12px; font: 500 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pt-head span:last-child { text-align: right; }
.pt-name { font-weight: 680; font-size: 1.125rem; letter-spacing: -0.01em; }
.pt-what { color: var(--ink-2); }
.pt-time { color: var(--ink-3); }
.pt-price { text-align: right; font-weight: 740; font-size: 1.375rem; font-stretch: 108%; letter-spacing: -0.015em; white-space: nowrap; }
.pt-price small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); font-stretch: 100%; letter-spacing: 0; }
.price-h { margin-top: 56px; }
.price-sub { margin: 4px 0 18px; }
.prices-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 28px; }

/* ─── About ────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }
.about-copy { display: grid; gap: 18px; }
.about-p { color: var(--ink-2); max-width: 62ch; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.about-facts div { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.about-facts dt { font: 500 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.about-facts dd { margin: 0; font-weight: 600; }
.about-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.about-figs { grid-column: 1 / -1; align-self: start; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); gap: 32px 64px; align-items: start; }
.faq-grid > h2 { position: sticky; top: 100px; }

/* ─── Final CTA ───────────────────────────────────────────── */
.final-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px 72px; align-items: end; }
.final-grid .lede { margin-top: 18px; }
.final-q { margin-bottom: 10px; }
.final-links { display: grid; border-top: 1px solid var(--on-ink-line); }
.pick {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 6px; border-bottom: 1px solid var(--on-ink-line);
  color: var(--on-ink); text-decoration: none; font-size: 1.25rem; font-weight: 620; letter-spacing: -0.01em;
  transition: color .2s ease;
}
.pick span { transition: transform .3s var(--ease-out); }
.pick svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease-out); }
.pick:hover { color: var(--accent-on-ink); }
.pick:hover span { transform: translateX(6px); }
.pick:hover svg { transform: translateX(3px); }
.final-mail { margin-top: 18px; color: var(--on-ink-2); }
.final-mail a { color: var(--on-ink); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "title" "copy" "board"; }
  .hero-copy, .hero .board { max-width: 760px; }
  .facts { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 48px; }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .fig--programme { max-width: 440px; }
  .terms { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case, .case:first-child, .case:last-child { padding: 26px 0; }
  .case + .case { border-left: 0; }
}
/* Narrower than the landscape plan is drawn at, it becomes the portrait drawing: re-drawn, not shrunk */
@media (max-width: 1099px) {
  .plan-l { display: none; }
  .plan-p { display: block; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .seg-tab small { display: none; }
  .flow-dim .fd-l { display: none; }
  .flow-steps { grid-template-columns: 1fr; gap: 16px; }
  .flow-steps::before, .flow-steps::after { left: 6px; right: auto; top: 8px; bottom: 0; width: 1px; height: auto; }
  .flow-steps::after { left: 5.5px; width: 2px; transform-origin: center top; }
  .flow-steps li { padding: 0 0 0 30px; }
  .flow-steps li::before, .flow-steps li::after { top: 3px; }
  /* the last step hides the line below its own node, so the line ends on it */
  .flow-steps li:last-child { background: linear-gradient(transparent 9px, var(--ink-band-2) 9px); }
  .feature { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > h2 { position: static; }
  .final-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.ink .flow-steps:not(.is-inked)::after,
  html.ink .flow-panel.is-armed .flow-steps::after { transform: scaleY(0); }
}
@media (max-width: 760px) {
  .pt-head { display: none; }
  .pt-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "what what" "time time"; padding: 18px 0; }
  .pt-from::before { content: "from "; font-size: 0.8125rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); }
  .pt-name { grid-area: name; } .pt-price { grid-area: price; } .pt-what { grid-area: what; } .pt-time { grid-area: time; font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .compare { aspect-ratio: 4 / 3.5; }
  .mini-bar { font-size: 2.4cqw; gap: 3cqw; padding: 2.6cqw 3.6cqw; }
  .mini-nav { display: none; }
  .mini-logo { font-size: 3.4cqw; }
  .is-plan .mini-logo { font-size: 2.2cqw; }
  .mini-lang { font-size: 2.2cqw; }
  .mini-btn { font-size: 2.4cqw; padding: 1.2cqw 3cqw; }
  .is-plan .mini-btn { font-size: 2.1cqw; }
  .mini-copy { width: 72%; gap: 2.2cqw; padding: 4cqw 4.4cqw; }
  .mini-h { font-size: 7cqw; }
  .is-plan .mini-h { font-size: 4.2cqw; }
  .mini-p { font-size: 2.6cqw; }
  .is-plan .mini-p { font-size: 2.2cqw; }
  .mini-cta { font-size: 2.6cqw; padding: 1.8cqw 3.6cqw; }
  .is-plan .mini-cta { font-size: 2.2cqw; }
  .mini-slot { font-size: 2.3cqw; padding: 1.1cqw 2.2cqw; }
  .is-plan .mini-slot { font-size: 2cqw; }
  .mini-slot i { width: 1.4cqw; height: 1.4cqw; }
  .mini-strip { font-size: 2.3cqw; padding: 2.4cqw 3.6cqw; }
  .mini-strip span:nth-child(2), .mini-strip span:nth-child(3) { display: none; }
  .is-plan .mini-photo { left: 72%; }
  .is-plan .mini-photo span { display: none; }
  .mk { width: 3.6cqw; height: 3.6cqw; font-size: 2cqw; }
  .is-plan .mini-btn .mk, .is-plan .mini-lang .mk { top: -2.2cqw; right: -2.4cqw; }
  .board { padding: 12px 12px 12px; }
  .compare-label { top: 11.5cqw; }
  .board-legend { grid-template-columns: 1fr; }
  .board-tb { grid-template-columns: 1fr 1fr; }
  .board-tb > div:nth-child(3) { border-left: 0; }
  .board-tb > div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .titleblock > div { padding: 6px 9px 7px; }
  .fork-row { grid-template-columns: 22px minmax(0, 1fr) 20px; }
  .fork-price { grid-column: 2; grid-row: 2; margin-top: -8px; font-size: 0.75rem; }
  .fork-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .facts { grid-template-columns: 1fr; gap: 6px; font-size: 0.875rem; }
  .hero { padding-top: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(n) { padding: 22px 0 6px; border-left: 0; }
  .steps li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .terms { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 14px; }
  .seg-tab { padding: 9px 6px; font-size: 0.8125rem; border-radius: 11px; }
  .flow-photo picture, .flow-photo img { aspect-ratio: 16 / 9; }
  .footer { padding-bottom: 96px; }
  .case-flow { flex-wrap: nowrap; gap: 8px 15px; }
  @media (max-width: 350px) { .case-flow { flex-wrap: wrap; } }
  .case-flow li { padding: 4px 7px; white-space: nowrap; }
  .case-flow li:not(:last-child)::after { right: -13px; width: 10px; }
  .case-flow li:not(:last-child)::before { right: -13px; }
}

/* Sheet W-01 on narrower screens */
@media (max-width: 1080px) {
  .ws-buy { grid-template-columns: minmax(0, 1fr) auto; }
  .ws-buy .proof { grid-column: 1 / -1; grid-row: 2; max-width: 640px; }
}
/* below this the sheet carries the phone elevation alone, large enough to read */
@media (max-width: 899px) {
  .ws-reel { position: relative; display: flex; gap: 10px; margin: -4px -2px 0; padding: 4px 2px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .ws-thumb { flex: 0 0 132px; scroll-snap-align: start; }
  .ws-stage { aspect-ratio: 100 / 133; max-width: 400px; margin-inline: auto; }
  .ws-a, .ws-ename--a { display: none; }
  .ws-ph { left: 13%; top: 2.2%; bottom: auto; width: 74%; }
  .ws-ground { left: 5%; right: 5%; top: 93.08%; }
  .ws-ename--b { left: 13%; top: calc(93.08% + 8px); }
  .ws-leads--d { display: none; }
  .ws-leads--c { display: block; }
  .ws-mk { left: var(--cx); top: var(--cy); }
  .ws-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ws-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
  .ws-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
}
@media (max-width: 640px) {
  .ws-controls { gap: 14px; margin-bottom: 16px; }
  .ws-name { grid-template-columns: minmax(0, 1fr); }
  .ws-stage { margin: 12px auto 0; }
  .ws-cap { padding: 8px 12px; }
  .ws-row { padding: 14px 12px; }
  .ws-legend li { gap: 8px; font-size: 0.875rem; }
  .ws-buy { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
  .ws-act { justify-items: stretch; }
  .ws-act .btn { width: 100%; }
  .ws-act .link { justify-self: start; }
  .ws-buy .proof { grid-row: auto; }
}

/* ─────────── Creative layer: the drawing comes alive ─────────── */

/* Drafting guides on the headline: cap height and baseline, like a type specimen sheet */
.guide { display: none; }
@media (min-width: 1081px) {
  .hero-title { position: relative; }
  .hero-title::before, .hero-title::after {
    content: ""; position: absolute; left: -24px; right: 0; pointer-events: none;
    border-top: 1px dashed rgba(36, 69, 224, 0.32);
  }
  .hero-title::before { top: 0.135em; }
  .hero-title::after { top: 0.825em; }
  .guide {
    display: block; position: absolute; right: 0; pointer-events: none;
    font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(36, 69, 224, 0.85);
  }
  /* % of the one-line headline box (0.98em tall): cap top ≈ 13.8%, baseline ≈ 84.2% */
  .guide--cap { top: calc(13.8% - 18px); }
  .guide--base { top: calc(84.2% + 7px); }
}

/* CAD crosshair with live coordinates over the drawing (mouse only) */
.cad { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.cad-x { position: absolute; left: 0; right: 0; top: var(--cy, 50%); border-top: 1px dashed rgba(36, 69, 224, 0.6); }
.cad-y { position: absolute; top: 0; bottom: 0; left: var(--cx, 50%); border-left: 1px dashed rgba(36, 69, 224, 0.6); }
.cad-read {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); transform: translate(10px, 10px);
  padding: 3px 7px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap;
}
.cad.is-flip .cad-read { transform: translate(calc(-100% - 10px), 10px); }
@media (hover: hover) and (pointer: fine) {
  .compare { cursor: crosshair; }
  .compare:hover .cad { opacity: 1; }
}

/* The approval stamp: drag to the finished build and it lands on the sheet */
.stamp {
  position: absolute; z-index: 5; right: 7%; top: 30%;
  display: grid; justify-items: center; gap: 0.5cqw;
  padding: 1.6cqw 2.8cqw 1.4cqw; border: 0.45cqw solid var(--accent); border-radius: 1.2cqw;
  outline: 0.18cqw solid var(--accent); outline-offset: -1.1cqw;
  background: rgba(255, 255, 255, 0.9); color: var(--accent); text-decoration: none;
  font: 600 1.45cqw/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-9deg);
  box-shadow: 0 1.2cqw 3cqw -1.2cqw rgba(15, 24, 40, 0.45);
}
.stamp b { font: 800 4.4cqw/1 var(--font); font-stretch: 112%; letter-spacing: -0.02em; text-transform: none; }
.stamp[hidden] { display: none; }
.stamp:hover { background: #fff; }
.stamp:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.stamp.is-on { animation: thump 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes thump {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}
.board-hint { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .stamp.is-on { animation: none; }
}

/* ─── Phone: keep the page short ─── */
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .section-head { gap: 10px; margin-bottom: 22px; }
  .section-head .lede { font-size: 1rem; }
  .hero-grid { row-gap: 14px; }
  .hero-lede { font-size: 1rem; }
  .for-tag { margin-bottom: 8px; }
  .fork { margin: 14px 0; }
  .fork-row { padding: 10px 6px 10px 4px; gap: 12px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; padding: 14px 0 22px; font-size: 0.8125rem; }
  .board-foot { margin-top: 10px; }
  .board-legend { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 0.75rem; }
  .board-hint { display: none; }
  .proof figcaption { font-size: 0.875rem; }
  .flow { padding: 16px 16px 20px; margin-bottom: 28px; }
  .flow-head { margin-bottom: 16px; }
  .replay-stamp { font-size: 0.75rem; padding: 5px 9px 4px; }
  .flow-photo { margin-bottom: 18px; }
  .flow-photo picture, .flow-photo img { aspect-ratio: 21 / 9; }
  .flow-photo figcaption span:last-child { display: none; }
  .flow-photos { grid-template-columns: 1fr; }
  .flow-photos .flow-photo + .flow-photo { display: none; }
  .flow-steps { gap: 12px; }
  .flow-steps li { display: block; padding-left: 28px; }
  .flow-steps .mono { margin-right: 8px; }
  .flow-steps b { font-size: 0.9375rem; }
  .flow-steps li > span:last-child { display: block; font-size: 0.8125rem; }
  .flow-dim { margin-top: 16px; }
  .feature { padding: 16px 0; }
  .feature p { font-size: 0.9375rem; }
  .feature .feature-price { font-size: 1.125rem; }
  .automation-cta { margin-top: 28px; gap: 14px 24px; flex-direction: column; align-items: flex-start; }
  .automation-cta .link { display: block; }
  /* the sheet runs edge to edge so the portrait plan is never smaller than drawn */
  .sheet { padding: 0; }
  .sheet-in { border: 0; }
  .plan-draw { padding: 10px 0 2px; }
  .sheet-tb { grid-template-columns: 1fr 1fr; }
  .sheet-tb > div:nth-child(3) { border-left: 0; }
  .sheet-tb > div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .plan-foot .btn { width: 100%; }
  .figs .fig { padding: 18px 0 4px; }
  .fig-t { font-size: 1rem; }
  .about-photo { max-width: 132px; }
  .about-copy { gap: 12px; }
  .about-facts div { padding: 9px 0; }
  .about-facts dt { margin-bottom: 2px; }
  .case, .case:first-child, .case:last-child { padding: 20px 0; gap: 14px; }
  .steps li:nth-child(n) { padding: 14px 0 4px; gap: 6px; }
  .steps .dim { margin-top: 4px; }
  .process-grid { gap: 22px; }
  .fig--programme { padding-top: 18px; }
  .terms { margin-top: 24px; padding-top: 20px; gap: 14px; }
  .price-h { margin-top: 32px; }
  .pt-time { display: none; }
  .pt-row { padding: 12px 0; gap: 4px 12px; }
  .pt-what { font-size: 0.875rem; }
  .pt-name { font-size: 1rem; }
  .pt-price { font-size: 1.125rem; text-align: right; }
  .pt-price small { font-size: 0.75rem; }
  .prices-foot { margin-top: 20px; }
  .final .lede { font-size: 1rem; }
  .about-photo { max-width: 84px; }
  .about-photo img { border-radius: 50%; }
  .case-text .case-stack { display: none; }
  .case-text { gap: 6px; }
  .steps p { font-size: 0.875rem; }
  .terms li { font-size: 0.875rem; }
}
