/* The Carpet Exchange (v3, 2026-11)
   Palette re-sampled from the v3 wordmark: ink navy #00152F, oxblood #7B0200 (X), on-dark coral #E25C4A.
   Type: Archivo expanded (display), Hanken Grotesk (text), Newsreader italic (accents). */

@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-var.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-italic-var.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/assets/fonts/hanken-grotesk-var.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --red: #7b0a06;
  --red-deep: #5a0603;
  --red-soft: #f3dcd6;
  --ink: #00152f;
  --ink-2: #0e2747;
  --muted: #3d4a5c;
  --sand: #efbc88;
  --sand-deep: #d99b64;
  --clay: #bd6c52;
  --cream: #f7f1e8;
  --paper: #fcf9f4;
  --wool: #ece2d3;
  --line: #ddcfbb;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mast-h: 76px;
  --dock-h: 0px;
  --night: #000d1e;
  --night-2: #061a33;
  --coral: #e25c4a;
  --display: "Archivo", "Hanken Grotesk", system-ui, sans-serif;
  --mk-accent: var(--coral);
  --mk-arrival-bg: var(--night);
  --mk-toggle-ink: var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--mast-h) + 16px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.68 var(--sans); font-feature-settings: "ss01"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; top: 0 !important; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
p { margin: 0 0 1.05em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 .5em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
p, li { text-wrap: pretty; }
em { font-style: italic; }
strong { font-weight: 650; }
::selection { background: var(--sand); color: var(--ink); }

:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .foot :focus-visible, .dock :focus-visible { outline-color: var(--sand); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 2px; }
.skip:focus { top: 1rem; color: #fff; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
main { display: block; outline: none; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.35rem; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font: 650 .98rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; border-radius: 2px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { color: var(--fg); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-deep); }
.btn--sand { --bg: var(--sand); --fg: var(--ink); }
.btn--sand:hover { --bg: #f5cb9f; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--line-light:hover { background: #fff; color: var(--ink); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.textlink { font-weight: 650; color: var(--red); text-decoration: none; border-bottom: 2px dashed currentColor; padding-bottom: 2px; }
.textlink:hover { border-bottom-style: solid; }

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 60; background: rgba(252, 249, 244, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.mast.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(9, 33, 60, .45); }
.mast__in { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; height: var(--mast-h); display: flex; align-items: center; gap: 1.5rem; }
.mast__logo { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0; text-decoration: none; }
.mast__place { font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.mast__logo img { width: clamp(176px, 17vw, 230px); height: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav__link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .85rem; font: 600 .95rem/1 var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; }
.nav__link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 6px; height: 0; border-bottom: 2px dashed var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"], .nav__btn[aria-expanded="true"] { color: var(--red); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mast__tools { display: flex; align-items: center; gap: .75rem; flex: none; }

/* Mega menu */
.nav__item--mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 4px solid var(--ink); box-shadow: 0 30px 50px -30px rgba(9, 33, 60, .35); opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.mega.is-open { opacity: 1; transform: none; }
.mega__in { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; padding: 2rem 0 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 2rem; }
.mega__stage { margin: 0 0 .8rem; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .7rem; }
.mega__stage::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.mega__col a { display: grid; grid-template-columns: 2.1rem 1fr; column-gap: .4rem; padding: .7rem .75rem .75rem .5rem; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; transition: background .2s, border-color .2s; }
.mega__col a:hover, .mega__col a:focus-visible, .mega__col a[aria-current="page"] { background: var(--wool); border-left-color: var(--red); }
.mega__n { grid-row: span 2; font: italic 500 1.25rem/1.2 var(--serif); color: var(--red); }
.mega__t { font-weight: 650; line-height: 1.3; }
.mega__b { font-size: .88rem; line-height: 1.45; color: var(--muted); margin-top: .2rem; }
.mega__feature { display: grid; align-content: start; gap: .5rem; color: var(--ink); text-decoration: none; background: var(--ink); color: #fff; padding: .8rem .8rem 1.1rem; }
.mega__feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.mega__ft { font: 500 1.35rem/1.15 var(--serif); margin-top: .3rem; }
.mega__fb { font-size: .88rem; line-height: 1.5; color: #d8dfe8; }
.mega__feature:hover { color: #fff; }
.mega__feature:hover .mega__ft { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; }

/* Language control (Google Translate, restyled) */
.lang { position: relative; display: inline-flex; align-items: center; }
.lang__icon, .lang__chev { position: absolute; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; pointer-events: none; }
.lang__icon { left: .65rem; }
.lang__chev { right: .5rem; width: 16px; stroke-width: 2; }
.lang__select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: .45rem 2rem .45rem 2.2rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .88rem/1 var(--sans); border-radius: 2px; cursor: pointer; max-width: 9.5rem; }
.lang__select:hover { border-color: var(--ink); }
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; visibility: hidden !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }
#google_translate_element { position: absolute; left: -9999px; }

/* Burger + drawer */
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; cursor: pointer; place-items: center; }
.burger__bars, .burger__bars::before, .burger__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--mast-h) 0 0 0; z-index: 55; background: var(--paper); overflow-y: auto; padding: 1rem var(--gut) calc(6rem + env(safe-area-inset-bottom)); }
.drawer[hidden] { display: none; }
.drawer__label { margin: 1.3rem 0 .4rem; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawer ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.drawer li a { display: flex; gap: .8rem; align-items: baseline; padding: .95rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.drawer li a span { font: italic 500 1rem/1 var(--serif); color: var(--red); min-width: 1.6rem; }
.drawer li a[aria-current="page"] { color: var(--red); }
.drawer .lang { margin-top: 1.6rem; width: 100%; }
.drawer .lang__select { max-width: none; width: 100%; }

/* ---------- Mobile dock ---------- */
.dock { display: none; }

/* ---------- Shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 26px; border-top: 2px dashed currentColor; }
.on-dark .eyebrow { color: var(--sand); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.seam { border: 0; border-top: 2px dashed var(--line); margin: 0; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.on-dark { background: var(--ink); color: #e9eef4; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: var(--sand); }
.sec-head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.sec-head .eyebrow { justify-content: center; }
.sec-head .eyebrow::after { content: ""; width: 26px; border-top: 2px dashed currentColor; }

/* Peeled corner, echoing the logo mark */
.peel { position: relative; }
.peel > picture, .peel > img { clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 70px, 100% 100%, 0 100%); }
.peel::after { content: ""; position: absolute; top: 0; right: 0; width: 70px; height: 70px; background: linear-gradient(225deg, transparent 50%, var(--sand) 50%); filter: drop-shadow(-3px 3px 4px rgba(9,33,60,.18)); pointer-events: none; }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 46%; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(132, 21, 21, .045) 7px 8px); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); margin-bottom: .35em; }
.hero h1 em { color: var(--red); font-weight: 400; }
.hero__slogan { font-family: var(--serif, Newsreader, Georgia, serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--ink); margin: -.1em 0 .6em; text-wrap: balance; }
.hero__slogan em { color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__stages { display: flex; gap: 0; margin: 2.2rem 0 0; padding: 0; list-style: none; border-top: 2px dashed var(--line); max-width: 30rem; }
.hero__stages li { flex: 1; padding-top: .8rem; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.hero__stages b { display: block; font: italic 500 1.15rem/1.2 var(--serif); color: var(--ink); }

/* Before / after swap slider */
.swap { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--wool); box-shadow: 0 40px 70px -45px rgba(9, 33, 60, .6); }
.swap__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.swap__frame picture, .swap__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swap__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.swap__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; border-left: 3px solid #fff; transform: translateX(-1.5px); pointer-events: none; }
.swap__knob { position: absolute; top: 50%; left: 0; width: 54px; height: 54px; transform: translate(-50%, -50%); background: var(--red); border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.swap__knob svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; }
.swap__tag { position: absolute; bottom: 14px; padding: .4rem .7rem; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: rgba(9, 33, 60, .82); color: #fff; pointer-events: none; }
.swap__tag--a { left: 14px; }
.swap__tag--b { right: 14px; background: rgba(132, 21, 21, .88); }
.swap__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.swap__range:focus-visible + .swap__line .swap__knob { outline: 3px dashed var(--sand); outline-offset: 4px; }
.swap__cap { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; font-size: .84rem; color: var(--muted); background: var(--paper); }
.swap__cap strong { color: var(--ink); }

/* ---------- Home: floor plan room picker ---------- */
.plan { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.plan__map { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, minmax(78px, 1fr)); gap: 6px; padding: 6px; background: var(--ink); aspect-ratio: 7 / 5; }
.plan__room { position: relative; border: 0; background: var(--paper); color: var(--ink); font: 600 .92rem/1.2 var(--sans); text-align: left; padding: .7rem .8rem; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; transition: background .2s, color .2s; overflow: hidden; }
.plan__room small { font: italic 400 .82rem/1.2 var(--serif); color: var(--muted); }
.plan__room::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--tone, var(--line)); }
.plan__room:hover { background: var(--wool); }
.plan__room[aria-pressed="true"] { background: var(--red); color: #fff; }
.plan__room[aria-pressed="true"] small { color: #f6d9cf; }
.r-living { grid-column: 1 / 4; grid-row: 1 / 3; }
.r-kitchen { grid-column: 4 / 6; grid-row: 1 / 2; }
.r-bath { grid-column: 6 / 7; grid-row: 1 / 3; }
.r-entry { grid-column: 4 / 6; grid-row: 2 / 3; }
.r-bed { grid-column: 1 / 3; grid-row: 3 / 5; }
.r-stairs { grid-column: 3 / 4; grid-row: 3 / 5; background-image: repeating-linear-gradient(180deg, transparent 0 14px, var(--line) 14px 16px); }
.r-stairs[aria-pressed="true"] { background-image: repeating-linear-gradient(180deg, transparent 0 14px, rgba(255,255,255,.25) 14px 16px); }
.r-base { grid-column: 4 / 6; grid-row: 3 / 5; }
.r-office { grid-column: 6 / 7; grid-row: 3 / 5; }
.plan__out { background: var(--paper); border-top: 5px solid var(--red); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.plan__out h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .3em; }
.plan__verdict { list-style: none; margin: 1rem 0 1.3rem; padding: 0; display: grid; gap: .55rem; }
.plan__verdict li { display: grid; grid-template-columns: 7.2rem 1fr; gap: .8rem; align-items: center; font-size: .95rem; }
.plan__verdict b { font-weight: 650; }
.meter { position: relative; height: 10px; background: var(--wool); }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: var(--ink); transition: width .45s var(--ease); }
.meter--top i { background: var(--red); }
.plan__note { font-size: .95rem; color: var(--muted); }
.plan__out .textlink { margin-top: auto; align-self: flex-start; }

/* ---------- Home: the sequence (index + sticky preview) ---------- */
.seq { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.seq__list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.seq__list li { border-bottom: 1px solid var(--line); }
.seq__list a { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1.35rem .3rem; color: var(--ink); text-decoration: none; transition: background .25s var(--ease), padding .25s var(--ease); }
.seq__n { font: italic 400 2.3rem/1 var(--serif); color: var(--red); }
.seq__t { font: 500 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--serif); display: block; }
.seq__b { display: block; margin-top: .35rem; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.seq__stage { font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .4rem .55rem; }
.seq__list a:hover, .seq__list a.is-active { background: var(--paper); padding-left: 1rem; }
.seq__list a.is-active .seq__stage { background: var(--ink); color: #fff; border-color: var(--ink); }
.seq__view { position: sticky; top: calc(var(--mast-h) + 24px); }
.seq__view figure { margin: 0; }
.seq__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wool); }
.seq__img picture { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.seq__img picture.is-on { opacity: 1; }
.seq__img img { width: 100%; height: 100%; object-fit: cover; }
.seq__view figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted); }

