/* Clearview Windows: tokens, type, layout, header, footer.
   Design language (Mitchell, 2026-11-26, modelled on nsshome.co and made Clearview's own): a clear header over a
   dark photo, serif headlines with a light sans, small tracked labels, pill buttons, dark and off-white sections
   in turn. Navy and royal blue; the logo's arch on photos. One spacing scale (8 px base), one content width. */
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-wght-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* spacing scale */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  /* layout */
  --wrap: 77.5rem; /* 1240 px */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --sec-y: clamp(3.5rem, 7.5vw, 6.5rem);
  --hdr: 5.5rem;
  --ease: cubic-bezier(0.6, 0.05, 0.2, 1);
  /* colour */
  --navy-950: #050c18; --navy-900: #08142a; --navy-800: #0d1f3d; --navy: #0b1730;
  --blue: #2466ff; --blue-deep: #1a4fd6; --sky: #a9c4ff;
  --paper: #f6f8fb; --white: #fff;
  --bg: var(--white); --surface: var(--white); --ink: var(--navy); --muted: #4d5b72; --line: #dfe5ee; --accent: var(--blue); --accent-text: var(--blue-deep);
  /* shape */
  --r-btn: 999px; --r-card: 0.5rem; --r-field: 0.375rem; --r-photo: 0.5rem;
  --arch: 999px 999px var(--r-photo) var(--r-photo);
  /* type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .1 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
/* Anything on a dark ground flips its ink through these tokens. */
.dark { --bg: var(--navy-900); --surface: rgba(255, 255, 255, 0.05); --ink: #f4f6fb; --muted: #b9c5d9; --line: rgba(255, 255, 255, 0.16); --accent-text: var(--sky); background-color: var(--navy-900); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 1rem); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Type: serif headlines at regular weight, light sans for reading, small tracked labels */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
.h1 { font-size: clamp(2.25rem, 1.45rem + 3.1vw, 3.75rem); line-height: 1.12; }
.h1--page { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.14; }
.h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.2; }
.h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; }
.h1 em, .h2 em, .lede em { font-family: var(--font-display); font-style: italic; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.label, .eyebrow { font: 500 0.8125rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.fine a, .prose a, .faq__a a, .starter__hint a, .band__alt a { text-decoration: underline; text-underline-offset: 0.18em; }

/* Icons: one set, one grid, a thin line */
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 2.25rem; height: 2.25rem; stroke-width: 1.1; color: var(--accent-text); }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec-y); }
.sec--alt { background: var(--paper) var(--grain); }
.sec.dark { background: var(--navy-900) var(--grain-light); }
.sec__head { display: grid; gap: var(--s2); margin-bottom: var(--s5); max-width: 46rem; }
.sec__head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.sec__head--split { max-width: none; grid-template-columns: 1fr 1fr; gap: var(--s3) clamp(2rem, 6vw, 5rem); align-items: start; }
.stack { display: grid; gap: var(--s3); justify-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) clamp(2rem, 6vw, 5rem); }
.two > div { display: grid; gap: var(--s4); align-content: start; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s5) clamp(2rem, 6vw, 5rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split--head { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.split--head .split__body { align-content: start; padding-top: var(--s2); }
.split__body { display: grid; gap: var(--s3); justify-items: start; align-content: center; }
.split__body > p:not(.lede, .label, .eyebrow) { color: var(--muted); max-width: 36em; }
.split__body > .starter { margin-top: var(--s1); }
/* A heading on the left, its content on the right */
.aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: var(--s4) clamp(2rem, 6vw, 5rem); align-items: start; }
.aside__head { display: grid; gap: var(--s3); justify-items: start; }
.aside__head--stick { position: sticky; top: calc(var(--hdr) + var(--s3)); }

/* Page head: every page opens on navy, so the clear header always sits on a dark ground */
.pagehead { padding-top: calc(var(--hdr) + clamp(2rem, 5vw, 4rem)); background-color: var(--navy-900); background-image: var(--grain-light), linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.pagehead--photo { position: relative; isolation: isolate; padding-bottom: clamp(3rem, 6vw, 5rem); }
.pagehead--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; --wash: linear-gradient(90deg, rgba(5, 12, 24, 0.94), rgba(5, 12, 24, 0.8) 55%, rgba(8, 20, 42, 0.62)); background: var(--wash), var(--photo) center 35% / cover; }
.pagehead .crumbs { margin-bottom: var(--s1); }

/* Buttons: pills with small tracked capitals */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.75rem 1.75rem; font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; border-radius: var(--r-btn); transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.btn--lg { min-height: 3.375rem; padding-inline: 2.1rem; font-size: 0.875rem; }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.4rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .icon { width: 1.05rem; height: 1.05rem; transition: transform 0.25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.more .icon { color: var(--accent-text); transition: transform 0.25s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.more:hover .icon { transform: translateX(4px); }
.linkbtn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; text-align: left; }

/* Header: clear over the dark top of every page; a plain white bar once the page scrolls */
.skip { position: absolute; left: var(--s2); top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: #fff; color: var(--navy); border-radius: var(--r-btn); }
.skip:focus { top: var(--s1); }
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); color: #fff; --ink: #fff; --muted: rgba(255, 255, 255, 0.72); --line: rgba(255, 255, 255, 0.18); --accent-text: var(--sky); border-bottom: 1px solid transparent; transition: background-color 0.3s, color 0.3s, border-color 0.3s, height 0.3s; }
.hdr[data-stuck] { height: 4.5rem; background: #fff; color: var(--navy); --ink: var(--navy); --muted: #4d5b72; --line: #dfe5ee; --accent-text: var(--blue-deep); border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: var(--s4); height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; flex: none; min-height: 2.75rem; }
.mark { width: 2.1rem; height: 2.3rem; flex: none; }
.mark__frame { fill: var(--blue); }
.mark__glass { fill: var(--navy-800); }
.mark__swipe, .mark__spark { fill: #fff; }
.mark__spark { stroke: var(--blue); stroke-width: 18; stroke-linejoin: round; }
.brand__word { display: grid; gap: 0.2rem; font: 400 1.5rem/0.95 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__word span { font: 500 0.625rem/1 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: var(--s2); }
.nav__list { display: flex; align-items: center; gap: 0.25rem; font-size: 0.9375rem; }
.nav__list > li > a, .nav__toggle { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.85rem; background: linear-gradient(currentColor, currentColor) no-repeat 0.85rem calc(100% - 0.3rem) / 0 1px; transition: background-size 0.3s var(--ease); }
.nav__list > li > a:hover, .nav__toggle:hover, .nav__toggle[aria-expanded="true"], .nav__list > li > a[aria-current] { background-size: calc(100% - 1.7rem) 1px; }
.nav__group { position: relative; }
.nav__toggle .icon { width: 0.95rem; height: 0.95rem; transition: transform 0.2s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 14rem; padding: var(--s1); background: #fff; color: var(--navy); border: 1px solid #dfe5ee; border-radius: var(--r-card); box-shadow: 0 24px 48px -20px rgba(5, 12, 24, 0.45); display: none; }
.nav__sub::before { content: ""; position: absolute; inset: -0.6rem 0 auto 0; height: 0.6rem; }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub, .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a { display: flex; padding: 0.6rem 0.8rem; border-radius: 0.25rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--paper); color: var(--blue-deep); }
.hdr__act { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.02em; white-space: nowrap; }
.hdr__phone .icon { color: var(--accent-text); }
.hdr__phone:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.hdr__sound { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 50%; color: var(--muted); transition: color 0.2s; }
.hdr__sound:hover, .hdr__sound[aria-pressed="true"] { color: var(--ink); }
.hdr__sound .icon { width: 1.35rem; height: 1.35rem; }
.hdr__sound[aria-pressed="true"] .icon:last-child, .hdr__sound[aria-pressed="false"] .icon:first-child { display: none; }
.hdr__menu { display: none; width: 2.75rem; height: 2.75rem; place-items: center; }
.hdr__menu .icon { width: 1.75rem; height: 1.75rem; stroke-width: 1.3; }
.hdr__menu .icon:last-child, .hdr__menu[aria-expanded="true"] .icon:first-child { display: none; }
.hdr__menu[aria-expanded="true"] .icon:last-child { display: block; }
.hdr:has(.hdr__menu[aria-expanded="true"]) { background: var(--navy-950); color: #fff; --ink: #fff; --muted: rgba(255, 255, 255, 0.72); border-bottom-color: transparent; }
.menu { position: fixed; inset: 0; padding-top: var(--hdr); background: var(--navy-950) var(--grain-light); color: #fff; --ink: #fff; --line: rgba(255, 255, 255, 0.16); --accent-text: var(--sky); overflow-y: auto; z-index: -1; }
.menu__in { display: grid; gap: var(--s2); padding-block: var(--s4) var(--s7); }
.menu__list { display: grid; margin-bottom: var(--s2); }
.menu__list a { display: flex; padding: 0.7rem 0; font: 400 1.625rem/1.25 var(--font-display); border-bottom: 1px solid var(--line); }
.menu__phone { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-weight: 500; font-size: 1.125rem; }
.menu__phone .icon { color: var(--sky); }
@media (max-width: 76rem) { .nav { margin-left: 0; } .nav__list > li > a, .nav__toggle { padding-inline: 0.6rem; background-position-x: 0.6rem; } .nav__list > li > a:hover, .nav__toggle:hover, .nav__list > li > a[aria-current] { background-size: calc(100% - 1.2rem) 1px; } .hdr__in { gap: var(--s2); } .hdr__act { gap: var(--s2); } }
@media (max-width: 66rem) { .nav { display: none; } .hdr__menu { display: grid; } }
@media (max-width: 30rem) { :root { --hdr: 4.5rem; } .hdr[data-stuck] { height: 4rem; } .hdr__phone, .hdr .btn--sm { display: none; } .brand__word { font-size: 1.375rem; } .mark { width: 1.9rem; height: 2.05rem; } .hdr__menu { margin-right: -0.5rem; } }

/* Footer */
.ftr { background: var(--navy-950) var(--grain-light); padding-top: var(--sec-y); font-size: 0.9375rem; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: var(--s5) var(--s4); }
.ftr__grid > div { display: grid; gap: var(--s2); align-content: start; }
.ftr__brand p { color: var(--muted); max-width: 22rem; }
.ftr__list { display: grid; gap: 0.1rem; }
.ftr__list a { display: inline-block; padding-block: 0.3rem; }
.ftr__list a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.ftr__mail { overflow-wrap: anywhere; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 0.25rem var(--s3); }
.ftr__links a:hover, .strip__links a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.ftr__base { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s6); padding-block: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.hours { display: grid; gap: 0.35rem; }
.hours > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s2); }
.hours dt { color: var(--muted); }
.hours--lg { gap: 0; font-size: 1.0625rem; }
.hours--lg > div { grid-template-columns: 1fr auto; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.hours--lg dt { color: var(--ink); font-weight: 500; }
.strip { border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.strip__in { display: flex; justify-content: space-between; gap: var(--s2); padding-block: 0.75rem; }
.strip a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.strip__links { display: flex; gap: var(--s3); }

/* Phone action bar */
.bar { display: none; }
@media (max-width: 44.99rem) {
  .bar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.5fr; background: var(--navy-950); color: #fff; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -12px rgba(5, 12, 24, 0.6); }
  .bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.5rem; font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; border-right: 1px solid rgba(255, 255, 255, 0.14); }
  .bar__main { background: var(--blue); border: 0; }
  body:has(.bar) .ftr { padding-bottom: 3.5rem; }
}

/* First-visit invite */
.invite { width: min(26rem, calc(100% - 2rem)); padding: var(--s4); border: 0; border-radius: 0.75rem; background: #fff; color: var(--navy); text-align: center; box-shadow: 0 40px 80px -30px rgba(5, 12, 24, 0.7); --ink: var(--navy); --muted: #4d5b72; --accent-text: #1a4fd6; }
.invite::backdrop { background: rgba(5, 12, 24, 0.66); backdrop-filter: blur(3px); }
.invite { height: fit-content; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.invite[open] { display: grid; gap: var(--s2); justify-items: center; align-content: start; }
.invite > form:first-child { display: contents; }
.invite__close { position: absolute; top: var(--s2); right: var(--s2); width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.invite h2 { font-size: 1.625rem; }
.invite h2:focus { outline: 0; }
.invite__lede { color: var(--muted); font-size: 0.9375rem; max-width: 20rem; }
.invite__window { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(17rem, 100%); aspect-ratio: 4 / 4.4; padding: 6px; background: var(--navy) var(--view, none) 55% 28% / 250%; border-radius: 999px 999px 0.5rem 0.5rem; clip-path: inset(0 round 999px 999px 0.5rem 0.5rem); touch-action: none; }
.invite__window::after { content: ""; position: absolute; inset: 0; border: 6px solid var(--navy); border-radius: 999px 999px 0.5rem 0.5rem; pointer-events: none; }
.invite__pane { position: relative; background: transparent; overflow: hidden; outline-offset: -3px; box-shadow: 0 0 0 6px var(--navy); }
.invite__pane::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(120, 104, 80, 0.5), transparent 45%), radial-gradient(circle at 75% 70%, rgba(90, 100, 110, 0.55), transparent 50%), rgba(205, 214, 222, 0.82); backdrop-filter: blur(6px); transition: clip-path 0.5s var(--ease); clip-path: inset(0); }
.invite__pane[aria-pressed="true"]::before { clip-path: inset(100% 0 0 0); }
/* With the canvas running, the dirt is painted, not a flat haze, and the pointer is a squeegee. */
.invite__window.is-live { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect x='3' y='4' width='30' height='5' rx='1.5' fill='%230b1730'/%3E%3Crect x='3' y='9' width='30' height='2' fill='%23a9c4ff'/%3E%3Crect x='15.5' y='11' width='5' height='20' rx='2.5' fill='%232466ff' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") 18 9, grab; }
.invite__window.is-live .invite__pane { cursor: inherit; z-index: 1; }
.invite__window.is-live .invite__pane::before { display: none; }
.invite__dirt { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.5s; }
.invite__window.is-clear .invite__dirt { opacity: 0; }
.invite__blade { position: absolute; z-index: 2; height: 9px; background: linear-gradient(#0b1730 0 60%, #a9c4ff 60%); border-radius: 2px; box-shadow: 0 3px 6px rgba(5, 12, 24, 0.35); pointer-events: none; }
.invite__window.is-clear::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%); background-size: 260% 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .invite__window.is-clear::before { animation: glint 1s var(--ease) 0.15s both; } }
@media (prefers-reduced-motion: reduce) { .invite__window.is-clear::before { display: none; } }
@keyframes glint { from { background-position: 130% 0; } to { background-position: -60% 0; opacity: 0; } }
.invite__count { font: 500 0.75rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.invite__go { width: 100%; }
.invite__go[aria-disabled="true"] { background: #d5dcea; color: #4d5b72; box-shadow: none; pointer-events: none; }
.invite__skip { font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; padding: 0.4rem; }
/* Desktop: a wide card, the words on the left and the window on the right */
@media (min-width: 52rem) {
  .invite { width: min(52rem, calc(100% - 4rem)); padding: var(--s6) var(--s6) var(--s5); text-align: left; }
  .invite[open] { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s6); row-gap: var(--s2); justify-items: start; align-items: start; }
  .invite > * { grid-column: 1; }
  .invite__window { grid-column: 2; grid-row: 1 / span 6; align-self: center; width: 20rem; }
  .invite h2 { font-size: 2.5rem; line-height: 1.12; }
  .invite__lede { font-size: 1.0625rem; max-width: 24rem; }
  .invite__go { width: auto; margin-top: var(--s2); }
  .invite__skip { padding-left: 0; }
}

@media (max-width: 56rem) {
  .two, .split, .split--head, .aside, .sec__head--split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .sec__head--row { grid-template-columns: 1fr; }
  .aside__head--stick { position: static; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) { .strip__in > p:first-child, .strip__links a[href^="tel:"] { display: none; } .strip__in { justify-content: center; } .ftr__grid { gap: var(--s4) var(--s3); } .ftr__grid > div:last-child { grid-column: 1 / -1; } .ftr__base { flex-direction: column; } }

/* Sections and components. Spacing comes from the scale in base.css; no one-off values. */

/* Photo frames. The haze + blade are the site's one signature motion: glass wiped clear. */
.frame { display: grid; gap: 0.75rem; align-content: start; }
.frame__glass { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); border-radius: var(--r-photo); }
.frame--arch .frame__glass { border-radius: var(--arch); }
.frame__glass picture, .frame__glass img, .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.frame__haze, .frame__blade { display: none; position: absolute; left: 0; right: 0; pointer-events: none; }
.frame__haze { top: 0; bottom: 0; background: linear-gradient(160deg, rgba(214, 226, 240, 0.7), rgba(170, 186, 204, 0.55)); backdrop-filter: blur(10px) saturate(0.6); }
.frame__blade { top: 0; height: 2px; background: var(--blue); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
@keyframes wipe { from { clip-path: inset(0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes blade { 0% { top: 0; opacity: 1; } 96% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sec [data-wipe] .frame__haze { display: block; animation: wipe linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
    .sec [data-wipe] .frame__blade { display: block; animation: blade linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
  }
}
.photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-800); border-radius: var(--r-photo); }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--arch { border-radius: var(--arch); }
.dark .photo { box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8); }
.split__media { width: 100%; max-width: 30rem; justify-self: center; }

/* Hero: a real job photo edge to edge under a navy wash, the quote card on the right, facts along the foot */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; gap: var(--s5); min-height: min(100svh, 54rem); padding-top: calc(var(--hdr) + var(--s4)); padding-bottom: var(--s4); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 12, 24, 0.9) 0%, rgba(5, 12, 24, 0.72) 34%, rgba(8, 20, 42, 0.28) 66%, rgba(8, 20, 42, 0.34) 100%), linear-gradient(180deg, rgba(5, 12, 24, 0.62) 0%, rgba(5, 12, 24, 0) 24%, rgba(5, 12, 24, 0) 62%, rgba(5, 12, 24, 0.9) 100%); }
.hero .starter { justify-self: end; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s5) clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: var(--s3); justify-items: start; }
.hero__copy .eyebrow { color: #fff; }
.hero__sub { font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.5; max-width: 28em; }
.hero__copy p:not(.eyebrow, .hero__sub) { color: var(--muted); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.facts__list { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--s1) var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); font: 500 0.6875rem/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts__list li { display: flex; align-items: center; gap: 0.6rem; }
.facts__list .icon { width: 1rem; height: 1rem; color: var(--sky); }

.hero + .sec.dark { padding-top: clamp(3rem, 5vw, 4rem); }

/* The quote card: the pane counter that starts every estimate */
.starter { display: grid; gap: var(--s2); width: 100%; max-width: 27rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; color: var(--navy); border-radius: 0.75rem; box-shadow: 0 40px 80px -40px rgba(5, 12, 24, 0.75); --ink: var(--navy); --muted: #4d5b72; --line: #dfe5ee; --accent-text: var(--blue-deep); }
.starter__title { font: 400 1.625rem/1.2 var(--font-display); letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
.starter__sub { text-align: center; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin-bottom: var(--s1); }
.starter__label { font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.starter__row { display: grid; gap: var(--s2); }
.starter__hint { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); text-align: center; }
.starter--inline { max-width: 30rem; box-shadow: 0 30px 60px -36px rgba(5, 12, 24, 0.7); }
.starter--inline .starter__row { grid-template-columns: auto 1fr; }
.starter--inline .starter__hint { text-align: left; }
.sec:not(.dark) .starter, .starter--line { border: 1px solid var(--line); box-shadow: none; }
.stepper { display: grid; grid-template-columns: 3.25rem 1fr 3.25rem; height: 3.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-field); overflow: hidden; }
.starter--inline .stepper { grid-template-columns: 3rem 4.25rem 3rem; height: 3rem; }
.stepper__btn { font-size: 1.375rem; line-height: 1; display: grid; place-items: center; color: var(--navy); }
.stepper__btn:hover { background: #e9eef6; color: var(--blue-deep); }
.stepper__value { width: 100%; border: 0; border-inline: 1px solid var(--line); background: #fff; color: var(--navy); text-align: center; font: 400 1.5rem/1 var(--font-display); -moz-appearance: textfield; appearance: textfield; border-radius: 0; }
.stepper__value::-webkit-outer-spin-button, .stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Dark section with a real photo far behind the navy */
.sec--photo { position: relative; isolation: isolate; }
.sec--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; --wash: linear-gradient(rgba(8, 20, 42, 0.9), rgba(5, 12, 24, 0.94)); background: var(--wash), var(--photo) center / cover; }

/* Recent work on the home page: photo, a serif title, one plain line */
.projs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
.proj { display: grid; gap: var(--s2); align-content: start; }
.proj .frame__glass { aspect-ratio: 3 / 2; }
.proj p { color: var(--muted); max-width: 34em; }

/* Numbered rows on hairlines (the three steps) */
.pull { display: grid; gap: var(--s2); padding-left: var(--s3); border-left: 2px solid var(--accent); }
.pull blockquote { margin: 0; font: 400 clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem) / 1.45 var(--font-display); text-wrap: pretty; }
.pull figcaption { font: 500 0.8125rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.story__next { margin-top: var(--s3); color: var(--muted); max-width: 34em; }
.plist { border-top: 1px solid var(--line); counter-reset: p; }
.plist li { counter-increment: p; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.35rem var(--s2); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.plist li::before { content: counter(p) "."; font: 400 1.375rem/1.3 var(--font-display); color: var(--accent-text); }
.plist h3 { grid-column: 2; }
.plist p { grid-column: 2; color: var(--muted); max-width: 34em; }

/* Promises: thin icon, serif title, one line */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.promises li { display: grid; gap: var(--s2); align-content: start; }
.promises p { color: var(--muted); max-width: 22em; }
.promises--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Service cards: the photo is the card, the words sit on a navy fade */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.pcards > li { display: grid; }
.sec__foot { margin-top: var(--s4); }
.pcard { position: relative; isolation: isolate; display: grid; align-content: end; gap: 0.4rem; aspect-ratio: 4 / 3; padding: var(--s3); overflow: hidden; border-radius: var(--r-card); background: var(--navy-800); color: #fff; }
.pcard picture { position: absolute; inset: 0; z-index: -2; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 24, 0) 30%, rgba(5, 12, 24, 0.72) 68%, rgba(5, 12, 24, 0.92) 100%); }
.pcard p { color: #d5deee; font-size: 0.9375rem; line-height: 1.5; max-width: 30em; }
.pcard__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.875rem; font-weight: 500; }
.pcard__more .icon { width: 1.05rem; height: 1.05rem; color: var(--sky); transition: transform 0.25s var(--ease); }
.pcard:hover .pcard__more { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.pcard:hover .pcard__more .icon { transform: translateX(4px); }
@media (prefers-reduced-motion: no-preference) { .pcard:hover img { transform: scale(1.04); } }

/* Icon rows */
.rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--s3); row-gap: 0.35rem; padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.rows .icon { grid-row: span 2; margin-top: 0.1rem; }
.rows p { grid-column: 2; color: var(--muted); }
.rows--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s4); border-top: 0; }
.rows--3 li { grid-template-columns: 1fr; row-gap: var(--s1); padding-block: var(--s3) 0; border-bottom: 0; border-top: 1px solid var(--line); }
.rows--3 .icon { grid-row: auto; margin-bottom: var(--s1); }
.rows--3 p { grid-column: 1; }

.rows--plain li { grid-template-columns: 1fr; }
.rows--plain p { grid-column: 1; }

/* The running offer (set in the dashboard): a small card that can be dismissed */
.offer { position: fixed; left: 1rem; bottom: 1rem; z-index: 44; display: grid; gap: 0.35rem; justify-items: start; width: min(21rem, calc(100% - 2rem)); padding: 1.1rem 2.75rem 1.1rem 1.25rem; background: #fff; color: var(--navy); border-radius: 0.75rem; box-shadow: 0 30px 60px -24px rgba(5, 12, 24, 0.6), 0 0 0 1px rgba(11, 23, 48, 0.1); --ink: var(--navy); }
.offer__label { font: 600 0.6875rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-deep); }
.offer__title { font: 400 1.375rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.offer__body { font-size: 0.9375rem; line-height: 1.45; color: #4d5b72; }
.offer__ends { font-size: 0.8125rem; color: #4d5b72; }
.offer .btn { margin-top: 0.4rem; }
.offer__close { position: absolute; top: 0.4rem; right: 0.4rem; width: 2.5rem; height: 2.5rem; font-size: 1.4rem; line-height: 1; color: #4d5b72; border-radius: 50%; }
@media (max-width: 44.99rem) { .offer { left: 0.75rem; right: 0.75rem; bottom: 4.25rem; width: auto; } }

/* Steps: a real sequence, so it is numbered */
.steps { display: grid; gap: var(--s3); }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s3); align-items: start; }
.steps__n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-text); font: 400 1.125rem/1 var(--font-display); }
.steps li div { display: grid; gap: 0.35rem; }
.steps p { color: var(--muted); }

/* Photo strips and gallery */
.strip4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.strip3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.groups { display: grid; gap: var(--s6); }
.group { display: grid; gap: var(--s3); }
.group__label { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); font: 400 1.5rem/1.3 var(--font-display); }
.frame--wide { grid-column: span 2; grid-template-rows: 1fr auto; }
.frame--wide .frame__glass { aspect-ratio: auto; height: 100%; }
.frame--wide .frame__glass picture { position: absolute; inset: 0; }

/* Small pieces */
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chips li { padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 0.9375rem; }
.area { display: grid; gap: var(--s2); justify-items: start; margin-top: var(--s2); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s3); cursor: pointer; list-style: none; font: 400 1.25rem/1.35 var(--font-display); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--accent-text); transition: transform 0.2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--s3); color: var(--muted); max-width: 40rem; }
.linkrows { border-top: 1px solid var(--line); }
.linkrows a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.linkrows a > span { display: grid; gap: 0.2rem; }
.linkrows strong { font: 400 1.25rem/1.35 var(--font-display); }
.linkrows span span { color: var(--muted); }
.linkrows .icon { color: var(--accent-text); transition: transform 0.25s var(--ease); }
.linkrows a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.linkrows a:hover .icon { transform: translateX(4px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a:hover { color: var(--ink); }
.checks { display: grid; gap: var(--s2); }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s2); align-items: start; }
.checks .icon { margin-top: 0.25rem; color: var(--accent-text); }
.checks strong { font-weight: 600; }
.checks--tight { gap: 0.6rem; font-size: 0.9375rem; }
.places { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s2); padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.places .icon { margin-top: 0.4rem; color: var(--accent-text); }
.places p { color: var(--muted); }
.contact { display: grid; gap: var(--s2); }
.contact li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s2); align-items: start; font-weight: 500; }
.contact .icon { margin-top: 0.25rem; color: var(--accent-text); }
.contact a { overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
@media (max-width: 44.99rem) { .contact li { align-items: center; } .contact a { display: inline-flex; align-items: center; min-height: 2.75rem; } .contact .icon { margin-top: 0; } }
.prose { display: grid; gap: var(--s2); }
.prose h2 { margin-top: var(--s3); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); max-width: 40rem; }
.lost { min-height: 100svh; display: grid; align-items: center; }
.lost__glass { display: grid; justify-items: center; }
.lost__glass .glass { width: min(100%, 17rem); background: var(--navy-800); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s5) clamp(2rem, 6vw, 5rem); align-items: center; }
.feature__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-photo); }
.feature__photo picture, .feature__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: grid; gap: var(--s3); align-content: center; }

