/*
  Caliche & Oak, a demo. Fresh markup and styles (DEMO_RUNBOOK step 5): the plan-set manner, with
  sheet labels, a licence stamp, square buttons, dimension lines and a drawing's title block in the
  footer. No other demo has any of these.

  Colours come only from palettes.js (checked JSON, TECHNICAL 13.12): every section names one of four
  blocks, and the block sets --k-text, --k-muted, --k-accent and --k-accent-text, which palette_check
  measured on that block's own background. Typefaces follow the look (data-look), none used by another
  demo. Mobile first; media queries sit below the rules they change.
*/

:root {
  --f-head: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --head-weight: 800;
  --head-track: -0.02em;
  --radius: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --max: 1160px;
  --pinbar: 0px;
}
[data-look="B"] {
  --f-head: "Newsreader", Georgia, serif;
  --f-body: "Karla", system-ui, sans-serif;
  --f-mono: "Karla", system-ui, sans-serif;
  --head-weight: 600;
  --head-track: -0.01em;
  --radius: 14px;
}
[data-look="C"] {
  --f-head: "Zilla Slab", Georgia, serif;
  --f-body: "Public Sans", system-ui, sans-serif;
  --f-mono: "Public Sans", system-ui, sans-serif;
  --head-weight: 700;
  --head-track: 0;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: var(--pinbar);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7.4vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.fine { font-size: .9rem; color: var(--k-muted, var(--muted)); max-width: 62ch; }
.fine a { color: var(--k-text, var(--text)); }
.strong { font-weight: 700; }

/* ---------- colour blocks ---------- */

[data-block="1"] { --k-bg: var(--b1); --k-text: var(--b1-text); --k-muted: var(--b1-muted); --k-accent: var(--b1-accent); --k-accent-text: var(--b1-accent-text); }
[data-block="2"] { --k-bg: var(--b2); --k-text: var(--b2-text); --k-muted: var(--b2-muted); --k-accent: var(--b2-accent); --k-accent-text: var(--b2-accent-text); }
[data-block="3"] { --k-bg: var(--b3); --k-text: var(--b3-text); --k-muted: var(--b3-muted); --k-accent: var(--b3-accent); --k-accent-text: var(--b3-accent-text); }
[data-block="4"] { --k-bg: var(--b4); --k-text: var(--b4-text); --k-muted: var(--b4-muted); --k-accent: var(--b4-accent); --k-accent-text: var(--b4-accent-text); }
[data-block] { background: var(--k-bg); color: var(--k-text); }
.block { padding: 56px 0; position: relative; }

/* Drafting paper: a faint grid in the block's own text colour. Decoration only, never behind words
   that need it: the checked pairs hold with it switched off. */
.grid-paper {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--k-text) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--k-text) 7%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- the ribbon and the looks ---------- */

.ribbon { background: var(--b2); color: var(--b2-text); font-size: .85rem; }
.ribbon-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; margin: 0; padding-top: 8px; padding-bottom: 8px; }
.looks-toggle {
  font: inherit; font-family: var(--f-mono); font-size: .8rem; font-weight: 600;
  background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: var(--radius);
  padding: 4px 10px; cursor: pointer; min-height: 32px;
}
.looks-panel { padding-bottom: 10px; }
.palette-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.palette-switch button {
  font: inherit; font-family: var(--f-mono); font-size: .85rem; min-width: 44px; min-height: 36px;
  background: transparent; color: var(--b2-text); border: 1.5px solid var(--b2-muted); border-radius: var(--radius); cursor: pointer;
}
.palette-switch button[aria-pressed="true"] { background: var(--b2-accent); color: var(--b2-accent-text); border-color: var(--b2-accent); }

/* ---------- the top bar ---------- */

