/* Sturdy & Sons HVAC (concept), v4 system (Bella, 2026-11-05).
   Layout and feel after the Commander's reference (calm, premium, cream sections between deep bands, photo cards,
   numbered process, split maintenance plan, evening CTA band). Brand stays Sturdy's own: graphite night + one copper
   accent (refrigerant line set), the S&S mark, Public Sans body, JetBrains Mono numbers. Display headlines: Newsreader
   (serif, self-hosted, opsz 60 instance), allowed by Solomon 2026-11-05 for the reference's feel.
   Shape rule: buttons are full pill, cards and media 4px (sheet metal), icon badges and step numbers are circles.
   Contrast (computed 2026-11-05): ink #1A1F24 on paper #E9E5DC 13.2:1; muted #4D555C on paper 6.0:1;
   copper-deep #9A4419 on paper 5.2:1 (small labels, links); night #0E1216 on copper (button label) 6.95:1;
   ink-light #ECE9E3 on night 15.5:1; muted-light #A7B1B9 on night 8.6:1; copper on night 6.95:1.
   Motion: transform/opacity only. Reduced motion or the static tier: everything is shown at rest, no parallax. */

/* ---------- fonts (SIL OFL 1.1, latin) ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-display.woff2) format('woff2'); }
@font-face { font-family: 'Anybody'; font-style: normal; font-weight: 600 800; font-stretch: 50% 150%; font-display: swap; src: url(fonts/anybody-VuJxdNvK.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/public-sans-ijwRs572.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-tDbY2o-f.woff2) format('woff2'); }
@font-face { font-family: 'Nothing You Could Do'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/nothing-you-could-do-latin.woff2) format('woff2'); }
/* metric-matched fallback so the serif swap doesn't jump the hero */
@font-face { font-family: 'Newsreader Fallback'; src: local('Georgia'); size-adjust: 96%; ascent-override: 92%; descent-override: 26%; }

:root {
  --night: #0e1216; --night-2: #161c22; --night-3: #1f272f;
  --paper: #e9e5dc; --paper-2: #f3f0ea; --paper-3: #dfdace;
  --ink-d: #1a1f24; --mut-d: #4d555c;
  --ink-l: #ece9e3; --mut-l: #a7b1b9;
  --copper: #e9824a; --copper-deep: #9a4419; --copper-soft: rgba(233, 130, 74, .14);
  --r: 4px;
  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --hand: 'Nothing You Could Do', 'Segoe Print', cursive;
  --logo: 'Anybody', 'Arial Narrow', sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --wrap: min(1240px, 100% - 2 * var(--gut));
  --head-h: 76px; --bar-h: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* z scale: 10 media, 20 copy, 50 header, 54 chat button, 55 bar, 56 chat panel, 60 ribbon, 70 menu, 90 grain */
}
@media (max-width: 759px) { :root { --head-h: 64px; --bar-h: 64px; } }

/* local colour scopes: every component reads --fg / --mut / --ln / --surf */
.paper { --fg: var(--ink-d); --mut: var(--mut-d); --ln: rgba(26, 31, 36, .14); --ln-2: rgba(26, 31, 36, .28); --surf: var(--paper-2); --link: var(--copper-deep); background-color: var(--paper); color: var(--fg); }
.night, body { --fg: var(--ink-l); --mut: var(--mut-l); --ln: rgba(236, 233, 227, .14); --ln-2: rgba(236, 233, 227, .28); --surf: var(--night-2); --link: var(--copper); }
.night { background-color: var(--night); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); scroll-padding-bottom: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink-d); font: 400 1.0625rem/1.6 var(--body); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol.steps, ol.tl { list-style: none; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
h1 .ln, h2 .ln { display: block; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--copper-deep); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--copper); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.fine { font-size: .875rem; color: var(--mut); }
.lede { max-width: 54ch; color: var(--mut); font-size: 1.125rem; }
.night .lede, .on-photo .lede { color: var(--fg); }
.eyebrow { font: 500 .75rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--link); margin-bottom: 18px; }
.hand { font-family: var(--hand); font-size: 1.35rem; line-height: 1.25; color: var(--copper); transform: rotate(-4deg); }
.vnote { font: 500 .75rem/1.75 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-l); }
.vnote::after { content: ''; display: block; width: 18px; height: 1.5px; margin-top: 10px; background: var(--copper); }
.proof-tag { font: 500 .8125rem/1 var(--mono); color: var(--link); }

/* ---------- grain (fixed, never on scrolling layers) ---------- */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn-primary { background: var(--copper); color: var(--night); box-shadow: 0 6px 18px -8px rgba(154, 68, 25, .55); }
.btn-primary:hover { background: #f08f58; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(154, 68, 25, .7); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-line { border-color: var(--ln-2); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.call-small { display: inline-flex; align-items: center; min-height: 44px; color: var(--mut); font-size: .9375rem; text-decoration: none; }
.call-small span { color: var(--fg); border-bottom: 1.5px solid var(--copper); padding-bottom: 1px; transition: border-color .2s; }
.call-small:hover span { border-color: var(--fg); }
.text-link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; color: var(--fg); font-weight: 600; text-decoration: none; }
.text-link span { border-bottom: 1.5px solid var(--link); padding-bottom: 1px; }
.text-link svg { width: 16px; height: 16px; color: var(--link); transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- concept ribbon + header ---------- */
.ribbon { position: relative; z-index: 60; background: var(--night); color: var(--ink-l); border-bottom: 1px solid rgba(236, 233, 227, .1); font-size: .8125rem; }
.ribbon .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.ribbon a { color: var(--ink-l); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--copper); }
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); margin-bottom: calc(-1 * var(--head-h)); color: var(--ink-l);
  transition: background-color .4s, border-color .4s, box-shadow .4s; border-bottom: 1px solid transparent; }
.site-head.solid { background: rgba(14, 18, 22, .9); border-color: rgba(236, 233, 227, .1); box-shadow: 0 10px 30px -20px rgba(4, 6, 8, .8); }
@supports (backdrop-filter: blur(1px)) { .site-head.solid { background: rgba(14, 18, 22, .74); backdrop-filter: blur(14px) saturate(1.2); } }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; min-height: 44px; color: var(--ink-l); }
.brand svg { width: 40px; height: 40px; }
.brand b { display: block; font: 800 1.25rem/1 var(--logo); font-stretch: 85%; letter-spacing: -.01em; }
.brand small { display: block; font: 600 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut-l); margin-top: 4px; }
/* 2026-11-05 (Tess/axe): the solid sticky header is 74% night over the light paper sections, so the tagline there
   sits on about #4a4c4d. --mut-l gave 3.96:1; this lighter grey gives about 5.6:1. The footer (solid night) keeps --mut-l at 8.6:1. */