/* The closing band: navy over a photo, one question, the phone number, one button */
.band { text-align: center; }
.band__in { display: grid; gap: var(--s2); justify-items: center; }
.band__in .lede { color: var(--muted); }
.band__phone { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: var(--s1); font: 400 clamp(2.25rem, 1.5rem + 3vw, 3.75rem) / 1.1 var(--font-display); letter-spacing: -0.015em; white-space: nowrap; }
.band__phone:hover { text-decoration: underline; text-underline-offset: 0.14em; text-decoration-thickness: 1px; }

@media (max-width: 56rem) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 12, 24, 0.82) 0%, rgba(5, 12, 24, 0.66) 50%, rgba(5, 12, 24, 0.94) 100%); }
  .rows--3 { grid-template-columns: 1fr; }
  .hero__grid, .feature { grid-template-columns: 1fr; }
  .hero .starter { max-width: 30rem; }
  .facts__list { grid-template-columns: 1fr 1fr; justify-content: start; }
  .hero .starter { justify-self: start; }
  .projs { grid-template-columns: 1fr; gap: var(--s4); }
  .promises, .promises--4 { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .rows { grid-template-columns: 1fr; }
  .strip4, .strip3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); }
  .frame--wide .frame__glass, .frame--lead .frame__glass { aspect-ratio: 3 / 2; height: auto; }
  .frame--wide .frame__glass picture { position: static; }
  .frame--lead { grid-column: span 2; }
  .gallery > .frame--wide + .frame:last-child { grid-column: span 2; }
  .gallery > .frame--wide + .frame:last-child .frame__glass { aspect-ratio: 3 / 2; }
}
@media (max-width: 40rem) {
  .pcards { grid-template-columns: 1fr; }
  .facts__list { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .promises, .promises--4 { grid-template-columns: 1fr; }
  .strip3 { grid-template-columns: 1fr; }
  .starter--inline .starter__row { grid-template-columns: 1fr; }
  .starter--inline .stepper { grid-template-columns: 3rem 1fr 3rem; }
  .band .btn { width: 100%; }
}

/* Free Quote: one screen at every step, desktop and phone (it is also the Contact page). */
.one-view { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; background: var(--navy-950); }
.one-view main { display: grid; }
.quote { position: relative; isolation: isolate; display: grid; align-items: center; padding-block: calc(var(--hdr) + clamp(0.25rem, 1.5vh, 1.5rem)) clamp(0.5rem, 2vh, 2rem); background-color: var(--navy-900); }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; --wash: linear-gradient(rgba(5, 12, 24, 0.9), rgba(8, 20, 42, 0.93)); background: var(--wash), var(--photo) center / cover; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.quote__card { display: grid; gap: clamp(0.6rem, 2vh, 1.5rem); padding: clamp(1rem, 4vh, 2.5rem) clamp(1.25rem, 3.5vw, 2.5rem); background: #fff; color: var(--navy); border-radius: 0.75rem; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); --bg: #fff; --surface: #fff; --ink: var(--navy); --muted: #4d5b72; --line: #dfe5ee; --accent-text: var(--blue-deep); }
.quote__progress { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; counter-reset: p; font: 500 0.75rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.quote__progress li { counter-increment: p; display: flex; align-items: center; gap: 0.45rem; }
.quote__progress li::before { content: counter(p); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1.5px solid currentColor; border-radius: 50%; font-size: 0.6875rem; letter-spacing: 0; }
.quote__progress li[aria-current] { color: var(--accent-text); font-weight: 700; }
.quote__progress li[data-done]::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.qstep { display: grid; gap: clamp(0.75rem, 1.8vh, 1.25rem); }
.qstep legend { margin-bottom: clamp(0.5rem, 1.2vh, 0.9rem); }
.qstep__hint { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; max-width: 34rem; }
.qstep__nav { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.qstep__nav .btn--primary { flex: 1 1 12rem; }
.stepper--xl { grid-template-columns: 4rem 9rem 4rem; height: 4.5rem; justify-self: start; width: auto; }
.stepper--xl .stepper__btn { font-size: 2rem; }
.stepper--xl .stepper__value { font-size: 2.75rem; }
.range { width: 100%; max-width: 17rem; height: 1.5rem; accent-color: var(--accent); }
.field { display: grid; gap: 0.3rem; }
.field span { font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.field em { font-style: normal; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 2.9rem; padding: 0.55rem 0.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-field); font-size: 1rem; }
.field textarea { min-height: 0; resize: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.upload__btn { cursor: pointer; }
.upload__status { font-size: 0.875rem; color: var(--muted); }
.quote__error { padding: 0.6rem 0.9rem; background: #fdecec; border-radius: var(--r-field); border-left: 3px solid #c62828; color: #7a1616; font-size: 0.9375rem; }
.quote__error a { text-decoration: underline; font-weight: 600; }
.turnstile:empty { display: none; }

/* Result */
.qresult { display: grid; gap: clamp(0.6rem, 1.6vh, 1.1rem); outline: 0; }
.qresult__price { position: relative; justify-self: start; font: 400 clamp(3.5rem, 2rem + 8vw, 6.5rem) / 0.95 var(--font-display); letter-spacing: -0.03em; color: var(--accent-text); padding-right: 0.1em; }
.qresult__price::after { content: ""; position: absolute; inset: -0.05em -0.1em; background: linear-gradient(160deg, rgba(214, 226, 240, 0.95), rgba(170, 186, 204, 0.9)); backdrop-filter: blur(8px); clip-path: inset(100% 0 0 0); }
.qresult__for { font: 400 1.375rem/1.3 var(--font-display); }
.qresult__fine { padding: 0.75rem 1rem; background: var(--paper); border-radius: var(--r-field); border-left: 3px solid var(--accent); font-size: 0.9375rem; line-height: 1.5; }
.qresult__offer { padding: 0.6rem 1rem; border: 1px solid var(--blue); border-radius: var(--r-field); font-size: 0.9375rem; line-height: 1.45; }
.qresult--text .qresult__price { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.05; color: var(--ink); }
.qresult--text .qresult__price::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .qresult.is-shown .qresult__price::after { animation: wipe 0.9s var(--ease) 0.15s backwards; }
  .qresult.is-shown:not(.qresult--text) .qresult__price { animation: glow 3.2s ease-in-out 0.7s both; }
}
/* The estimate glows softly once, just after it is wiped into view, then settles. */
@keyframes glow {
  0%, 100% { text-shadow: 0 0 0 rgba(47, 107, 255, 0); }
  35% { text-shadow: 0 0 0.5em rgba(47, 107, 255, 0.5), 0 0 1.2em rgba(120, 170, 255, 0.45); }
  65% { text-shadow: 0 0 0.35em rgba(47, 107, 255, 0.28), 0 0 0.9em rgba(120, 170, 255, 0.25); }
}

/* Side panel: a window that fills in as the count rises */
.quote__side { display: grid; gap: clamp(0.75rem, 2vh, 1.5rem); justify-items: center; }
.glass { width: auto; height: min(34vh, 22rem); max-width: 100%; aspect-ratio: 4 / 4.8; padding: 0.5rem; background: var(--navy-800); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); border-radius: var(--arch); overflow: hidden; }
.glass__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(8, 1fr); gap: 0.25rem; height: 100%; border-radius: var(--arch); overflow: hidden; }
.glass__grid span { background: rgba(242, 247, 255, 0.1); transition: background-color 0.25s; }
.glass__grid span[data-on] { background: #c9d9f7; }
.glass__count { font: 500 0.75rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact--side { width: min(100%, 21rem); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 0.875rem; }
.contact--side a { overflow-wrap: normal; white-space: nowrap; }
.hours--side { width: min(100%, 21rem); font-size: 0.875rem; }

@media (max-width: 56rem) { .quote__grid { grid-template-columns: 1fr; } .quote__side { display: none; } .quote { align-items: start; } }
@media (max-width: 30rem) {
  .quote__card { margin-inline: -0.25rem; padding-inline: 1rem; }
  .quote__progress li:not([aria-current]) span { display: none; }
  .stepper--xl { grid-template-columns: 4rem 1fr 4rem; height: 4rem; justify-self: stretch; }
  .range { max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .qstep__nav .btn--ghost { flex: 0 0 auto; }
}
@media (max-height: 40rem) {
  :root { --hdr: 3.5rem; }
  .one-view .hdr[data-stuck] { height: 3.5rem; }
  .one-view .strip { display: none; }
  .quote { padding-bottom: 0.25rem; }
  .quote__card { gap: 0.4rem; padding-block: 0.6rem; }
  .qstep, .qresult { gap: 0.4rem; }
  .field textarea { height: 3.2rem; }
  .qstep legend { margin-bottom: 0.25rem; }
  .qstep__hint { font-size: 0.8125rem; line-height: 1.35; }
  .quote .h2 { font-size: 1.5rem; line-height: 1.15; }
  .field { gap: 0.15rem; }
  .field span { font-size: 0.8125rem; }
  .field input { min-height: 2.35rem; padding-block: 0.3rem; }
  .field textarea { padding-block: 0.35rem; }
  .stepper--xl { height: 3.5rem; }
  .stepper--xl .stepper__value { font-size: 2.25rem; }
  .quote .btn { min-height: 2.75rem; }
  .fine, .quote__error { font-size: 0.75rem; line-height: 1.35; }
  .quote__error { padding-block: 0.4rem; }
  .qresult__price { font-size: 3rem; }
  .qresult__for { font-size: 1rem; }
  .qresult__fine { padding: 0.5rem 0.75rem; font-size: 0.8125rem; line-height: 1.4; }
  .checks--tight { gap: 0.35rem; font-size: 0.8125rem; line-height: 1.4; }
  .qresult .qstep__nav { flex-wrap: nowrap; gap: var(--s3); }
  .qresult .qstep__nav .btn--primary { flex: 0 1 auto; padding-inline: 1.25rem; }
  .qresult .qstep__nav .btn--ghost { flex: none; min-height: 2.75rem; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 0.25em; }
}

/* Last in the bundle so it wins over every rule above. Photos under a wash (washPhoto in parts.mjs): AVIF where the browser takes it, a wider file on big screens. */
@supports (background-image: image-set(url("a.avif") type("image/avif"))) {
  .sec--photo::before, .pagehead--photo::before, .quote::before { background-image: var(--wash), var(--photo-set); }
  @media (min-width: 60rem) { .sec--photo::before, .pagehead--photo::before, .quote::before { background-image: var(--wash), var(--photo-set-lg); } }
}