.topbar { border-bottom: 2px solid var(--k-text); }
.topbar-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; color: var(--k-text); flex: none; }
.brand-mark svg { width: 36px; height: 36px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-head); font-weight: var(--head-weight); font-size: 1.15rem; }
.brand-what { font-family: var(--f-mono); font-size: .72rem; color: var(--k-muted); text-transform: uppercase; letter-spacing: .08em; }
.topnav { display: none; gap: 18px; font-weight: 600; }
.topnav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a[aria-current="page"] { border-bottom-color: var(--k-accent); }
.topbar .topcall { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border: 2px solid var(--k-accent); border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--k-accent); color: var(--k-accent-text); }
.btn-line { background: transparent; color: var(--k-text); border-color: var(--k-text); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* ---------- sheet labels, kickers, heads ---------- */

.sheet {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--k-muted); display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.sheet::after { content: ""; flex: 1; max-width: 120px; border-top: 1.5px solid currentColor; }
.kicker { font-weight: 700; color: var(--k-accent); margin-bottom: 6px; }
.head { max-width: 760px; margin-bottom: 28px; }
.lead { font-size: 1.08rem; color: var(--k-muted); max-width: 62ch; }

/* ---------- the hero, and the licence stamp ---------- */

.hero { padding-top: 28px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 .line { display: block; }
.hero h1 .strong { color: var(--k-text); }
.stamp {
  border: 2px dashed var(--k-text); border-radius: var(--radius); padding: 10px 14px; margin: 4px 0 18px;
  max-width: 560px;
}
.stamp-line { margin: 0; font-weight: 700; font-size: 1.02rem; }
.stamp-number { font-family: var(--f-mono); font-weight: 600; white-space: nowrap; color: var(--k-accent); text-underline-offset: 3px; }
.stamp-note { margin: 4px 0 0; font-size: .85rem; color: var(--k-muted); }
.office { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 6px 0; }
.office-dot { width: 12px; height: 12px; border: 2px solid var(--k-text); border-radius: 50%; flex: none; }
.is-open .office-dot { background: var(--k-accent); border-color: var(--k-accent); }
.area { color: var(--k-muted); font-size: .95rem; }
.area .mono { color: var(--k-text); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- photographs, and drawings until they exist ---------- */

.photo { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid var(--k-text); border-radius: var(--radius); background: color-mix(in srgb, var(--k-accent) 8%, var(--k-bg)); }
.photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.photo img.is-loaded { opacity: 1; }
.photo-tall, .photo-person { aspect-ratio: 4 / 5; }
.photo.is-art { color: var(--k-text); display: grid; place-items: center; padding: 6%; }
.photo.is-art svg { width: 100%; height: 100%; }
.a-line, .a-wall, .a-door, .a-ground, .a-plant { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.a-wall { stroke-width: 5; }
.a-ground { stroke-width: 3; }
.a-door { stroke-dasharray: 5 4; }
.a-fill { fill: color-mix(in srgb, var(--k-accent) 30%, transparent); stroke: none; }
.a-dim { fill: none; stroke: var(--k-accent); stroke-width: 1.5; }
.a-plant { stroke: var(--k-accent); }
.a-text { fill: currentColor; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; }
.a-initials { fill: currentColor; font-family: var(--f-head); font-weight: var(--head-weight); font-size: 44px; }

/* ---------- what we build ---------- */

.build-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--k-text); }
.build-item { padding: 18px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--k-text) 35%, transparent); display: grid; grid-template-columns: 3rem 1fr; column-gap: 12px; }
.build-item .item-no { grid-row: span 2; color: var(--k-accent); font-weight: 600; padding-top: 3px; }
.build-item h3 { margin-bottom: 4px; }
.build-item p { margin: 0; color: var(--k-muted); }

/* ---------- what our licence covers ---------- */

.licence-grid { display: grid; gap: 22px; }
.licence-card, .partners { border: 2px solid var(--k-text); border-radius: var(--radius); padding: 20px; }
.licence-card-top { font-size: 1.3rem; color: var(--k-accent); margin: 0 0 4px; }
.licence-card-class { font-weight: 700; margin-bottom: 16px; }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; }
.ticks li { position: relative; padding: 5px 0 5px 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 12px; height: 7px; border-left: 2.5px solid var(--k-accent); border-bottom: 2.5px solid var(--k-accent); transform: rotate(-45deg); }
.partner-list { list-style: none; margin: 0 0 14px; padding: 0; }
.partner { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--k-text) 45%, transparent); }
.partner-trade { font-weight: 700; }
.partner-who { color: var(--k-muted); }

/* ---------- Your project, week by week ---------- */

.planner { display: grid; gap: 14px; margin-bottom: 22px; }
.planner fieldset { border: 0; margin: 0; padding: 0; }
.planner legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--k-text); border-radius: var(--radius); font-weight: 600; background: var(--k-bg);
}
.chip input:checked + span { background: var(--k-accent); color: var(--k-accent-text); border-color: var(--k-accent); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.plan-out { border: 2px solid var(--k-text); border-radius: var(--radius); background: var(--k-bg); padding: 16px; margin-bottom: 14px; }
.plan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.plan-fact dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); }
.plan-fact dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.plan-home { color: var(--k-muted); border-left: 3px solid var(--k-accent); padding-left: 12px; }