.site-head .brand small { color: #c9d0d6; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: .9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.head-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.head-call svg { width: 17px; height: 17px; color: var(--copper); }
.head-book { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.menu-btn { display: none; }
@media (max-width: 1079px) { .nav { display: none; } }
@media (max-width: 759px) {
  .head-call, .head-book { display: none; }
  .brand svg { width: 34px; height: 34px; }
  .brand b { font-size: 1.125rem; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; color: var(--ink-l); cursor: pointer; border-radius: 999px; }
  .menu-btn svg { width: 26px; height: 26px; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--night); color: var(--ink-l); padding: calc(var(--head-h) + 24px) var(--gut) 32px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font: 400 2.1rem/1.15 var(--serif); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(236, 233, 227, .12); }
.mobile-menu .btn { margin-top: 22px; }
.mobile-menu .close { position: absolute; top: 8px; right: calc(var(--gut) - 8px); width: 48px; height: 48px; border: 0; background: none; color: var(--ink-l); cursor: pointer; }
.mobile-menu .close svg { width: 26px; height: 26px; margin: auto; }

/* ---------- phone sticky bar + chat ---------- */
.cta-bar { display: none; }
@media (max-width: 759px) {
  .cta-bar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 48px 1fr 1.35fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(14, 18, 22, .95); border-top: 1px solid rgba(236, 233, 227, .12); transition: transform .3s var(--ease); --fg: var(--ink-l); --ln-2: rgba(236, 233, 227, .28); }
  .cta-bar.away { transform: translateY(110%); }
  .cta-bar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}
.chat-btn { position: fixed; z-index: 54; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(236, 233, 227, .22); background: rgba(22, 28, 34, .94); color: var(--ink-l); font: 600 .9375rem/1 var(--body); cursor: pointer;
  box-shadow: 0 12px 30px -14px rgba(4, 6, 8, .8); transition: border-color .2s, transform .3s var(--ease); }
.chat-btn:hover { border-color: var(--copper); transform: translateY(-2px); }
.chat-btn svg { width: 18px; height: 18px; color: var(--copper); }
.chat-btn.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.bar-chat { display: none; }
@media (max-width: 759px) {
  .chat-btn:not(.bar-chat) { display: none; }
  .bar-chat { display: inline-flex; position: static; justify-content: center; min-height: 48px; padding: 0; box-shadow: none; }
}
.chat-panel { position: fixed; z-index: 56; right: 20px; bottom: 80px; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 140px)); display: flex; flex-direction: column;
  background: var(--night-2); color: var(--ink-l); border: 1px solid rgba(236, 233, 227, .2); border-radius: var(--r); box-shadow: 0 24px 60px rgba(4, 6, 8, .6); }
.chat-panel[hidden] { display: none; }
@media (max-width: 759px) { .chat-panel { right: 12px; bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); } }
.chat-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid rgba(236, 233, 227, .12); }
.chat-panel header b { font: 400 1.3rem/1 var(--serif); }
.chat-panel header button { width: 44px; height: 44px; border: 0; background: none; color: var(--ink-l); cursor: pointer; }
.chat-panel header svg { width: 22px; height: 22px; margin: auto; }
.chat-log { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-log p { padding: 10px 12px; border-radius: var(--r); background: var(--night-3); max-width: 92%; font-size: .9375rem; }
.chat-log p.me { align-self: flex-end; background: var(--copper-soft); border: 1px solid rgba(233, 130, 74, .4); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(236, 233, 227, .26); background: none; color: var(--ink-l); font: 600 .875rem/1 var(--body); cursor: pointer; }
.chat-chips button:hover { border-color: var(--copper); }
.chat-note { padding: 10px 16px 14px; border-top: 1px solid rgba(236, 233, 227, .12); font-size: .8125rem; color: var(--mut-l); }

/* ---------- reveals ---------- */
.js[data-tier="full"] [data-reveal], .js[data-tier="lite"] [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
[data-reveal].in { opacity: 1 !important; transform: none !important; }
/* a mask wipe for photos */
.js[data-tier="full"] [data-wipe] { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-io); transition-delay: calc(var(--i, 0) * 110ms); }
[data-wipe].in { clip-path: inset(0 0 0 0) !important; }

/* parallax layers: JS sets --py (px) only while on screen */
[data-tier="full"] [data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- HERO (home) ---------- */
.hero { position: relative; min-height: min(100dvh, 900px); display: grid; align-items: center; overflow: clip; background: var(--night); color: var(--ink-l); --fg: var(--ink-l); --mut: var(--mut-l); --ln-2: rgba(236, 233, 227, .3); }
.hero-media, .page-hero .ph-media, .band-media { position: absolute; inset: 0; overflow: hidden; }
.pl { position: absolute; inset: -9% 0; }
.pl img, .pl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 62% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14, 18, 22, .94) 0%, rgba(14, 18, 22, .82) 30%, rgba(14, 18, 22, .35) 58%, rgba(14, 18, 22, .08) 100%),
              linear-gradient(0deg, rgba(14, 18, 22, .7) 0%, rgba(14, 18, 22, 0) 30%); }
.hero-copy { position: relative; z-index: 2; padding: calc(var(--head-h) + 48px) 0 88px; }
.hero h1 { max-width: 11ch; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1.02; }
.hero .sub { margin-top: 24px; max-width: 40ch; font-size: 1.1875rem; color: rgba(236, 233, 227, .88); }
.hero .row { margin-top: 34px; }
.hero-note { position: absolute; z-index: 2; right: max(var(--gut), calc((100vw - 1240px) / 2)); bottom: 15%; text-align: left; text-shadow: 0 1px 14px rgba(14,18,22,.9); }
.hero-note::after { content: ''; display: block; width: 26px; height: 1.5px; background: var(--copper); margin-top: 8px; }
@media (max-width: 899px) {
  .hero { min-height: 92dvh; align-items: end; }
  .hero-media img { object-position: 70% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(14, 18, 22, .96) 0%, rgba(14, 18, 22, .82) 40%, rgba(14, 18, 22, .25) 75%, rgba(14, 18, 22, .35) 100%); }
  .hero-copy { padding: 140px 0 44px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .hero .sub { font-size: 1.0625rem; }
  .hero-note { top: calc(var(--head-h) + 28px); bottom: auto; right: var(--gut); font-size: 1.15rem; }
}
/* choreographed entrance (CSS only; runs once). Lines rise out of their own mask. */
.hero h1 .ln { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js:not([data-tier="static"]) .hero-media img { animation: heroIn 2.4s var(--ease) both; }
  .js:not([data-tier="static"]) .hero h1 .ln > span { animation: lineUp 1.15s var(--ease) both; animation-delay: calc(.25s + var(--l, 0) * .14s); }
  .js:not([data-tier="static"]) .hero .sub, .js:not([data-tier="static"]) .hero .row { animation: fadeUp 1s var(--ease) both; }
  .js:not([data-tier="static"]) .hero .sub { animation-delay: .65s; }
  .js:not([data-tier="static"]) .hero .row { animation-delay: .8s; }
  .js:not([data-tier="static"]) .hero-note { animation: noteIn 1.2s var(--ease) 1.2s both; }
  .js:not([data-tier="static"]) .site-head { animation: fadeDown .9s var(--ease) .1s both; }
}
@keyframes heroIn { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes noteIn { from { opacity: 0; transform: translateY(10px) rotate(-8deg); } to { opacity: 1; transform: rotate(-4deg); } }

/* ---------- section rhythm + backgrounds ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.sec.tight { padding-block: clamp(56px, 7vw, 96px); }
/* cream: paper with faint sheet-metal louvers that drift on scroll (a condenser grille, very quiet) */
.paper.sec::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(26, 31, 36, .028) 0 1px, transparent 1px 9px),
              radial-gradient(70% 60% at 85% 0%, rgba(233, 130, 74, .08), transparent 70%); }
