/* tasteskill / scenes / stage.css — the held stage under every scroll scene (references/scenes.md).
   Without .is-live (no script, a failed CDN, reduced motion, a phone set to 'rest') a scene is an ordinary
   section showing its finished composition. With it, the section is (hold + 1) screens tall and the
   stage sticks to the viewport for the hold. */

.scene { position: relative; }
.scene > .scene-stage { position: relative; }

html.js .scene.is-live { height: calc((var(--hold, 2) + 1) * 100svh); }
html.js .scene.is-live > .scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;       /* clip, not hidden: hidden would make the stage a scroll container */
  contain: layout paint;
}

/* Everything a scene moves is composited; nothing it moves is laid out again. */
.scene.is-live [data-move] { will-change: transform, opacity; }

/* Lenis */
html.is-smooth { scroll-behavior: auto; }
html.is-smooth body { overscroll-behavior: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .scene.is-live { height: auto; }
  html.js .scene.is-live > .scene-stage { position: relative; height: auto; }
}

/* Dakwerken Wouters — demo
   Direction: "The printed annual" (taste-skill editorial-report). The idea: the roofer's own inspection
   report becomes the page. White sheet, black ink, one blue (the biro) for the action.
   Type: Libre Franklin 700 / Source Serif 4 (self-hosted). */

