/* Ostrander Row sample: page shell, hero, homes, tools, reviews, contact, footer.
   Sibling: desk.css owns the dashboard section. Calm realtor finish, rounded tiles and layered glass (Eric, 2026-11-14).
   Type: Petrona (display, a bookish serif with a slightly drawn hand) over Schibsted Grotesk
   (text and data, a newsroom grotesk with tabular figures). */

:root {
  --ground: #eef0ec;
  --paper: #f8f9f6;
  --ink: #1b2420;
  --ink-2: #47524c;
  --line: #c6cec6;
  --line-2: #dde2dc;
  --copper: #9f4b26;
  --copper-hi: #c8743f;
  --fir: #111814;
  --fir-2: #1a2420;
  --ink-rgb: 27 36 32;
  --gut: clamp(16px, 4.5vw, 64px);
  --max: 1280px;
  --sec: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 72px;
  --f-d: "Petrona", Georgia, serif;
  --f-t: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr-h); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.6 var(--f-t); font-feature-settings: "tnum" 0;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { left: 16px; top: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* Header: transparent over the hero, glass once the page moves. Logo flies from hero size to header size. */
.hdr { position: sticky; top: 0; z-index: 30; height: var(--hdr-h); transition: background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.hdr.is-glass {
  /* No saturate() here: in WebKit a saturating backdrop pushes light glyphs back through the tint. */
  background: rgb(238 240 236 / .985);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgb(var(--ink-rgb) / .1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr.is-glass { background: rgb(238 240 236); }
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.logo {
  --p: 0; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  transform-origin: 0 50%;
  transform: translateY(calc((1 - var(--p)) * var(--logo-dy, 34px))) scale(calc(1 + (1 - var(--p)) * var(--logo-s, .55)));
  will-change: transform; min-height: 44px; white-space: nowrap;
}
.logo__mark { width: 32px; height: 32px; color: var(--copper); }
.logo__word { font: 500 21px/1 var(--f-d); letter-spacing: -.01em; display: flex; flex-direction: column; gap: 3px; }
.logo__word small { font: 600 10px/1 var(--f-t); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 26px; border-radius: 12px; font: 600 15px/1 var(--f-t); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); transition: background-color .2s, color .2s;
}
.btn--solid { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn--solid:hover { background: #87401f; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--hdr { min-height: 44px; padding: 0 18px; background: var(--ink); color: #fff; font-size: 14px; }
.btn--hdr svg { width: 18px; height: 18px; }

.kicker { font: 600 11.5px/1.4 var(--f-t); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { font: 500 11px/1 var(--f-t); letter-spacing: .04em; text-transform: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.h2 { font: 400 clamp(32px, 4.4vw, 58px)/1.05 var(--f-d); letter-spacing: -.02em; max-width: 18ch; margin-top: 16px; text-wrap: balance; }
.h2 em, .hero__h1 em { font-style: italic; font-weight: 300; color: var(--copper); }
.lede { margin-top: 20px; max-width: 60ch; color: var(--ink-2); }
.fine { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.sec { padding: var(--sec) 0; }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: calc(-1 * var(--hdr-h));
  height: 100svh; min-height: 560px; max-height: 1200px; overflow: hidden;
  color: var(--ink); cursor: pointer; touch-action: pan-y;
}
.hero__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #070b1a 0%, #141a33 42%, #3a2c3c 58%, #17161c 64%, #0f1013 100%);
  transition: filter 1.4s var(--ease);
}
.hero[data-step="2"] .hero__sky { filter: brightness(.86) saturate(1.15) hue-rotate(-8deg); }
.hero[data-step="3"] .hero__sky { filter: brightness(.95) saturate(1.05); }
.hero__poster, .hero__poster img, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; }
.hero__gl { opacity: 0; transition: opacity .9s ease; }
.hero.is-gl .hero__gl { opacity: 1; }
/* Night scrim under the transparent header: keeps the light logo and nav legible over a lamp or window. */
.hero::before {
  content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: calc(var(--hdr-h) + 90px); pointer-events: none;
  background: linear-gradient(rgb(6 8 16 / .62), rgb(6 8 16 / .3) 55%, rgb(6 8 16 / 0));
}
/* Over the dark hero the header reads light; it returns to ink once it turns to glass. */
.hdr:not(.is-glass) { --ink: #f4efe9; --ink-2: #d2c7bb; color: var(--ink); }
.hdr:not(.is-glass) .logo__mark { color: #eba467; }
.hdr:not(.is-glass) .btn--hdr { background: rgb(28 21 16 / .62); border-color: rgb(255 240 222 / .42); color: #f4efe9; }
.hdr:not(.is-glass) .btn--hdr:hover { background: #f4efe9; color: #1b2420; }

/* Glass, layered: tint on the padding box, a 1px gradient rim on the border box (light top-left,
   faint bottom-right), an inner top highlight, a two-step shadow (contact + ambient), grain to kill
   banding, and a specular sheen that follows a fine pointer (--mx/--my from ui.js). */
.u-glass {
  --tint: rgb(248 249 246 / .82);
  --copper: #8a3a17; /* small copper text on light glass must clear 4.5:1 over the darkest frame */
  --rim-a: rgb(255 255 255 / .95); --rim-b: rgb(255 255 255 / .18);
  --sheen: rgb(255 255 255 / .38);
  position: relative; isolation: isolate;
  border: 1px solid transparent; border-radius: 22px;
  background:
    linear-gradient(var(--tint), var(--tint)) padding-box,
    linear-gradient(135deg, var(--rim-a), var(--rim-b) 55%, rgb(255 255 255 / .05)) border-box;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -1px 0 rgb(255 255 255 / .12),
    0 1px 2px rgb(var(--ink-rgb) / .08), 0 8px 20px -8px rgb(var(--ink-rgb) / .18), 0 40px 70px -34px rgb(var(--ink-rgb) / .42);
}
.u-glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, 18%) var(--my, -30%), var(--sheen), transparent 60%),
    var(--grain);
  background-size: auto, 160px 160px;
  opacity: .9; transition: opacity .3s;
}
.u-glass--dark {
  --tint: rgb(14 20 17 / .68); --copper: #9f4b26;
  --rim-a: rgb(255 255 255 / .34); --rim-b: rgb(255 255 255 / .06);
  --sheen: rgb(255 255 255 / .1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .12),
    0 1px 2px rgb(0 0 0 / .3), 0 10px 24px -10px rgb(0 0 0 / .5), 0 40px 70px -30px rgb(0 0 0 / .65);
}
:root {
  /* 2% grain, generated once as an SVG turbulence tile. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .u-glass { --tint: rgb(248 249 246 / .96); }
  .u-glass--dark { --tint: rgb(14 20 17 / .95); }
}
@media (prefers-reduced-transparency: reduce) {
  .u-glass, .g-tile { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .u-glass { --tint: rgb(248 249 246); }
  .u-glass--dark { --tint: rgb(17 24 20); }
  .u-glass::before { background: none; }
}

/* ---------- Data tiles and charts (market band; the desk reuses the chart marks) ---------- */
.d-tile {
  position: relative; border-radius: 20px; padding: 20px 22px 18px;
  background: var(--paper); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / .05), 0 18px 40px -28px rgb(var(--ink-rgb) / .35);
  display: flex; flex-direction: column; min-width: 0;
}
.d-tile__l { font: 600 11px/1.3 var(--f-t); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.d-tile__v { font: 500 clamp(30px, 3vw, 40px)/1.05 var(--f-t); letter-spacing: -.025em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.d-tile__v small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.d-tile__d { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.d-tile__d b { color: #2f6b47; font-weight: 600; }
.d-tile__chart { margin-top: auto; padding-top: 16px; }
.d-tile__chart svg { width: 100%; height: auto; overflow: visible; }
.d-tile__foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Chart marks (built by charts.js). Undrawn states apply only under html.anim and only while the
   .rv container lacks .is-in, so with no JS or reduced motion every chart renders finished. */
.c-host { position: relative; }
/* The line "draws" by a left-to-right clip wipe, not a dash: a dash on a stretched
   (preserveAspectRatio=none) non-scaling stroke breaks into gaps in Chromium. */
.c-host svg { display: block; width: 100%; height: var(--ch, 90px); overflow: visible;
  clip-path: inset(-8px -8px -8px 0); transition: clip-path 1.6s var(--ease) var(--d, 0s); }
.c-grid { stroke: rgb(var(--ink-rgb) / .09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-line { fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.c-area { transition: opacity 1s ease calc(var(--d, 0s) + .4s); }
.c-enddot, .c-pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; }
.c-enddot { background: var(--paper); box-shadow: 0 0 0 2px var(--copper); transition: opacity .4s ease calc(var(--d, 0s) + 1.3s), transform .5s var(--ease) calc(var(--d, 0s) + 1.3s); }
.c-pin { background: var(--copper); box-shadow: 0 0 0 2px var(--paper); opacity: 0; transition: opacity .2s; }
.c-x { stroke: rgb(var(--ink-rgb) / .4); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; opacity: 0; transition: opacity .2s; }
.is-reading .c-x, .is-reading .c-pin { opacity: 1; }
.is-reading .c-enddot { opacity: 0; }
.c-bars { display: flex; align-items: flex-end; gap: 5px; height: var(--ch, 72px); }
.c-bars i { flex: 1; height: var(--v); min-width: 0; border-radius: 5px 5px 2px 2px; background: rgb(var(--ink-rgb) / .17);
  transition: height .9s var(--ease) calc(var(--d, 0s) + var(--i, 0) * 45ms), background-color .4s; }
.c-bars i.is-hi { background: var(--copper); }
.c-ring-bg { fill: none; stroke: rgb(var(--ink-rgb) / .1); }
.c-ring { fill: none; stroke: var(--copper); stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.4s var(--ease) var(--d, 0s); }
html.anim .rv:not(.is-in) .c-host svg { clip-path: inset(-8px 100% -8px 0); }
html.anim .rv:not(.is-in) .c-area, html.anim .rv:not(.is-in) .c-enddot { opacity: 0; }
html.anim .rv:not(.is-in) .c-enddot { transform: scale(.4); }
html.anim .rv:not(.is-in) .c-bars i { height: 3px; }
html.anim .rv:not(.is-in) .c-ring { stroke-dasharray: 0 100; }

/* Market band: four rounded tiles, a full rectangle at every width; a carousel on phones. */
.market { padding-top: 0; }
.market__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.market__wide .c-host { touch-action: pan-y; cursor: crosshair; --ch: clamp(120px, 12vw, 170px); }
.ring-wrap { display: grid; place-items: center; position: relative; }
.ring-wrap svg { width: min(170px, 100%); }
.ring-wrap b { position: absolute; font: 500 28px/1 var(--f-t); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring-wrap b small { font-size: 14px; color: var(--ink-2); }
.market__note { margin-top: 14px; }

.hero__card {
  position: absolute; z-index: 2; left: max(var(--gut), calc((100vw - var(--max)) / 2));
  bottom: clamp(28px, 6vh, 72px); width: min(500px, calc(100% - 2 * var(--gut)));
  padding: clamp(22px, 2.4vw, 32px); cursor: default;
}
/* Round 5: the card is see-through umber glass, the same build as the data tiles beside it.
   The glass recipe itself (tint, rim, sheen, shadow, fallbacks) lives in tiles.css "Hero glass";
   this block only sets the light ink scope and the copper buttons. */
.hero__card.a-glass { position: absolute; } /* atlas.css loads later and sets .a-glass relative */
.hero__card {
  --acc: #eba467; --acc-rgb: 235 164 103;
  --ink: #f4efe9; --ink-2: #e2d8cc; --ink-rgb: 244 239 233; --copper: var(--acc);
  color: var(--ink);
}
.hero__card .btn--solid { background: #9f4b26; border-color: #c8743f; color: #fff; }
.hero__card .btn--solid:hover { background: #b3582e; }
.hero__card .btn--line { color: var(--ink); border-color: rgb(255 240 222 / .45); }
.hero__card .btn--line:hover { background: var(--ink); color: #1b2420; }
.hero__card .ctrl__b { border-color: rgb(255 240 222 / .26); }
.hero__card .ctrl__b:hover { background: rgb(255 240 222 / .08); }
.hero__h1 { font: 400 clamp(34px, 4.2vw, 60px)/1.02 var(--f-d); letter-spacing: -.025em; margin-top: 12px; text-wrap: balance; }
.steps { display: grid; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgb(var(--ink-rgb) / .16); }
.steps li { grid-area: 1 / 1; display: flex; gap: 14px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .7s var(--ease); visibility: hidden; }
.steps li.is-on { opacity: 1; transform: none; visibility: visible; }
.steps__n { font: 600 12px/1.9 var(--f-t); letter-spacing: .08em; color: var(--copper); font-variant-numeric: tabular-nums; }
.steps__t { font-size: 16px; line-height: 1.5; }

.ctrl { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.ctrl__b {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid rgb(var(--ink-rgb) / .22); border-radius: 12px; padding: 0;
}
.ctrl__b svg { width: 18px; height: 18px; }
.ctrl__b:hover { background: rgb(var(--ink-rgb) / .06); }
.ctrl .i-play { display: none; }
.ctrl.is-paused .i-play { display: block; }
.ctrl.is-paused .i-pause { display: none; }
.ctrl__bar { flex: 1; display: flex; gap: 4px; padding: 0 6px; }
.ctrl__bar i { flex: 1; height: 3px; border-radius: 2px; background: rgb(var(--ink-rgb) / .16); position: relative; overflow: hidden; }
.ctrl__bar i::after { content: ""; position: absolute; inset: 0; background: var(--copper); transform-origin: 0 50%; transform: scaleX(0); }
.ctrl__bar i.is-done::after { transform: scaleX(1); }
.ctrl__bar i.is-on::after { animation: fill var(--hold, 5.6s) linear forwards; }
.ctrl.is-paused .ctrl__bar i.is-on::after { animation-play-state: paused; }
.ctrl.is-static .ctrl__bar i.is-on::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__hud {
  position: absolute; z-index: 2; right: max(var(--gut), calc((100vw - var(--max)) / 2)); bottom: clamp(28px, 6vh, 72px);
  display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 600 13px/1 var(--f-t); font-variant-numeric: tabular-nums;
  color: #f4efe9; /* glass from tiles.css "Hero glass" */
}
.hud__lbl { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: #e2d8cc; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper-hi); }

/* ---------- Homes ---------- */
.homes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home { border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / .05), 0 18px 40px -28px rgb(var(--ink-rgb) / .35); }
.home__art { aspect-ratio: 32 / 22; display: grid; place-items: center; padding: 18px; color: var(--ink); border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #f3ebe0 0%, var(--paper) 70%); }
.home__art svg { width: 100%; height: 100%; }
.home__body { padding: 20px 22px 24px; }
.home__st { font: 600 11px/1 var(--f-t); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.home__h { font: 400 24px/1.15 var(--f-d); letter-spacing: -.01em; margin-top: 10px; }
.home__m { display: flex; gap: 0; margin-top: 12px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.home__m span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--line); margin: 0 10px; vertical-align: -1px; }
.homes__foot { margin-top: 28px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lnk svg { width: 16px; height: 16px; }

/* ---------- Tools ---------- */
.tools__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.tool { padding: 28px 28px 8px 0; }
.tool + .tool { padding-left: 28px; border-left: 1px solid var(--line); }
.tool__n { font: 600 12px/1 var(--f-t); color: var(--copper); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.tool h3 { font: 400 26px/1.1 var(--f-d); letter-spacing: -.01em; margin-top: 18px; }
.tool p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* ---------- Reviews carousel ---------- */
.words { padding-bottom: calc(var(--sec) - 20px); border-top: 1px solid var(--line-2); }
.car__nav { display: flex; gap: 8px; }
.ctrl__b--line { border-color: var(--line); }
.car { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.car::-webkit-scrollbar { display: none; }
.car.is-drag { cursor: grabbing; scroll-snap-type: none; }
.car__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 16px;
  padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2)) 20px; width: max-content;
}
.quote {
  scroll-snap-align: start; scroll-margin-left: max(var(--gut), calc((100vw - var(--max)) / 2));
  border: 1px solid var(--line-2); border-radius: 22px; background: var(--paper); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 280px;
  user-select: none; -webkit-user-select: none;
}
.quote p { font: 400 21px/1.42 var(--f-d); letter-spacing: -.005em; }
.quote footer { font: 600 11px/1.4 var(--f-t); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); display: flex; flex-direction: column; gap: 4px; }
.quote footer span { color: var(--ink-2); letter-spacing: .04em; text-transform: none; font-size: 14px; font-weight: 500; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line-2); }
.contact__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact__acts { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 380px; }
.contact__acts .fine { margin-top: 6px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: 48px 0 32px; }
.foot__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.foot__name { font: 400 24px/1.2 var(--f-d); margin-bottom: 8px; }
.foot__credits b { color: var(--ink); font-weight: 600; }
.foot__ulric { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.foot__ulric a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--ink-2); text-underline-offset: 4px; }

/* ---------- Breakpoints (mobile last-in-file overrides; base above is shared) ---------- */
@media (max-width: 1080px) {
  .homes__grid { grid-template-columns: repeat(2, 1fr); }
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
  .tool:nth-child(3) { padding-left: 0; border-left: 0; }
  .tool:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .market__grid { grid-template-columns: 1fr 1fr; }
  .market__wide { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .btn--hdr { margin-left: auto; }
  .contact__in, .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 60px; }
  body { font-size: 16.5px; }
  .logo { --logo-dy: 22px; --logo-s: .3; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__word { font-size: 18px; }
  .hero { min-height: 520px; }
  .hero__card { left: var(--gut); right: var(--gut); width: auto; bottom: 14px; padding: 18px 18px 16px; }
  .hero__h1 { font-size: clamp(28px, 8.4vw, 34px); margin-top: 8px; }
  .kicker { font-size: 11px; }
  .steps { margin-top: 12px; padding-top: 12px; }
  .steps__t { font-size: 15px; }
  .ctrl { margin-top: 10px; }
  .cta { margin-top: 12px; flex-wrap: nowrap; }
  .cta .btn { flex: 1; padding: 0 12px; font-size: 14px; min-height: 46px; }
  .hero__hud { top: calc(var(--hdr-h) + 34px); bottom: auto; right: var(--gut); padding: 7px 10px; font-size: 12px; }
  /* Homes become a one-row carousel with a peek */
  .homes__grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78vw, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 0; gap: 12px; padding: 0 var(--gut) 24px 0; margin: 0 calc(-1 * var(--gut)) -20px 0; }
  .homes__grid::-webkit-scrollbar { display: none; }
  .home { scroll-snap-align: start; }
  /* Market tiles: one swipeable row with a peek; the shadow needs room, so the track pads vertically. */
  .market__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 4px var(--gut) 24px 0; margin: 0 calc(-1 * var(--gut)) -20px 0; }
  .market__grid::-webkit-scrollbar { display: none; }
  .market__grid > * { scroll-snap-align: start; }
  .market__wide { grid-column: auto; }
  .d-tile { padding: 18px 18px 16px; }

  .tools__grid { grid-template-columns: 1fr; }
  .tool, .tool + .tool { padding: 24px 0 4px; border-left: 0; margin-top: 0; }
  .tool + .tool { border-top: 1px solid var(--line); }
  .sec__head--row { align-items: flex-start; flex-direction: column; }
  .car__nav { display: none; }
  .quote { min-height: 300px; padding: 22px; }
  .quote p { font-size: 19px; }
}
/* Tablets: the 500px hero card leaves no room beside it at the bottom, so the clock and the
   model note move to the top right (as the clock does on phones) and never sit on its buttons. */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero__hud { top: calc(var(--hdr-h) + 34px); bottom: auto; }
}
@media (max-height: 720px) and (max-width: 640px) {
  .hero__h1 { font-size: 27px; }
  .hero__card { padding: 14px 16px 14px; }
  .steps { margin-top: 10px; padding-top: 10px; }
  .steps__t { font-size: 14.5px; line-height: 1.42; }
  .cta { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .logo { transform: none; }
}