.paper.sec > * { position: relative; }
/* deep bands: graphite with a low copper glow and a grille texture */
.night.band { position: relative; overflow: clip; }
.night.band::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 0% 100%, rgba(233, 130, 74, .12), transparent 60%),
              radial-gradient(50% 70% at 100% 0%, rgba(120, 150, 170, .08), transparent 65%),
              repeating-linear-gradient(90deg, rgba(236, 233, 227, .025) 0 1px, transparent 1px 7px); }
.night.band > * { position: relative; }

/* section header: headline left, aligned intro right (the reference's pattern; the right column carries the link) */
.sec-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .side { display: grid; gap: 10px; justify-items: start; color: var(--mut); padding-bottom: 6px; }
@media (max-width: 859px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards > li { display: flex; }
.cards > li > .card { flex: 1; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper-2); text-decoration: none; color: var(--ink-d);
  box-shadow: 0 1px 0 rgba(26, 31, 36, .06), 0 18px 40px -30px rgba(26, 31, 36, .45); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: 0 1px 0 rgba(26, 31, 36, .06), 0 34px 60px -34px rgba(26, 31, 36, .6); }
.card-media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--night-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 18, 22, .28), transparent 45%); }
.badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--paper-2); color: var(--copper-deep);
  box-shadow: 0 0 0 6px var(--paper-2), inset 0 0 0 1px rgba(154, 68, 25, .25); }
.badge svg { width: 26px; height: 26px; }
.card .badge { position: absolute; left: 22px; top: calc(100% * 0 + 0px); transform: translateY(-50%); z-index: 2; transition: transform .5s var(--ease); background: var(--paper); }
.card:hover .badge { transform: translateY(-50%) rotate(-8deg) scale(1.06); }
.card-body { position: relative; flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 14px; padding: 46px 22px 22px; }
.card-body h3 { grid-column: 1 / -1; font-size: 1.6rem; }
.card-body p { color: var(--mut-d); font-size: .9688rem; line-height: 1.5; }
.circle-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(26, 31, 36, .3); color: var(--ink-d); transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease); }
.circle-arrow svg { width: 18px; height: 18px; }
.card:hover .circle-arrow { background: var(--copper); border-color: var(--copper); color: var(--night); transform: translateX(3px); }
.card-wrap { position: relative; }
.card-wrap .badge-slot { position: relative; }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { display: grid; grid-template-columns: 116px 1fr; }
  .card-media { aspect-ratio: auto; height: 100%; min-height: 132px; border-radius: var(--r) 0 0 var(--r); }
  .card .badge { left: 116px; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; box-shadow: 0 0 0 4px var(--paper); }
  .card:hover .badge { transform: translate(-50%, -50%) rotate(-8deg); }
  .card .badge svg { width: 21px; height: 21px; }
  .card-body { padding: 18px 16px 16px 36px; }
  .card-body h3 { font-size: 1.35rem; }
}

/* ---------- promises band (dark): headline left, 3 promises split by drawn rules ---------- */
.promises { display: grid; grid-template-columns: 1fr 1.9fr; gap: 40px 64px; align-items: center; }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 8px 26px; }
.promise + .promise::before { content: ''; position: absolute; left: 0; top: 6%; bottom: 6%; width: 1px; background: rgba(236, 233, 227, .2); transform-origin: top; transition: transform 1.2s var(--ease-io); transition-delay: calc(var(--i, 0) * 160ms + .2s); }
.js[data-tier="full"] .promise-row:not(.in) .promise + .promise::before, .js[data-tier="lite"] .promise-row:not(.in) .promise + .promise::before { transform: scaleY(0); }
.promise .badge { background: var(--night-3); color: var(--copper); box-shadow: inset 0 0 0 1px rgba(233, 130, 74, .35); margin-bottom: 6px; }
.promise b { font: 400 1.4rem/1.15 var(--serif); }
.promise p { color: var(--mut-l); font-size: .9375rem; max-width: 28ch; }
@media (max-width: 959px) { .promises { grid-template-columns: 1fr; } }
@media (max-width: 679px) {
  .promise-row { grid-template-columns: 1fr; gap: 0; }
  .promise { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 18px; padding: 22px 0; }
  .promise .badge { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .promise + .promise::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .js[data-tier="full"] .promise-row:not(.in) .promise + .promise::before { transform: scaleX(0); }
}

/* ---------- process: numbered circles joined by a line that draws itself ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; counter-reset: s; margin: 0; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; align-items: start; }
.step .num { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper-3); color: var(--ink-d); font: 400 1.6rem/1 var(--serif); box-shadow: 0 0 0 8px var(--paper); transition: background-color .6s, color .6s, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 260ms + .3s); }
.step b { display: block; font: 400 1.35rem/1.2 var(--serif); padding-top: 6px; }
.step p { color: var(--mut-d); font-size: .9688rem; max-width: 30ch; }
/* connector: from this number toward the next */
.step:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: 92px; right: -20px; height: 1.5px; background: linear-gradient(90deg, var(--copper-deep), rgba(154, 68, 25, .35));
  transform-origin: left; transition: transform 1s var(--ease-io); transition-delay: calc(var(--i, 0) * 260ms + .45s); z-index: 0; }
.step:not(:last-child) { padding-right: 0; }
.step:not(:last-child) .txt { padding-right: 8px; background: var(--paper); position: relative; z-index: 1; }
.js[data-tier="full"] .steps:not(.in) .step::after, .js[data-tier="lite"] .steps:not(.in) .step::after { transform: scaleX(0); }
.js[data-tier="full"] .steps:not(.in) .num, .js[data-tier="lite"] .steps:not(.in) .num { transform: scale(.6); }
.steps.in .num { background: var(--copper); color: var(--night); }
/* the line sits behind the text: draw it under the step title row only */
.step .txt { align-self: center; }
@media (min-width: 900px) {
  .steps.across .step { grid-template-columns: 1fr; }
  .steps.across .step .num { grid-row: auto; margin-bottom: 18px; }
  .steps.across .step:not(:last-child)::after { left: 76px; right: -24px; }
  .steps.across .step .txt { background: none; }
}
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step:not(:last-child)::after { top: 72px; bottom: -34px; left: 31px; right: auto; width: 1.5px; height: auto; transform-origin: top;
    background: linear-gradient(180deg, var(--copper-deep), rgba(154, 68, 25, .35)); }
  .js[data-tier="full"] .steps:not(.in) .step::after, .js[data-tier="lite"] .steps:not(.in) .step::after { transform: scaleY(0); }
  .step .txt { background: none !important; }
}

