/* Direct Portable Buildings. Navy and red from their logo; warm paper; ink-and-wash drawings.
   Headings: Newsreader (display cut). Text: DM Sans, the face their current site uses.
   Includes, reworked for this site: sticky call bar 2, quote drawer, quote carry, photo carry and the
   tape progress line from the rchive library. Mobile first. */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --navy: #262262; --navy-d: #17153f; --red: #d11a24; --red-d: #a3121b;
  --paper: #f7f4ee; --paper-2: #eee8dc; --card: #fffdf9; --ink: #1e1c33; --muted: #4f4c68; --line: #dcd3c2;
  --sage: #4e6d53; --sand: #b39668;
  --f-head: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 76rem; --gut: clamp(1.1rem, 4.5vw, 2.5rem);
  --head-h: 4rem; --head-h-stuck: 3.3rem;
  --r: 6px;
  /* library pieces */
  --cb-bg: var(--card); --cb-ink: var(--ink); --cb-call: var(--red); --cb-call-ink: #fff; --cb-h: var(--head-h); --cb-h-stuck: var(--head-h-stuck);
  --qd-bg: var(--card); --qd-ink: var(--ink); --qd-accent: var(--red); --qd-time: .34s;
  --carry-accent: var(--red);
  --pc-time: .5s;
}
@media (min-width: 64rem) { :root { --head-h: 4.75rem; --head-h-stuck: 3.6rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-d); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; color: var(--navy); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 8.4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 6.2vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.vh { position: absolute; 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: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--r); }
.skip:focus { top: .6rem; color: #fff; }
.lead { font-size: clamp(1.08rem, 3.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.small { font-size: .9rem; color: var(--muted); }
.i { width: 1.1em; height: 1.1em; flex: none; }

/* The motif's small form: a pitched roof, as on the logo, before every eyebrow line */
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 16px; background: url("/art/gable.svg") center / contain no-repeat; }

/* ---- Buttons ---- */
.btns { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: 0 1.3rem; border: 2px solid transparent; border-radius: var(--r);
  font: 600 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); color: #fff; }
.btn-light { background: rgb(255 255 255 / .94); color: var(--navy); }
.btn-light:hover { background: #fff; color: var(--red-d); }
.btn-ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn-ghost:hover { color: var(--red-d); }
.btn-block { width: 100%; }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .25s ease; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link::after { content: " →"; }
.link-btn { font: inherit; font-weight: 600; color: var(--navy); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ===== Header: sticky call bar 2, reworked ===== */
html { container-type: scroll-state; container-name: cb-page; }
.cb-head { position: sticky; top: 0; z-index: 50; height: var(--cb-h); container-type: scroll-state; container-name: cb-head; pointer-events: none; }
.cb-head-in { position: absolute; inset: 0 0 auto 0; height: 100%; display: flex; align-items: center; gap: .6rem; padding: 0 var(--gut);
  background: rgb(255 253 249 / .96); color: var(--cb-ink); border-bottom: 1px solid var(--line); pointer-events: auto; transition: height .25s ease, box-shadow .25s ease; }
.brand { display: block; flex: none; margin-right: auto; }
.brand-logo { width: auto; height: calc(var(--cb-h) - 1.3rem); max-height: 3.4rem; transition: height .25s ease; }
.cb-phone { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--r); background: var(--cb-call); color: var(--cb-call-ink);
  font-weight: 700; white-space: nowrap; text-decoration: none; }
.cb-phone:hover { background: var(--red-d); color: #fff; }
.cb-phone-t { display: none; }
@media (min-width: 30rem) { .cb-phone-t { display: inline; } .cb-phone-s { display: none; } }
@container cb-head scroll-state(stuck: top) {
  .cb-head-in { height: var(--cb-h-stuck); box-shadow: 0 6px 18px rgb(23 21 63 / .12); }
  .brand-logo { height: calc(var(--cb-h-stuck) - 1rem); }
}

/* Menu: a popover on phones, a row of links on a wide screen. No script. */
.nav { order: 2; }
.nav-open { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--navy); font: 600 .95rem var(--f-body); cursor: pointer; }
.burger { position: relative; width: 18px; height: 2px; background: currentColor; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-open-t { display: none; }
@media (min-width: 26rem) { .nav-open-t { display: inline; } }
.cb-phone { order: 3; }
.menu { position: fixed; inset: var(--head-h) 0 auto 0; margin: 0; width: 100%; max-width: none; max-height: calc(100dvh - var(--head-h)); overflow: auto; padding: .6rem var(--gut) 1.4rem;
  border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 18px 40px rgb(23 21 63 / .18); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font: 500 1.35rem/1.2 var(--f-head); color: var(--navy); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--red-d); }
.menu-close { margin-top: 1rem; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid currentColor; border-radius: var(--r); background: none; color: var(--navy); font: 600 .95rem var(--f-body); cursor: pointer; }
.menu::backdrop { background: rgb(23 21 63 / .25); }
@supports selector(:popover-open) { @media (prefers-reduced-motion: no-preference) {
  .menu { opacity: 0; translate: 0 -.6rem; transition: opacity .22s ease, translate .22s ease, overlay .22s allow-discrete, display .22s allow-discrete; }
  .menu:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 -.6rem; } }
} }
@media (min-width: 75rem) {
  .nav { order: 1; margin-right: 1rem; }
  .nav-open, .menu-close { display: none; }
  .menu, .menu:popover-open { all: unset; display: block; }
  .menu ul { display: flex; gap: 1.2rem; }
  .menu a { padding: .4rem 0; border: 0; font: 500 .93rem var(--f-body); color: var(--ink); background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
  .menu a:hover, .menu a[aria-current="page"] { background-size: 100% 2px; color: var(--navy); }
}

/* ===== Bottom bar (phones): sticky call bar 2 ===== */
.cb-foot { position: fixed; inset: auto 0 0 0; z-index: 60; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(23 21 63 / .97); box-shadow: 0 -6px 18px rgb(0 0 0 / .18); transition: padding .22s ease, background-color .22s ease; }
@media (max-width: 760px) { .cb-foot { display: flex; } body { padding-bottom: 76px; } }
.cb-foot :is(a, button) { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 0 .9rem; border-radius: var(--r);
  border: 2px solid transparent; font: 600 1rem/1 var(--f-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: min-height .22s ease, flex-grow .22s ease, opacity .18s ease, padding .22s ease, border-width .22s ease; }
.cb-foot .cb-call { background: var(--red); color: #fff; flex-grow: 1.35; }
.cb-foot .cb-second { background: transparent; border-color: rgb(255 255 255 / .75); color: #fff; overflow: hidden; }
.cb-foot :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@container cb-page scroll-state((scrolled: block-end) and (scrollable: block-end)) {
  .cb-foot { padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: rgb(23 21 63 / .86); gap: 0; }
  .cb-foot :is(a, button) { min-height: 42px; }
  .cb-foot .cb-second { flex-grow: 0; flex-basis: 0; padding: 0; border-width: 0; opacity: 0; visibility: hidden; transition: min-height .22s ease, flex-grow .22s ease, opacity .18s ease, padding .22s ease, border-width .22s ease, visibility 0s .22s; }
}

/* ===== Progress line: a tape measure in their red, under the header ===== */
@property --pl { syntax: "<number>"; inherits: true; initial-value: 0; }
.pl { --pl-top: var(--head-h); --pl-h: 11px; --pl-head: 6px; display: none; position: fixed; inset: var(--pl-top) 0 auto 0; height: var(--pl-h); z-index: 49; pointer-events: none; }
@supports (animation-timeline: scroll()) { .pl { display: block; animation: pl-go linear both; animation-timeline: scroll(root block); } }
@keyframes pl-go { from { --pl: 0; } to { --pl: 1; } }
.pl::before { content: ""; position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--pl)) * 100%) 0 0);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .92) 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 74% no-repeat,
    repeating-linear-gradient(90deg, rgb(255 255 255 / .7) 0 1px, transparent 1px 10px) 0 0 / 100% 40% no-repeat,
    linear-gradient(to bottom, #e0434b, var(--red) 45%, var(--red-d)); }
.pl::after { content: ""; position: absolute; top: -1px; left: calc(var(--pl) * (100% - var(--pl-head))); width: var(--pl-head); height: calc(100% + 4px); border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #8d9399, #e3e6e9 45%, #9aa0a6); box-shadow: 0 1px 2px rgb(0 0 0 / .35); }
/* Where the header can shrink when it sticks, the tape sits under the short header and only shows once the page has moved */
@supports (container-type: scroll-state) {
  .pl { --pl-top: var(--head-h-stuck); opacity: 0; transition: opacity .3s ease; }
  @container cb-page scroll-state(scrollable: top) { .pl { opacity: 1; } }
}

/* ===== Home: the hero ===== */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(86svh, 46rem); color: #fff; overflow: hidden; background: var(--navy-d); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(23 21 63 / .94) 0%, rgb(23 21 63 / .72) 38%, rgb(23 21 63 / .18) 72%, rgb(23 21 63 / .05) 100%); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 62% 55%; }
@media (min-width: 64rem) { .hero-img { object-position: 50% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: drift 28s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.13) translate3d(-2.2%, -1.2%, 0); } }
}
.hero-in { padding-top: 7rem; padding-bottom: 2rem; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.2rem, 9.2vw, 4.6rem); }
.hero h1 em { color: #ffd9db; }
.hero .lead { color: rgb(255 255 255 / .88); max-width: 34rem; }
.hero .btns { margin-top: 1.4rem; }
.trust { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; margin: 1.4rem 0 0; padding: 0; font-size: .85rem; color: rgb(255 255 255 / .85); }
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.hero-tag { position: absolute; top: 1rem; right: var(--gut); margin: 0; display: grid; justify-items: end; gap: .2rem; font-size: .78rem; letter-spacing: .02em; color: rgb(255 255 255 / .92); text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.hero-tag .dim { width: 9.5rem; }
.hero-tag .dim path { stroke: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .dim path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-in 1.6s .5s cubic-bezier(.5, 0, .2, 1) forwards; }
  .hero-tag span { opacity: 0; animation: fade-in .8s 1.6s ease forwards; }
}
@keyframes ink-in { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@media (min-width: 64rem) {
  .hero { min-height: min(88vh, 52rem); }
  .hero-media::after { background: linear-gradient(100deg, rgb(23 21 63 / .9) 0%, rgb(23 21 63 / .7) 38%, rgb(23 21 63 / .1) 70%), linear-gradient(to top, rgb(23 21 63 / .5), transparent 40%); }
  .hero-in { padding-bottom: 4.5rem; }
  .hero-tag { top: auto; bottom: 2.2rem; }
  .hero-tag .dim { width: 13rem; }
}

/* ===== Sections, common ===== */
main > section { padding-block: clamp(2.7rem, 8vw, 6.5rem); }
main > section.hero, main > section.page-hero { padding-block: 0; }

/* ===== Home: from the yard to your block (scroll story) ===== */
.story { background: var(--card); }
.story-head h2 { max-width: 20ch; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { padding: 0 0 2rem; }
.story-inline { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 1rem; }
.story-n { display: block; font: 500 .85rem var(--f-body); letter-spacing: .14em; color: var(--red-d); }
.story-step h3 { font-size: clamp(1.4rem, 5.4vw, 2rem); margin: .2rem 0 .4rem; }
.story-step p { color: var(--muted); max-width: 30rem; }
.story-stage { display: none; }
.story-note { margin: 0; font-size: .85rem; color: var(--muted); }
html.js .story-stage { display: block; position: sticky; top: calc(var(--head-h-stuck) + 11px); z-index: 1; height: 44svh; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
html.js .story-inline { display: none; }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease, transform 1.4s ease; transform: scale(1.05); }
.story-img.is-on { opacity: 1; transform: scale(1); }
.story-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .5); }
.story-meter span { display: block; height: 100%; width: 25%; background: var(--red); transition: width .5s ease; }
[data-at="1"] .story-meter span { width: 50%; } [data-at="2"] .story-meter span { width: 75%; } [data-at="3"] .story-meter span { width: 100%; }
/* On a phone the words ride on the picture, and the steps below are only the runway that turns the pages:
   the whole story costs about one screen of scrolling. */
.story-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: .15rem; padding: 3.2rem 1.1rem 1.2rem;
  background: linear-gradient(to top, rgb(23 21 63 / .9), rgb(23 21 63 / .55) 60%, transparent); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.story-cap.is-on { opacity: 1; transform: none; }
.story-cap .story-n { color: #ffb3b7; }
.story-cap-t { font: 500 1.6rem/1.15 var(--f-head); }
.story-cap-p { font-size: .95rem; color: rgb(255 255 255 / .88); }
@media (max-width: 63.99rem) {
  html.js .story-stage { height: 56svh; max-height: 32rem; }
  html.js .story-steps { position: relative; margin-top: -21svh; pointer-events: none; }
  html.js .story-step { height: 14svh; padding: 0; }
  html.js .story-step:last-child { height: 24svh; }
  html.js .story-step > * { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 64rem) {
  .story-cap { display: none; }
  html.js .story-step { opacity: .38; transition: opacity .4s ease; }
  html.js .story-step.is-now { opacity: 1; }
  html.js .story-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; }
  html.js .story-stage { top: calc(var(--head-h-stuck) + 2rem); height: min(72vh, 40rem); }
  html.js .story-step { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
  html.js .story-step:last-child { min-height: 48vh; }
}
@media (prefers-reduced-motion: reduce) { .story-img, html.js .story-step { transition: none; } .story-img { transform: none; } }

/* ===== Swipe rows (phones) ===== */
.swipe { display: flex; gap: .9rem; list-style: none; margin: 0; padding: .2rem var(--gut) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.swipe::-webkit-scrollbar { display: none; }
.swipe.wrap { margin-inline: auto; }
.swipe > li { flex: 0 0 auto; scroll-snap-align: start; }

/* ===== Home: the range ===== */
.range h2 { max-width: 24ch; }
.range-row > li { width: 76%; max-width: 21rem; }
.range-card { display: block; height: 100%; color: inherit; text-decoration: none; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 28px rgb(23 21 63 / .07); transition: transform .3s ease, box-shadow .3s ease; }
.range-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 16px 36px rgb(23 21 63 / .12); color: inherit; }
.range-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.range-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.range-pic img.drawn { object-fit: contain; padding: .8rem; background: var(--paper); }
.range-card:hover .range-pic img { transform: scale(1.04); }
.range-txt { display: grid; gap: .15rem; padding: 1rem 1.1rem 1.15rem; }
.range-t { font: 500 1.45rem/1.15 var(--f-head); color: var(--navy); }
.range-m { font-size: .9rem; color: var(--muted); }
.range-n { margin-top: .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red-d); }
.range-pic-fin { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .9rem; background: var(--paper); }
.range-pic-fin svg { width: 100%; height: 100%; transition: transform .5s ease; }
.range-card:hover .range-pic-fin svg:nth-child(odd) { transform: rotate(-2deg); }
.range-card:hover .range-pic-fin svg:nth-child(even) { transform: rotate(2deg); }
.range-more { margin-top: .6rem; margin-bottom: 0; }
@media (min-width: 64rem) {
  .range-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; overflow: visible; padding-bottom: 0; }
  .range-row > li { width: auto; max-width: none; }
  .range-t { font-size: 1.3rem; }
}

/* ===== Home: proof ===== */
.proof { background: var(--paper-2); }
.proof-grid { display: grid; gap: 1.8rem; }
.proof-pic { display: none; }       /* on a phone the story above has already shown the frame */
.proof-pic img { width: 100%; object-fit: cover; border-radius: var(--r); }
.facts { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.facts li { display: grid; gap: .35rem; align-content: start; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.facts strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.25; margin-bottom: .15rem; }
.ico { width: 44px; height: 44px; }
.reviews { margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.reviews .swipe { padding-inline: 0; }
.reviews-lead { margin-bottom: .8rem; }
.themes > li { max-width: 15rem; padding: .85rem 1rem; border-radius: var(--r); background: var(--card); border-left: 3px solid var(--red); font: 500 1.08rem/1.3 var(--f-head); color: var(--navy); }
@media (min-width: 64rem) {
  .proof-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
  .proof-pic { display: block; }
  .proof-pic img { aspect-ratio: 4 / 5; }
  .themes { flex-wrap: wrap; overflow: visible; }
}

/* ===== Home: make it yours ===== */
.yours-grid { display: grid; gap: 1.8rem; }
.yours-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%; border-radius: var(--r); }
.swatches { display: flex; gap: .6rem; list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; }
.swatches li { width: 4.2rem; }
.yours .btns { gap: 1.2rem; }
@media (min-width: 64rem) {
  .yours-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .yours-pic img { aspect-ratio: 4 / 5; }
}

/* ===== The closing band (visit / call) ===== */
.visit, .band { position: relative; background: var(--paper-2); text-align: left; }
.band-roof { position: absolute; top: calc(-1 * clamp(40px, 5vw, 66px)); left: 0; width: 100%; height: clamp(46px, 5.5vw, 76px); object-fit: cover; object-position: right bottom; pointer-events: none; }
.visit-in h2, .band-in h2 { max-width: 20ch; }
.visit address { margin-top: 1.2rem; font-style: normal; font-size: .92rem; color: var(--muted); }
.band-in > p { color: var(--muted); max-width: 36rem; }

/* ===== Footer ===== */
.foot { position: relative; margin-top: 0; padding: 2.6rem 0 1.4rem; background: var(--card); border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; gap: 1.6rem 2rem; grid-template-columns: 1fr 1fr; }
.foot-who { grid-column: 1 / -1; }
.foot-who p { color: var(--muted); max-width: 26rem; }
.foot-logo { width: 190px; height: auto; margin-bottom: .8rem; }
.foot-h { font: 600 .78rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); margin: 0 0 .6rem; }
.foot-big { font: 500 1.4rem var(--f-head); text-decoration: none; }
.foot address { font-style: normal; margin-top: .6rem; color: var(--muted); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-grid > div:nth-child(2) { grid-column: 1 / -1; }
.foot-base { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .84rem; color: var(--muted); }
.foot-base p { margin: 0; }
.credit { margin-left: auto !important; }
.credit a { color: var(--muted); text-decoration: none; }
.credit a:hover { color: var(--navy); text-decoration: underline; }
@media (min-width: 48rem) {
  .foot-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
  .foot-who, .foot-grid > div:nth-child(2) { grid-column: auto; }
}

/* ===== Inner pages: heads and heroes ===== */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: inherit; }
.page-head { background: var(--card); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.jump { margin: 0; }
.page-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(70svh, 38rem); color: #fff; background: var(--navy-d); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(23 21 63 / .93), rgb(23 21 63 / .55) 50%, rgb(23 21 63 / .1)); }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-in { padding-block: 6rem 2.4rem; }
.page-hero h1 { color: #fff; max-width: 17ch; }
.page-hero .lead { color: rgb(255 255 255 / .88); }
.page-hero .crumbs { color: rgb(255 255 255 / .8); }
.page-hero-drawn { background: var(--card); color: var(--ink); min-height: 0; align-items: start; }
.page-hero-drawn .page-hero-media { position: relative; inset: auto; z-index: 0; padding: 1.2rem var(--gut) 0; max-width: 40rem; margin-inline: auto; width: 100%; }
.page-hero-drawn .page-hero-media::after { display: none; }
.page-hero-drawn .page-hero-img { height: auto; object-fit: contain; }
.page-hero-drawn .page-hero-in { padding-top: 1rem; }
.page-hero-drawn h1 { color: var(--navy); }
.page-hero-drawn .lead, .page-hero-drawn .crumbs { color: var(--muted); }
@media (min-width: 64rem) {
  .page-hero-media::after { background: linear-gradient(100deg, rgb(23 21 63 / .9), rgb(23 21 63 / .5) 50%, rgb(23 21 63 / .05)); }
  .page-hero-in { padding-block: 8rem 4rem; }
  .page-hero-drawn { grid-template-columns: 1fr 1fr; align-items: center; }
  .page-hero-drawn .page-hero-media { order: 2; padding: 3rem var(--gut) 3rem 0; }
  .page-hero-drawn .page-hero-in { padding: 4rem 0 4rem max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); max-width: none; }
}

.intro-grid { display: grid; gap: 2rem; }
.prose p, .prose li { max-width: 40rem; }
.prose h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.keyfacts { margin: 0; display: grid; gap: 0; align-self: start; background: var(--card); border-radius: var(--r); padding: .4rem 1.2rem; box-shadow: 0 1px 0 var(--line); }
.keyfacts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.keyfacts div:last-child { border-bottom: 0; }
.keyfacts dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-d); padding-top: .2rem; }
.keyfacts dd { margin: 0; color: var(--navy); font-weight: 500; }
@media (min-width: 64rem) { .intro-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }

/* ===== Range pages: designs drawn to scale ===== */
.designs { background: var(--card); }
.designs h2 { max-width: 22ch; }
.designs-lead { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.scale svg { width: 90px; }
.filter { border: 0; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.filter label, .fit-chip, .pick { position: relative; display: inline-flex; }
.filter input, .pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.filter span, .pick span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .92rem; font-weight: 500; color: var(--navy); }
.filter input:checked + span, .pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pick input:checked + span::before { content: "✓ "; white-space: pre; }
.filter input:focus-visible + span, .pick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.design-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 15rem), 1fr)); gap: 1.4rem 1rem; }
.design { display: flex; flex-direction: column; padding: .6rem .7rem .9rem; border-radius: var(--r); background: var(--paper); }
.design svg { width: 100%; }
.design h3 { font-size: 1.15rem; margin: .5rem 0 .15rem; }
.design-m { font-size: .86rem; color: var(--muted); margin: 0 0 .5rem; }
.design-try { margin-top: auto; font-size: .86rem; font-weight: 600; }
.tag { display: inline-block; vertical-align: middle; margin-left: .25rem; padding: .1rem .45rem; border-radius: 3px; background: var(--red); color: #fff; font: 600 .65rem/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.designs:has(#f-1:checked) .design:not([data-bed="1"]),
.designs:has(#f-2:checked) .design:not([data-bed="2"]),
.designs:has(#f-3:checked) .design:not([data-bed="3"]),
.designs:has(#f-4:checked) .design:not([data-bed="4"]),
.designs:has(#f-5:checked) .design:not([data-bed="5"]),
.designs:has(#f-studio:checked) .design:not([data-bed="studio"]),
.designs:has(#f-two-1-bed:checked) .design:not([data-bed="two-1-bed"]),
.designs:has(#f-office:checked) .design:not([data-bed="office"]),
.designs:has(#f-lunch-room:checked) .design:not([data-bed="lunch-room"]) { display: none; }

.related { background: var(--paper); }
.related .swipe { padding-inline: 0; }
.rel-row > li { width: 78%; max-width: 22rem; }
.rel-card { display: block; color: inherit; text-decoration: none; }
.rel-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.rel-card span { display: block; padding-top: .7rem; font-size: .92rem; color: var(--muted); }
.rel-card strong { display: block; font: 500 1.2rem var(--f-head); color: var(--navy); }
.faq-mini { background: var(--card); }
.faq-mini-in, .faq-in { max-width: 48rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font: 500 1.2rem/1.3 var(--f-head); color: var(--navy); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--f-body); color: var(--red); transition: transform .25s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); max-width: 42rem; }

/* ===== Our work ===== */
.projects { padding-top: 2.4rem !important; }
.proj { display: grid; gap: 1.2rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.proj-main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.proj-more { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.proj-more img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.proj-txt h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); margin-bottom: .3rem; }
.proj-m { font-weight: 600; color: var(--navy); }
.proj-txt > p:not(.eyebrow):not(.proj-m) { color: var(--muted); }
@media (min-width: 64rem) {
  .proj { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; padding-block: 3rem; }
  .proj:nth-child(even) .proj-pics { order: 2; }
}
.rooms { background: var(--card); }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab-r { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tab-l { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.7rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 500; font-size: .95rem; cursor: pointer; }
.tab-l span { font-size: .78rem; color: var(--muted); }
.tab-r:checked + .tab-l { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-r:checked + .tab-l span { color: rgb(255 255 255 / .75); }
.tab-r:focus-visible + .tab-l { outline: 3px solid var(--red); outline-offset: 2px; }
.tab-p { display: none; flex-basis: 100%; margin-top: 1.2rem; }
#room-outside:checked ~ #panel-outside, #room-kitchens:checked ~ #panel-kitchens, #room-bathrooms:checked ~ #panel-bathrooms,
#room-living:checked ~ #panel-living, #room-yard:checked ~ #panel-yard { display: block; }
@media (prefers-reduced-motion: no-preference) { .tab-p { animation: fade-in .35s ease; } }
.room-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.room-grid figure { margin: 0; }
.room-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.room-grid figcaption { padding-top: .4rem; font-size: .82rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 48rem) { .room-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.rooms-note { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }

/* ===== Interior design: the finishes library ===== */
.steps-nav { list-style: none; margin: 1.6rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.steps-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.7rem; padding: 0 1rem 0 .4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 500; font-size: .95rem; }
.steps-nav span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; }
.shortlist-hint { font-size: .95rem; color: var(--muted); }
.fin-alt { background: var(--card); }
.fin-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.fin-head .eyebrow { margin-bottom: .4rem; }
.fin-n { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1.5px solid var(--navy); border-radius: 50%; font: 500 1.4rem var(--f-head); color: var(--navy); }
.fin-lead { color: var(--muted); max-width: 44rem; }
.sw-grid { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 10.5rem), 1fr)); gap: 1rem; }
.sw-l { position: relative; display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: .6rem; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 0 var(--line); cursor: pointer; transition: box-shadow .2s ease; }
.fin-alt .sw-l { background: var(--paper); }
.sw-l:has(input:checked) { box-shadow: 0 0 0 2px var(--navy); }
.sw-l:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.sw-l input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-n { font-weight: 500; font-size: .92rem; line-height: 1.3; color: var(--navy); }
.sw-n small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sw-pick { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.2rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.sw-l input:checked ~ .sw-pick { background: var(--navy); border-color: var(--navy); color: #fff; }
.sw-l input:checked ~ .sw-pick::before { content: "✓ "; white-space: pre; }
.all-list { margin: .4rem 0 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.all-list summary { padding: 1rem 0; cursor: pointer; font-weight: 600; color: var(--navy); }
.all-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem 2rem; font-size: .92rem; }
.all-cols h4 { margin: 0 0 .3rem; font: 600 .78rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--red-d); }
.all-cols ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.fin-sub h3 { margin-bottom: .3rem; }
.fin-sub p { color: var(--muted); }
.picks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fin-split { display: grid; gap: 1.6rem; align-items: center; }
.fin-art svg { width: 100%; max-width: 32rem; }
.fin-split p { color: var(--muted); max-width: 36rem; }
@media (min-width: 64rem) {
  .fin-split { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .fin-flip .fin-art { order: 2; }
}
.fin-help { background: var(--paper-2); }
.fin-help-in h2 { max-width: 20ch; }
.fin-help-in > p { color: var(--muted); }

/* ===== Who we are ===== */
.guarantee { background: var(--card); }
.g-lead { color: var(--muted); }
.g-grid { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.g-grid li { padding-top: 1rem; border-top: 1px solid var(--line); }
.g-grid h3 { margin: .7rem 0 .4rem; font-size: 1.25rem; }
.g-grid p { color: var(--muted); font-size: .96rem; }
.notice-grid { display: grid; gap: 1.8rem; align-items: center; }
.notice-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.notice p { color: var(--muted); max-width: 36rem; }
@media (min-width: 64rem) { .notice-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.partners { background: var(--card); }
.partner-list { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .2rem 2rem; }
.partner-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.partner-list strong { color: var(--navy); }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 2.4rem; }
.contact-ways { display: grid; gap: .8rem; align-content: start; }
.way { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 0 var(--line); text-decoration: none; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.way small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-d); font-weight: 600; }
.way-call { background: var(--red); color: #fff; font: 500 1.6rem var(--f-head); }
.way-call small { color: rgb(255 255 255 / .85); font-family: var(--f-body); }
.way-call:hover { background: var(--red-d); color: #fff; }
.way-call .i { width: 1.6rem; height: 1.6rem; }
.way-addr { flex-direction: column; align-items: flex-start; font-weight: 500; }
.contact-note { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.contact-form { padding: 1.4rem; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 14px 36px rgb(23 21 63 / .08); }
.contact-form h2 { font-size: 1.8rem; }
@media (min-width: 64rem) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } .contact-form { padding: 2rem; } }

/* ===== Forms ===== */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid #b9b0a0; border-radius: var(--r); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgb(209 26 36 / .35); outline-offset: 0; border-color: var(--navy); }
.form-small { margin: 0; font-size: .82rem; color: var(--muted); }
.next { margin: 1.2rem 0 0; padding: 1rem 0 0 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.5; color: var(--muted); }
.next li + li { margin-top: .25rem; }

/* ===== Privacy, 404 and thanks ===== */
.prose-page .prose h2 { margin-top: 1.6rem; font-size: 1.5rem; }
.nf-in { display: grid; gap: 2rem; align-items: center; }
.nf-art svg { width: 100%; max-width: 30rem; }
.nf-links { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.thanks-roof { max-height: 8rem; }
@media (min-width: 64rem) { .nf-in { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ===== Quote drawer (library: sections/quote-drawer), restyled ===== */
.qd { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: min(90dvh, 48rem);
  padding: 1.6rem clamp(1rem, 5vw, 1.6rem) calc(1.4rem + env(safe-area-inset-bottom)); border: 0; border-radius: 14px 14px 0 0;
  background: var(--qd-bg); color: var(--qd-ink); box-shadow: 0 -12px 40px rgb(23 21 63 / .3); overflow: auto; overscroll-behavior: contain; }
.qd::before { content: ""; position: absolute; top: .6rem; left: 50%; width: 2.6rem; height: .28rem; margin-left: -1.3rem; border-radius: 99px; background: currentColor; opacity: .2; }
.qd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0 0 .4rem; }
.qd-title { margin: 0; font-size: 1.6rem; }
.qd-lead { color: var(--muted); font-size: .95rem; }
.qd-close { flex: none; min-width: 2.8rem; min-height: 2.8rem; padding: 0 .9rem; border: 1px solid currentColor; border-radius: var(--r); background: transparent; color: var(--navy); font: 600 .9rem var(--f-body); cursor: pointer; }
.qd :focus-visible { outline: 3px solid var(--qd-accent); outline-offset: 2px; }
.qd::backdrop { background: rgb(0 0 0 / 0); }
@supports selector(:popover-open) {
  .qd:popover-open::backdrop { background: rgb(23 21 63 / .45); }
  @media (prefers-reduced-motion: no-preference) {
    .qd { translate: 0 100%; transition: translate var(--qd-time) cubic-bezier(.2, .9, .25, 1), overlay var(--qd-time) allow-discrete, display var(--qd-time) allow-discrete; }
    .qd:popover-open { translate: 0 0; }
    @starting-style { .qd:popover-open { translate: 0 100%; } }
    .qd::backdrop { transition: background-color var(--qd-time) ease, overlay var(--qd-time) allow-discrete, display var(--qd-time) allow-discrete; }
    @starting-style { .qd:popover-open::backdrop { background: rgb(0 0 0 / 0); } }
  }
}
@media (min-width: 48rem) {
  .qd { inset: auto 1.5rem 1.5rem auto; width: min(28rem, calc(100vw - 3rem)); max-height: min(86vh, 46rem); border-radius: 12px; box-shadow: 0 18px 50px rgb(23 21 63 / .3); }
  .qd::before { display: none; }
  @supports selector(:popover-open) { @media (prefers-reduced-motion: no-preference) {
    .qd { translate: 0 1.5rem; opacity: 0; transition: translate var(--qd-time) cubic-bezier(.2, .9, .25, 1), opacity var(--qd-time) ease, overlay var(--qd-time) allow-discrete, display var(--qd-time) allow-discrete; }
    .qd:popover-open { translate: 0 0; opacity: 1; }
    @starting-style { .qd:popover-open { translate: 0 1.5rem; opacity: 0; } }
  } }
}
@supports not selector(:popover-open) {
  .qd { position: static; max-height: none; border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); margin: 2rem auto; max-width: 40rem; }
  .qd::before, .qd-close { display: none; }
  .menu { position: static; box-shadow: none; }
}
@media print { .qd, .cb-foot, .pl { display: none; } .cb-head { position: static; } }

/* ===== Quote carry (library: builders/quote-carry), restyled ===== */
.carry-summary { margin: 0 0 .4rem; padding: .9rem 1rem 1rem; border-radius: var(--r); border: 1px solid var(--line); border-left: 4px solid var(--carry-accent); background: var(--paper); }
.carry-summary[hidden] { display: none; }
.carry-title { margin: 0 0 .5rem; font-weight: 700; color: var(--navy); }
.carry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.carry-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; align-items: baseline; }
.carry-label { grid-column: 1; font-size: .8rem; color: var(--muted); }
.carry-value { grid-column: 1; font-weight: 600; overflow-wrap: anywhere; }
.carry-remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 2.4rem; padding: .3rem .7rem; font: inherit; font-size: .82rem; color: var(--navy); background: transparent; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; }
.carry-sent { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); }
.carry-count { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; margin-left: .4em; padding: 0 .3em; border-radius: 999px; font-size: .8em; font-weight: 700; background: #fff; color: var(--red-d); }
.btn-ghost .carry-count, .link-btn .carry-count { background: var(--red); color: #fff; }
.carry-count[hidden] { display: none; }

/* ===== Photo carry (library: animations/photo-carry): range card -> range page ===== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .pc-1 { view-transition-name: pc-1; } .pc-2 { view-transition-name: pc-2; } .pc-3 { view-transition-name: pc-3; } .pc-4 { view-transition-name: pc-4; }
  :is(.pc-1, .pc-2, .pc-3, .pc-4) { view-transition-class: pc; }
  ::view-transition-group(.pc) { animation-duration: var(--pc-time); animation-timing-function: cubic-bezier(.3, .1, .2, 1); z-index: 2; }
  ::view-transition-old(.pc), ::view-transition-new(.pc) { width: 100%; height: 100%; object-fit: cover; animation-duration: var(--pc-time); }
}

/* ===== Arriving as you scroll (site.js adds .rv to what is below the first screen) ===== */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  html.js .rv.in { opacity: 1; transform: none; }
}
