/* Wnętrza na Wymiar: one stylesheet for every page.
   Direction: "The place carries it" (taste-skill seed 1839684772), palette "Putty and black", type Clash Grotesk. */

@font-face { font-family: 'Clash Grotesk'; src: url('/assets/fonts/clash-grotesk-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('/assets/fonts/clash-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Grotesk'; src: url('/assets/fonts/clash-grotesk-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #dedad3;          /* putty: the colour of fresh plaster */
  --paper: #ebeae7;       /* the sheet: a neutral bone, one step lighter */
  --surface: #d3cec6;     /* one tone down */
  --ink: #0a0a0a;
  --muted: #55514b;
  --accent: #256f82;      /* the one tint: actions and the chosen range */
  --accent-deep: #1d5a6a;
  --accent-ink: #ffffff;
  --on-photo: #f4f3f1;

  --font: 'Clash Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* seven sizes for the whole site */
  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);    /* 14–15: notes, captions, prices in cells */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);      /* 17–19: running text, rows, links */
  --step-sub: clamp(1.1875rem, 1rem + 0.45vw, 1.5rem);          /* 19–24: names in lists, questions */
  --step-lead: clamp(1.375rem, 1rem + 1vw, 2rem);               /* 22–32: statements, the wordmark, card titles */
  --step-head: clamp(2.125rem, 1.3rem + 3.2vw, 4rem);           /* 34–64: section headings */
  --step-display: clamp(2.75rem, 1rem + 6vw, 6.5rem);           /* 44–104: the h1, the two halves */
  --step-giant: clamp(4.5rem, 16vw, 17rem);                     /* the verbs */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 4rem + 9vw, 14rem);
  --bar-h: 4rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* pages cross-fade into each other where the browser supports it */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-weight: 400; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--bar-h) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::placeholder { color: var(--muted); opacity: 1; }
html { scrollbar-color: var(--muted) var(--bg); }
input, textarea { caret-color: var(--accent); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; text-wrap: balance; hyphens: none; }
.head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.015em; }
.display { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.giant { font-size: var(--step-giant); line-height: 0.9; letter-spacing: -0.045em; }
.sub { font-size: var(--step-sub); line-height: 1.25; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.strong { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; font-weight: 500; letter-spacing: 0.005em; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent-deep); transform: translateY(101%); transition: transform 380ms var(--ease-out); }
.button--ink::before { background: #2c2a26; }
.button--ink { background: var(--ink); color: var(--paper); }
.button--wide { width: 100%; }
.link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover::before { transform: none; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- header bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: var(--gutter); padding-inline: var(--margin); background: var(--bg); }
.bar__mark { font-weight: 500; font-size: var(--step-sub); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.bar__links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.bar__links a { text-decoration: none; position: relative; padding-block: 0.4rem; }
.bar__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.bar__links a[aria-current='page']::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover::after { transform: scaleX(1); } }
.bar .button { min-height: 2.75rem; padding: 0 1.2rem; }
.story { display: none; align-items: center; gap: 0.75rem; margin: 0 auto 0 0; font-size: var(--step-small); color: var(--muted); }
.story.is-on { display: flex; }
.story__dots { display: flex; gap: 4px; }
.story__dots i { width: 18px; height: 6px; background: var(--surface); transition: background-color 300ms ease; }
.story__dots i.is-done { background: var(--ink); }
.story b { color: var(--ink); font-weight: 500; }
.bar:has(.story) .bar__mark { margin-right: 1.5rem; }
@media (max-width: 75em) { .story, .story.is-on { display: none; } .bar:has(.story) .bar__mark { margin-right: auto; } }
.bar__menu { display: none; min-height: 2.75rem; padding: 0 0.25rem; font-weight: 500; }
.bar--home { position: fixed; left: 0; right: 0; transform: translateY(-100%); transition: transform 420ms var(--ease-out); }
.bar--home.is-shown { transform: none; }
.no-js .bar--home { transform: none; position: sticky; }

.sheet-menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 0 var(--margin) 2rem; display: none; flex-direction: column; }
.sheet-menu.is-open { display: flex; animation: sheet-in 260ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } }
.sheet-menu__top { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; }
.sheet-menu__links { margin-top: 1.5rem; display: grid; gap: 0.35rem; }
.sheet-menu__links a { font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.03em; text-decoration: none; }
.sheet-menu .button { margin-top: auto; }