/* ---------- Comfort Club split ---------- */
.club { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 640px; background: var(--paper-2); }
.club-media { position: relative; overflow: hidden; background: var(--night); }
.club-media img { object-position: 40% 50%; }
.club-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 18, 22, .65), rgba(14, 18, 22, 0) 45%); }
.club-media .vnote { position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); bottom: clamp(28px, 6vw, 72px); }
.club-body { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 104px) clamp(24px, 6vw, 96px); display: grid; align-content: center; justify-items: start; gap: 0; }
.club-body h2 { max-width: 17ch; }
.nw { white-space: nowrap; }
.club-body > p:not(.eyebrow) { margin-top: 20px; max-width: 46ch; color: var(--mut-d); }
.club-body .btn { margin-top: 30px; }
.checks { display: grid; gap: 12px; margin-top: 30px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; border: 1.5px solid rgba(154, 68, 25, .45); color: var(--copper-deep); }
.club-body .fine { margin-top: 14px; }
.club-body .text-link { margin-top: 4px; }
/* Sturdy's own drawing: the condenser fan seen from above, very faint, the blades turning slowly */
.fan-draw { position: absolute; right: -90px; bottom: -70px; width: 380px; height: 380px; color: var(--ink-d); opacity: .07; pointer-events: none; }
.fan-draw .blades { transform-origin: 50% 50%; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) { [data-tier="full"] .fan-draw .blades { animation: spin 18s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) {
  .club { grid-template-columns: 1fr; min-height: 0; }
  .club-media { aspect-ratio: 4 / 3; }
  .fan-draw { width: 260px; height: 260px; right: -80px; bottom: -60px; }
}

/* ---------- final CTA band over the evening house ---------- */
.cta-band { position: relative; min-height: 620px; display: grid; align-items: center; overflow: clip; background: var(--night); color: var(--ink-l); --fg: var(--ink-l); --mut: var(--mut-l); --link: var(--copper); --ln-2: rgba(236, 233, 227, .3); }
.cta-band .band-media img { object-position: 60% 55%; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 18, 22, .95) 0%, rgba(14, 18, 22, .8) 38%, rgba(14, 18, 22, .2) 75%, rgba(14, 18, 22, .35) 100%); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(80px, 10vw, 128px) 0; }
.cta-band h2 { max-width: 14ch; }
.cta-band .lede { margin-top: 20px; }
.cta-band .row { margin-top: 30px; }
.after-hours { margin-top: 26px; max-width: 46ch; font-size: .9375rem; color: var(--mut-l); }
.after-hours small { display: block; margin-top: 4px; font: 500 .75rem/1.4 var(--mono); color: var(--copper); }
.band-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(236, 233, 227, .16); font-size: .9375rem; color: var(--mut-l); max-width: 640px; }
.band-meta b { display: block; font: 500 .75rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-l); margin-bottom: 6px; }
.band-meta p { max-width: 30ch; }
@media (max-width: 859px) {
  .cta-band { min-height: 0; }
  .cta-band::before { background: linear-gradient(0deg, rgba(14, 18, 22, .96) 0%, rgba(14, 18, 22, .86) 55%, rgba(14, 18, 22, .45) 100%); }
  .cta-band .wrap { grid-template-columns: 1fr; padding: 220px 0 64px; }
  .cta-band .vnote { position: absolute; top: 40px; right: 0; }
}