/* ---------- Home: quote ledger ---------- */
.ledger { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ledger__sheet { background: var(--paper); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; box-shadow: 0 30px 60px -40px rgba(0,0,0,.6); }
.ledger__sheet::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px) 0 0 / 12px 10px repeat-x; }
.ledger__sheet h3 { color: var(--ink); font-size: 1.35rem; border-bottom: 2px dashed var(--line); padding-bottom: .7rem; margin-bottom: .4rem; }
.ledger__rows { list-style: none; margin: 0; padding: 0; }
.ledger__rows li { display: flex; align-items: baseline; gap: .6rem; padding: .62rem 0; border-bottom: 1px dotted var(--line); font-size: .97rem; }
.ledger__rows li span:first-child { font-weight: 600; }
.ledger__rows li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.ledger__rows li span:last-child { order: 2; font: italic 400 .95rem/1.2 var(--serif); color: var(--muted); text-align: right; }
.ledger__foot { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-wrap__head { position: sticky; top: calc(var(--mast-h) + 24px); }
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem .2rem; cursor: pointer; font: 500 1.2rem/1.35 var(--serif); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { flex: none; position: relative; width: 22px; height: 22px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; border-top: 2px solid var(--red); transition: transform .25s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__item summary:hover { color: var(--red); }
.faq__a { padding: 0 .2rem 1.2rem; color: var(--muted); max-width: 44rem; }
.faq__a p:last-child { margin-bottom: 0; }
.faq-filter { margin: 1.4rem 0 0; }
.faq-filter label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .4rem; }
.faq-filter input { width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--line); background: var(--paper); font: inherit; border-radius: 2px; }
.faq-filter input:focus { border-color: var(--ink); }
.faq-filter__count { font-size: .85rem; color: var(--muted); margin-top: .4rem; min-height: 1.3em; }