@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e9e9e9;
  --ink: #111111;
  --muted: #5e5e5e;
  --accent: #1a4be0;
  --accent-hover: #123bb8;
  --accent-ink: #ffffff;

  --display: "Libre Franklin", "Arial Black", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem);

  --margin: clamp(20px, 2.4vw, 36px);
  --gap: 8px;
  --axis: 42%;
  --section: clamp(110px, 13vw, 200px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
h2 { font-size: var(--step-head); }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.t--accent :focus-visible, .t--ink :focus-visible, .foot :focus-visible { outline-color: #fff; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--accent); color: #fff; padding: 12px 16px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; font: 700 1rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), transform 300ms var(--ease-out); }
.btn:active { transform: scale(0.96) !important; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #333; color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.pause { min-height: 44px; padding: 0 16px; border: 0; background: #fff; color: var(--ink); font: 700 0.875rem/1 var(--display); cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.pause:hover { background: var(--surface); }
.pause:active { transform: scale(0.95); }

/* ---------- HERO board ---------- */
.board { display: grid; grid-template-rows: 60px 1fr; gap: var(--gap); height: 100svh; min-height: 640px; padding: var(--gap) var(--margin); }
.t { position: relative; overflow: hidden; }
.t--ink { background: var(--ink); color: #fff; }
.t--pale { background: var(--surface); }
.t--paper { background: var(--bg); }
.t--accent { background: var(--accent); color: #fff; }
.board__top { display: grid; grid-template-columns: 60px 1fr auto; gap: var(--gap); }
.board__logo { display: grid; place-items: center; color: #fff; }
.board__logo svg { width: 30px; }
.board__nav { display: flex; align-items: center; gap: 28px; padding-left: calc(50% - 60px - var(--gap)); }
.board__nav a { color: var(--ink); text-decoration: none; font: 700 0.9375rem/1 var(--display); padding: 12px 0; }
.board__nav a:hover { text-decoration: underline; color: var(--ink); }
.board__cta { display: flex; align-items: center; padding: 0 24px; color: #fff; text-decoration: none; font: 700 1rem/1 var(--display); transition: background-color var(--t-fast); }
.board__cta:hover { background: var(--accent); color: #fff; }
.board__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--gap); min-height: 0; }
.board__name { display: flex; align-items: flex-end; padding: 24px; background: var(--surface); }
.board__name h1 { display: flex; flex-direction: column; gap: 14px; }
.board__sub { font: 700 clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem)/1.1 var(--display); letter-spacing: -0.02em; }
.board__word { font-size: clamp(3.5rem, 0.4rem + 8.2vw, 9rem); line-height: 0.8; letter-spacing: -0.055em; text-transform: uppercase; display: block; white-space: nowrap; }
.t--photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); min-height: 0; }
.board__say, .board__say2 { padding: 24px; font: 400 clamp(1.25rem, 1rem + 0.6vw, 1.5rem)/1.3 var(--text); }
.board__say2 { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.board__say2 p { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.board__call { color: #fff; font: 700 clamp(1.5rem, 1rem + 1.4vw, 2.5rem)/1 var(--display); letter-spacing: -0.03em; text-decoration: none; display: inline-block; padding: 6px 0; }
.board__call:hover { color: #fff; text-decoration: underline; }
.board__say2 .pause { margin-top: auto; }

/* ---------- INTRO ---------- */
.intro { position: relative; overflow-x: clip; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); padding: var(--section) 0 0 var(--margin); }
.intro__big { grid-column: 7 / 13; grid-row: 1 / 4; align-self: start; margin-top: 18svh; }
.intro__big img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__title { grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 2; margin-top: 4svh; font-size: clamp(3rem, 1rem + 5.4vw, 6rem); line-height: 0.95; text-transform: uppercase; color: var(--ink); }
.intro__text { grid-column: 1 / 6; grid-row: 2; margin-top: 40px; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.intro__small { grid-column: 1 / 5; grid-row: 3; position: relative; margin-top: 64px; width: min(360px, 80%); }
.intro__small video { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.pause--vid { position: absolute; right: 8px; bottom: 8px; }

/* ---------- DAKCHECK ---------- */
.check { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
.check__head { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--gap); align-items: end; }
.check__head h2 { grid-column: 1 / 7; }
.check__head p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.35; }
.check__form { grid-column: 1 / 7; display: grid; gap: 28px; }
.check__form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check__form legend { padding: 0; margin-bottom: 12px; font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.seg { display: flex; flex-wrap: wrap; gap: var(--gap); }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; background: var(--surface); font: 400 1.0625rem/1.2 var(--text); cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.seg label:hover { background: var(--surface-2); }
.seg label:active { transform: scale(0.97); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.report { grid-column: 8 / 13; align-self: start; padding: 32px; background: var(--surface); display: grid; gap: 20px; transform-origin: 50% 0; }
.report__head { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 20px; }
.report__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ink); }
.report__title { font: 700 1.75rem/1 var(--display); letter-spacing: -0.03em; }
.report__date { color: var(--muted); font-size: 0.9375rem; }
.report__rows { display: grid; gap: 18px; }
.report__rows dt { font: 700 0.9375rem/1.2 var(--display); color: var(--muted); margin-bottom: 4px; }
.report__rows dd { font-size: 1.0625rem; }
.report .btn { justify-self: start; }
.report__note { font-size: 0.875rem; color: var(--muted); font-style: italic; }
.report.is-writing dd { animation: write 520ms var(--ease-out) both; }
.report.is-writing div:nth-child(2) dd { animation-delay: 70ms; } .report.is-writing div:nth-child(3) dd { animation-delay: 140ms; } .report.is-writing div:nth-child(4) dd { animation-delay: 210ms; }
@keyframes write { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- SCENE 1: layers ---------- */
.layers { margin-top: var(--section); }
.layers__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: center; min-height: 100svh; padding: 64px var(--margin); background: var(--ink); color: #fff; }
.layers__text { grid-column: 1 / 6; display: grid; gap: 24px; }
.layers__text h2 { color: #fff; }
.layers__list { display: grid; gap: 14px; font-size: 1.125rem; max-width: 40ch; }
.layers__list b { font-family: var(--display); letter-spacing: -0.01em; }
.layers__foot { font-style: italic; color: #cfcfcf; }
.layers__fig { grid-column: 6 / 13; }
.roof { width: 100%; height: auto; max-height: 76svh; }
.roof .tile { fill: #ffffff; }
.layers .lay--0 path { stroke: #fff; }
.layers .lay--1 path { stroke: #8f8f8f; }
.layers .lay--2 path { stroke: #4d4d4d; }
.layers .lay--3 path { stroke: #fff; }
.layers .lay--4 path { stroke: #6f93ff; }
.layers.is-live .layers__list li { opacity: 0.35; transition: opacity 400ms var(--ease-out); }
.layers.is-live[data-beat="0"] [data-layer-step="0"], .layers.is-live[data-beat="1"] [data-layer-step="1"], .layers.is-live[data-beat="2"] [data-layer-step="2"], .layers.is-live[data-beat="3"] [data-layer-step="3"] { opacity: 1; }

/* ---------- FEATURES: rows on the axis ---------- */
.rows { margin-top: var(--section); padding: 0 var(--margin); }
.rows__title { margin-left: var(--axis); max-width: 12ch; font-size: clamp(2.5rem, 1rem + 4.4vw, 5rem); }
.rows__list { margin-top: 80px; display: grid; gap: 72px; }
.row { display: grid; grid-template-columns: var(--axis) 1fr; gap: 0 32px; align-items: start; }
.row figure { justify-self: end; width: 72%; overflow: hidden; }
.row:nth-child(even) figure { width: 52%; }
.row figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-out); }
.row:hover figure img { transform: scale(1.05); }
.row h3 { font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); margin-bottom: 14px; }
.row p { max-width: 38ch; font-size: 1.125rem; }

/* ---------- SCENE 2: four roofs sideways ---------- */
.roofs { margin-top: var(--section); overflow-x: clip; }
.roofs__stage { display: flex; flex-direction: column; justify-content: center; gap: 36px; min-height: 100svh; padding: 64px 0; background: var(--accent); color: #fff; overflow: hidden; }
.roofs__title { color: #fff; padding: 0 var(--margin); }
.roofs__track { display: flex; gap: 24px; padding: 0 var(--margin); width: max-content; }
.roof-card { width: min(520px, 78vw); display: grid; gap: 14px; }
.roof-card figure { overflow: hidden; }
.roof-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.roof-card h3 { color: #fff; font-size: clamp(2rem, 1.2rem + 2vw, 3.25rem); }
.roof-card p { font-size: 1.125rem; max-width: 36ch; }
.roof-card b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.roofs__note { padding: 0 var(--margin); font-style: italic; color: #dfe6ff; }
.roofs.is-rest .roofs__track { width: auto; flex-wrap: wrap; }
.roofs.is-rest .roof-card { width: calc(50% - 12px); }

/* ---------- PRICES ---------- */
.prices { margin-top: var(--section); padding: 0 var(--margin); }
.prices h2 { margin-left: var(--axis); }
.ptable { margin-top: 48px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { text-align: left; vertical-align: baseline; padding: 22px 16px; }
.ptable tr:nth-child(odd) { background: var(--surface); }
.ptable th { width: 70%; font: 400 1.25rem/1.3 var(--text); }
.ptable__sub { display: block; margin-top: 4px; color: var(--muted); font-size: 1rem; }
.ptable td { font: 700 clamp(1.5rem, 1rem + 1.4vw, 2.25rem)/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.prices__note { margin: 24px 0 0 var(--axis); max-width: 60ch; font-size: 1rem; color: var(--muted); }

/* ---------- ABOUT ---------- */
.about { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); align-items: start; }
.about__pic { grid-column: 1 / 8; overflow: hidden; }
.about__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about__text { grid-column: 8 / 13; display: grid; gap: 24px; }
.about__text > p { font-size: var(--step-lead); line-height: 1.4; }
.about__small { grid-column: 9 / 12; overflow: hidden; }
.about__small img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.facts dt { font: 700 0.875rem/1.2 var(--display); color: var(--muted); }
.facts dd { font-size: 1.0625rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--section); }
.faq__head { display: flex; align-items: flex-end; min-height: 22svh; padding: 40px var(--margin); background: var(--ink); }
.faq__head h2 { color: #fff; font-size: clamp(3rem, 1rem + 6.6vw, 8rem); text-transform: uppercase; }
.band-q { display: grid; grid-template-columns: var(--axis) 1fr; gap: 0 32px; padding: 52px var(--margin); }
.band-q:nth-child(odd) { background: var(--surface); }
.band-q h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.05; max-width: 20ch; }
.band-q p { font-size: 1.125rem; max-width: 60ch; }

/* ---------- CONTACT ---------- */
.contact { padding: var(--section) var(--margin) 180px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); align-items: start; }
.contact__say { grid-column: 1 / 6; font: 400 clamp(1.5rem, 1rem + 1.2vw, 2.25rem)/1.15 var(--text); }
.contact__pic { grid-column: 7 / 9; }
.contact__pic img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: cover; }
.contact__links { grid-column: 9 / 13; display: grid; gap: 10px; justify-items: start; }
.contact__links a { padding: 4px 0; font-size: 1.125rem; }
.contact__big { font: 700 clamp(2.25rem, 1rem + 3vw, 4rem)/1 var(--display) !important; letter-spacing: -0.04em; color: var(--ink) !important; text-decoration: none; display: inline-block; }
.contact__big:hover { color: var(--accent) !important; }
.callbar { grid-column: 1 / 13; margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cell { display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 12px 22px; background: var(--surface); transition: background-color var(--t-fast); }
.cell:focus-within { background: var(--surface-2); }
.cell:has(input[aria-invalid="true"]) { background: #fde7e7; }
.cell label { font: 700 0.875rem/1.2 var(--display); color: var(--muted); }
.cell input { margin-top: 6px; width: 100%; border: 0; background: transparent; color: var(--ink); font: 400 1.25rem/1.3 var(--text); padding: 4px 0; }
.cell input:focus { outline: none; }
.cell--submit { border: 0; align-items: center; background: var(--accent); color: #fff; font: 700 1.375rem/1 var(--display); letter-spacing: -0.02em; cursor: pointer; }
.cell--submit:hover { background: var(--accent-hover); }
.cell--submit:active { transform: scale(0.985); }
.callbar__hint { grid-column: 1 / 3; font-size: 0.875rem; color: var(--muted); }
.callbar__msg { grid-column: 3; font-size: 0.9375rem; }

/* ---------- FOOTER: the name, sliced at the top ---------- */
.foot { background: var(--ink); color: #fff; padding: 0 var(--margin) 32px; overflow: hidden; }
.foot a { color: #fff; }
.foot__name { margin-top: -0.12em; font: 700 clamp(5rem, 1rem + 18vw, 22rem)/0.8 var(--display); letter-spacing: -0.06em; text-transform: uppercase; white-space: nowrap; }
.foot__row { margin-top: 72px; display: grid; grid-template-columns: 5fr 7fr; gap: 32px; }
.foot__places { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 700 clamp(1.375rem, 1rem + 1vw, 2rem)/1.3 var(--display); letter-spacing: -0.02em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 0.9375rem; }
.foot__cols h2 { font: 700 0.9375rem/1.3 var(--display); letter-spacing: 0; margin-bottom: 10px; }
.foot__cols nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot__cols nav a { padding: 5px 0; }
.foot__credits { margin-top: 48px; max-width: 80ch; font-size: 0.875rem; color: #bdbdbd; }
.foot__last { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 0.875rem; }

/* ---------- subpages ---------- */
.bar { display: grid; grid-template-columns: 60px 1fr auto; gap: var(--gap); padding: var(--gap) var(--margin); height: 76px; }
.page { padding: 72px var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); }
.page__head { grid-column: 1 / 13; }
.page__head h1 { font-size: clamp(2.75rem, 1.2rem + 5vw, 6rem); text-transform: uppercase; }
.page__head p { margin-top: 20px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; }
.prose { grid-column: 4 / 11; max-width: 70ch; }
.prose h2 { font-size: 1.875rem; margin: 48px 0 12px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; margin-bottom: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; vertical-align: top; }
.prose tr:nth-child(odd) { background: var(--surface); }
.prose .note { background: var(--surface); padding: 16px 20px; }
.form { grid-column: 1 / 9; display: grid; gap: var(--gap); }
.form__steps { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.form__steps li { padding: 14px 18px; background: var(--surface); font: 700 1rem/1.2 var(--display); }
.form__steps li[aria-current="step"] { background: var(--ink); color: #fff; }
.form fieldset { border: 0; margin: 0; padding: clamp(22px, 3vw, 36px); background: var(--surface); display: grid; gap: 20px; min-width: 0; }
.form legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font: 700 2rem/1 var(--display); letter-spacing: -0.03em; }
.form__aside { grid-column: 9 / 13; grid-row: 2 / span 2; align-self: start; padding: 30px; background: var(--ink); color: #fff; }
.form__aside h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.form__aside p + p { margin-top: 12px; }
.form__aside a { color: #fff; }
.form__aside .btn { background: var(--accent); color: #fff; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font: 700 1rem/1.3 var(--display); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #fff; border-radius: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--text); }
.field select { appearance: auto; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #b00020; }
.field .hint { font-size: 0.9375rem; color: var(--muted); }
.field .err { font-size: 0.9375rem; color: #b00020; font-weight: 600; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.radios label { display: flex; gap: 10px; align-items: center; min-height: 56px; padding: 12px 14px; background: #fff; cursor: pointer; }
.radios input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form__nav { display: flex; gap: var(--gap); justify-content: space-between; flex-wrap: wrap; }
.form__done { grid-column: 1 / 9; padding: 32px; background: var(--accent); color: #fff; }
.form__done h2 { color: #fff; font-size: 2.25rem; margin-bottom: 12px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .board__nav { padding-left: 24px; }
  .check__form, .report { grid-column: 1 / 13; }
  .about__pic, .about__text { grid-column: 1 / 13; }
  .about__small { grid-column: 1 / 6; }
  .contact__say { grid-column: 1 / 13; }
  .contact__pic { grid-column: 1 / 4; }
  .contact__links { grid-column: 5 / 13; }
  .prose { grid-column: 1 / 13; }
  .form, .form__steps, .form__done, .form__aside { grid-column: 1 / 13; grid-row: auto; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --gap: 6px; --margin: 20px; --axis: 0px; }
  .board { height: auto; min-height: 0; grid-template-rows: 56px auto; padding: var(--gap); }
  .board__top { grid-template-columns: 56px 1fr; }
  .board__nav { display: none; }
  .board__cta { justify-content: center; }
  .board__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .board__name { min-height: 30svh; padding: 20px; }
  .board__word { font-size: 15vw; }
  .board__p1 { aspect-ratio: 4 / 3; }
  .board__p2 { display: none; }
  .board__pair .t { aspect-ratio: 1; padding: 18px; font-size: 1.0625rem; }
  .board__call { font-size: 1.375rem; }
  .intro { display: block; padding: 96px 20px 0; }
  .intro__title { font-size: 10vw; margin-top: 0; mix-blend-mode: normal; color: var(--ink); }
  .intro__big { width: 75%; margin: 20px -20px 0 auto; }
  .intro__text { margin-top: 24px; font-size: 1.125rem; }
  .intro__small { width: 55%; margin-top: 40px; }
  .check { display: block; }
  .check__head { display: block; }
  .check__head p { margin-top: 16px; }
  .check__form { margin-top: 32px; }
  .seg label { min-height: 48px; padding: 0 14px; font-size: 1rem; }
  .report { margin-top: 24px; padding: 22px; }
  .layers__stage { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 48px 20px; }
  .layers__list { font-size: 1rem; gap: 8px; }
  .layers.is-live .layers__list li { display: none; }
  .layers.is-live[data-beat="0"] [data-layer-step="0"], .layers.is-live[data-beat="1"] [data-layer-step="1"], .layers.is-live[data-beat="2"] [data-layer-step="2"], .layers.is-live[data-beat="3"] [data-layer-step="3"] { display: list-item; }
  .layers__foot { display: none; }
  .roof { max-height: 42svh; margin: 0 auto; }
  .rows__title { font-size: 10vw; }
  .rows__list { margin-top: 48px; gap: 56px; }
  .row { display: flex; flex-direction: column-reverse; gap: 18px; }
  .row figure, .row:nth-child(even) figure { width: 100%; justify-self: auto; }
  .row:nth-child(3n+2) figure { width: 70%; align-self: flex-end; }
  .row:nth-child(3n) figure { width: 55%; }
  .roofs__stage { padding: 72px 0; }
  .roofs.is-rest .roof-card { width: 100%; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; }
  .ptable tr { padding: 16px; }
  .ptable th, .ptable td { padding: 2px 0; width: auto; }
  .ptable th { font-size: 1.0625rem; }
  .prices__note { margin-left: 0; }
  .about { display: block; }
  .about__text { margin-top: 32px; }
  .about__small { width: 55%; margin: 32px 0 0 auto; }
  .faq__head { min-height: 0; padding: 48px 20px 24px; }
  .faq__head h2 { font-size: 14vw; }
  .band-q { display: block; padding: 32px 20px; }
  .band-q h3 { margin-bottom: 10px; }
  .contact { display: block; padding: 96px 20px 160px; }
  .contact__say { font-size: 1.5rem; }
  .contact__pic { margin-top: 28px; float: left; width: 96px; margin-right: 16px; }
  .contact__links { margin-top: 28px; }
  .contact__big { font-size: 9vw !important; }
  .callbar { clear: both; grid-template-columns: 1fr; padding-top: 32px; }
  .cell { min-height: 68px; }
  .callbar__hint, .callbar__msg { grid-column: 1; }
  .foot__name { font-size: 25vw; }
  .foot__row { grid-template-columns: 1fr; margin-top: 40px; }
  .foot__places { font-size: 1.625rem; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .bar { grid-template-columns: 56px 1fr; height: 68px; }
  .bar .board__nav { display: none; }
  .page { display: block; padding-top: 40px; }
  .page > * + * { margin-top: 24px; }
  .form { display: block; }
  .form > * + * { margin-top: var(--gap); }
  .form__steps li { padding: 10px 12px; font-size: 0.875rem; }
  .radios { grid-template-columns: 1fr; }
}

/* ---------- motion helpers ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* entrances follow the real scroll position (no observer to miss a jump); browsers without view timelines show everything */
@keyframes rise-in { from { transform: translateY(56px); } to { transform: none; } }
@supports (animation-timeline: view()) {
  [data-rise] { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
}
.js .split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .split-w > span { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .is-in .split-w > span { transform: none; }
@keyframes wipe-in { from { clip-path: inset(0 0 70% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle-in { from { transform: scale(1.14); } to { transform: none; } }
@supports (animation-timeline: view()) {
  [data-wipe] { animation: wipe-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  [data-wipe] img, [data-wipe] video { animation: settle-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
}
.js .tile-l { display: inline-block; transform-origin: 50% 0; opacity: 0; transform: translateY(-0.5em) rotateX(70deg); animation: tile 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes tile { to { opacity: 1; transform: none; } }
.js .board__sub, .js .board__say, .js .board__say2 > * { opacity: 0; animation: rise 800ms var(--ease-out) forwards; animation-delay: 650ms; }
.js .t--photo img { animation: settle 1.6s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-rise], .js .tile-l, .js .board__sub, .js .board__say, .js .board__say2 > *, .js .t--photo img { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .split-w > span { transform: none !important; transition: none !important; }
  [data-wipe], [data-wipe] img, [data-wipe] video { clip-path: none !important; transform: none !important; animation: none !important; }
  .report.is-writing dd { animation: none; }
  .rain, .pause { display: none; }
}
