:root {
  --paper: #efebe4;
  --paper-deep: #e6e0d6;
  --ink: #22201c;
  --ink-soft: #5f5a52;
  --timber: #b5651d;
  --timber-text: #8f4c14;
  --moss: #6d7b6a;
  --moss-text: #5b6858;
  --line: #d3ccc0;
  --sans: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --head: 64px;
  --gut: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--timber-text); }
:focus-visible { outline: 2px solid var(--timber-text); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
main:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }


/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 2px;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:focus-visible { outline: 2px solid var(--timber-text); outline-offset: 3px; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { height: var(--head); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 10px 12px; text-decoration: none; font-size: 15px; color: var(--ink-soft); border-radius: 2px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); padding: 8px; display: grid; min-width: 220px; box-shadow: 0 2px 4px rgba(34, 32, 28, 0.08); }
.menu nav a { padding: 12px 14px; text-decoration: none; min-height: 44px; }

/* hero: the photo as a full-width plate, the line and the address on a paper band under it */
.hero { display: grid; }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: #d9d6d0; height: clamp(320px, max(calc(100svh - var(--head) - 240px), 40vw), 860px); }
.hero-photo picture { display: contents; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 76%; }
.hero-band { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px clamp(32px, 5vw, 80px); align-items: start; padding-top: 34px; padding-bottom: 34px; }
.hero h1 { font-size: clamp(40px, 3.9vw, 60px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; margin: 0; max-width: 17em; }
.hero-side { display: grid; gap: 14px; justify-items: start; padding-top: 6px; }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 40ch; }
.address { font-size: 15px; line-height: 1.5; margin: 0; }
.hero-photo figcaption, .sauna-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 18px; color: #fff; font-size: 14px;
  background: linear-gradient(to top, rgba(34, 32, 28, 0.78), rgba(34, 32, 28, 0));
}
.hero-photo figcaption strong { font-weight: 600; margin-right: 8px; }