/* ---------- Isaah's panel ---------- */
.isaah { padding: clamp(56px, 7vw, 96px) 0; }
.isaah-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: end; padding: clamp(26px, 4vw, 48px); border-radius: var(--r); background: var(--paper-2); border: 1px solid rgba(26, 31, 36, .12); }
.isaah-label { display: flex; align-items: center; gap: 10px; font: 500 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 16px; }
.isaah-label i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-d); color: var(--paper); font: 600 .75rem/1 var(--body); font-style: normal; letter-spacing: 0; }
.isaah-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.isaah-card [data-concept-price] { display: grid; gap: 10px; margin-top: 16px; color: var(--mut-d); max-width: 60ch; }
.isaah-cta { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 859px) { .isaah-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--ink-l); padding: 72px 0 calc(32px + var(--bar-h)); --fg: var(--ink-l); --mut: var(--mut-l); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(236, 233, 227, .12); }
.foot .brand-line { margin-top: 16px; max-width: 34ch; color: var(--mut-l); font-size: .9375rem; }
.foot h2 { font: 500 .75rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mut-l); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 0; font-size: .9375rem; }
.foot ul a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot ul a:hover { color: var(--copper); }
.foot-hand { align-self: center; justify-self: end; font-size: 1.6rem; }
.foot-base { display: grid; gap: 14px; padding-top: 26px; font-size: .8125rem; color: var(--mut-l); }
.foot-base a { color: var(--ink-l); }
.credits summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-l); }
.credits ul { margin-top: 8px; display: grid; gap: 6px; font-size: .8125rem; max-width: 90ch; }
@media (max-width: 959px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-hand { justify-self: start; } }
@media (max-width: 559px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; min-height: min(78dvh, 720px); display: grid; align-items: end; overflow: clip; background: var(--night); color: var(--ink-l); --fg: var(--ink-l); --mut: var(--mut-l); --link: var(--copper); --ln-2: rgba(236, 233, 227, .3); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 18, 22, .94) 0%, rgba(14, 18, 22, .76) 40%, rgba(14, 18, 22, .2) 80%), linear-gradient(0deg, rgba(14, 18, 22, .7), transparent 40%); }
.page-hero .wrap { position: relative; z-index: 2; padding: calc(var(--head-h) + 72px) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.page-hero .lede { margin-top: 22px; color: rgba(236, 233, 227, .88); }
.page-hero .row { margin-top: 30px; }
.page-hero .hand { position: absolute; z-index: 2; right: max(var(--gut), calc((100vw - 1240px) / 2)); bottom: clamp(60px, 9vw, 120px); }
.ph-media img, .ph-media video { object-position: var(--pos, 60% 50%); }
.ph-media .pl img + video { z-index: 1; }
.ph-media video { opacity: 0; transition: opacity 1.2s; }
.ph-media video.on { opacity: 1; }
@media (max-width: 859px) {
  .page-hero { min-height: 0; }
  .page-hero::before { background: linear-gradient(0deg, rgba(14, 18, 22, .96) 0%, rgba(14, 18, 22, .8) 55%, rgba(14, 18, 22, .35) 100%); }
  .page-hero .wrap { padding-top: calc(var(--head-h) + 160px); }
  .page-hero .hand { top: calc(var(--head-h) + 34px); bottom: auto; right: var(--gut); font-size: 1.15rem; }
}
.js:not([data-tier="static"]) .page-hero h1 .ln { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.page-hero h1 .ln > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js:not([data-tier="static"]) .page-hero .ph-media img { animation: heroIn 2.2s var(--ease) both; }
  .js:not([data-tier="static"]) .page-hero h1 .ln > span { animation: lineUp 1.1s var(--ease) both; animation-delay: calc(.2s + var(--l, 0) * .14s); }
  .js:not([data-tier="static"]) .page-hero .eyebrow, .js:not([data-tier="static"]) .page-hero .lede, .js:not([data-tier="static"]) .page-hero .row, .js:not([data-tier="static"]) .page-hero .jump { animation: fadeUp 1s var(--ease) both; animation-delay: .55s; }
  .js:not([data-tier="static"]) .page-hero .eyebrow { animation-delay: .1s; }
  .js:not([data-tier="static"]) .page-hero .hand { animation: noteIn 1.2s var(--ease) 1s both; }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(236, 233, 227, .26); text-decoration: none; font-size: .9375rem; font-weight: 500;
  background: rgba(14, 18, 22, .35); transition: border-color .25s, background-color .25s, transform .35s var(--ease); }
.jump a:hover { border-color: var(--copper); background: rgba(233, 130, 74, .14); transform: translateY(-2px); }
.page-hero .fine { margin-top: 16px; }

/* ---------- services page ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--ln); scroll-margin-top: calc(var(--head-h) + 8px); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc.flip .svc-media { order: 2; }
.svc-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r); background: var(--night-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.price { font: 500 .875rem/1.3 var(--mono); color: var(--link); letter-spacing: .04em; margin-bottom: 14px; }
.svc h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.svc .body { margin-top: 18px; color: var(--mut); max-width: 52ch; }
.svc .note { margin-top: 12px; font-size: .9375rem; color: var(--mut); max-width: 52ch; }
.check-first { margin-top: 28px; padding: 22px 24px; border-radius: var(--r); background: var(--night); color: var(--ink-l); display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: end; }
.check-first h3 { grid-column: 1 / -1; font: 500 .75rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.check-first ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; counter-reset: c; font-size: .9375rem; }
.check-first li { counter-increment: c; display: flex; gap: 10px; }
.check-first li::before { content: counter(c); font: 500 .75rem/1.6 var(--mono); color: var(--copper); }
@media (max-width: 859px) {
  .svc { grid-template-columns: 1fr; }
  .svc.flip .svc-media { order: 0; }
  .check-first { grid-template-columns: 1fr; }
  .check-first ol { grid-template-columns: 1fr; }
  .check-first .btn { justify-self: start; }
}
.svc-band { padding: clamp(72px, 9vw, 120px) 0; }
.svc-band .svc { border-top: 0; padding: 0; }
.svc-band .svc .body, .svc-band .svc .note { color: var(--mut-l); }
.svc-band .check-first { background: var(--night-2); border: 1px solid rgba(236, 233, 227, .12); }
.night .step .num { background: var(--night-3); color: var(--ink-l); box-shadow: 0 0 0 8px var(--night); }
.night .step p { color: var(--mut-l); }

/* ---------- comfort club page ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; counter-reset: k; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ln); font-size: 1.0625rem; }
.checklist svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--paper-3); color: var(--copper-deep); }
@media (max-width: 699px) { .checklist { grid-template-columns: 1fr; } }
.math-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px 72px; align-items: start; }
.math-wrap > * { min-width: 0; }
@media (max-width: 899px) { .math-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 499px) { .table-scroll table.math { min-width: 0; font-size: .875rem; } .table-scroll table.math th, .table-scroll table.math td { padding-left: 12px; padding-right: 12px; } }
.table-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid rgba(236, 233, 227, .14); background: var(--night-2); }
table.math { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .9688rem; }
.math th, .math td { padding: 16px 20px; text-align: left; }
.math thead th { font: 500 .75rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mut-l); border-bottom: 1px solid rgba(236, 233, 227, .14); }
.math td + td, .math th + th { text-align: right; font-family: var(--mono); font-weight: 500; }
.math tbody tr + tr td { border-top: 1px solid rgba(236, 233, 227, .07); }
.math tfoot td { border-top: 1px solid rgba(236, 233, 227, .24); font-weight: 600; font-size: 1.0625rem; }
.math tfoot td:last-child { color: var(--copper); }
.faq { display: grid; gap: 0; margin-top: 36px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--ln); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 400 1.35rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ln-2);
  background: linear-gradient(var(--fg), var(--fg)) center / 12px 1.5px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 1.5px 12px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--mut); }

/* ---------- about page ---------- */
.tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0 0; }
.tl li { position: relative; padding-top: 34px; }
.tl li::before { content: ''; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 6px var(--paper); z-index: 1; }
.tl li::after { content: ''; position: absolute; left: 0; right: -32px; top: 14px; height: 1.5px; background: rgba(154, 68, 25, .4); transform-origin: left; transition: transform 1.3s var(--ease-io); transition-delay: calc(var(--i, 0) * 200ms + .2s); }
.tl li:last-child::after { right: 0; }
.js[data-tier="full"] .tl:not(.in) li::after { transform: scaleX(0); }
.tl b { display: block; font: 400 1.6rem/1.1 var(--serif); margin-bottom: 8px; }
.tl p { color: var(--mut-d); max-width: 32ch; }
@media (max-width: 759px) {
  .tl { grid-template-columns: 1fr; gap: 28px; }
  .tl li { padding: 0 0 0 36px; }
  .tl li::before { top: 8px; }
  .tl li::after { left: 7px; right: auto; top: 22px; bottom: -36px; width: 1.5px; height: auto; transform-origin: top; }
  .tl li:last-child::after { display: none; }
  .js[data-tier="full"] .tl:not(.in) li::after { transform: scaleY(0); }
}
.statement { max-width: 22ch; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.statement-body { margin-top: 26px; max-width: 58ch; color: var(--mut-l); font-size: 1.125rem; }
.hold { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.hold > div { display: grid; gap: 8px; padding: 26px 22px; border-radius: var(--r); background: var(--paper-2); align-content: start; transition: transform .5s var(--ease); }
.hold > div:hover { transform: translateY(-6px); }
.hold .badge { width: 50px; height: 50px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(154, 68, 25, .25); background: var(--paper); }
.hold b { font: 400 1.3rem/1.2 var(--serif); }
.hold span { color: var(--mut-d); font-size: .9375rem; }
@media (max-width: 959px) { .hold { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .hold { grid-template-columns: 1fr; } }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.slot { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 18px 22px; border: 1.5px dashed rgba(26, 31, 36, .3); border-radius: var(--r); color: var(--mut-d); }
.slot svg { width: 24px; height: 24px; color: var(--copper-deep); flex: none; }
@media (max-width: 699px) { .slots { grid-template-columns: 1fr; } }

/* ---------- forms (book page, club join, booking panel) ---------- */
.form { display: grid; gap: 28px; }
.form[hidden] { display: none; } /* after a valid submit only the success note shows (display:grid was overriding hidden) */
.form fieldset, .bk-pane { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .lab, .bk-pane legend { display: block; font-weight: 600; margin-bottom: 12px; padding: 0; }
.bk-pane legend { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ln-2); background: transparent; font-size: .9375rem; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { border-color: var(--copper); background: var(--copper-soft); box-shadow: inset 0 0 0 1px var(--copper); }
.paper .chip input:checked + span { border-color: var(--copper-deep); box-shadow: inset 0 0 0 1px var(--copper-deep); }
.chip input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
.chips.mono span { font-family: var(--mono); font-weight: 500; font-size: .875rem; }
.js[data-tier="full"] .stagger:not(.in) .chip { opacity: 0; transform: translateY(8px); }
.stagger .chip { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 559px) { .two { grid-template-columns: 1fr; } }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--ln-2); background: var(--surf); color: var(--fg); font: 400 1rem/1.4 var(--body); transition: border-color .2s; }
.paper .field input { background: #fbfaf7; }
.field input:hover { border-color: var(--fg); }
.err { display: block; min-height: 1.4em; margin-top: 6px; font-size: .875rem; line-height: 1.4; color: #b23c16; }
/* reserve 2 lines for field errors on narrow phones: the phone message wraps at 320, and a line appearing or clearing must never move the button (Tess FAIL 2026-11-05) */
@media (max-width: 420px) { .field .err { min-height: 2.8em; } }
.night .err, .bk .err { color: #ffb38a; }
[aria-invalid="true"] { border-color: #b23c16 !important; }
.bk [aria-invalid="true"] { border-color: #ffb38a !important; }
fieldset.bad .chip span { border-color: #b23c16; }
.bk .bad .chip span { border-color: #ffb38a; }
.form-error { display: none; padding: 12px 16px; border-radius: var(--r); background: rgba(178, 60, 22, .08); border: 1px solid #b23c16; }
.form-error.on { display: block; }
.form .note, .bk .fine { font-size: .875rem; color: var(--mut); margin-top: 10px; }
.success { display: none; padding: 28px; border-radius: var(--r); border: 1px solid var(--copper-deep); background: var(--copper-soft); }
.success.on { display: block; }
.success h2, .success h3 { font-size: 2rem; margin-bottom: 10px; }
.picked { font-size: .9375rem; color: var(--link); margin: -4px 0 12px; }
.gas { margin-top: 14px; font-size: .875rem; color: var(--mut); }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--r); background: var(--paper-2); box-shadow: 0 30px 60px -44px rgba(26, 31, 36, .5); }
.book-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 899px) { .book-grid { grid-template-columns: 1fr; } }
.side { display: grid; gap: 20px; }
.side-card { padding: 28px; border-radius: var(--r); background: var(--paper-2); }
.side-card h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 2.2vw, 1.75rem); }
.side-card.night { background: var(--night); }
.side-card ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--mut); }
.side-card p { color: var(--mut); }
.side-card .btn { margin-top: 18px; }

/* ---------- booking panel (native dialog) ---------- */
.bk { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--night); color: var(--ink-l); overflow: hidden;
  --fg: var(--ink-l); --mut: var(--mut-l); --ln-2: rgba(236, 233, 227, .3); --surf: var(--night); --link: var(--copper); }
.bk[open] { display: grid; align-items: center; justify-items: start; padding: var(--gut) max(var(--gut), calc((100vw - 1240px) / 2)); }
.bk::backdrop { background: rgba(8, 10, 12, .7); }
.bk-bg { position: absolute; inset: 0; z-index: 0; }
.bk-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.bk-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 18, 22, .92) 0%, rgba(14, 18, 22, .62) 50%, rgba(14, 18, 22, .4) 100%); }
.bk-card { position: relative; z-index: 1; width: min(600px, 100%); max-height: calc(100dvh - 2 * var(--gut)); overflow: auto; padding: 32px 32px 28px; border-radius: var(--r);
  background: rgba(22, 28, 34, .92); border: 1px solid rgba(236, 233, 227, .16); box-shadow: 0 30px 80px rgba(4, 6, 8, .6); }