.t-scale { display: none; }
.timeline { list-style: none; margin: 0 0 16px; padding: 0; border-top: 2px solid var(--k-text); }
.t-row { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--k-text) 25%, transparent); }
.t-label { display: grid; gap: 4px; }
.t-weeks { font-family: var(--f-mono); font-size: .78rem; color: var(--k-muted); }
.t-name { font-weight: 700; }
.t-who { display: flex; flex-wrap: wrap; gap: 4px; }
.t-bar { position: relative; height: 10px; margin-top: 8px; background: color-mix(in srgb, var(--k-text) 8%, transparent); }
.t-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc((var(--from) - 1) / var(--weeks) * 100%);
  width: calc((var(--to) - var(--from) + 1) / var(--weeks) * 100%);
  background: var(--k-text);
}
.t-row.is-onsite .t-bar::after { background: var(--k-accent); }

.who {
  display: inline-flex; align-items: center; min-height: 24px; padding: 1px 8px;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 600; border: 1.5px solid var(--k-text); border-radius: var(--radius);
}
.who-crew { background: var(--k-accent); color: var(--k-accent-text); border-color: var(--k-accent); }
.who-plumber, .who-electrician, .who-hvac { border-style: solid; border-width: 2px; }
.who-inspector { border-style: dashed; }
.who-you, .who-renata { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.who-none { border-color: transparent; color: var(--k-muted); font-weight: 400; }

.house-strip { border-top: 2px solid var(--k-text); padding-top: 10px; }
.strip-title { font-weight: 700; margin-bottom: 8px; }
.strip-weeks { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; }
.strip-week { flex: none; min-width: 5.2rem; border: 1.5px solid color-mix(in srgb, var(--k-text) 30%, transparent); padding: 6px; }
.strip-week.is-onsite { border-color: var(--k-accent); }
.strip-no { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--k-muted); margin-bottom: 4px; }
.strip-stack { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.strip-empty { color: var(--k-muted); }

/* ---------- stay in the home you love ---------- */

.aging-grid { display: grid; gap: 28px; }
.aging-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.aging-item { border-left: 3px solid var(--k-accent); padding-left: 14px; }
.aging-item h3 { margin-bottom: 2px; }
.aging-item p { margin: 0; color: var(--k-muted); }
.aging .photo-tall { max-width: 420px; }

/* ---------- how a project runs ---------- */

.steps-grid { display: grid; gap: 28px; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step-item { display: grid; grid-template-columns: 3.2rem 1fr; gap: 14px; padding: 16px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--k-text) 30%, transparent); }
.step-no {
  width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 2px solid var(--k-text); border-radius: 50%;
  font-family: var(--f-mono); font-weight: 600; font-size: 1.1rem;
}
.step-text h3 { margin-bottom: 4px; }
.step-text p { margin: 0; color: var(--k-muted); }

/* ---------- what it costs ---------- */

.cost-grid { display: grid; gap: 26px; }
.cost-table { border-top: 2px solid var(--k-text); }
.cost-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1.5px solid color-mix(in srgb, var(--k-text) 30%, transparent); }
.cost-head { display: none; }
.cost-row span:first-child { font-weight: 700; }
.cost-range { font-family: var(--f-mono); font-weight: 600; color: var(--k-accent); }
.cost-row span:last-child { color: var(--k-muted); font-size: .95rem; }
.moves { border: 2px solid var(--k-text); border-radius: var(--radius); padding: 18px; align-self: start; }

/* ---------- protected twice ---------- */

.protect-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; }
.protect-item { border: 2px solid var(--k-text); border-radius: var(--radius); padding: 18px; }
.protect-item h3 { color: var(--k-accent); }
.protect-item p { margin: 0; }

/* ---------- people ---------- */

.people-pair { display: grid; gap: 24px; margin-bottom: 14px; }
.person .photo { margin-bottom: 12px; max-width: 360px; }
.person p { color: var(--k-muted); }

/* ---------- ask for a visit ---------- */

.visit-grid { display: grid; gap: 26px; }
.visit .photo-side { margin-top: 18px; }
.form { display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--k-text); background: var(--k-bg);
  border: 2px solid var(--k-text); border-radius: var(--radius); padding: 10px 12px; min-height: 48px; width: 100%;
}
.sample-out { border: 2px dashed var(--k-text); padding: 14px; border-radius: var(--radius); }
.sample-text { font-family: var(--f-mono); font-size: .85rem; white-space: pre-wrap; margin: 0 0 8px; }

/* ---------- the footer's title block ---------- */

.footer { padding-bottom: 36px; }
.title-block { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--k-text); margin: 0 0 16px; }
.tb-cell { padding: 10px 12px; border-right: 1.5px solid var(--k-text); border-bottom: 1.5px solid var(--k-text); }
.tb-cell dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted); }
.tb-cell dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }

/* ---------- the pinned bar on phones ---------- */

.pinbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--b2); --k-text: var(--b2-text); --k-accent: var(--b2-accent); --k-accent-text: var(--b2-accent-text);
  border-top: 2px solid var(--b2-accent);
}
body { --pinbar: 68px; }

/* ---------- projects page ---------- */

.hero-projects h1 { max-width: 18ch; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.filters .mono { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.chip-btn {
  font: inherit; font-weight: 600; min-height: 44px; padding: 8px 14px; cursor: pointer;
  color: var(--k-text); background: var(--k-bg); border: 2px solid var(--k-text); border-radius: var(--radius);
}
.chip-btn[aria-pressed="true"] { background: var(--k-accent); color: var(--k-accent-text); border-color: var(--k-accent); }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.project { border: 2px solid var(--k-text); border-radius: var(--radius); background: var(--k-bg); overflow: hidden; }
.project[hidden] { display: none; }
.project-body { padding: 18px; }
.project-body h2 { font-size: clamp(1.35rem, 4.5vw, 1.8rem); }
.project-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.project-facts dt { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); }
.project-facts dd { margin: 2px 0 0; font-weight: 700; }
.small-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); margin: 10px 0 6px; }
.project-who { display: flex; flex-wrap: wrap; gap: 4px; }
.found { border-top: 1.5px dashed color-mix(in srgb, var(--k-text) 45%, transparent); padding-top: 10px; margin: 12px 0 0; }
.found .mono { font-weight: 600; }

.project-photo { border: 0; border-bottom: 2px solid var(--k-text); border-radius: 0; }
.compare { position: relative; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--k-text); --cut: 50%; }
.compare .photo { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.compare-after { clip-path: inset(0 calc(100% - var(--cut)) 0 0); background: color-mix(in srgb, var(--k-accent) 18%, var(--k-bg)); }
.compare-before .a-fill { fill: none; }
.compare-tag {
  position: absolute; top: 10px; font-family: var(--f-mono); font-size: .75rem; font-weight: 600; padding: 3px 8px;
  background: var(--k-bg); color: var(--k-text); border: 1.5px solid var(--k-text);
}
.compare-before .compare-tag { right: 10px; }
.compare-after .compare-tag { left: 10px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 3px; margin-left: -1.5px; background: var(--k-accent); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background: var(--k-accent); border-radius: 50%; border: 3px solid var(--k-bg);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within { outline: 3px solid var(--focus); outline-offset: -3px; }

.review-frame { border: 2px dashed var(--k-text); border-radius: var(--radius); padding: 24px; max-width: 760px; }
.cta-row { display: grid; gap: 10px; }

/* ---------- motion ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .block { padding: 80px 0; }
  .plan-facts { grid-template-columns: repeat(4, 1fr); }
  .build-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .licence-grid { grid-template-columns: 1fr 1.2fr; }
  .people-pair { grid-template-columns: 1fr 1fr; }
  .cost-row { grid-template-columns: 1.4fr 1.2fr 1fr; align-items: baseline; }
  .cost-head { display: grid; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); }
  .cost-head span:first-child { font-weight: 400; }
  .protect-list { grid-template-columns: 1fr 1fr; }
  .title-block { grid-template-columns: repeat(3, 1fr); }
  .project { display: grid; grid-template-columns: 1fr 1fr; }
  .project:not(:has(.compare, .project-photo)) { grid-template-columns: 1fr; }
  .project-photo { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 2px solid var(--k-text); }
  .compare { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 2px solid var(--k-text); }
  .t-row { display: grid; grid-template-columns: minmax(15rem, 20rem) 1fr; gap: 16px; align-items: center; }
  .t-bar { margin-top: 0; height: 18px; }
  .t-scale { display: grid; grid-template-columns: minmax(15rem, 20rem) 1fr; gap: 16px; margin-top: 8px; }
  .t-scale-label { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); }
  .t-scale-ticks { display: grid; grid-template-columns: repeat(var(--weeks), 1fr); }
  .t-tick { font-family: var(--f-mono); font-size: .7rem; color: var(--k-muted); border-left: 1px solid color-mix(in srgb, var(--k-text) 25%, transparent); padding-left: 3px; min-height: 1.2em; }
}

@media (min-width: 960px) {
  body { --pinbar: 0px; }
  .pinbar { display: none; }
  .topnav { display: flex; }
  .topbar .topcall { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .aging-grid { grid-template-columns: 1.3fr .7fr; align-items: center; }
  .steps-grid { grid-template-columns: 1.3fr .7fr; align-items: start; }
  .cost-grid { grid-template-columns: 1.6fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .cta-row { grid-template-columns: 1fr auto; align-items: center; }
  .cta-row h2 { margin: 0; }
  .title-block { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .photo img { transition: none; }
}
