/* ==========================================================================
   MyLocalDev — "Loud and flat"
   Flat poster colour by chapter, one heavy grotesk, square corners.
   Five type steps: small, body, lead, head, display.
   ========================================================================== */

@font-face {
  font-family: "Chivo";
  src: url("../fonts/chivo-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette: charcoal and primaries, with the brand mint as the action colour */
  --bg: #191919;
  --surface: #242424;
  --surface-2: #2e2e2e;
  --white: #ffffff;
  --muted: #a3a3a3;
  --blue: #1e4bd7;
  --red: #d71e1e;
  --teal: #0c7866;
  --yellow: #ffe927;
  --mint: #5eead4;
  --mint-ink: #052b25;
  --paper: #f3f3f1;
  --black: #111111;

  /* type */
  --font: "Chivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 0.8rem + 5vw, 5.5rem);
  --step-display: clamp(3rem, 12.4vw, 13.5rem);

  /* frame */
  --margin: max(clamp(16px, 3vw, 44px), env(safe-area-inset-left), env(safe-area-inset-right));
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 13vh, 200px);
  --hdr-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* names the overlay and demo stylesheets still use */
  --header-h: var(--hdr-h);
  --font-sans: var(--font);
  --font-display: var(--font);
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore: terminal-only token / hidden input / floating toast */
  --ink: #ffffff;
  --ink-2: #e6e6e6;
  --mist: #b5b5b5;
  --phos: var(--mint);
  --phos-ink: var(--mint-ink);
  --rule: #333333;
  --rule-strong: #4a4a4a;
  --signal: var(--yellow);
  --danger: #ff6b5e;
  --radius-m: 0px;
  --radius-l: 0px;
  --shadow-card: none;
  --step-2: var(--step-lead);
}