@media (prefers-reduced-motion: no-preference) { .bk[open] .bk-card { animation: fadeUp .6s var(--ease) both; } }
.bk-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 26px; }
.bk-step { font: 500 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.bk h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.bk-line { margin-top: 8px; color: var(--mut-l); }
.bk-close { min-height: 44px; padding: 0 18px; }
.bk-nav { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.bk-wins { margin-top: 12px; }
.bk-done h3 { font-size: 2.2rem; margin-bottom: 12px; }
.bk-done p { color: var(--mut-l); margin-bottom: 20px; }
.bk-open body { overflow: hidden; }
@media (max-width: 559px) { .bk[open] { padding: 12px; } .bk-card { padding: 24px 20px; max-height: calc(100dvh - 24px); } }

/* ---------- static tier / reduced motion: everything at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media (max-width: 759px) { .cta-band .vnote { display: none; } }

/* ===== v4b: the thermostat dial in the call band (Blake must-fix, 2026-11-05) =====
   The warm house (84) sits under the cool one (72). The dial sets --cool (0 at 84, 1 at 72) on the section;
   only the cool layer's opacity changes, so it is one composited cross-fade. */
.cta-band.has-dial { --cool: 0; }
.has-dial .cool-layer { position: absolute; inset: 0; opacity: var(--cool); }
[data-tier="lite"] .has-dial .cool-layer { transition: opacity .45s ease; }
/* v4d: the dial lives in the copy column, straight after the h2. Wide screens put it in a second column. */
.has-dial .wrap { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  /* fixed band height, so the one-line collapse at 72 re-centres the copy instead of moving the page below */
  .cta-band.has-dial { min-height: 880px; }
  .has-dial .wrap > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr repeat(6, auto) 1fr; column-gap: clamp(32px, 6vw, 96px); }
  .has-dial .wrap > div::before, .has-dial .wrap > div::after { content: ''; grid-column: 1; }
  .has-dial .wrap > div > * { grid-column: 1; }
  .has-dial .wrap > div > .dial-card { grid-column: 2; grid-row: 1 / -1; align-self: center; }
  /* only the line on screen keeps its height: two lines at 84, one at 72 */
  @supports (height: 1lh) {
    .has-dial .swap { height: 2lh; transition: height .5s var(--ease); }
    .has-dial.cooled .swap { height: 1lh; }
  }
}
.has-dial h2 { max-width: 16ch; }
.has-dial .swap { display: grid; }
.has-dial .swap > span { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.has-dial .swap .b { opacity: 0; transform: translateY(.18em); color: var(--copper); }
.has-dial.cooled .swap .a { opacity: 0; transform: translateY(-.18em); }
.has-dial.cooled .swap .b { opacity: 1; transform: none; }
.dial-card { display: grid; justify-items: center; gap: 14px; width: 320px; padding: 22px 22px 24px; border-radius: var(--r);
  background: rgba(14, 18, 22, .58); border: 1px solid rgba(236, 233, 227, .14); }
@supports (backdrop-filter: blur(1px)) { .dial-card { background: rgba(14, 18, 22, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.dial-label { justify-self: start; font: 500 .75rem/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mut-l); }
.dial { position: relative; width: 248px; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; }
.dial:active { cursor: grabbing; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .face { fill: #12171c; stroke: rgba(236, 233, 227, .1); }
.dial .tick { stroke: rgba(236, 233, 227, .38); stroke-width: 1.2; }
.dial .tick.major { stroke: var(--ink-l); stroke-width: 1.6; }
.dial .track { fill: none; stroke: rgba(236, 233, 227, .16); stroke-width: 6; stroke-linecap: round; }
.dial .fill { fill: none; stroke: var(--copper); stroke-width: 6; stroke-linecap: round; }
.dial .knob { fill: var(--ink-l); }
.dial .knob-ring { fill: none; stroke: var(--copper); stroke-width: 2; opacity: 0; transition: opacity .25s; }
.dial:focus-visible { outline: none; }
.dial:focus-visible .knob-ring { opacity: 1; }
.dial:focus-visible .face { stroke: var(--copper); stroke-width: 2; }
.dial .read { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 37%; pointer-events: none; }
.dial .read b { font: 500 3.6rem/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink-l); }
.dial .read sup { font: 500 1.1rem/1 var(--mono); color: var(--copper); margin: .35em 0 0 2px; }
.dial-hint { font-size: .875rem; color: var(--mut-l); text-align: center; }
.dial-auto { min-height: 44px; }
.has-dial.cooled .dial-auto { border-color: var(--copper); }
@media (max-width: 899px) {
  .has-dial .wrap { padding-top: 200px; }
  .has-dial .band-media img { object-position: 62% 50%; }
  /* the house sits behind the h2 and the dial (not just the top strip), so the cool-down shows while you turn it.
     Sized to the dial, not the full 1,350px band: a full-band cover zooms a 16:9 photo to a dark 16% slice. */
  .has-dial .band-media { bottom: auto; height: 880px; }
  .cta-band.has-dial::before { background: linear-gradient(180deg, rgba(14, 18, 22, .2) 0, rgba(14, 18, 22, .42) 200px, rgba(14, 18, 22, .2) 400px, rgba(14, 18, 22, .26) 700px, #0e1216 880px); }
  .dial-card { width: min(100%, 300px); margin: 26px auto 6px; padding: 18px; }
  @supports (backdrop-filter: blur(1px)) { .dial-card { background: rgba(14, 18, 22, .3); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); } }
  .dial { width: 220px; }
  .dial .read b { font-size: 3.1rem; }
}

/* Isaah panel v2 (2026-11-05): secondary link and concept note */
.isaah-more{display:inline-flex;align-items:center;min-height:44px;font-weight:600;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1px}
.isaah-more:hover{text-decoration-thickness:2px}
.isaah-note{font-size:.875rem}

/* ---------- HERO 3D (2026-11-06): live isometric cross-section, Sill & Rafter technique ----------
   The stage is a fixed 1600:1481 box on every screen size, so the poster still, the canvas and the hotspot
   percentages always line up (no layout shift, the poster can stand in for the 3D anywhere). */
.hero3d { align-items: stretch; }
.hero3d::before { display: none; }
.h3-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(48% 60% at 70% 52%, rgba(64, 108, 150, .22) 0%, rgba(64, 108, 150, 0) 70%),
    radial-gradient(60% 70% at 12% 100%, rgba(233, 130, 74, .10) 0%, rgba(233, 130, 74, 0) 70%),
    linear-gradient(180deg, #0e1216 0%, #111820 55%, #0e1216 100%); }
/* an isometric drafting grid that fades out toward the edges (the house is drawn on it) */
.h3-bg::before { content: ''; position: absolute; inset: -20%;
  background:
    repeating-linear-gradient(30deg, rgba(236, 233, 227, .045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(150deg, rgba(236, 233, 227, .045) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(55% 55% at 68% 52%, #000 0%, transparent 80%); mask-image: radial-gradient(55% 55% at 68% 52%, #000 0%, transparent 80%); }
.h3-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.h3-bg .g1 { width: 38vw; height: 38vw; right: 8%; top: 12%; background: rgba(61, 141, 255, .16); }
.h3-bg .g2 { width: 28vw; height: 28vw; right: 28%; bottom: -6%; background: rgba(233, 130, 74, .12); }
@media (prefers-reduced-motion: no-preference) {
  .js[data-tier="full"] .h3-bg .g1 { animation: h3drift 16s var(--ease-io) infinite alternate; }
  .js[data-tier="full"] .h3-bg .g2 { animation: h3drift 19s var(--ease-io) -6s infinite alternate-reverse; }
}
@keyframes h3drift { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.08); } }

.h3-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: calc(var(--head-h) + 12px) 0 84px; min-height: inherit; } /* the bottom pad keeps the chips clear of the fixed chat button */
.hero3d .hero-copy { padding: 0; z-index: 3; }
.hero3d h1 { font-size: clamp(3rem, 5.6vw, 5rem); }
.hero3d h1 .ln > span { white-space: nowrap; } /* each line of the headline stays on one line */
.h3-side { position: relative; min-width: 0; }

.h3-stage { position: relative; aspect-ratio: 1600 / 1481; max-height: min(calc(900px - var(--head-h) - 140px), calc(100dvh - var(--head-h) - 200px)); max-width: 100%; margin-inline: auto; touch-action: pan-y; }
.h3-stage > picture, .h3-stage > picture img, .h3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.h3-stage > picture img { object-fit: contain; }
.h3-stage canvas { opacity: 0; transition: opacity .8s var(--ease); }
.h3-stage.live canvas { opacity: 1; }
.h3-stage.live > picture { opacity: 0; transition: opacity .8s var(--ease) .1s; }
.h3-stage.hot canvas { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .js:not([data-tier="static"]) .h3-poster { animation: h3in 1.6s var(--ease) .15s both; }
}
@keyframes h3in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* hotspots: a copper ring with a slow pulse, a 44px tap area */
.h3-marks { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease) .2s; }
.h3-stage.ready .h3-marks { opacity: 1; } /* no rings on an empty box: they wait for the poster or the live scene */
.h3-mark { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.h3-mark span { position: absolute; inset: 13px; border-radius: 50%; background: rgba(14, 18, 22, .72); box-shadow: inset 0 0 0 2px var(--copper), 0 0 0 4px rgba(233, 130, 74, .16); transition: transform .3s var(--ease), background-color .3s; }
.h3-mark span::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--copper); }
.h3-mark.on span { transform: scale(1.25); background: var(--copper); }
.h3-mark.on span::after { background: var(--night); }
@media (prefers-reduced-motion: no-preference) {
  .js:not([data-tier="static"]) .h3-mark span::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(233, 130, 74, .5); animation: h3ping 2.6s var(--ease) infinite; animation-delay: calc(var(--i, 0) * .5s); }
}
@keyframes h3ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }

/* the micro-label */
.h3-tip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 10px 14px 11px; min-width: 150px; max-width: 280px; border-radius: var(--r);
  background: rgba(16, 21, 26, .86); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(236, 233, 227, .14), inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 40px rgba(5, 8, 10, .5);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); opacity: 0; transition: opacity .25s var(--ease); }
.h3-tip.on { opacity: 1; }
/* pinned label: a short copper leader from the card to its ring */
.h3-lead { position: absolute; left: 0; top: 0; z-index: 3; width: var(--len, 0px); height: 2px; margin-top: -1px; border-radius: 1px; pointer-events: none; opacity: 0;
  background: var(--copper); transform-origin: 0 50%;
  transform: translate(var(--lx, 0px), var(--ly, 0px)) rotate(var(--la, 0deg)); transition: opacity .2s var(--ease); }
.h3-lead.on { opacity: 1; }
.h3-tip.pin { pointer-events: auto; }
.h3-go { display: none; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 0; color: var(--copper); font: 600 .8125rem/1.3 var(--body); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.h3-go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; transition: transform .2s var(--ease); }
.h3-go:hover svg { transform: translateX(3px); }
.h3-go:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.h3-tip.pin .h3-go { display: inline-flex; }
.h3-note { display: block; margin-top: 6px; color: var(--mut-l); font: 500 .75rem/1.4 var(--mono); }
.h3-tip::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--copper); }
.h3-tip .k { display: block; font: 500 .75rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut-l); }
.h3-tip b { display: block; margin-top: 3px; font: 400 1.25rem/1.15 var(--serif); color: var(--ink-l); }
@media (prefers-reduced-transparency: reduce) { .h3-tip { background: #161c22; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* the same parts as a list: keyboard and screen-reader path, and a legend for everyone */
.h3-side .h3-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.h3-item { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(236, 233, 227, .06); box-shadow: inset 0 0 0 1px rgba(236, 233, 227, .16); color: var(--ink-l); font: 500 .78125rem/1.2 var(--body); white-space: nowrap; transition: background-color .25s, box-shadow .25s, transform .2s var(--ease); }
.h3-item .k { color: var(--mut-l); font-weight: 400; }
.h3-item:hover, .h3-item.on { background: rgba(233, 130, 74, .14); box-shadow: inset 0 0 0 1px var(--copper); }
.h3-item:active { transform: scale(.98); }
.h3-item:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* laptops and up: two-line chips, part name on top, so every chip still ties back to the picture */
@media (min-width: 900px) {
  .h3-item { flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px 7px; border-radius: 14px; text-align: left; }
  .h3-item .k { font: 500 .75rem/1.25 var(--mono); letter-spacing: 0; }
}
/* wide screens: the house gets more of the row, about half the width like Sill & Rafter */
@media (min-width: 1440px) {
  .h3-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); padding-bottom: 44px; }
  .hero3d h1 { font-size: 4.5rem; } /* "no surprises." fits the text column, so the headline is exactly 2 lines */
  .h3-stage { max-height: min(calc(1040px - var(--head-h) - 120px), calc(100dvh - var(--head-h) - 140px)); }
}
/* very wide screens: let the house run past the text column toward the edge */
@media (min-width: 1600px) { .h3-side { margin-right: calc((1240px - 100vw) / 2 + 32px); } }
@media (max-width: 899px) {
  .hero3d { min-height: 0; }
  .h3-grid { grid-template-columns: 1fr; gap: 0; padding: calc(var(--head-h) + 4px) 0 28px; }
  .h3-side { order: -1; margin: 0 calc(-1 * var(--gut)); }
  .h3-stage { max-height: none; width: min(100%, 560px); margin: 0 auto; }
  .h3-side .h3-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px 48px 6px var(--gut); scroll-padding-inline: var(--gut); margin-top: 0; scroll-snap-type: x proximity; }
  .h3-list::-webkit-scrollbar { display: none; }
  .h3-side .h3-list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); } /* the row scrolls: fade its right edge */
  .h3-list li { flex: none; scroll-snap-align: start; }
  .hero3d .hero-copy { margin-top: 18px; }
  .hero3d h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .h3-tip { max-width: 200px; min-width: 130px; padding: 8px 12px 9px; }
  .h3-tip b { font-size: 1.0625rem; }
}