/* ---------- Quote band ---------- */
.band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 33, 60, .95) 0%, rgba(9, 33, 60, .86) 46%, rgba(9, 33, 60, .25) 100%); }
.band__in { padding: clamp(4rem, 9vw, 7rem) 0; max-width: 36rem; }
.band h2 { color: #fff; }
.band p { color: #dfe6ee; }
.band .hero__actions { margin-top: 1.4rem; }

/* ---------- Guide page head ---------- */
.ghead { padding: clamp(1.6rem, 4vw, 3rem) 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.6rem; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.ghead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.ghead h1 { margin-bottom: .3em; }
.ghead__meta { list-style: none; margin: 0; padding: 1rem 0 0; display: grid; gap: .7rem; border-top: 2px dashed var(--line); font-size: .92rem; color: var(--muted); }
.ghead__meta b { display: block; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ghead__photo { margin: clamp(1.8rem, 4vw, 3rem) 0 0; }
.ghead__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.ghead__photo figcaption { font-size: .82rem; color: var(--muted); padding-top: .55rem; }

/* ---------- Guide body: rail + prose ---------- */
.gbody { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.rail { position: sticky; top: calc(var(--mast-h) + 24px); align-self: start; }
.rail p { font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 2px dashed var(--line); }
.rail li a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.rail li a:hover { color: var(--ink); }
.rail li a.is-active { color: var(--red); border-left-color: var(--red); font-weight: 650; }
.rail .btn { margin-top: 1.6rem; width: 100%; }
.prose { min-width: 0; }
.prose > * { max-width: 44rem; }
.prose > .wide { max-width: none; }
.prose > h2 { margin-top: 2.4em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose ul:not([class]) > li, .prose ol:not([class]) > li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.dropcap::first-letter { float: left; font: 500 4.1rem/.82 var(--serif); color: var(--red); margin: .35rem .6rem 0 0; }

/* Callouts: three distinct voices */
.note { margin: 2rem 0; padding: 1.3rem 1.4rem 1.2rem 1.4rem; background: var(--paper); border-left: 5px solid var(--red); }
.note__k { display: block; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note--ink { background: var(--ink); color: #e3e9f0; border-left-color: var(--sand); }
.note--ink .note__k { color: var(--sand); }
.note--ink strong { color: #fff; }
.note--stitch { background: transparent; border: 2px dashed var(--sand-deep); border-left-width: 2px; }
.note--stitch .note__k { color: var(--ink); }
.pull { margin: 2.4rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--ink); font: italic 400 clamp(1.35rem, 2.4vw, 1.75rem)/1.35 var(--serif); color: var(--ink); }

/* If / then matrix */
.ifthen { list-style: none; margin: 1.6rem 0 2rem; padding: 0; border-top: 2px solid var(--ink); }
.ifthen li { display: grid; grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.ifthen li::before { content: "→"; grid-column: 2; grid-row: 1; color: var(--red); font-size: 1.3rem; line-height: 1.3; text-align: center; }
.ifthen .if { grid-column: 1; grid-row: 1; font-weight: 600; }
.ifthen .then { grid-column: 3; grid-row: 1; color: var(--muted); }

/* Tables */
.tbl { margin: 1.8rem 0 2.2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 34rem; }
.tbl caption { text-align: left; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .8rem 0; caption-side: bottom; }
.tbl th, .tbl td { text-align: left; padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font: 700 .78rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--wool); }
.tbl tbody th { font-weight: 650; }
.tbl tbody tr:hover { background: var(--paper); }

/* Inline figure */
.fig { margin: 2.2rem 0; }
.fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fig figcaption { font-size: .84rem; color: var(--muted); padding-top: .5rem; }

/* ---------- Tools (shared) ---------- */
.tool { margin: 2.4rem 0; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--ink); }
.tool__head { padding: 1.3rem 1.4rem .4rem; }
.tool__head h2, .tool__head h3 { margin: 0 0 .3rem; }
.tool__head p { color: var(--muted); margin: 0; font-size: .95rem; }
.tool__body { padding: 1rem 1.4rem 1.4rem; }
.tool__out { padding: 1.2rem 1.4rem 1.4rem; background: var(--ink); color: #e6ecf2; }
.tool__out h3 { color: #fff; margin-bottom: .3rem; }
.tool__out p:last-child { margin-bottom: 0; }
.tool__out a { color: var(--sand); }

/* Replace-or-keep check */
.qs { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qs li { counter-increment: q; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.qs li::before { content: counter(q, decimal-leading-zero); font: italic 500 1rem/1 var(--serif); color: var(--red); }
.qs__q { font-weight: 550; line-height: 1.4; }
.yn { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }
.yn button { min-width: 3.4rem; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 650 .9rem/1 var(--sans); cursor: pointer; }
.yn button + button { border-left: 1px solid var(--ink); }
.yn button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.yn button[data-v="1"][aria-pressed="true"] { background: var(--red); }
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.score__dial { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sand) calc(var(--p, 0) * 1%), rgba(255,255,255,.12) 0); transition: background .4s; }
.score__dial span { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font: 500 1.5rem/1 var(--serif); color: #fff; }

/* Room comparison explorer */
.rooms-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.4rem 1rem; }
.rooms-tabs button { min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font: 600 .9rem/1 var(--sans); cursor: pointer; border-radius: 2px; }
.rooms-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rooms-panel { padding: 0 1.4rem 1.4rem; }
.rooms-panel[hidden] { display: none; }
.rooms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.rooms-grid > div { padding: 1rem; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr; gap: .45rem; }
.rooms-grid > div:last-child { border-right: 0; }
.rooms-grid h3 { margin: 0; font: 650 1rem/1.2 var(--sans); }
.fit { display: inline-block; justify-self: start; font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .38rem .5rem; border: 1px solid currentColor; }
.fit--good { color: #0f5a3a; background: #e3f1e9; }
.fit--ok { color: #6b4708; background: #fbefd9; }
.fit--poor { color: var(--red); background: var(--red-soft); }
.rooms-grid p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.rooms-sum { margin: 1rem 0 0; font-size: .96rem; }

/* Calculators */
.calc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; align-items: end; }
.fld { display: grid; gap: .35rem; }
.fld label, .fld .lbl { font-weight: 650; font-size: .88rem; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid #c8b8a1; background: #fff; color: var(--ink); font: inherit; border-radius: 2px; }
.fld textarea { min-height: 8rem; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); outline: 2px dashed var(--red); outline-offset: 2px; }
.fld small { color: var(--muted); font-size: .82rem; }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); margin-top: .4rem; }
.readout div { padding: .9rem 1rem .2rem 0; }
.readout dt { font: 700 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.readout dd { margin: .35rem 0 0; font: 500 1.7rem/1.1 var(--serif); color: #fff; }
.calc-rooms { display: grid; gap: .7rem; }
.calc-room { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto; gap: .7rem; align-items: end; padding-bottom: .7rem; border-bottom: 1px dashed var(--line); }
.calc-room .rm { min-height: 48px; min-width: 48px; border: 1px solid var(--line); background: transparent; color: var(--red); font-size: 1.3rem; cursor: pointer; border-radius: 2px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; align-items: center; }

/* Prep countdown (timeline checklist) */
.count { position: relative; margin: 2rem 0; }
.count__bar { position: sticky; top: calc(var(--mast-h) + 8px); z-index: 5; background: var(--ink); color: #fff; padding: .8rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .92rem; }
.count__track { flex: 1; height: 8px; background: rgba(255,255,255,.15); max-width: 22rem; }
.count__track i { display: block; height: 100%; width: var(--p, 0%); background: var(--sand); transition: width .35s var(--ease); }
.count__stage { position: relative; padding: 1.6rem 0 .6rem 3.4rem; border-left: 2px dashed var(--line); margin-left: 1.1rem; }
.count__stage::before { content: attr(data-mark); position: absolute; left: -1.15rem; top: 1.5rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--cream); border: 2px solid var(--ink); border-radius: 50%; font: italic 500 .95rem/1 var(--serif); color: var(--ink); }
.count__stage.is-done::before { background: var(--ink); color: var(--sand); }
.count__stage h3 { margin: 0 0 .7rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { margin: 0; }
.checks label { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; line-height: 1.5; }
.checks input { appearance: none; -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin: .12rem 0 0; border: 2px solid var(--ink); border-radius: 2px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.checks input::after { content: ""; width: .7rem; height: .4rem; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .15s var(--ease); margin-top: -2px; }
.checks input:checked { background: var(--red); border-color: var(--red); }
.checks input:checked::after { transform: rotate(-45deg) scale(1); }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sand-deep); }
.checks span b { display: block; font-weight: 650; color: var(--ink); }

/* Related guides */
.related { margin-top: clamp(3rem, 6vw, 4.5rem); }
.related h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.related__list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.related__list li:last-child { border-right: 0; }
.related__list a { display: grid; grid-template-rows: auto auto 1fr; gap: .35rem; height: 100%; padding: 1.2rem 1.2rem 1.4rem; color: var(--ink); text-decoration: none; transition: background .2s; }
.related__list a:hover { background: var(--paper); }
.related__n { font: italic 400 1.6rem/1 var(--serif); color: var(--red); }
.related__t { font: 500 1.2rem/1.25 var(--serif); }
.related__b { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Guide end CTA */
.gcta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--red); color: #fff; margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.gcta::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255, 255, 255, .35); pointer-events: none; }
.gcta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .3em; }
.gcta p { margin: 0; color: #f6dcd6; max-width: 38rem; }
.gcta .btn { position: relative; }

/* ---------- Contact / quote form ---------- */
.qwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.qside { position: sticky; top: calc(var(--mast-h) + 24px); }
.qside ol { margin: 1.2rem 0 1.6rem; padding: 0; list-style: none; counter-reset: st; }
.qside li { counter-increment: st; display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; padding: .85rem 0; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--muted); }
.qside li::before { content: counter(st); font: italic 500 1.4rem/1 var(--serif); color: var(--red); }
.qside li b { display: block; color: var(--ink); }
.qform { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--red); padding: clamp(1.3rem, 3vw, 2.2rem); }
.qform fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.qform legend { font: 500 1.35rem/1.2 var(--serif); padding: 0; margin-bottom: .9rem; width: 100%; display: flex; gap: .7rem; align-items: baseline; }
.qform legend span { font: italic 500 1rem/1 var(--serif); color: var(--red); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qform .fld { margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.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: 44px; padding: .5rem .9rem; border: 1px solid #c8b8a1; background: #fff; font-weight: 600; font-size: .92rem; border-radius: 2px; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px dashed var(--red); outline-offset: 2px; }
.radios { display: grid; gap: .45rem; align-content: start; }
.radio { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; align-items: start; padding: .7rem .9rem; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 2px; }
.radio input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--red); }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.consent { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; align-items: start; font-size: .92rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: var(--red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.field__error { color: var(--red); font-weight: 650; font-size: .86rem; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.form-status { padding: 1rem 1.2rem; margin-bottom: 1.4rem; border-left: 5px solid; }
.form-status p { margin: .4rem 0 0; }
.form-status--ok { background: #e3f1e9; border-color: #0f5a3a; color: #0b3f29; }
.form-status--err { background: var(--red-soft); border-color: var(--red); color: var(--red-deep); }
.submit-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.submit-row small { color: var(--muted); }

/* ---------- Legal ---------- */
.legal { padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.legal .prose { max-width: 44rem; margin-inline: auto; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

/* ---------- 404 ---------- */
.lost { padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
.lost__n { font: italic 300 clamp(6rem, 18vw, 12rem)/.9 var(--serif); color: var(--red); margin: 0 0 .2em; }
.lost .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #c9d3de; margin-top: 0; }
.foot__seam { height: 12px; background: repeating-linear-gradient(90deg, var(--sand) 0 18px, transparent 18px 28px) 0 50% / 100% 2px no-repeat, var(--red); }
.foot__in { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.foot__brand img { width: 230px; margin-bottom: 1.2rem; }
.foot__brand p { max-width: 26rem; font-size: .95rem; }
.foot h2 { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin: .4rem 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: .55rem; }
.foot a { color: #e6ecf2; text-decoration: none; }
.foot a:hover { color: var(--sand); text-decoration: underline; }
.foot .btn--sand { color: var(--ink); }
.foot .btn--sand:hover { color: var(--ink); text-decoration: none; }
.foot__base { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.foot__base p { margin: 0; max-width: 42rem; }
.foot__base ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }


/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .lang__select { max-width: 7.6rem; }
  .nav__link { padding: .5rem .6rem; }
  .nav__link::after { left: .6rem; right: .6rem; }
}
@media (max-width: 1040px) {
  :root { --mast-h: 66px; --dock-h: calc(66px + env(safe-area-inset-bottom)); }
  .nav, .mast__tools .lang, .mast__cta { display: none; }
  .mast__in { justify-content: space-between; }
  .burger { display: grid; }
  body { padding-bottom: var(--dock-h); }
  .dock { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr; gap: 0; background: var(--ink); padding: 0 0 env(safe-area-inset-bottom); border-top: 3px solid var(--red); }
  .dock a { display: grid; justify-items: center; align-content: center; gap: .2rem; min-height: 64px; color: #dce4ee; text-decoration: none; font: 600 .74rem/1 var(--sans); letter-spacing: .02em; }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .dock a[aria-current="page"] { color: var(--sand); }
  .dock .dock__main, .dock .dock__main[aria-current="page"] { background: var(--red); color: #fff; }
  .hero__grid, .plan, .seq, .ledger, .faq-wrap, .ghead__grid, .qwrap { grid-template-columns: minmax(0, 1fr); }
  .hero::before { width: 100%; height: 48%; }
  .seq__view { display: none; }
  .faq-wrap__head, .qside { position: static; }
  .gbody { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .prose > * { max-width: none; }
  .foot__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
  .ghead__photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .plan__map { aspect-ratio: auto; grid-template-rows: repeat(4, minmax(84px, auto)); }
  .plan__room { font-size: .84rem; padding: .55rem .6rem; }
  .plan__room small { font-size: .74rem; }
  .plan__verdict li { grid-template-columns: 6.4rem 1fr; }
  .seq__list a { grid-template-columns: 3rem minmax(0, 1fr); padding: 1.1rem .2rem; }
  .seq__stage { display: none; }
  .seq__n { font-size: 1.9rem; }
  .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms-grid > div:nth-child(2) { border-right: 0; }
  .rooms-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calc, .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-room { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .calc-room .fld:first-child { grid-column: 1 / -1; }
  .related__list { grid-template-columns: minmax(0, 1fr); }
  .related__list li { border-right: 0; }
  .gcta { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qs li { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .qs .yn { grid-column: 2; justify-self: start; }
  .ifthen li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .ifthen li::before { display: none; }
  .ifthen .if, .ifthen .then { grid-column: 1; grid-row: auto; }
  .ifthen .then::before { content: "→ "; color: var(--red); }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peel > picture, .peel > img { clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
  .peel::after { width: 44px; height: 44px; }
  .band::before { background: rgba(9, 33, 60, .88); }
  .swap__knob { width: 46px; height: 46px; }
  .swap__cap { flex-direction: column; gap: .2rem; }
  .ledger__rows li { flex-wrap: wrap; }
  .ledger__rows li::after { display: none; }
  .ledger__rows li span:last-child { text-align: left; width: 100%; }
}
@media (max-width: 520px) {
  .hero__actions .btn, .band .hero__actions .btn { flex: 1 1 100%; }
  .eyebrow { letter-spacing: .12em; font-size: .7rem; }
  .lost .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .rooms-grid { grid-template-columns: minmax(0, 1fr); }
  .rooms-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .readout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .readout dd { font-size: 1.4rem; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .hero__stages { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .mast, .dock, .foot, .rail, .gcta, .drawer { display: none !important; }
  body { background: #fff; }
}

/* Atlanta conditions */
.local__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); counter-reset: loc; }
.local__item { counter-increment: loc; position: relative; background: var(--cream); border: 2px dashed var(--line); padding: clamp(1.3rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem) clamp(1.3rem, 3vw, 1.8rem); }
.local__item::before { content: "0" counter(loc); display: block; font: italic 400 1.9rem/1 var(--serif); color: var(--red); margin-bottom: .7rem; }
.local__item h3 { margin: 0 0 .6rem; font: 500 clamp(1.3rem, 2vw, 1.55rem)/1.2 var(--serif); }
.local__item p { color: var(--muted); font-size: .98rem; }
.local__foot { max-width: 46rem; margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; text-align: center; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .local__list { grid-template-columns: 1fr; } }
.local__item { display: flex; flex-direction: column; }
.local__item .textlink { margin-top: auto; align-self: flex-start; }
/* ---------- Area guides (/locations/) ---------- */
.ghead--even { padding-bottom: clamp(1.6rem, 4vw, 3rem); }
.related--areas { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.areas__card { display: flex; flex-direction: column; height: 100%; background: var(--cream); border: 2px dashed var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.areas__card:hover { border-color: var(--red); color: var(--ink); transform: translateY(-2px); }
.areas__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.areas__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.areas__n { font: italic 400 1.5rem/1 var(--serif); color: var(--red); }
.areas__t { font: 500 1.3rem/1.2 var(--serif); }
.areas__p { font: 700 .7rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.areas__b { font-size: .95rem; line-height: 1.5; color: var(--muted); }
.towns { columns: 3 14rem; column-gap: 2rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.towns li { break-inside: avoid; display: flex; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.towns a { font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .areas__card, .areas__card:hover { transition: none; transform: none; } }

/* =====================================================================
   v3 retrofit (2026-11): cinematic dark surfaces, wide display type,
   Motion Kit hooks and design-library patterns. Overrides the rules above.
   ===================================================================== */
h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: .98; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); }
.display { text-transform: uppercase; font-family: var(--display); font-weight: 850; font-stretch: 125%; letter-spacing: -.025em; line-height: .92; }
h2.display { font-size: clamp(2rem, 4.6vw, 4.1rem); }
.prose > h2, .related h2, .gcta h2, .tool__head h2 { font-stretch: 108%; }
.eyebrow--light, .on-dark .eyebrow { color: var(--coral); }
.textlink--light { color: var(--sand); }
.textlink--light:hover { color: #fff; }
.draw-rule { display: block; width: 5.5rem; height: 3px; background: var(--coral); margin-top: 1.3rem; }
.sec-head .draw-rule, .stack__rule { margin-inline: auto; }
.sec-head--left { margin-left: 0; text-align: left; }
.sec-head--left .eyebrow { justify-content: flex-start; }
.sec-head--left .eyebrow::after { display: none; }
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; font-weight: 700; }
.btn--red { --bg: var(--red); }
.btn--line-light { border-color: rgba(255,255,255,.55); }
.on-dark { background: var(--night); }

/* Masthead: dark, persistent across page transitions */
.mast { background: rgba(0, 13, 30, .9); color: #e8edf3; }
.mast.is-scrolled { border-bottom-color: rgba(255,255,255,.1); box-shadow: 0 10px 30px -20px rgba(0,0,0,.8); }
.mast__logo img { width: clamp(190px, 18vw, 250px); }
.mast__place { color: #a9b6c6; }
.nav__link { color: #e8edf3; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; }
.nav__link::after { border-bottom: 2px solid var(--coral); }
.nav__link:hover, .nav__link[aria-current="page"], .nav__btn[aria-expanded="true"] { color: #fff; }
.mast .lang__select { background: transparent; color: #e8edf3; border-color: rgba(255,255,255,.25); }
.mast .lang__select option { color: var(--ink); }
.mast .lang__icon, .mast .lang__chev { stroke: #e8edf3; }
.burger { background: transparent; border-color: rgba(255,255,255,.3); }
.burger__bars, .burger__bars::before, .burger__bars::after { background: #fff; }
.mast :focus-visible { outline-color: var(--sand); }
/* Gap bridge for the mega menu: an invisible strip covers the space between trigger and panel */
.nav__item--mega > .mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; }

/* ---------- Home: cinematic video hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding: clamp(64px, 8vw, 120px) 0; min-height: calc(100svh - var(--mast-h)); display: flex; align-items: center; }
.hero::before { display: none; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__layer { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,13,30,.92) 0%, rgba(0,13,30,.72) 42%, rgba(0,13,30,.35) 100%), linear-gradient(0deg, rgba(0,13,30,.85) 0%, transparent 40%, rgba(0,13,30,.45) 100%); }
.hero__copy { position: relative; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: .86; margin: 0 0 .3em; max-width: 11ch; color: #fff; }
.hero__slogan { font: italic 400 clamp(1.3rem, 2.4vw, 2rem)/1.2 var(--serif); color: #fff; margin: 0 0 .9em; }
.hero__slogan em { color: var(--coral); }
.hero__lede { max-width: 46rem; color: #d3dbe5; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; margin: 0; }
.hero .hero__actions { margin-top: 2rem; }
.hero__note, .phero__note { position: absolute; right: var(--gut); bottom: 14px; margin: 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.mk-on .hero__media { scale: calc(1 + clamp(0, var(--p, .5) - .5, .5) * .16); }
.mk-on .hero__scrim { opacity: calc(.82 + clamp(0, var(--p, .5) - .45, .55) * .4); }
.mk-on .hero__note { opacity: calc(1 - clamp(0, var(--p, .5) - .5, .5) * 2); }

/* Marquee strip */
.strip { background: var(--red); color: #fff; padding: clamp(14px, 2vw, 22px) 0; overflow: hidden; }
.strip [data-marquee] { --mk-mq-gap: clamp(22px, 3vw, 44px); flex-wrap: nowrap; }
.strip__row span { font: 800 clamp(1.2rem, .9rem + 1.5vw, 2.2rem)/1.1 var(--display); font-stretch: 125%; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.strip__row i { flex: none; width: 14px; height: 14px; background: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 4px); }
html:not(.mk-on) .strip__row { flex-wrap: wrap; justify-content: center; padding-inline: var(--gut); row-gap: .6rem; }

/* Before/after section */
.swapsec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.swapsec .hero__stages { border-top-style: solid; }

/* ---------- Pattern: cut-out act words (photo through letters) ---------- */
.acts { background: var(--night); color: #fff; position: relative; overflow: clip; }
.acts__label { text-align: center; font: 700 .76rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--coral); margin: 0; padding-top: clamp(48px, 7vw, 80px); }
.act { padding: clamp(28px, 4vw, 48px) var(--gut); text-align: center; position: relative; }
.act__phrase { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .2em .45em; }
.act__word { font: 900 clamp(3.4rem, 16vw, 16rem)/.9 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.04em; color: #fff; }
.act__suffix { font: italic 400 clamp(1.3rem, 1rem + 2.6vw, 3.8rem)/1.1 var(--serif); color: #d3dbe5; }
.act--accent .act__suffix { color: var(--coral); }
.act:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }
.act__wash, .act__num, .acts__rail { display: none; }
.mk-on .acts__stage { height: 300vh; }
.mk-on .acts__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; --P: clamp(0, calc((var(--p, 0) - .25) / .5), 1); }
.mk-on .acts__label { position: absolute; top: calc(var(--mast-h) + 22px); left: 0; right: 0; padding: 0; z-index: 3; }
.mk-on .act { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gut) 0 clamp(var(--gut), 16vw, 20rem);
  --t: clamp(0, calc((var(--P) - (var(--n) / 3 - .04)) / .41333), 1);
  opacity: calc(clamp(0, var(--t) * 12, 1) * clamp(0, (1 - var(--t)) * 12, 1)); }
.mk-on .act:last-of-type { --t: clamp(0, calc((var(--P) - (var(--n) / 3 - .04)) / .41333), .62); }
.mk-on .act__wash { display: block; position: absolute; inset: -8%; background: var(--img) center / cover; filter: blur(34px) saturate(1.1) brightness(.38); scale: calc(1.1 + var(--t) * .12); z-index: 0; }
.mk-on .act__num { display: block; position: absolute; right: 5vw; top: 50%; font: 900 clamp(8rem, 22vw, 24rem)/1 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 2px rgba(226,92,74,.75); translate: 0 calc(-50% + (.5 - var(--t)) * 90vh); z-index: 1; }
.mk-on .act__phrase { position: relative; z-index: 2; flex-direction: column; align-items: center; translate: 0 calc((1 - clamp(0, var(--t) / .3, 1)) * 70px - clamp(0, (var(--t) - .7) / .3, 1) * 70px); }
.mk-on .act__word { color: transparent; background: var(--img) center / cover; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(255,255,255,.3); filter: brightness(1.2) contrast(1.06); background-position: calc(50% + (var(--t) - .5) * 40%) 50%; padding: .06em .08em .12em; }
.mk-on .act__suffix { opacity: calc(clamp(0, (var(--t) - .18) * 10, 1) * clamp(0, (.78 - var(--t)) * 10, 1)); }
.mk-on .act:last-of-type .act__suffix { opacity: clamp(0, (var(--t) - .18) * 10, 1); }
.mk-on .acts__rail { display: flex; flex-direction: column; gap: 14px; position: absolute; left: var(--gut); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0 0 0 18px; z-index: 3; font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.mk-on .acts__rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.16); }
.mk-on .acts__rail::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--coral); transform-origin: 50% 0; scale: 1 var(--P); }
.mk-on .acts__rail li { --t: clamp(0, calc((var(--P) - (var(--n) / 3 - .04)) / .41333), 1); opacity: calc(.45 + .55 * clamp(0, var(--t) * 12, 1) * clamp(0, (1 - var(--t)) * 12, 1)); color: #fff; }
.mk-on .acts__rail li:last-child { opacity: calc(.45 + .55 * clamp(0, var(--t) * 12, 1)); }
.acts__rail b { color: var(--coral); margin-right: 10px; font-variant-numeric: tabular-nums; }

/* ---------- Pattern: scroll-filled giant words ---------- */
.words { background: var(--night); color: #fff; padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; position: relative; }
.words__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.words .display { color: #fff; max-width: 16ch; }
.words__intro { max-width: 40rem; color: #c9d3de; margin: 1.2rem 0 0; }
.words__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
.words__row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 27rem); gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.words__no { font: 700 1.1rem/1 var(--display); color: var(--coral); font-variant-numeric: tabular-nums; }
.words__word { position: relative; margin: 0; font: 900 clamp(2.3rem, 1rem + 5vw, 6rem)/.9 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.045em; color: #fff; white-space: nowrap; }
.words__base { display: block; }
.words__fill { display: none; }
.words__text h3 { font: 700 1.15rem/1.25 var(--display); font-stretch: 108%; color: #fff; margin: 0 0 .5rem; }
.words__text p { color: #a9b6c6; font-size: .95rem; line-height: 1.6; margin: 0 0 .8rem; }
.words__text p:last-child { margin-bottom: 0; }
.words__foot { max-width: 46rem; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; font-size: .95rem; color: #c9d3de; }
.words__foot a { color: var(--sand); }
.mk-on .words__row { --f: clamp(0, calc((var(--p, 1) - .22) / .36), 1); }
.mk-on .words__word { translate: calc((var(--p, .5) - .5) * -6%) 0; }
.mk-on .words__row:nth-child(even) .words__word { translate: calc((var(--p, .5) - .5) * 6%) 0; }
.mk-on .words__base { color: transparent; -webkit-text-stroke: 1px rgba(214,222,232,.45); }
.mk-on .words__fill { display: block; position: absolute; inset: 0; color: #fff; clip-path: inset(0 calc((1 - var(--f)) * 100%) 0 0); }
.mk-on .words__row:last-child .words__fill { color: var(--coral); }
.words--short { padding: clamp(64px, 8vw, 110px) 0; }
.words--short .words__word { font-size: clamp(1.8rem, .4rem + 3vw, 3.5rem); white-space: normal; }
.words--short .words__row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 22rem); }

/* ---------- Pattern: expanding accordion gallery (the six guides) ---------- */
.gallery { background: var(--cream); }
.acc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.acc__panel { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--night); color: #fff; transition: flex-grow .75s var(--ease); }
.acc__img { position: relative; aspect-ratio: 4 / 3; }
.acc__img picture, .acc__img img { width: 100%; height: 100%; object-fit: cover; }
.acc__img img { transition: scale 1.2s var(--ease); }
.acc__panel:hover .acc__img img { scale: 1.04; }
.acc__shade { display: none; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,13,30,.95) 0%, rgba(0,13,30,.6) 55%, rgba(0,13,30,.2) 100%); }
.acc__no { position: absolute; top: 16px; left: 18px; font: 900 2.4rem/1 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--coral); }
.acc__tab { display: none; }
.acc__body { padding: clamp(20px, 2.4vw, 30px); }
.acc__label { font: 700 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--coral); margin: 0 0 12px; }
.acc__body h3 { font: 800 clamp(1.2rem, 1rem + .6vw, 1.5rem)/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; color: #fff; margin: 0 0 .45em; max-width: 20ch; }
.acc__body p { color: #c9d3de; max-width: 44ch; font-size: .97rem; }
.acc__link { color: var(--sand); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.acc__link:hover { color: #fff; }
.gallery__note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
@media (min-width: 1041px) {
  .mk-on .acc { display: flex; gap: 10px; height: clamp(480px, 66vh, 660px); }
  .mk-on .acc__panel { flex: 1 1 0; min-height: 0; display: block; }
  .mk-on .acc__img { position: absolute; inset: 0; aspect-ratio: auto; }
  .mk-on .acc__shade { display: block; }
  .mk-on .acc:not(:hover):not(:focus-within) .acc__panel:first-child, .mk-on .acc__panel:hover, .mk-on .acc__panel:focus-within { flex-grow: 5; }
  .mk-on .acc__tab { display: block; position: absolute; left: 50%; bottom: 26px; writing-mode: vertical-rl; rotate: 180deg; translate: -50% 0; font: 700 .76rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #fff; white-space: nowrap; transition: opacity .3s; }
  .mk-on .acc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); opacity: 0; translate: 0 14px; transition: opacity .35s, translate .5s var(--ease); min-width: min(440px, 60vw); }
  .mk-on .acc:not(:hover):not(:focus-within) .acc__panel:first-child .acc__body, .mk-on .acc__panel:hover .acc__body, .mk-on .acc__panel:focus-within .acc__body { opacity: 1; translate: none; transition-delay: .2s; }
  .mk-on .acc:not(:hover):not(:focus-within) .acc__panel:first-child .acc__tab, .mk-on .acc__panel:hover .acc__tab, .mk-on .acc__panel:focus-within .acc__tab { opacity: 0; }
}

/* ---------- Pattern: sticky stacking process cards ---------- */
.stack { background: var(--wool); padding-bottom: clamp(40px, 6vw, 80px); }
.stack__rule { display: block; width: 4.5rem; height: 4px; background: var(--red); margin-top: 22px; }
.stack__list { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.stack__card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; background: var(--paper); padding: clamp(1.4rem, 3vw, 2.3rem); box-shadow: inset 0 0 0 1.5px var(--line), 0 22px 48px -30px rgba(0,21,47,.55); margin-bottom: 1.1rem; }
.stack__badge { display: grid; place-items: center; width: clamp(52px, 6vw, 66px); aspect-ratio: 1; background: var(--ink); color: #fff; font: 800 1.35rem/1 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.stack__card h3 { margin: .1em 0 .35em; font: 800 clamp(1.15rem, 1rem + .7vw, 1.6rem)/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.stack__card p { margin: 0; color: var(--muted); }
.mk-on .stack__card { position: sticky; top: calc(var(--mast-h) + 1.4rem + var(--i, 0) * 14px); z-index: 2; }
.mk-on .stack__list::after { content: ""; display: block; height: 4vh; }
.mk-on .stack .sec-head { translate: 0 calc((.5 - var(--p, .5)) * 40px); }

/* Plan, ledger, FAQ, band on the new type */
.plan__room[aria-pressed="true"] { background: var(--red); }
.plan__out h3, .ledger__sheet h3 { font-family: var(--display); font-stretch: 108%; font-weight: 800; text-transform: uppercase; }
.mk-on [data-plan] { translate: 0 calc((.5 - var(--p, .5)) * 24px); }
.ledger__sheet { border-top: 5px solid var(--coral); }
.faqsec { background: var(--paper); }
.faq__item summary { font: 600 1.1rem/1.35 var(--sans); }
.band { min-height: 0; }
.band__bg { overflow: hidden; }
.band__layer { position: absolute; inset: 0; }
.band__layer picture, .band__layer img { width: 100%; height: 100%; object-fit: cover; }
.band::before { background: linear-gradient(90deg, rgba(0,13,30,.95) 0%, rgba(0,13,30,.82) 50%, rgba(0,13,30,.3) 100%); }
.band h2.display { font-size: clamp(2.4rem, 6vw, 5.4rem); }

/* ---------- Inner pages: full-bleed photo hero ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding: clamp(64px, 9vw, 132px) 0; }
.phero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.phero__layer { position: absolute; inset: 0; }
.phero__layer picture, .phero__layer img { width: 100%; height: 100%; object-fit: cover; }
.phero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,13,30,.93) 0%, rgba(0,13,30,.78) 50%, rgba(0,13,30,.45) 100%), linear-gradient(0deg, rgba(0,13,30,.6), transparent 50%); }
.phero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 5.6rem); max-width: 16ch; margin: 0 0 .35em; }
.phero__lede { max-width: 44rem; color: #d3dbe5; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; margin: 0; }
.phero__meta { list-style: none; margin: 1.8rem 0 0; padding: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem 2rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .92rem; color: #c9d3de; max-width: 60rem; }
.phero__meta b { display: block; font: 700 .7rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: .2rem; }
.phero--plain { background: radial-gradient(120% 140% at 85% 0%, var(--night-2) 0%, var(--night) 60%); }
.crumbs--light ol { color: #a9b6c6; }
.crumbs--light a { color: #d3dbe5; }
.crumbs--light li + li::before { color: rgba(255,255,255,.35); }
.mk-on .phero__media { scale: calc(1 + clamp(0, var(--p, .5) - .5, .5) * .14); }
.mk-on .phero__scrim { opacity: calc(.85 + clamp(0, var(--p, .5) - .45, .55) * .3); }
.gend { padding-bottom: clamp(3rem, 6vw, 5rem); }
.mk-on .gend .related__list { translate: 0 calc((.5 - var(--p, .5)) * 30px); }
.related h2, .gcta h2 { text-transform: uppercase; }

/* Blog (portal) head: the portal renders .ghead; same dark surface */
.ghead { background: var(--night); color: #fff; padding: clamp(48px, 7vw, 96px) 0 0; }
.ghead h1 { color: #fff; text-transform: uppercase; font-stretch: 118%; font-size: clamp(2.1rem, 5vw, 4.4rem); }
.ghead .lede, .ghead .ghead__meta { color: #c9d3de; }
.ghead .crumbs ol, .ghead .crumbs a { color: #a9b6c6; }
.ghead .ghead__meta b { color: var(--coral); }
.ghead .eyebrow { color: var(--coral); }
.ghead__photo { margin-bottom: 0; }
.ghead__photo figcaption { color: #a9b6c6; padding-bottom: .8rem; }

/* Legal + 404 */
.legal .prose { max-width: 44rem; }
.lost { background: var(--night); color: #fff; padding: clamp(72px, 10vw, 140px) 0; }
.lost h1 { color: #fff; font-size: clamp(2rem, 5vw, 4.2rem); max-width: 18ch; margin-inline: auto; }
.lost .lede { color: #c9d3de; }
.lost__n { font: 900 clamp(6rem, 20vw, 15rem)/.85 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 2px var(--coral); }
.mk-on .lost__n { translate: 0 calc((.5 - var(--p, .5)) * 60px); }

/* Footer */
.foot { background: var(--night); position: relative; overflow: hidden; }
.foot__seam { height: 4px; background: rgba(255,255,255,.08); }
.foot__seam span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--coral)); }
.foot__giant { margin: 0; padding: clamp(40px, 6vw, 80px) var(--gut) 0; font: 900 clamp(2.4rem, 8.4vw, 8.4rem)/.9 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); white-space: nowrap; }
.foot__giant span { display: block; }
.foot__giant span + span { color: rgba(226,92,74,.18); -webkit-text-stroke-color: rgba(226,92,74,.5); padding-left: 8vw; }
.mk-on .foot__giant span:first-child { translate: calc((.5 - var(--p, .5)) * 16%) 0; }
.mk-on .foot__giant span + span { translate: calc((var(--p, .5) - .5) * 16%) 0; }
.foot__brand img { width: clamp(220px, 22vw, 290px); }
.foot h2 { color: var(--coral); }
.foot__base { align-items: center; }
.foot__motion { color: #e6ecf2; }
.foot .credit-72 { color: #c9d3de; }
.mk-on .foot__in { translate: 0 calc((1 - var(--p, 1)) * 30px); }
.dock { border-top-color: var(--coral); }
.dock, .dock .dock__main { background: var(--night); }
.dock .dock__main, .dock .dock__main[aria-current="page"] { background: var(--red); }

@media (max-width: 1040px) {
  .swapsec__grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .words__row { grid-template-columns: auto minmax(0, 1fr); }
  .words__text { grid-column: 2; }
  .words__word { white-space: normal; }
  .mk-on .act { padding: 0 var(--gut); }
  .mk-on .acts__rail { flex-direction: row; top: auto; bottom: calc(var(--dock-h) + 18px); left: 0; right: 0; translate: none; justify-content: center; gap: 18px; padding: 0; }
  .mk-on .acts__rail::before, .mk-on .acts__rail::after { display: none; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .hero__scrim { background: linear-gradient(0deg, rgba(0,13,30,.94) 0%, rgba(0,13,30,.78) 60%, rgba(0,13,30,.55) 100%); }
  .words__row { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .words__text { grid-column: 1; }
  .act__word { font-size: clamp(3rem, 19vw, 6rem); }
  .phero__note, .hero__note { bottom: 8px; }
  .foot__giant { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html.mk-on .acc__panel, html.mk-on .acc__body { transition: none; }
}
.swapsec h2.display { font-size: clamp(2rem, 3.6vw, 3.3rem); }

/* ---------- Layout fixes (owner: no overlap, no blank half) ---------- */
/* Motion kit contract: hidden states only under html.mk-on, so split words rest in place without it */
html:not(.mk-on) .mk-wi { translate: none !important; animation: none !important; }
html:not(.mk-on) [data-split]:not([data-mk-split]) { opacity: 1; }
/* Six guides without the accordion (reduced motion / no JS): 3 + 3 or 2 + 2 + 2, never 4 + 2 with an empty half row */
.acc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .acc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acc { grid-template-columns: minmax(0, 1fr); } }
/* Left-aligned section heads: heading left, lede right on desktop */
@media (min-width: 900px) {
  .sec-head--left { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
  .sec-head--left .eyebrow { grid-column: 1 / -1; }
  .sec-head--left h2 { margin-bottom: 0; max-width: none; }
  .sec-head--left .lede { margin: 0 0 .4em; }
}
@media (min-width: 900px) {
  .words__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
  .words__head .eyebrow, .words__head .draw-rule { grid-column: 1 / -1; }
  .words__head h2 { margin-bottom: 0; max-width: none; }
  .words__intro { margin: 0 0 .4em; }
}