/* ---------- Chapters: each sets its ground, inks and action colours ---------- */
.ch { background: var(--ground); color: var(--fg); }
.ch-dark { --ground: var(--bg); --fg: #fff; --soft: var(--muted); --btn-bg: var(--mint); --btn-ink: var(--mint-ink); --focus: var(--mint); --cell: var(--surface-2); }
.ch-blue { --ground: var(--blue); --fg: #fff; --soft: #dfe6ff; --btn-bg: var(--mint); --btn-ink: var(--mint-ink); --focus: var(--yellow); --cell: #3a63e6; }
.ch-yellow { --ground: var(--yellow); --fg: var(--black); --soft: #4f4800; --btn-bg: var(--black); --btn-ink: var(--yellow); --focus: var(--black); --cell: #f2dc12; }
.ch-red { --ground: var(--red); --fg: #fff; --soft: #fff; --btn-bg: #fff; --btn-ink: var(--red); --focus: #fff; --cell: #b81515; }
.ch-teal { --ground: var(--teal); --fg: #fff; --soft: #e2fffa; --btn-bg: var(--mint); --btn-ink: var(--mint-ink); --focus: var(--yellow); --cell: #0a6656; }
.ch-mint { --ground: var(--mint); --fg: var(--mint-ink); --soft: var(--mint-ink); --btn-bg: var(--mint-ink); --btn-ink: var(--mint); --focus: var(--mint-ink); --cell: #4fd8c2; }

/* ---------- Reset and base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: #fff;
  font: 400 var(--step-body)/1.45 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus, var(--mint)); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--black); }
kbd { font: inherit; font-weight: 800; padding: 0 0.3em; background: rgba(0, 0, 0, 0.22); white-space: nowrap; }
b, strong { font-weight: 800; }

.wrap { width: 100%; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--margin); top: -100px; z-index: 1000; padding: 0.8rem 1.2rem; background: var(--yellow); color: var(--black); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.fine { margin-top: 24px; font-size: var(--step-small); color: var(--soft); max-width: 60ch; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5rem; border: 0; border-radius: 0;
  background: var(--btn-bg, var(--mint)); color: var(--btn-ink, var(--mint-ink));
  font: 800 var(--step-body)/1.1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { min-height: 60px; padding: 0 2rem; }
.btn-small { min-height: 44px; padding: 0 1rem; font-size: var(--step-small); }
.btn-quiet, .btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 3px currentColor; } /* taste-skill-ignore: a solid 3px button edge, not a rule */
.btn-quiet:hover, .btn-ghost:hover { background: var(--fg, #fff); color: var(--ground, var(--bg)); }
.btn[disabled] { cursor: progress; transform: none; }
.text-link { font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.22em; transition: text-underline-offset 0.2s; }
.text-link:hover { text-underline-offset: 0.36em; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; transition: transform 0.15s; }
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Header: takes the ink of the chapter beneath it ---------- */
.site-header {
  --hdr-bg: var(--blue); --hdr-ink: #fff; --hdr-btn: var(--mint); --hdr-btn-ink: var(--mint-ink);
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr-h);
  background: var(--hdr-bg); color: var(--hdr-ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-header[data-hdr="dark"], .site-header[data-hdr="photo"] { --hdr-bg: var(--bg); --hdr-ink: #fff; }
.site-header[data-hdr="yellow"] { --hdr-bg: var(--yellow); --hdr-ink: var(--black); --hdr-btn: var(--black); --hdr-btn-ink: var(--yellow); }
.site-header[data-hdr="red"] { --hdr-bg: var(--red); --hdr-ink: #fff; --hdr-btn: #fff; --hdr-btn-ink: var(--red); }
.site-header[data-hdr="teal"] { --hdr-bg: var(--teal); --hdr-ink: #fff; }
.site-header[data-hdr="mint"] { --hdr-bg: var(--mint); --hdr-ink: var(--mint-ink); --hdr-btn: var(--mint-ink); --hdr-btn-ink: var(--mint); }
.site-header { --focus: var(--hdr-ink); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 100%; padding-inline: var(--margin); }
.brand { font: 900 var(--step-lead)/1 var(--font); letter-spacing: -0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.primary-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.55rem; font-weight: 700; font-size: var(--step-small); text-decoration: none; text-underline-offset: 0.3em; }
.primary-nav a:not(.btn):hover, .primary-nav a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 3px; }
.nav-mobile-only, .drawer-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.sound-toggle .icon-off { display: none; }
.sound-toggle[aria-pressed="false"] .icon-on { display: none; }
.sound-toggle[aria-pressed="false"] .icon-off { display: block; }
.jump-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.5rem; border: 0; background: transparent; font-weight: 700; font-size: var(--step-small); }
.jump-btn:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.header-phone { font-weight: 800; font-size: var(--step-small); text-decoration: none; white-space: nowrap; padding: 0 0.4rem; }
.header-cta { --btn-bg: var(--hdr-btn); --btn-ink: var(--hdr-btn-ink); }
.call-btn, .menu-toggle { display: none; }
.bars { display: grid; gap: 5px; width: 24px; }
.bar { display: block; height: 3px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1279px) { .header-phone { display: none; } }
@media (max-width: 1079px) {
  .menu-toggle, .call-btn { display: inline-grid; }
  .jump-btn kbd, .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 99; margin: 0;
    display: flex; flex-direction: column; padding: 24px var(--margin) max(24px, env(safe-area-inset-bottom));
    background: var(--hdr-bg); color: var(--hdr-ink); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .primary-nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a:not(.btn) { padding: 0.15rem 0; font: 900 clamp(2.5rem, 11vw, 4rem)/1.05 var(--font); letter-spacing: -0.045em; text-transform: uppercase; }
  .nav-mobile-only { display: block; margin-top: 12px; }
  .nav-mobile-only .btn { width: 100%; --btn-bg: var(--hdr-btn); --btn-ink: var(--hdr-btn-ink); }
  .nav-mobile-only .btn-quiet { --btn-bg: transparent; color: inherit; }
  .drawer-foot { display: block; margin-top: auto; padding-top: 24px; font-size: var(--step-small); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .jump-btn { display: none; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.8s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* lower sections rise into place but are never invisible */
.js .rise { transform: translateY(30px); transition: transform 0.9s var(--ease-out) var(--d, 0s); }
.js .rise.is-in { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; min-height: 100svh; padding: calc(var(--hdr-h) + clamp(24px, 5vh, 64px)) var(--margin) clamp(72px, 10vh, 120px); }
.hero-title { font: 900 var(--step-display)/0.84 var(--font); letter-spacing: -0.055em; text-transform: uppercase; margin-left: -0.04em; }
.hero-title span { display: block; }
.line-a { color: #fff; }
.line-b { color: var(--yellow); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); margin-top: clamp(28px, 4.5vh, 56px); align-items: start; }
.hero-copy { display: grid; gap: 28px; align-content: start; }
.lede { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; }
.hero-facts li { font-size: var(--step-body); }
.hero-facts strong { display: block; font: 900 var(--step-lead)/1.1 var(--font); color: var(--yellow); }
.hero-stage { display: grid; gap: 40px; }

/* the showcase is a picture of real demo sites: it keeps their own interface styling */
.showcase { position: relative; transform: rotate(-2.5deg); transform-origin: 30% 60%; transition: transform 0.6s var(--ease); }
.showcase:hover { transform: rotate(-1deg); }
.sc-browser { position: relative; background: #0e0e0e; cursor: pointer; }
.sc-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; }
.frame-dots { display: inline-flex; gap: 6px; flex: none; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.sc-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; background: #262626; color: #c9c9c9; font-size: var(--step-small); white-space: nowrap; overflow: hidden; }
.sc-url svg { width: 12px; height: 12px; flex: none; color: var(--mint); }
.sc-url span { overflow: hidden; text-overflow: ellipsis; }
.sc-screen { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: #222; }
.sc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.sc-slide.is-active { opacity: 1; }
.sc-slide:not(.is-active), .sc-pslide:not(.is-active) { pointer-events: none; }
.sc-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.sc-slide.is-active img { transform: scale(1); }
.sc-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.04)); } /* taste-skill-ignore: neutral scrim over a photo */
.sc-nav { position: absolute; inset: 0 0 auto 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.85rem 1.1rem; color: #fff; font-size: var(--step-small); }
.sc-nav span { display: inline-flex; gap: 6px; }
.sc-nav i { display: inline-block; width: 2.2rem; height: 4px; background: rgba(255, 255, 255, 0.5); }
.sc-nav b { font-size: var(--step-small); }
.sc-nav em { font-style: normal; padding: 0.3rem 0.65rem; background: var(--c, #fff); color: #fff; font-weight: 800; }
.sc-copy { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 1; max-width: 64%; color: #fff; }
.sc-copy small { display: block; margin-bottom: 0.45rem; color: #f0f0f0; font-size: var(--step-small); font-weight: 700; }
.sc-copy strong { display: block; font-size: clamp(1rem, 0.7rem + 1.1vw, 1.6rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.sc-copy span { display: inline-block; margin-top: 0.75rem; padding: 0.4rem 0.8rem; background: var(--c, #5eead4); color: #fff; font-size: var(--step-small); font-weight: 800; }
.sc-apex { --c: #d9571c; } .sc-apex strong { text-transform: uppercase; font-weight: 900; }
.sc-osteria { --c: #2f4a3b; } .sc-osteria strong, .sc-osteria .sc-nav b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.sc-pelican { --c: #1d3a4a; } .sc-pelican strong, .sc-pelican .sc-nav b { font-family: Georgia, "Times New Roman", serif; }
.sc-velocity { --c: #ff3b30; } .sc-velocity strong, .sc-velocity .sc-nav b { font-style: italic; font-weight: 900; }
.sc-vanguard { --c: #14213d; } .sc-vanguard strong, .sc-vanguard .sc-nav b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; }
.sc-sailfish { --c: #0a7ea8; }
.sc-phone { position: absolute; right: -3%; bottom: 7%; width: 23%; padding: 6px; border-radius: 26px; background: #0e0e0e; cursor: pointer; transform: rotate(4deg); transition: transform 0.5s var(--ease); }
.showcase:hover .sc-phone { transform: rotate(6deg) translateY(-8px); }
.sc-phone-screen { position: relative; aspect-ratio: 9 / 19; border-radius: 20px; overflow: hidden; background: #222; container-type: inline-size; }
.sc-pslide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.sc-pslide.is-active { opacity: 1; }
.sc-pslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.sc-pslide.sc-apex { --pos: 66% 50%; } .sc-pslide.sc-sailfish { --pos: 62% 50%; } .sc-pslide.sc-velocity { --pos: 46% 50%; }
.sc-pslide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 22%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.9) 80%); } /* taste-skill-ignore: neutral scrim over a photo */
.sc-pslide .sc-nav { padding: 22px 9px 0; gap: 6px; }
.sc-pslide .sc-nav b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(0.5rem, 7cqi, 0.7rem); }
.sc-pslide .sc-nav span { display: grid; gap: 2px; flex: none; }
.sc-pslide .sc-nav i { width: 10px; height: 2px; }
.sc-pslide .sc-nav em { display: none; }
.sc-pslide .sc-copy { left: 9px; right: 9px; bottom: 12px; max-width: none; }
.sc-pslide .sc-copy small { font-size: clamp(0.4rem, 5cqi, 0.55rem); }
.sc-pslide .sc-copy strong { font-size: clamp(0.56rem, 8.6cqi, 0.9rem); }
.sc-pslide .sc-copy span { display: block; margin-top: 8px; padding: 6px 4px; font-size: clamp(0.46rem, 6.2cqi, 0.62rem); text-align: center; }
.sc-caption { display: inline-flex; align-items: center; gap: 0.9rem; max-width: 72%; margin-top: 12px; padding: 6px 6px 6px 16px; background: #0e0e0e; color: #fff; }
.sc-caption-name { min-width: 0; font-weight: 800; font-size: var(--step-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-open { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.9rem; border: 0; background: var(--mint); color: var(--mint-ink); font-size: var(--step-small); font-weight: 800; transition: transform 0.15s; }
.sc-open:hover { transform: translateX(3px); }
.sc-open svg { width: 14px; height: 14px; }
.showcase.is-yours .sc-nav b { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the live thing: put your business name on a demo */
.try-bar { display: grid; gap: 14px; }
.try-title { font: 900 var(--step-lead)/1.1 var(--font); letter-spacing: -0.03em; text-transform: uppercase; }
.try-cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.try-go { grid-column: 1 / -1; justify-self: start; }
.try-cell { display: grid; gap: 2px; padding: 10px 16px 8px; background: var(--cell); transition: background-color 0.2s, color 0.2s; }
.try-cell:focus-within { background: #fff; color: var(--black); }
.try-cell label { font-size: var(--step-small); font-weight: 800; }
.try-cell input, .try-cell select { width: 100%; min-height: 36px; padding: 0; border: 0; background: transparent; font-size: var(--step-body); outline: none; }
.try-cell select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 12px 8px; padding-right: 22px; }

.try-cell input::placeholder { color: #dfe6ff; opacity: 1; }
.try-cell:focus-within input::placeholder { color: #666; }
.try-go { min-height: 100%; }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 8px; }
  .sc-caption { max-width: 100%; }
  .try-cells { grid-template-columns: 1fr; }
  .try-go { min-height: 56px; }
}

/* ---------- Work: giant title, uneven wall ---------- */
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.giant { font: 900 var(--step-head)/0.9 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.work-intro { max-width: 52ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.3; }
.wall { display: grid; gap: 36px; margin-top: 48px; }
.wall-row { display: flex; gap: 8px; }
.row-a { --row-h: clamp(220px, 29vw, 460px); }
.row-b { --row-h: clamp(170px, 17vw, 260px); }
.row-c { --row-h: clamp(190px, 22vw, 330px); }
.tile { flex: var(--r) 1 0; min-width: 0; }
.tile-media { display: block; width: 100%; height: var(--row-h); padding: 0; border: 0; background: #000; overflow: hidden; text-align: left; }
.tile-media .photo-slot { height: 100%; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.7s var(--ease), opacity 0.35s; }
.row-b .tile-media img, .row-c .tile-media img { object-position: center; }
.wall-row:hover .tile:not(:hover) img { opacity: 0.6; }
.tile:hover img { transform: scale(1.035); }
.tile figcaption { padding-top: 12px; }
.cap-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--step-small); }
.cap-line b { font-size: var(--step-body); }
.cap-line span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--soft); }
.cap-line svg { width: 12px; height: 12px; }
.cap-more { display: block; max-width: 62ch; margin-top: 8px; }
@media (max-width: 759px) {
  .wall { gap: 24px; }
  .wall-row { flex-wrap: wrap; row-gap: 20px; }
  .row-a { --row-h: 220px; }
  .row-a .tile { flex: 1 1 100%; }
  .row-b, .row-c { --row-h: 150px; }
  .row-b .tile:first-child, .row-c .tile:last-child { flex: 1 1 100%; --row-h: 210px; }
  .row-b .tile:nth-child(2) { flex: 62 1 0; } .row-b .tile:nth-child(3) { flex: 38 1 0; }
  .row-c .tile:nth-child(1) { flex: 38 1 0; } .row-c .tile:nth-child(2) { flex: 62 1 0; }
  .work-head { flex-wrap: wrap; }
}

/* ---------- Tools: slips of real output along the bottom edge ---------- */
.tools { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 100svh; overflow: clip; background: #10202b; color: var(--paper); }
.tools-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; }
.tools-copy { position: relative; z-index: 1; display: grid; gap: 20px; width: min(44rem, 64%); margin: calc(var(--hdr-h) + 7vh) 0 48px 18%; padding: clamp(24px, 3vw, 40px); background: rgba(12, 12, 12, 0.62); }
.tools-copy h2 { font: 900 var(--step-head)/0.92 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.tools-copy p { font-size: var(--step-lead); line-height: 1.3; }
.slips { position: relative; z-index: 1; align-self: end; display: flex; align-items: flex-end; gap: 12px; padding-inline: var(--margin); margin-bottom: -2px; list-style: none; }
.slip-li { flex: 1 1 0; min-width: 0; height: max(var(--h), 290px); transform: rotate(var(--t, 0deg)); transform-origin: 50% 100%; }
.slip {
  display: flex; flex-direction: column; gap: 7px; width: 100%; height: calc(100% + 40px); padding: 20px 18px;
  border: 0; background: var(--paper); color: #151515; text-align: left;
  font: 400 var(--step-small)/1.35 var(--font); font-variant-numeric: tabular-nums;
  transition: transform 0.35s var(--ease-out);
}
.slip-li:hover .slip, .slip:focus-visible { transform: translateY(-16px); }
.slip b { font-size: var(--step-body); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.slip .dash { color: #6b6b6b; white-space: nowrap; overflow: hidden; letter-spacing: 0.04em; }
.slip .row { display: flex; justify-content: space-between; gap: 10px; }
.slip .row span:last-child { text-align: right; white-space: nowrap; }
.slip .total { font-weight: 900; }
.slip .go { margin-top: 8px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; color: var(--blue); }
.slip:focus-visible { outline-color: var(--yellow); }
@media (max-width: 1079px) {
  .tools-copy { width: auto; margin: calc(var(--hdr-h) + 6vh) var(--margin) 40px; }
  .slips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px 10px; padding-top: 24px; }
  .slip-li { height: auto; }
  .slip { height: auto; padding-bottom: 28px; }
}
@media (max-width: 599px) {
  .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip { padding: 16px 12px 22px; }
  .slip .row { flex-direction: column; gap: 0; }
  .slip .row span:last-child { text-align: left; white-space: normal; font-weight: 700; }
}

/* ---------- What you get: capabilities at poster scale ---------- */
.caps { list-style: none; padding-block: 4vh 0; }
.cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: first baseline; padding-block: 0.12em; transition: transform 0.3s var(--ease); }
.cap-name { grid-column: 1 / 9; font: 900 var(--step-head)/1 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.cap p { grid-column: 9 / 13; max-width: 34ch; }
.cap-head .cap-name { color: var(--soft); }
.cap:not(.cap-head):hover { transform: translateX(14px); }
.cap b { font-weight: 900; }
@media (max-width: 899px) {
  .cap { grid-template-columns: 1fr; padding-block: 0 28px; }
  .cap-name, .cap p { grid-column: 1; }
  .cap p { margin-top: 8px; padding-left: var(--margin); }
}

/* the readout: this page, measured */
.readout { --fg: #fff; --soft: var(--muted); --btn-bg: var(--mint); --btn-ink: var(--mint-ink); --focus: var(--mint); margin-top: clamp(64px, 10vh, 120px); padding: clamp(24px, 4vw, 56px); background: var(--black); color: #fff; }
.readout-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.readout h3 { font: 900 var(--step-lead)/1.15 var(--font); letter-spacing: -0.03em; text-transform: uppercase; }
.readout-status { font-size: var(--step-small); font-weight: 800; color: var(--mint); }
.readout-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); margin-top: 32px; }
.readout-figs .fig { display: grid; gap: 6px; }
.readout-figs .fig span { order: 2; font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.readout-figs .fig b { order: 1; font: 900 var(--step-head)/1 var(--font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.race { display: grid; gap: 12px; margin-top: 40px; }
.race-row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 5.5rem; align-items: center; gap: 16px; font-weight: 700; }
.race-track { height: 22px; background: #2c2c2c; overflow: hidden; }
.race-fill { display: block; width: 0; height: 100%; background: #fff; transition: width 0.9s var(--ease); }
.race-fill.is-this { background: var(--mint); }
.race-time { font-variant-numeric: tabular-nums; text-align: right; }
.race-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
.race-note { flex: 1 1 28rem; max-width: 60ch; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 599px) {
  .readout-figs { grid-template-columns: 1fr; }
  .race-row { grid-template-columns: 1fr 4.5rem; }
  .race-label { grid-column: 1 / -1; }
}

/* ---------- Process: one verb at a time ---------- */
.process-head { padding-block: var(--section) clamp(64px, 9vh, 120px); }
.process-head h2 { font: 900 var(--step-head)/0.92 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.process-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) clamp(24px, 4vw, 72px); margin-top: 40px; }
.process-intro p:last-child { max-width: 56ch; }
.stages { list-style: none; }
.stage { position: relative; display: flow-root; height: 100svh; overflow: clip; color: #fff; background: #222; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.06); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.42); }
.verb-hold { position: sticky; top: 50%; z-index: 2; margin-top: calc(50svh - 0.44 * var(--step-display)); transform: translateY(-50%); text-align: center; pointer-events: none; }
.verb { font: 900 var(--step-display)/0.88 var(--font); letter-spacing: -0.055em; text-transform: uppercase; }
.stage-note { position: absolute; left: var(--margin); top: calc(var(--hdr-h) + var(--margin)); z-index: 2; max-width: 38rem; padding: 18px 22px; background: rgba(0, 0, 0, 0.66); }
@media (prefers-reduced-motion: no-preference) {
  .stage-photo { animation: drift 26s ease-in-out infinite alternate; }
  .tools-photo { animation: drift 34s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -1.5%, 0); } }
@media (max-width: 759px) {
  .process-intro { grid-template-columns: 1fr; }
  .stage-note { right: var(--margin); max-width: none; }
}

/* ---------- Pricing: one plan as a sentence ---------- */
.price-field { min-height: 80svh; padding-block: var(--section); }
.price-line { font: 900 var(--step-head)/0.95 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.price-line > span { display: block; }
.price-block { display: inline-block; padding: 0 0.15em; background: var(--mint); color: var(--mint-ink); }
.price-under { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; margin-top: 64px; }
.price-under .lead { grid-column: 1 / 7; max-width: 36ch; }
.price-actions { grid-column: 8 / 13; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); margin-top: clamp(72px, 11vh, 140px); }
.includes h3 { margin-bottom: 18px; font: 900 var(--step-lead)/1.15 var(--font); letter-spacing: -0.03em; text-transform: uppercase; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.62em; height: 0.62em; background: var(--mint); }
@media (max-width: 899px) {
  .price-under { grid-template-columns: 1fr; }
  .price-under .lead, .price-actions { grid-column: 1; justify-self: start; align-items: flex-start; }
  .price-actions .btn { width: 100%; }
  .includes { grid-template-columns: 1fr; }
}

/* add-ons: a line-up at one size */
.addons { padding-block: var(--section); }
.lineup { width: 100%; border-collapse: collapse; font-size: var(--step-lead); line-height: 1.5; }
.lineup th, .lineup td { padding: 0.12em 0; text-align: left; vertical-align: baseline; font-weight: 400; }
.lineup tbody th { width: 34%; font-weight: 800; }
.lineup tbody td:nth-child(2) { width: 40%; color: var(--soft); }
.lineup .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lineup-day th { position: sticky; top: var(--hdr-h); z-index: 2; padding: 0 0 20px; background: var(--ground); }
.lineup-day h3 { font: 900 var(--step-head)/0.95 var(--font); letter-spacing: -0.05em; text-transform: uppercase; color: var(--mint); }
.lineup-day .lineup-sub { font-size: var(--step-small); color: var(--soft); vertical-align: bottom; text-align: right; }
.lineup tbody tr { transition: transform 0.25s var(--ease); }
.lineup tbody tr:hover { transform: translateX(10px); }
@media (max-width: 759px) {
  .lineup, .lineup thead, .lineup tbody, .lineup tr, .lineup th, .lineup td { display: block; width: auto !important; }
  .lineup-day { display: flex !important; flex-direction: column; gap: 6px; padding-bottom: 12px; }
  .lineup-day th { position: static; padding: 0; text-align: left !important; }
  .lineup tbody tr { display: grid !important; grid-template-columns: 1fr auto; column-gap: 12px; padding-bottom: 18px; }
  .lineup tbody th { grid-column: 1 / -1; font-size: var(--step-lead); }
  .lineup tbody td { font-size: var(--step-small); }
}

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; margin-top: clamp(80px, 12vh, 160px); }
.calc-controls { padding: clamp(24px, 4vw, 56px); background: var(--surface); }
.calc-controls h3, .calc-summary-label { font: 900 var(--step-lead)/1.15 var(--font); letter-spacing: -0.03em; text-transform: uppercase; }
.calc-intro { margin-top: 8px; }
.calc-pages { margin-top: 32px; }
.calc-pages-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 800; }
.calc-pages-head output { font: 900 var(--step-lead)/1 var(--font); color: var(--mint); }
.calc input[type="range"] { width: 100%; height: 36px; margin: 12px 0 0; accent-color: var(--mint); cursor: pointer; }
.calc-ticks { position: relative; height: 22px; font-size: var(--step-small); color: var(--muted); }
.calc-ticks span { position: absolute; left: calc(var(--f) * (100% - 18px) + 9px); transform: translateX(-50%); }
.calc-hint { max-width: 60ch; margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.calc-addons { margin: 32px 0 0; padding: 0; border: 0; display: grid; gap: 6px; }
.calc-addons legend { margin-bottom: 12px; padding: 0; font-weight: 800; }
.check { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; background: var(--surface-2); cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.15s; }
.check:hover { background: #383838; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { position: relative; width: 26px; height: 26px; background: var(--bg); }
.check:has(input:checked) { background: var(--mint); color: var(--mint-ink); }
.check input:checked + .check-box { background: var(--mint-ink); }
.check input:checked + .check-box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 14px; border: solid var(--mint); border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
.check:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 3px; }
.check:has(input:checked):has(input:focus-visible) { outline-color: #fff; }
.check:has(input:disabled) { cursor: not-allowed; background: var(--surface); color: var(--muted); }
.check-text { font-weight: 700; }
.check-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check-care { margin-top: 18px; }
.calc-summary { --btn-bg: var(--black); --btn-ink: var(--mint); --focus: var(--black); background: var(--mint); color: var(--mint-ink); }
.calc-summary-in { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 14px; padding: clamp(24px, 4vw, 56px); }
.calc-total { font: 900 var(--step-head)/0.95 var(--font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.calc-total.bump { animation: bump 0.35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }
.calc-monthly { font-weight: 700; }
.calc-lines { list-style: none; display: grid; gap: 6px; margin-top: 6px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; }
.calc-lines li span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-transfer { justify-self: start; margin-top: 10px; }
.calc-summary .calc-hint { color: var(--mint-ink); }
@media (max-width: 899px) {
  .calc { grid-template-columns: 1fr; }
  .calc-transfer { width: 100%; }
}

/* ---------- Lab: short statements on unequal panels ---------- */
.lab-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; }
.lab-head h2 { font: 900 var(--step-head)/0.92 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.lab-head p { max-width: 40ch; }
.lab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; list-style: none; }
.lab-panel { flex: var(--w) 1 40%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 22rem; padding: clamp(24px, 3vw, 44px); transition: transform 0.3s var(--ease); }
.lab-panel:hover { transform: translateY(-6px); }
.lab-panel h3 { font: 900 var(--step-head)/0.9 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.lab-panel p { max-width: 36ch; }
.lab-panel .btn { margin-top: auto; }
.p-red { background: var(--red); color: #fff; --focus: #fff; }
.p-yellow { background: var(--yellow); color: var(--black); --focus: var(--black); }
.p-blue { background: var(--blue); color: #fff; --focus: var(--yellow); }
.p-teal { background: var(--teal); color: #fff; --focus: var(--yellow); }
.btn-inverse { --btn-bg: currentColor; }
.p-red .btn-inverse { --btn-bg: #fff; --btn-ink: var(--red); }
.p-yellow .btn-inverse { --btn-bg: var(--black); --btn-ink: var(--yellow); }
.p-blue .btn-inverse { --btn-bg: var(--yellow); --btn-ink: var(--black); }
.p-teal .btn-inverse { --btn-bg: var(--mint); --btn-ink: var(--mint-ink); }
.xray-toggle[aria-pressed="true"], .demolish-btn[aria-pressed="true"] { --btn-bg: var(--black); --btn-ink: #fff; }
@media (max-width: 759px) {
  .lab-head { grid-template-columns: 1fr; }
  .lab-panel { flex-basis: 100%; min-height: 0; }
}

/* ---------- FAQ: a band per question ---------- */
.faq-top { min-height: 40svh; display: flex; align-items: flex-end; padding-block: calc(var(--hdr-h) + 56px) 48px; }
.faq-top .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; align-items: end; }
.faq-top h2 { grid-column: 1 / 8; font: 900 var(--step-head)/0.9 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.faq-top p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.3; }
.faq-top a { font-weight: 900; }
.band { background: var(--bg); color: #fff; }
.band:nth-child(even) { background: var(--surface); }
.band-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 56px; }
.band h3 { grid-column: 1 / 6; font: 900 var(--step-lead)/1.15 var(--font); letter-spacing: -0.03em; }
.answer { grid-column: 7 / 13; display: grid; gap: 1em; max-width: 60ch; line-height: 1.5; }
@media (max-width: 759px) {
  .faq-top { min-height: 30svh; }
  .faq-top h2, .faq-top p, .band h3, .answer { grid-column: 1 / -1; }
  .band-grid { padding-block: 32px; row-gap: 14px; }
}

/* ---------- Contact ---------- */
.contact-field { padding-bottom: var(--section); overflow: clip; }
.strip { padding-top: calc(var(--hdr-h) + 48px); overflow: hidden; }
.strip-track { display: flex; gap: 8px; width: max-content; }
.strip-track img { height: 150px; width: auto; flex: none; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .strip-track.is-moving { animation: marquee 70s linear infinite; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.contact-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; align-items: end; margin-top: 72px; }
.contact-head h2 { grid-column: 1 / 8; font: 900 var(--step-head)/0.92 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.contact-head .lead { grid-column: 8 / 13; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); margin-top: 48px; align-items: start; }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 12px 18px 10px; background: var(--cell); transition: background-color 0.2s, color 0.2s; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--step-small); font-weight: 800; }
.field .opt { font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 36px; padding: 2px 0; border: 0; background: transparent; font-size: var(--step-body); outline: none; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.field textarea::placeholder { color: #dfe6ff; opacity: 1; }
.field:focus-within { background: #fff; color: var(--black); }
.field:focus-within textarea::placeholder { color: #666; }
.field[data-invalid="true"] { background: var(--red); }
.field[data-invalid="true"]:focus-within { background: #fff; }
.field-error { font-size: var(--step-small); font-weight: 800; color: var(--yellow); }
.field:focus-within .field-error { color: var(--red); }
.attached-quote { margin-top: 8px; padding: 18px; background: var(--black); }
.attached-quote.flash { animation: flash 0.9s var(--ease); }
@keyframes flash { 30% { background: var(--mint); color: var(--mint-ink); } }
.attached-quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.attached-quote pre { margin: 12px 0 0; font: inherit; white-space: pre-wrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: terminal-only token / hidden input / floating toast */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.form-actions p { font-size: var(--step-small); }
.btn-submit { flex: 1 1 18rem; }
.form-status { margin-top: 12px; padding: 18px; }
.form-status.ok { background: var(--mint); color: var(--mint-ink); }
.form-status.err { background: var(--red); color: #fff; }
.form-status a { font-weight: 800; }
.contact-info { display: grid; gap: 8px; }
.contact-line { display: grid; gap: 10px; padding: 20px 22px; background: var(--cell); }
.contact-line .what { font-size: var(--step-small); font-weight: 800; }
.contact-line .value { font: 900 var(--step-lead)/1.1 var(--font); letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; }
.contact-line .value:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-actions svg { width: 16px; height: 16px; }
.next-steps { padding: 22px; background: var(--black); color: #fff; }
.next-steps h3 { font: 900 var(--step-lead)/1.15 var(--font); letter-spacing: -0.03em; text-transform: uppercase; }
.next-steps ol { display: grid; gap: 10px; margin-top: 14px; padding-left: 1.3em; }
.next-steps li::marker { font-weight: 900; color: var(--mint); }
.local-time { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.local-time b { color: #fff; }
@media (max-width: 899px) {
  .contact-head h2, .contact-head .lead { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .cells { grid-template-columns: 1fr; }
  .strip-track img { height: 110px; }
}

/* service area */
.area { padding-block: var(--section); }
.area-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.area-copy { display: grid; gap: 22px; align-content: start; }
.area-copy p { max-width: 46ch; }
.area-copy h3 { font: 900 var(--step-head)/0.92 var(--font); letter-spacing: -0.05em; text-transform: uppercase; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.towns button { min-height: 44px; padding: 0 14px; border: 0; background: var(--cell); color: var(--black); font-weight: 800; transition: background-color 0.2s, color 0.2s, transform 0.15s; }
.towns button:hover { transform: translateY(-2px); }
.towns button.is-on { background: var(--black); color: var(--yellow); }
.area-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area-facts dt { font-size: var(--step-small); font-weight: 700; color: var(--soft); }
.area-facts dd { font-weight: 900; }
.map { position: relative; background: var(--black); }
.map svg { width: 100%; height: auto; }
.map .land { fill: #1b1b1b; }
.map .water { fill: var(--blue); }
.map .roads path { fill: none; stroke: var(--yellow); stroke-width: 2.4; stroke-linejoin: round; }
.map .shield rect { fill: var(--yellow); }
.map .shield text { fill: var(--black); font: 900 10px var(--font); }
.map .water-label { fill: #fff; font: 900 13px var(--font); letter-spacing: 0.02em; }
.map .town circle { fill: #fff; transition: r 0.25s var(--ease), fill 0.25s; }
.map .town text { fill: #fff; font: 800 15px var(--font); paint-order: stroke; stroke: #1b1b1b; stroke-width: 5px; stroke-linejoin: round; transition: fill 0.25s; }
.map .town.is-hq circle { fill: var(--red); }
.map .town.is-hq text { font-weight: 900; font-size: 17px; }
.map .town .ring { fill: none; stroke: var(--red); stroke-width: 3; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .map .town.is-hq .ring { opacity: 1; animation: ring 2.4s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.map .town.is-on circle:not(.ring) { fill: var(--yellow); r: 9; }
.map .town.is-on text { fill: var(--yellow); }
.map .scalebar line { stroke: #fff; stroke-width: 2.5; }
.map .scalebar text, .map .north text { fill: #fff; font: 800 12px var(--font); }
.map .north path { fill: #fff; }
.map-credit { position: absolute; right: 10px; bottom: 8px; color: #fff; font-size: var(--step-small); }
@media (max-width: 899px) {
  .area-grid { grid-template-columns: 1fr; }
  .map .town text { font-size: 22px; stroke-width: 6px; }
  .map .town.is-hq text { font-size: 24px; }
  .map .water-label { font-size: 17px !important; }
  .map .shield { display: none; }
}
@media (max-width: 559px) { .area-facts { grid-template-columns: 1fr; } }

/* ---------- Footer: the mark, built large ---------- */
.site-footer { padding-block: clamp(80px, 12vh, 160px) 32px; }
.blockmark { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: end; text-decoration: none; }
.blockmark span {
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  height: calc(0.8em + var(--h) * 0.4em); background: var(--c); color: var(--k, #111);
  font: 900 min(var(--step-display), 12.4vw)/0.8 var(--font); text-transform: uppercase; letter-spacing: -0.06em;
  transition: height 0.4s var(--ease-out);
}
.blockmark:hover span { height: 1.2em; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; margin-top: 56px; }
.footer-col h2 { margin-bottom: 12px; font-size: var(--step-small); font-weight: 800; color: var(--muted); }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; font-weight: 700; }
.footer-col a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.footer-col:nth-child(1) { grid-column: 1 / 4; }
.footer-col:nth-child(2) { grid-column: 4 / 7; }
.footer-contact { grid-column: 9 / 13; }
.credits { max-width: 60ch; margin-top: 56px; font-size: var(--step-small); color: var(--muted); }
.credits a { color: #d6d6d6; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; font-size: var(--step-small); }
@media (max-width: 759px) {
  .footer-col:nth-child(1) { grid-column: 1 / 7; }
  .footer-col:nth-child(2) { grid-column: 7 / 13; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- Toasts, photo fallback ---------- */
.toast-region { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 600; display: grid; gap: 8px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--yellow); color: var(--black); font-weight: 800; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); animation: toast-in 0.3s var(--ease-out); } /* taste-skill-ignore: terminal-only token / hidden input / floating toast */
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.photo-slot { position: relative; display: block; width: 100%; height: 100%; background: #2a2a2a; }
.photo-slot.is-missing > img.photo { opacity: 0; }
.photo-slot.is-missing::after { content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: var(--step-small); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
  .showcase { transform: rotate(-2.5deg); }
}

.strip:hover .strip-track { animation-play-state: paused; }