/* ---------- 2026-11-14 phone pass (Bella, from Tess's audit) ---------- */
/* Concept ribbon: one row, and the "Back to my work" link is a 44px tap target. */
.ribbon .wrap { flex-wrap: nowrap; align-items: center; }
.ribbon a { flex: none; display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; padding-inline: 4px; margin-right: -4px; } /* 44px to tap, no taller ribbon */
@media (max-width: 559px) { .ribbon { font-size: .75rem; line-height: 1.35; } .ribbon .wrap { padding: 6px 0; } }
/* Phones, portrait: the promise and the button come first, the house sits right under them (it still fills the
   rest of the first screen). The stage is capped so a tall phone doesn't push the pills off. */
@media (max-width: 899px) {
  .h3-grid { padding-top: calc(var(--head-h) + 10px); }
  .h3-side { order: 0; margin-top: 10px; }
  .hero3d .hero-copy { margin-top: 0; }
  .hero3d h1 { font-size: clamp(2.4rem, 10.4vw, 3.4rem); }
  .hero3d .sub { margin-top: 12px; }
  .hero3d .row { margin-top: 18px; gap: 4px 18px; }
  .h3-stage { width: min(100%, 560px, calc(52svh * 1600 / 1481)); }
}
/* Phones on their side: copy left, house right, both inside the first screen. */
@media (max-width: 1079px) and (max-height: 500px) and (orientation: landscape) {
  .hero3d { min-height: 0; }
  .h3-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; padding: calc(var(--head-h) + 4px) 0 16px; }
  .h3-side { order: 0; margin: 0; }
  .hero3d .hero-copy { margin-top: 0; padding-top: 14px; }
  .hero3d h1 { font-size: clamp(2rem, 4.6vw, 2.6rem); }
  .hero3d .sub { margin-top: 10px; font-size: 1rem; max-width: 34ch; }
  .hero3d .row { margin-top: 14px; }
  .hero3d .btn { min-height: 48px; }
  .h3-stage { width: min(100%, calc((100svh - var(--head-h) - 40px) * 1600 / 1481)); }
  .h3-side .h3-list { padding-right: 170px; } /* the last pill can scroll out from under the chat button */
}