@media (max-width: 60em) {
  .bar__links, .bar .button { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
  .bar--home { position: sticky; transform: none; }
}

/* ---------- hero: menu column + sticky photograph ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.hero__sheet { background: var(--paper); min-height: calc(100svh - 24px); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.1rem clamp(1rem, 2.5vw, 2.5rem) 1.6rem; }
.hero__top { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.hero__top a { text-decoration: none; white-space: nowrap; }
.hero__top a:first-child { justify-self: start; }
.hero__top a:last-child { justify-self: end; }
.hero__mark { font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.025em; white-space: nowrap; }
@media (min-width: 60.01em) and (max-width: 75em) { .hero__top { gap: 0.75rem; } .hero__mark { font-size: var(--step-sub); } }
.hero__body { margin-top: max(2.5rem, calc(34svh - 9rem)); display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.04em; max-width: 8.5ch; }
.hero__lede { margin-top: 2rem; max-width: 40ch; font-size: var(--step-body); }
.hero__action { margin-top: 2rem; }
.hero__foot { margin-top: auto; padding-top: 2.5rem; max-width: 44ch; color: var(--muted); }
.hero__foot strong { color: var(--ink); font-weight: 500; }

.photo-panel { position: sticky; top: 12px; height: calc(100svh - 24px); overflow: hidden; background: var(--surface); }
.photo-panel__frames { position: absolute; inset: 0 0 56px 0; overflow: hidden; }
.frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1600ms var(--ease-in-out); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.is-on { opacity: 1; }
.photo-panel__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: 1.1rem; font-size: var(--step-small); }
.photo-panel__bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-panel__stage { font-weight: 500; }
.photo-panel__caption { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .frame.is-on img { animation: drift 9s var(--ease-soft) both; }
}
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (max-width: 60em) {
  .hero { display: block; padding: 0 12px 12px; }
  .hero__photo { position: sticky; top: calc(var(--bar-h)); height: 50svh; z-index: 0; }
  .hero__sheet { position: relative; z-index: 1; min-height: 0; margin-top: 12px; padding: 1.75rem 1.25rem 2rem; }
  .hero__top { display: none; }
  .hero__body { margin-top: 0; }
  .hero h1 { max-width: 8ch; }
  .hero__lede { margin-top: 1.25rem; }
  .hero__action { margin-top: 1.5rem; width: 100%; }
  .hero__action .button { width: 100%; }
  .hero__foot { padding-top: 1.75rem; }
  .photo-panel__bar { height: 48px; padding-inline: 0.9rem; }
  .photo-panel__caption { display: none; }
  .photo-panel__frames { bottom: 48px; }
}

/* ---------- calculator ---------- */
.calc { padding-top: calc(var(--section) * 0.55); padding-bottom: calc(var(--section) * 0.35); }
.calc__head { align-items: end; row-gap: 1.25rem; }
.calc__head h2 { grid-column: 1 / span 6; }
.calc__head p { grid-column: 7 / span 5; }
.ladder { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.ladder__step { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-height: 8.5rem; padding: 1rem 1rem 0.9rem; background: var(--paper); text-align: left; transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out); }
.ladder__step:active { transform: scale(0.985); }
.ladder__name { font-size: var(--step-sub); line-height: 1.15; letter-spacing: -0.01em; font-weight: 500; }
.ladder__price { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.ladder__step.is-in { background: var(--accent); color: var(--accent-ink); }
.ladder__step.is-in .ladder__price { color: var(--accent-ink); }
.ladder__step.is-start { background: var(--ink); color: var(--paper); }
.ladder__step.is-start .ladder__price { color: var(--paper); }
.ladder__step[disabled] { cursor: default; background: var(--surface); }
.ladder__step[disabled] .ladder__name { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .ladder__step:not([disabled]):not(.is-in):not(.is-start):hover { background: #f6f4f0; }
}
.ladder__hint { margin-top: 0.75rem; color: var(--muted); }

.calc__body { margin-top: clamp(2rem, 4vw, 3.5rem); row-gap: 2.5rem; align-items: start; }
.calc__controls { grid-column: 1 / span 4; display: grid; gap: 1.75rem; position: sticky; top: calc(var(--bar-h) + 1.5rem); }
.calc__result { grid-column: 5 / span 5; }
.calc__photo { grid-column: 10 / span 3; position: sticky; top: calc(var(--bar-h) + 1.5rem); }
.ctl__label { display: block; font-weight: 500; margin-bottom: 0.55rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 0.6rem; background: var(--paper); cursor: pointer; text-align: center; line-height: 1.15; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.seg label:active { transform: scale(0.97); }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg input:disabled + label { color: var(--muted); background: var(--surface); cursor: default; }
.select { width: 100%; min-height: 2.9rem; padding: 0 2.4rem 0 0.9rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.9rem center; border: 0; border-radius: 0; appearance: none; }
.ctl__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ctl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ctl__value { font-variant-numeric: tabular-nums; font-weight: 500; }
.range { width: 100%; height: 2.75rem; margin: 0; cursor: pointer; accent-color: var(--accent); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; line-height: 1.35; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--accent); flex: none; }
.check.is-off { color: var(--muted); }

.calc__sum { font-size: var(--step-head); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.calc__vat { margin-top: 0.75rem; color: var(--muted); }
.calc__facts { margin-top: 1.5rem; display: grid; gap: 0.35rem; }
.calc__facts strong { font-weight: 500; }
.calc__table { margin-top: 1.75rem; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc__table th, .calc__table td { padding: 0.7rem 0; text-align: left; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.calc__table th { font-weight: 400; padding-right: 1rem; }
.calc__table th span { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 0.15rem; max-width: 46ch; }
.calc__table td { text-align: right; white-space: nowrap; }
.calc__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.calc__photo-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.calc__photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--ease-in-out); }
.calc__photo-frame img.is-off { opacity: 0; }
.calc__photo-cap { margin-top: 0.75rem; display: flex; justify-content: space-between; gap: 1rem; }
.calc__photo-cap span:first-child { font-weight: 500; }
.calc__photo-cap span:last-child { color: var(--muted); text-align: right; }
.calc .is-flash { animation: flash 520ms var(--ease-out); }
@keyframes flash { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 60em) {
  .calc__head h2, .calc__head p { grid-column: 1 / -1; }
  .ladder { grid-template-columns: 1fr; gap: 3px; }
  .ladder__step { min-height: 3.5rem; flex-direction: row; align-items: center; padding: 0.7rem 1rem; }
  .calc__controls, .calc__result, .calc__photo { grid-column: 1 / -1; }
  .calc__photo { order: -1; position: static; }
  .calc__photo-frame { aspect-ratio: 4 / 3; }
}
@media (min-width: 60.01em) and (max-width: 75em) {
  .calc__controls { grid-column: 1 / span 4; }
  .calc__result { grid-column: 5 / span 8; }
  .calc__photo { grid-column: 5 / span 8; }
}

/* ---------- prolog: the story of one house ---------- */
.prolog .grid { align-items: end; }
.prolog__text { grid-column: 1 / span 7; }
.statement { margin-top: 2rem; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; max-width: 34ch; }
.prolog__text .statement + p { margin-top: 1.5rem; max-width: 46ch; }
.prolog__pic { grid-column: 9 / span 4; }
.prolog__pic img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.prolog__pic figcaption { margin-top: 0.6rem; }
@media (max-width: 60em) {
  .prolog__text, .prolog__pic { grid-column: 1 / -1; }
  .prolog__pic { margin-top: 2.5rem; width: 82%; }
}

/* ---------- prices like a menu ---------- */
.menu__side { grid-column: 1 / span 3; }
.menu__side h2 { max-width: 6ch; }
.menu__side .menu__note { margin-top: 1.25rem; }
.menu__side figure { margin-top: 2.5rem; }
.menu__side img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.menu__list { grid-column: 5 / span 8; columns: 2; column-gap: 4rem; }
.menu__group { break-inside: avoid; padding-top: 3rem; }
.menu__group:first-child { padding-top: 0; }
.menu__gname { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.menu__unit { color: var(--muted); font-size: var(--step-small); margin-top: 0.2rem; }
.menu__items { margin-top: 1.1rem; display: grid; gap: 1.375rem; }
.menu__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; font-size: var(--step-body); }
.menu__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu__desc { display: block; margin-top: 0.15rem; font-size: var(--step-small); color: var(--muted); max-width: 36ch; }
.menu__more { grid-column: 5 / span 8; margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
@media (max-width: 60em) {
  .menu__side, .menu__list, .menu__more { grid-column: 1 / -1; }
  .menu__side figure { width: 60%; margin-top: 2rem; }
  .menu__list { columns: 1; margin-top: 2.5rem; }
  .menu__group { padding-top: 2.5rem; }
}

/* ---------- showcase: one frame, three distances ---------- */
.zoom { height: 280vh; position: relative; }
.zoom__stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto 1fr; align-items: center; justify-items: center; overflow: hidden; }
.zoom__title { grid-column: 1 / -1; grid-row: 1; align-self: end; text-align: center; margin-bottom: 1.5rem; }
.zoom__title span { display: block; }
.zoom__line2 { opacity: 0; transform: translateY(0.25em); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.zoom__frame { grid-column: 2; grid-row: 2; width: clamp(15rem, 29vw, 30rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform 1100ms var(--ease-in-out); }
.zoom__under { grid-column: 1 / -1; grid-row: 3; align-self: start; margin-top: 1.25rem; text-align: center; max-width: none; }
.zoom__cap { grid-column: 3; grid-row: 2; align-self: start; justify-self: start; margin-left: var(--gutter); max-width: 28ch; opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.zoom__cap strong { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.zoom__cap { font-size: var(--step-body); }
.zoom[data-stage='1'] .zoom__frame img { transform: scale(1.8); transform-origin: 30% 92%; }
.zoom[data-stage='2'] .zoom__frame img { transform: scale(3.2); transform-origin: 88% 38%; }
.zoom[data-stage='1'] .zoom__line2, .zoom[data-stage='2'] .zoom__line2 { opacity: 1; transform: none; }
.zoom[data-stage='2'] .zoom__cap { opacity: 1; transform: none; }
.no-js .zoom__line2, .no-js .zoom__cap { opacity: 1; transform: none; }
@media (max-width: 60em) {
  .zoom { height: 240vh; }
  .zoom__stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto 1fr; }
  .zoom__title { grid-row: 1; margin-bottom: 1rem; }
  .zoom__frame { grid-column: 1; width: 70vw; }
  .zoom__under { grid-row: 3; }
  .zoom__cap { grid-column: 1; grid-row: 4; justify-self: center; text-align: center; margin: 1rem var(--margin) 0; }
  .zoom__title .display, .zoom__under .display { font-size: 12vw; }
}

/* ---------- chapter openers: one verb per chapter ---------- */
.verb { position: relative; height: 100svh; color: var(--on-photo); background: #1a1916; }
.verb--open { height: 190svh; background: var(--bg); --wy: 16%; --wx: 25%; }
.verb__stage { position: sticky; top: 0; height: 100svh; overflow: clip; background: #1a1916; }
.verb__img { position: absolute; inset: 0; overflow: clip; }
.verb__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) contrast(1.05); }
.verb--right .verb__img img { object-position: 74% 50%; }
.verb__word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%); z-index: 1; margin: 0; text-align: center; font-weight: 600; font-size: min(var(--step-giant), calc((100vw - 2 * var(--margin)) / 6.1)); line-height: 0.9; letter-spacing: -0.045em; padding-inline: var(--margin); }
.verb__word span { display: inline-block; }
/* neutral scrim under text on a photograph */
.verb__text { position: absolute; left: 0; bottom: 0; z-index: 1; width: min(46rem, 100%); padding: 6rem var(--margin) var(--margin); background: linear-gradient(to top right, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0) 72%); } /* taste-skill-ignore */
.verb__text p { font-size: var(--step-body); max-width: 40ch; }
.verb__cap { margin-top: 0.6rem; font-size: var(--step-small); color: color-mix(in srgb, var(--on-photo) 82%, transparent); }
@media (max-width: 60em) {
  .verb--open { height: 170svh; --wy: 12%; --wx: 7%; }
  .verb__text { width: 100%; padding-top: 5rem; }
}

/* ---------- how a house grows: held picture, passing captions ---------- */
.steps__head { align-items: end; row-gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.steps__head h2 { grid-column: 1 / span 6; }
.steps__head p { grid-column: 8 / span 5; }
.steps__body { align-items: start; }
.steps__media { grid-column: 1 / span 7; margin: 0; }
.steps__pictures { position: relative; }
.steps__pictures img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.steps__pictures img + img { margin-top: 1rem; }
.steps__count { margin-top: 0.75rem; color: var(--muted); }
.steps__list { grid-column: 9 / span 4; }
.steps__items { list-style: none; margin: 0; padding: 0; }
.steps__item { padding-block: 1.5rem; }
.steps__item h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.steps__meta { margin-top: 0.4rem; font-size: var(--step-small); color: var(--muted); }
.steps__item p:last-child { margin-top: 0.75rem; }
.js .steps__media { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; justify-content: center; }
.js .steps__pictures { aspect-ratio: 3 / 2; max-height: 70svh; overflow: clip; background: var(--surface); }
.js .steps__pictures img { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; }
.js .steps__pictures img.is-on { opacity: 1; }
.js .steps__item { min-height: 64svh; display: flex; flex-direction: column; justify-content: center; color: var(--muted); transition: color 300ms ease; }
.js .steps__item .steps__meta { color: var(--muted); }
.js .steps__item.is-active { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .steps__pictures img { transform: scale(1.06); transition: opacity 700ms ease, transform 1600ms var(--ease-out); }
  .js .steps__pictures img.is-on { transform: none; }
}
@media (max-width: 60em) {
  .steps__head h2, .steps__head p, .steps__media, .steps__list { grid-column: 1 / -1; }
  .js .steps__media { top: var(--bar-h); height: auto; z-index: 2; background: var(--bg); padding: 0.5rem var(--margin); margin-inline: calc(var(--margin) * -1); }
  .js .steps__pictures { max-height: 34svh; width: 100%; }
  .js .steps__item { min-height: 40svh; }
  .steps__count { margin-top: 0.4rem; }
}

/* ---------- the contract slides over the building site ---------- */
.deal { position: relative; background: #1a1916; }
.deal__bg { position: sticky; top: 0; height: 100svh; overflow: clip; }
.deal__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) contrast(1.05); }
.deal__sheet { position: relative; z-index: 1; margin-top: -64svh; padding-bottom: 14svh; }
.deal__paper { background: var(--paper); max-width: 78rem; margin-inline: auto; padding: clamp(1.75rem, 5vw, 5rem); }
.deal__intro { margin-top: 1.25rem; max-width: 52ch; }
.clauses { list-style: none; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem var(--gutter); }
.clause { display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.75rem; align-content: start; }
.clause__no { grid-row: 1 / span 2; font-size: var(--step-sub); line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.clause h3 { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.clause p { margin-top: 0.5rem; grid-column: 2; }
.deal__foot { margin-top: 2.5rem; }
@media (max-width: 60em) {
  .clauses { grid-template-columns: 1fr; gap: 2rem; }
  .clause { grid-template-columns: 2.5rem 1fr; }
  .deal__sheet { margin-top: -45svh; padding-bottom: 8svh; }
}

/* the sticky picture swap used on the building page */
.deal__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.deal__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.deal__frame img.is-on { opacity: 1; }
.deal__frame img:first-child { opacity: 1; }
.deal__frame.has-active img:first-child:not(.is-on) { opacity: 0; }
.deal__cap { margin-top: 0.75rem; color: var(--muted); }

/* ---------- full-bleed sequence ---------- */
.seq__head { align-items: end; padding-bottom: 3rem; padding-top: calc(var(--section) / 2); }
.seq__head h2 { grid-column: 1 / span 6; }
.seq__head p { grid-column: 8 / span 4; }
.seq__item { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.seq__item img { width: 100%; height: 100%; object-fit: cover; }
/* neutral scrim under the caption on a photograph */
.seq__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 5rem var(--margin) 1.25rem; color: var(--on-photo); font-size: var(--step-small); background: linear-gradient(to top, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0)); } /* taste-skill-ignore */
.seq__cap strong { font-weight: 500; font-size: var(--step-body); display: block; }
@media (max-width: 60em) {
  .seq__head h2, .seq__head p { grid-column: 1 / -1; }
  .seq__head p { margin-top: 1rem; }
  .seq__item { height: 88svh; }
}

/* ---------- questions beside a tall photograph ---------- */
.faq { background: var(--surface); overflow: hidden; }
.faq .grid { align-items: start; }
.faq__main { grid-column: 1 / span 5; padding-block: calc(var(--section) / 2); }
.faq__facts { margin-top: 2rem; display: grid; gap: 0.4rem; }
.faq__facts b { font-weight: 500; }
.faq__list { margin-top: 2.5rem; display: grid; gap: 0.25rem; }
.faq details { padding-block: 0.85rem; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; font-size: var(--step-sub); line-height: 1.3; cursor: pointer; letter-spacing: -0.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.chev { position: relative; flex: none; width: 14px; height: 14px; top: 2px; transition: transform var(--t-ui) var(--ease-out); }
.chev::before, .chev::after { content: ''; position: absolute; top: 6px; width: 9px; height: 2px; background: currentColor; }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin-top: 0.75rem; color: #3f3c37; }
.faq__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.faq__pics { grid-column: 7 / span 6; position: relative; margin-bottom: 80px; }
.faq__tall { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.faq__square { position: absolute; left: -40px; bottom: -40px; width: 33%; aspect-ratio: 1; object-fit: cover; outline: 12px solid var(--surface); }
@media (max-width: 60em) {
  .faq__pics { grid-column: 1 / -1; order: -1; margin: 0 calc(var(--margin) * -1) 3rem; }
  .faq__tall { aspect-ratio: 4 / 5; }
  .faq__square { left: auto; right: var(--margin); bottom: -2rem; width: 38%; }
  .faq__main { grid-column: 1 / -1; padding-top: 1rem; }
}

/* ---------- visit card on a photograph ---------- */
.visit { position: relative; min-height: 100svh; }
.visit__img { position: absolute; inset: 0; }
.visit__img img { width: 100%; height: 100%; object-fit: cover; }
.visit__card { position: relative; z-index: 1; width: min(400px, calc(100% - 2 * var(--margin))); margin: 60px 0 0 60px; background: var(--paper); padding: 2rem 2rem 0; display: flex; flex-direction: column; }
.visit__card h2 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.visit__card p { margin-top: 0.9rem; }
.visit__hours { margin-top: 1.25rem; display: grid; gap: 0.3rem; font-variant-numeric: tabular-nums; }
.visit__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.visit__contact { margin-top: 1.25rem; }
.visit__card .button { margin: 1.75rem -2rem 0; min-height: 3.25rem; }
.visit__cap { position: absolute; z-index: 1; right: var(--margin); bottom: var(--margin); color: var(--on-photo); font-size: var(--step-small); background: rgba(10, 10, 10, 0.45); padding: 0.35rem 0.6rem; }
@media (max-width: 60em) {
  .visit { min-height: 0; display: flex; flex-direction: column; }
  .visit__img { position: relative; height: 70svh; }
  .visit__card { margin: -80px var(--margin) 0; width: auto; padding: 1.5rem 1.5rem 0; }
  .visit__card .button { margin: 1.5rem -1.5rem 0; min-height: 3.5rem; }
  .visit__cap { top: var(--margin); bottom: auto; }
}

/* ---------- footer: photograph half, menu half ---------- */
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: 88svh; background: var(--paper); }
.foot__pic { grid-column: 1 / span 6; position: relative; overflow: hidden; min-height: 22rem; }
.foot__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; transform: scale(1.25); transform-origin: 20% 80%; }
.foot__side { grid-column: 8 / span 5; padding: 2rem var(--margin) 1.5rem 0; display: flex; flex-direction: column; }
.foot__mark { font-weight: 500; font-size: var(--step-sub); letter-spacing: -0.02em; text-decoration: none; }
.foot__menu { margin-top: 3rem; display: grid; gap: 0.5rem; }
.foot__menu a { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; text-decoration: none; display: inline-block; transition: transform var(--t-ui) var(--ease-out), color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) {
  .foot__menu:hover a { color: var(--muted); }
  .foot__menu a:hover { color: var(--ink); transform: translateX(12px); }
}
.foot__blocks { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: var(--step-small); }
.foot__blocks h3 { font-size: var(--step-small); font-weight: 500; margin-bottom: 0.4rem; }
.foot__legal { margin-top: auto; padding-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 60em) {
  .foot { display: block; min-height: 0; }
  .foot__pic { height: 50svh; }
  .foot__side { padding: 2rem var(--margin) 1.5rem; }
  .foot__menu { margin-top: 2rem; }
  .foot__blocks { grid-template-columns: 1fr; margin-top: 2.5rem; }
}

/* ---------- inner pages ---------- */
.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 12px; }
.page-hero__sheet { background: var(--paper); padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 3rem); display: flex; flex-direction: column; min-height: calc(100svh - var(--bar-h) - 12px); }
.page-hero h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.04em; max-width: 10ch; }
.page-hero__lede { margin-top: 1.75rem; max-width: 44ch; }
.page-hero__facts { margin-top: auto; padding-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.page-hero__facts dt { color: var(--muted); font-size: var(--step-small); }
.page-hero__facts dd { font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1.15; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.page-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.page-hero .photo-panel { top: calc(var(--bar-h)); height: calc(100svh - var(--bar-h) - 12px); }
@media (max-width: 60em) {
  .page-hero { display: flex; flex-direction: column; }
  .page-hero .photo-panel { position: relative; top: 0; height: 46svh; }
  .page-hero__sheet { min-height: 0; }
  .page-hero__facts { grid-template-columns: 1fr 1fr; }
}

.split-head { align-items: end; row-gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split-head h2 { grid-column: 1 / span 6; }
.split-head p { grid-column: 8 / span 5; }
@media (max-width: 60em) { .split-head h2, .split-head p { grid-column: 1 / -1; } }

/* stages (building page) */
.stages__pic { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; }
.stages__list { grid-column: 7 / span 6; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.stage h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.025em; }
.stage__meta { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-variant-numeric: tabular-nums; }
.stage__meta b { font-weight: 500; }
.stage p { margin-top: 1rem; }
.stage ul { margin-top: 1rem; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.stage figure { display: none; }
@media (max-width: 60em) {
  .stages__pic { display: none; }
  .stages__list { grid-column: 1 / -1; }
  .stage figure { display: block; margin-bottom: 1.25rem; }
  .stage figure img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
}

/* real tables: comparison, schedule, timelines */
.table-wrap { overflow-x: auto; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 44rem; }
.table caption { text-align: left; caption-side: top; padding-bottom: 1rem; color: var(--muted); }
.table th, .table td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.table thead th { border-top: 0; font-weight: 500; font-size: var(--step-sub); letter-spacing: -0.02em; padding-bottom: 1.25rem; vertical-align: bottom; }
.table thead th span { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 0.25rem; }
.table tbody th { font-weight: 500; width: 18%; }
.table td.num, .table th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.table tr.is-total th, .table tr.is-total td { font-weight: 500; }

.table--cells td { font-size: var(--step-sub); letter-spacing: -0.01em; line-height: 1.2; }
.table--cells td span { display: block; margin-top: 0.3rem; font-size: var(--step-small); color: var(--muted); letter-spacing: 0; }
.table--spec td { min-width: 14rem; }
@media (min-width: 60em) { .table--cells td { white-space: nowrap; } }
@media (max-width: 60em) {
  .table-wrap { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .table { min-width: 0; }
  .table th, .table td { padding-right: 0.75rem; }
  .table--spec thead, .table--cells thead { display: none; }
  .table--spec tr, .table--cells tr { display: grid; grid-template-columns: 1fr; padding: 1.1rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
  .table--spec th, .table--spec td, .table--cells th, .table--cells td { border: 0; padding: 0.25rem 0; min-width: 0; width: auto; }
  .table--spec tbody th, .table--cells tbody th { font-size: var(--step-sub); padding-bottom: 0.5rem; width: auto; }
  .table--spec td::before, .table--cells td::before { content: attr(data-label); display: block; font-weight: 500; font-size: var(--step-small); color: var(--ink); margin-bottom: 0.1rem; }
  .table--cells td { display: grid; grid-template-columns: 9rem 1fr; align-items: baseline; gap: 0 1rem; }
  .table--cells td::before { margin: 0; }
  .table--cells td span { grid-column: 2; }
}
.half--r img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.half .menu__items { margin-top: 2.5rem; }
.half h2 + p { margin-top: 1.25rem; }
.half--l { grid-column: 1 / span 6; }
.half--r { grid-column: 7 / span 6; }
@media (max-width: 60em) { .half--l, .half--r { grid-column: 1 / -1; } .half--r { margin-top: 2.5rem; } }
.list { margin-top: 1rem; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.list li { max-width: 52ch; }

.packs { margin-top: clamp(3rem, 6vw, 5rem); }
.packs__pics { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; align-items: end; margin-bottom: 2.5rem; }
.packs__pics figure img { width: 100%; object-fit: cover; }
.packs__pics figure:nth-child(1) img { aspect-ratio: 4 / 5; }
.packs__pics figure:nth-child(2) img { aspect-ratio: 1; }
.packs__pics figure:nth-child(3) img { aspect-ratio: 3 / 4; }
.packs__pics figcaption { margin-top: 0.6rem; display: flex; justify-content: space-between; gap: 1rem; }
.packs__pics figcaption b { font-weight: 500; }
@media (max-width: 60em) { .packs__pics { grid-template-columns: 1fr 1fr; } .packs__pics figure:nth-child(2) { grid-column: 1 / -1; order: -1; } }
@media (max-width: 40em) { .packs__pics figure:not(:nth-child(2)) figcaption { flex-direction: column; gap: 0.15rem; } }

.band { background: var(--ink); color: var(--paper); }
.band .grid { align-items: end; row-gap: 2rem; }
.band h2 { grid-column: 1 / span 7; }
.band__side { grid-column: 9 / span 4; }
.band__side p { color: color-mix(in srgb, var(--paper) 80%, var(--ink)); }
.band .button { margin-top: 1.75rem; }
@media (max-width: 60em) { .band h2, .band__side { grid-column: 1 / -1; } }

.notes { columns: 2; column-gap: var(--gutter); }
.notes li { break-inside: avoid; margin-bottom: 1rem; }
@media (max-width: 60em) { .notes { columns: 1; } }

/* quote form */
.quote { align-items: start; }
.quote__form { grid-column: 1 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 12px; }
.quote__aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--bar-h) + 2rem); }
.fld { display: grid; gap: 0.45rem; }
.fld--wide { grid-column: 1 / -1; }
.fld label, .fld legend { font-weight: 500; }
.fld .hint { font-size: var(--step-small); color: var(--muted); }
.input { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: var(--paper); border: 0; border-radius: 0; font-size: max(1rem, var(--step-body)); }
textarea.input { min-height: 9rem; resize: vertical; }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.input[aria-invalid='true'] { outline: 2px solid #a3322a; outline-offset: 0; }
.err { color: #8f2a23; font-size: var(--step-small); min-height: 1em; }
fieldset { border: 0; margin: 0; padding: 0; }
.quote__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 0.5rem; }
.quote__status { grid-column: 1 / -1; padding: 1.25rem; background: var(--paper); }
.quote__status[hidden] { display: none; }
.quote__aside figure img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.quote__aside h2 { margin-top: 1.5rem; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.quote__aside ol { margin-top: 1rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
@media (max-width: 60em) {
  .quote__form, .quote__aside { grid-column: 1 / -1; }
  .quote__form { grid-template-columns: 1fr; }
  .quote__aside { position: static; margin-top: 3rem; }
}

/* prose pages */
.prose { grid-column: 1 / span 7; }
.prose-pic { grid-column: 9 / span 4; position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; }
.prose-pic img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.prose-pic figcaption { margin-top: 0.6rem; }
.prose h1 { margin-bottom: 2rem; }
.prose h2 { font-size: var(--step-lead); margin-top: 2.5rem; margin-bottom: 0.75rem; letter-spacing: -0.015em; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.prose li { max-width: 62ch; }
.prose ul + p, .prose ol + p { margin-top: 1rem; }
/* drawn dots: Chrome left the native disc unpainted in the guide articles */
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1rem; top: 0.7em; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--muted); }
li::marker { color: var(--muted); }
.prose .fill { background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 0 0.25em; }
@media (max-width: 60em) { .prose, .prose-pic { grid-column: 1 / -1; } .prose-pic { position: static; margin-top: 3rem; } }

/* ---------- guide articles ---------- */
.article .prose { grid-column: 3 / span 8; }
.article .prose > h2:first-child { margin-top: 0; }
.page-hero__meta { margin-top: 1.5rem; }
@media (max-width: 60em) { .article .prose { grid-column: 1 / -1; } }
.article__meta { margin-top: 1.25rem; }
.article__lede { margin-top: 1.5rem; font-size: var(--step-sub); line-height: 1.4; letter-spacing: -0.01em; max-width: 46ch; }
.article__go { margin-top: 1.75rem; }
.article figure.inline { margin-block: 2.5rem; }
.article figure.inline img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article figure.inline figcaption { margin-top: 0.6rem; }
.prose h2 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; margin-top: clamp(2.5rem, 5vw, 4rem); }
.prose .table-wrap { margin-block: 1.5rem; }
.prose .table { min-width: 0; }
.article__cta { margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); }
.article__cta .sub { max-width: 36ch; }
.crumbs { margin-top: 3rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.crumbs [aria-current] { color: var(--ink); }
.guides { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.guide { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.guide__pic { grid-column: 1 / span 5; display: block; overflow: clip; }
.guide__pic img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.guide__text { grid-column: 7 / span 5; }
.guide__text h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.guide__text h3 a { text-decoration: none; }
.guide__text p { margin: 0.9rem 0 1rem; }
.guide:nth-child(even) .guide__pic { grid-column: 8 / span 5; grid-row: 1; }
.guide:nth-child(even) .guide__text { grid-column: 2 / span 5; grid-row: 1; }
@media (hover: hover) and (pointer: fine) { .guide:hover .guide__pic img { transform: scale(1.04); } .guide__text h3 a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.06em; } }
@media (max-width: 60em) {
  .guide__pic, .guide__text, .guide:nth-child(even) .guide__pic, .guide:nth-child(even) .guide__text { grid-column: 1 / -1; grid-row: auto; }
  .guide__text { margin-top: 1rem; }
}

/* ---------- story effects ---------- */
[data-lines] .line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-lines] .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-split .line > span { transform: translateY(110%); }
  .is-split.is-in .line > span { transform: none; transition: transform 820ms var(--ease-expo) calc(var(--i) * 80ms); }
}
[data-fill] { --fill: var(--ink); color: var(--fill); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-filling > span { display: inline-block; color: color-mix(in oklab, var(--fill) 42%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 22% cover 48%; }

    .hero { view-timeline-name: --hero; }
    .hero__body, .hero__foot { animation: hero-lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 75%; }
    .hero .photo-panel__frames img { animation: hero-sink linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }

    .verb { view-timeline-name: --verb; }
    .verb__img img { animation: verb-settle linear both; animation-timeline: --verb; animation-range: cover 0% cover 100%; }
    .verb__word span { animation: verb-drift linear both; animation-timeline: --verb; animation-range: cover 0% cover 100%; }
    .verb--open .verb__stage { animation: open-window linear both; animation-timeline: --verb; animation-range: contain 0% contain 55%; }
    .verb--open .verb__img img { animation: open-settle linear both; animation-timeline: --verb; animation-range: contain 0% contain 70%; }
    .verb--open .verb__word span, .verb--open .verb__text { animation: open-text linear both; animation-timeline: --verb; animation-range: contain 28% contain 58%; }

    .foot { view-timeline-name: --foot; }
    .foot__pic img { animation: foot-settle linear both; animation-timeline: --foot; animation-range: entry 0% entry 100%; }
    .seq__item { view-timeline-name: --seq; }
    .seq__item img { animation: seq-settle linear both; animation-timeline: --seq; animation-range: entry 0% entry 100%; }
  }
}
@keyframes ink-fill { to { color: var(--fill); } }
@keyframes hero-lift { to { transform: translateY(-10%); opacity: 0.15; } }
@keyframes hero-sink { to { transform: translateY(7%) scale(1.07); } }
@keyframes verb-settle { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes verb-drift { from { transform: translateY(32%); } to { transform: translateY(-32%); } }
@keyframes open-window { from { clip-path: inset(var(--wy) var(--wx)); } to { clip-path: inset(0); } }
@keyframes open-settle { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes open-text { from { opacity: 0; transform: translateY(16%); } to { opacity: 1; transform: none; } }
@keyframes foot-settle { from { transform: scale(1.45) translateY(-4%); } to { transform: scale(1.25); } }
@keyframes seq-settle { from { transform: scale(1.12); } to { transform: scale(1); } }


/* page to page */
::view-transition-old(root) { animation: vt-leave 200ms cubic-bezier(0.55, 0.055, 0.675, 0.19) both; }
::view-transition-new(root) { animation: vt-arrive 420ms var(--ease-out) 60ms both; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }

/* ---------- reveals: content is visible without script ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 520ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .js .hero [data-rise], .js .page-hero [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .frame { transition: opacity 300ms ease; }
  .zoom__frame img { transition: none; }
}
@media (max-width: 60em) { .calc__controls { position: static; } }
.sources { margin-top: 2rem; display: grid; gap: 0.9rem; }