/* numbers */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers p { margin: 0; padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.numbers p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.num { font-size: clamp(30px, 3vw, 44px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.lab { font-size: 14px; color: var(--ink-soft); }

/* build */
.build { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.build-sticky { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.build h2, .section h2 { font-size: clamp(34px, 4vw, 58px); letter-spacing: -0.012em; }
.build-intro { color: var(--ink-soft); margin: 18px 0 28px; max-width: 34ch; }
.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stages li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.stages h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 4px; }
.stages p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.build-stage { position: relative; }
.house { width: 100%; height: auto; }
.stage-row { display: none; }
.turn-toggle { margin-top: 18px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; }

/* scrollytelling (only when JS added .is-scrolly and motion is allowed) */
.build.is-scrolly { padding: 0; }
.build.is-scrolly .build-track { height: 320vh; position: relative; }
.build.is-scrolly .build-sticky { position: sticky; top: var(--head); height: calc(100vh - var(--head)); height: calc(100svh - var(--head)); padding-top: 24px; padding-bottom: 24px; }
.build.is-scrolly .stages li h3 { color: var(--ink-soft); font-weight: 500; transition: color .2s var(--ease); }
.build.is-scrolly .stages li.is-on { box-shadow: inset 2px 0 0 var(--timber); padding-left: 14px; }
.build.is-scrolly .stages li.is-on h3 { color: var(--ink); font-weight: 600; }
.build.is-scrolly .house { max-height: calc(100svh - var(--head) - 64px); }
.build.is-scrolly h2 { font-size: clamp(32px, 3.4vw, 48px); }
.build.is-scrolly .build-intro { margin: 12px 0 20px; }
.build.is-scrolly .stages li { padding: 11px 0; }
.build.is-scrolly .stages li h3 { margin: 0; }
.build.is-scrolly .stages li:not(.is-on) p { display: none; }
.build.is-scrolly .stages li.is-on p { margin-top: 4px; }

/* sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { margin-bottom: 40px; }
.section-head p { margin: 18px 0 0; color: var(--ink-soft); max-width: 60ch; }

/* kohteet */
.kohteet { border-top: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filter { border: 0; margin: 0; padding: 4px; display: inline-flex; background: var(--paper-deep); border-radius: 2px; }
.filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter label { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 2px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: background-color .2s var(--ease), color .2s var(--ease); }
.filter input:checked + label { background: var(--ink); color: var(--paper); }
.filter input:focus-visible + label { outline: 2px solid var(--timber-text); outline-offset: 2px; }
.count { margin: 0; color: var(--ink-soft); }
.count .c-talot, .count .c-saunat { display: none; }
.kohteet:has(#f-talot:checked) .c-kaikki, .kohteet:has(#f-saunat:checked) .c-kaikki { display: none; }
.kohteet:has(#f-talot:checked) .c-talot, .kohteet:has(#f-saunat:checked) .c-saunat { display: inline; }
.kohteet:has(#f-talot:checked) .card[data-type="sauna"], .kohteet:has(#f-saunat:checked) .card[data-type="talo"] { display: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 40px 24px; }
.card { display: flex; flex-direction: column; }
.card-wide { grid-column: span 2; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.drawing { display: flex; align-items: flex-end; justify-content: flex-start; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.drawing svg { width: 86%; height: auto; margin-left: -4%; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.drawing .t { stroke: #b8afa1; stroke-width: 1; }
.drawing .g { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.drawing .a { stroke: var(--timber); stroke-width: 2; }
.card-wide .card-media { aspect-ratio: 16 / 10; }
@media (min-width: 641px) {
  .card-photo .card-media { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; }
}
.tag { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.tag-talo { color: var(--timber-text); }
.tag-sauna { color: var(--moss-text); }
.card h3 { font-size: 22px; letter-spacing: -0.01em; }
.card-wide h3 { font-size: 26px; }
.place { color: var(--ink-soft); margin: 4px 0 14px; font-size: 15px; }
.card dl { margin: auto 0 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 8px 28px; }
.card dt { font-size: 12px; color: var(--ink-soft); }
.card dd { margin: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* prosessi */
.prosessi { background: var(--paper-deep); }
.prosessi-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prosessi-side { position: sticky; top: calc(var(--head) + 32px); }
.prosessi-side > p { color: var(--ink-soft); margin: 20px 0 28px; max-width: 42ch; }
.axo { margin: 0; }
.axo img { width: 100%; }
.axo figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 0 30px; border-top: 1px solid #cfc7ba; }
.steps li:last-child { border-bottom: 1px solid #cfc7ba; }
.step-meta { color: var(--timber-text); margin-bottom: 10px; }
.steps h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.steps p { max-width: 58ch; }
.get { margin: 0; font-weight: 500; }
.get span { color: var(--ink-soft); margin-right: 6px; font-weight: 400; }
.fee { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); padding-top: 0; }
.fee h3 { font-size: clamp(28px, 3vw, 40px); grid-row: span 3; }
.fee-lede { font-size: 20px; line-height: 1.5; margin: 0; }
.fee-split { margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fee-split div { border-top: 1px solid #cfc7ba; padding-top: 10px; display: flex; flex-direction: column; }
.fee-split dt { font-size: 14px; color: var(--ink-soft); }
.fee-split dd { margin: auto 0 0; padding-top: 4px; font-size: 26px; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fee-split div:last-child dd { font-size: 20px; }
.fine { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* saunat */
.sauna-photo { margin: 0 0 clamp(40px, 6vw, 72px); position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #7d7a76; }
.sauna-photo picture { display: contents; }
.sauna-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.sauna-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sauna-table thead th { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.sauna-table tbody tr { border-bottom: 1px solid var(--line); }
.sauna-table th[scope="row"] { text-align: left; font-weight: 400; padding: 24px 24px 24px 0; vertical-align: top; width: 38%; }
.sauna-table td { padding: 26px 16px 24px 0; vertical-align: top; font-size: 17px; font-weight: 500; white-space: nowrap; }
.model-size { display: block; font-size: 14px; font-weight: 500; color: var(--moss-text); margin-bottom: 6px; }
.model-name { display: block; font-size: 28px; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 6px; }
.model-desc { display: block; color: var(--ink-soft); font-size: 15px; max-width: 42ch; }

/* toimisto */
.toimisto { border-top: 1px solid var(--line); }
.toimisto-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.toimisto h2 { margin-bottom: 28px; }
.big { font-size: clamp(21px, 2vw, 26px); line-height: 1.45; letter-spacing: -0.01em; max-width: 34ch; }
.toimisto-in > div > p:not(.big) { color: var(--ink-soft); max-width: 52ch; }
.visit { margin-top: 36px; display: grid; gap: 14px; }
.visit p { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; }
.visit .k { color: var(--moss-text); font-size: 15px; font-weight: 500; }
.people { list-style: none; margin: 8px 0 0; padding: 0; }
.people li { display: flex; flex-direction: column; padding: 18px 0; border-bottom: 1px solid var(--line); }
.people .name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.people .role { color: var(--ink-soft); font-size: 15px; }

/* yhteys */
.yhteys { background: var(--ink); color: var(--paper); }
.yhteys a:hover { color: #e9b98a; }
.yhteys :focus-visible { outline-color: #e9b98a; }
.yhteys-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.text-btn { min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--paper); font: 500 15px/1 var(--sans); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.yhteys-side > p { color: #cbc4b8; max-width: 40ch; margin-top: 20px; }
.yhteys-side .how { font-size: 15px; margin-top: 24px; }
.enquiry { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin: 0; display: grid; gap: 8px; }
.field > label, .choice legend, .draft > label { font-size: 14px; font-weight: 500; color: #ddd6ca; }
.opt { font-weight: 400; color: #a9a196; }
.enquiry input:not([type="radio"]), .enquiry select, .enquiry textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #5a554c; border-radius: 2px;
  background: #2c2a25; color: var(--paper); font: 400 16px/1.4 var(--sans);
}
.enquiry textarea { resize: vertical; }
.enquiry ::placeholder { color: #9a9286; }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible { outline: 2px solid #e9b98a; outline-offset: 1px; border-color: #e9b98a; }
.choice { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { padding: 0; margin-bottom: 8px; }
.choice span { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #5a554c; border-radius: 2px; cursor: pointer; font-size: 15px; }
.choice input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.choice input:focus-visible + label { outline: 2px solid #e9b98a; outline-offset: 2px; }
.enquiry .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); justify-self: start; margin-top: 6px; }
.enquiry .btn-quiet { color: var(--paper); border-color: #8a8378; }
.draft { display: grid; gap: 10px; border-top: 1px solid #45413a; padding-top: 22px; margin-top: 8px; }
.draft-status { margin: 0; color: var(--paper); max-width: 60ch; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-note { font-size: 14px; color: #cbc4b8; }

/* footer */
.site-footer { background: var(--ink); color: #cbc4b8; border-top: 1px solid #3a3731; padding: 48px 0 56px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.brand-foot { color: var(--paper); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.site-footer nav { display: grid; gap: 2px; }
.site-footer nav a { text-decoration: none; padding: 10px 0; }
.site-footer nav a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .fine { color: #a9a196; }
.site-footer :focus-visible { outline-color: #e9b98a; }

/* hover only where a pointer can hover */
@media (hover: hover) {
  .btn-primary:hover { background: var(--timber-text); border-color: var(--timber-text); color: #fff; }
  .btn-quiet:hover { background: var(--ink); color: var(--paper); }
  .site-nav a:hover { color: var(--ink); text-decoration: underline; }
  .filter label:hover { color: var(--ink); background: rgba(34, 32, 28, 0.07); }
  .filter input:checked + label:hover { background: #3a3731; color: var(--paper); }
  .turn-toggle:hover { border-color: var(--ink); }
  .enquiry .btn-primary:hover { background: #e9b98a; border-color: #e9b98a; color: var(--ink); }
  .enquiry .btn-quiet:hover { background: var(--paper); color: var(--ink); }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .site-nav a { padding: 10px 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-nav, .header-cta { display: none; }
  .menu { display: block; margin-left: auto; }
  .hero-photo { height: auto; aspect-ratio: 3 / 2; }
  .hero-photo img { object-position: 40% 55%; }
  .hero-band { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 36px; }
  .hero h1 { max-width: 16ch; }
  .numbers-in { grid-template-columns: repeat(2, 1fr); }
  .numbers p { padding: 20px 16px 20px 0; }
  .numbers p:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers p:nth-child(n+3) { border-top: 1px solid var(--line); }
  .build-sticky { grid-template-columns: 1fr; }
  .build-stage { order: -1; }
  .section-head, .prosessi-in, .toimisto-in, .yhteys-in, .fee { grid-template-columns: 1fr; }
  .fee h3 { grid-row: auto; }
  .prosessi-side { position: static; }
  .sauna-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sauna-table, .sauna-table tbody, .sauna-table tr, .sauna-table th[scope="row"], .sauna-table td { display: block; width: auto; }
  .sauna-table tbody tr { padding: 24px 0 12px; border-bottom: 0; border-top: 1px solid var(--line); }
  .sauna-table th[scope="row"] { padding: 0 0 12px; }
  .sauna-table td { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .sauna-table td::before { content: attr(data-label); color: var(--ink-soft); font-weight: 400; font-size: 15px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in .fine { grid-column: 1 / -1; }

  /* phone scrollytelling: drawing on top, only the current caption below */
  .build.is-scrolly .build-track { height: 290vh; }
  .build.is-scrolly .build-sticky { align-content: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .build.is-scrolly .build-intro { display: none; }
  .build.is-scrolly .build-copy h2 { font-size: 28px; margin-bottom: 12px; }
  .build.is-scrolly .stages { border-top: 0; min-height: 132px; }
  .build.is-scrolly .stages li { display: none; border-bottom: 0; padding: 8px 0 0; }
  .build.is-scrolly .stages li.is-on { display: block; box-shadow: none; padding-left: 0; }
  .build.is-scrolly .stages li.is-on h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .build.is-scrolly .stages li.is-on p { font-size: 16px; color: var(--ink); }
  .build.is-scrolly .stage-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--ink-soft); }
  .build.is-scrolly .stage-row .is-on { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--timber); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
  .build.is-scrolly .house { max-height: 50svh; margin: 0 auto; }
  .build.is-scrolly .turn-toggle { margin-top: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card-wide { grid-column: auto; }
  .card-wide .card-media { aspect-ratio: 4 / 3; }
  .card-wide h3 { font-size: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero-photo { aspect-ratio: 4 / 3; }
  .filter-row { flex-direction: column; align-items: flex-start; }
  .filter label { padding: 0 16px; }
  .visit p { grid-template-columns: 1fr; gap: 2px; }
  .fee-lede { font-size: 18px; }
  .fee-split dd { font-size: 22px; }
  .footer-in { grid-template-columns: 1fr; }
  .hero-photo figcaption { font-size: 13px; padding: 40px 16px 12px; }
  .hero-photo figcaption strong { display: block; }
  .sauna-photo { aspect-ratio: 4 / 3; }
  .sauna-photo img { object-position: 50% 50%; }
}
@media (max-width: 380px) {
  .header-in { gap: 12px; }
  .numbers p { padding-right: 10px; }
  .numbers p + p { padding-left: 14px; }
  .numbers p:nth-child(3) { padding-left: 0; }
  .num { font-size: 28px; }
}
@media (min-width: 961px) {
  .yhteys-side { position: sticky; top: calc(var(--head) + 32px); }
  .build:not(.is-scrolly) .build-sticky { align-items: start; }
  .build:not(.is-scrolly) .build-stage { position: sticky; top: calc(var(--head) + 24px); }
}

/* short screens (landscape phones, low laptop windows): drawing left, compact caption right, all inside the pinned frame */
@media (max-height: 560px) and (min-width: 600px) {
  .build.is-scrolly .build-track { height: 320vh; }
  .build.is-scrolly .build-sticky { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
  .build.is-scrolly .build-stage { order: 0; }
  .build.is-scrolly .house { max-height: calc(100svh - var(--head) - 24px); margin: 0 auto; }
  .build.is-scrolly .build-copy h2 { font-size: 26px; margin-bottom: 10px; }
  .build.is-scrolly .build-intro { display: none; }
  .build.is-scrolly .stages { border-top: 0; min-height: 0; }
  .build.is-scrolly .stages li { display: none; border-bottom: 0; padding: 8px 0 0; }
  .build.is-scrolly .stages li.is-on { display: block; box-shadow: none; padding-left: 0; }
  .build.is-scrolly .stages li.is-on h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .build.is-scrolly .stages li.is-on p { font-size: 15px; color: var(--ink); }
  .build.is-scrolly .stage-row { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; font-size: 13px; color: var(--ink-soft); }
  .build.is-scrolly .stage-row .is-on { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--timber); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
  .build.is-scrolly .turn-toggle { margin-top: 12px; }
}

/* wide screens: the text column follows the content grid, the photo takes the rest */
@media (min-width: 1700px) {
  .sauna-photo { aspect-ratio: 16 / 7; }
}

/* scroll-linked settle: content rises a few pixels into place; without support it simply sits there */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card, .steps li, .sauna-table, .people, .fee {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes settle { from { transform: translateY(28px); } to { transform: none; } }
  }
}

.nw { white-space: nowrap; }

/* phone: drawn projects as list rows, drawing left and text right */
@media (max-width: 640px) {
  .card-drawing { display: grid; grid-template-columns: 38% 1fr; gap: 0 16px; align-items: start; }
  .card-drawing .card-media { margin: 4px 0 0; aspect-ratio: 4 / 3; }
  .card-drawing .drawing svg { width: 118%; margin-left: -10%; }
  .card-drawing h3 { font-size: 20px; }
  .card-drawing .place { margin-bottom: 10px; }
  .card-drawing dl { gap: 4px 18px; }
  .grid { gap: 28px; }
}

/* a client's word under the projects, and the office's dated note */
.quote { margin: clamp(48px, 6vw, 80px) 0 0; max-width: 46ch; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; margin: 0 0 12px; }
.quote blockquote p::before { content: '\201D'; color: var(--timber); margin-right: 2px; }
.quote blockquote p::after { content: '\201D'; }
.quote figcaption { font-size: 15px; color: var(--ink-soft); }
.quote figcaption span { margin-left: 8px; color: var(--timber-text); }
.note { margin-top: 28px; padding: 16px 18px; background: var(--paper-deep); max-width: 44ch; font-size: 16px; line-height: 1.55; }
.note-date { display: block; font-family: var(--mono); font-size: 13px; color: var(--timber-text); margin-bottom: 4px; }
.note-sign { display: block; margin-top: 6px; font-weight: 600; }
.toimisto-in > div > p.note { color: var(--ink); }
