/* ==========================================================================
   Northside Home Co. (a fictional StoneBridge concept)
   Design system, rebuilt from scratch.
   Architectural editorial + product interface. Restrained palette, hairlines,
   photographs that bleed rather than sit in boxes, one round object: the thermostat.
   ========================================================================== */

@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-latin.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-italic-latin.woff2) format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(../fonts/geist-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

@property --heat-pct { syntax: '<percentage>'; inherits: true; initial-value: 100%; }

:root {
  /* colour: stone, graphite, one sage; heat and cool live only on the thermostat */
  --stone: #f3f2ee;
  --stone-2: #e9e7e1;
  --stone-3: #dcd9d1;
  --ink: #171c1f;
  --ink-2: #4b5458;
  --ink-3: #7a8286;
  --line: rgba(23, 28, 31, 0.13);
  --line-2: rgba(23, 28, 31, 0.24);
  --night: #131819;
  --night-2: #1c2326;
  --on-night: #ecebe6;
  --on-night-2: rgba(236, 235, 230, 0.66);
  --line-night: rgba(236, 235, 230, 0.16);
  --sage: #5f7d6c;
  --ok: #4e9a72;
  --amber: #c9952b;
  --heat: #e2603f;
  --cool: #5fa3c4;
  --paper: #f6f1df;           /* the service ticket */
  --paper-ink: #2b2717;
  --rose: #efe0db;            /* the customer copy */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;

  --shell: 1320px;
  --gut: clamp(20px, 4.4vw, 56px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sec: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { container-type: inline-size; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  font-feature-settings: 'ss01', 'tnum'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 380; letter-spacing: -0.015em; line-height: 1.04; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
dd, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--stone); }
main:focus { outline: none; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--stone); padding: 10px 14px; }
.skip:focus { left: 8px; }
.small { font-size: 0.9rem; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 0.9em; }
.link, .rk-link, .now-more a { font-weight: 500; }

/* section label: sentence case, small, with a short rule (structure, not decoration) */
.sec-num { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 0.86rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0.01em; }
.sec-num::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.sec-lede { font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn-num { font-weight: 400; opacity: 0.72; font-feature-settings: 'tnum'; }
.btn-primary { background: var(--ink); color: var(--stone); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 24px -16px rgba(0, 0, 0, 0.6); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.7); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn-ticket { background: var(--ink); color: var(--stone); }
.btn-big { min-height: 58px; padding: 0 30px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; color: inherit; }

/* live status dot: green when a person answers, amber on call, grey overnight */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px rgba(78, 154, 114, 0.18); }
html[data-mode="oncall"] .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(201, 149, 43, 0.2); }
html[data-mode="night"] .dot { background: var(--ink-3); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  html[data-mode="desk"] .status .dot { animation: live 2.8s ease-in-out infinite; }
  @keyframes live { 50% { box-shadow: 0 0 0 6px rgba(78, 154, 114, 0); } }
}

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.masthead { position: sticky; top: 0; z-index: 30; background: rgba(243, 242, 238, 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
html.scrolled .masthead { border-bottom-color: var(--line); }
.masthead-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 450; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { font-size: 0.8rem; color: var(--ink-2); font-weight: 450; letter-spacing: 0.02em; margin-left: 2px; transform: translateY(1px); }
.nav { display: flex; gap: 30px; font-size: 0.95rem; font-weight: 450; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.call-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; cursor: pointer; font-weight: 500; font-size: 0.95rem; transition: border-color .2s, background .2s; }
.call-pill:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.cp-word { display: none; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 4px 0 6px; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars { width: 18px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .25s var(--ease); }
.menu[open] .menu-bars { transform: scaleY(0.2); }
.menu-panel { position: absolute; right: calc(-1 * var(--gut) + 8px); top: calc(100% + 10px); width: min(280px, calc(100vw - 16px)); display: grid; background: var(--stone); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35); }
.menu-panel a { padding: 12px 12px; text-decoration: none; font-size: 1.05rem; border-radius: 2px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--stone-2); }
@media (max-width: 899px) {
  .nav { display: none; }
  .menu { display: block; }
  .masthead-in { gap: 10px; min-height: 64px; }
  .cp-num { display: none; }
  .cp-word { display: inline; }
}
@media (max-width: 359px) { .brand-sub { display: none; } }

/* ==========================================================================
   HERO: text on stone; the thermostat mounted on a sunlit wall
   ========================================================================== */
.hero { position: relative; }
.hero-grid { display: grid; gap: 0; }
.hero-text { padding: 26px 0 30px; }
.hero-place { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.15rem, 8.6vw, 4.5rem); font-weight: 360; line-height: 1.02; letter-spacing: -0.022em; max-width: 15ch; }
.hero-sub { font-size: 1.06rem; color: var(--ink-2); max-width: 40ch; margin: 18px 0 24px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn-primary { flex: 1 1 auto; }
.status { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 0.92rem; color: var(--ink-2); }

.hero-scene { position: relative; margin-inline: calc(-1 * var(--gut)); overflow: hidden; isolation: isolate; background: #cfc8bb; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
.hero-tint { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: color; background: #4a86a6; opacity: calc(85% - var(--heat-pct) * 0.85); transition: --heat-pct .6s ease; }
.hero { transition: --heat-pct .6s ease; }

/* ---------- the thermostat: a product, not a widget ---------- */
.thermo { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 26px var(--gut); }
.dial { --d: 150px; --spin: 6s; position: relative; width: var(--d); aspect-ratio: 1; border-radius: 50%; padding: 5.5%;
  background: conic-gradient(from 210deg, #f4f2ee, #bdb9b1 18%, #f9f8f5 32%, #a9a59c 48%, #ecebe7 62%, #b6b2a9 80%, #f4f2ee);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -2px 3px rgba(0, 0, 0, 0.18), -22px 30px 34px -14px rgba(40, 32, 20, 0.55), -4px 6px 8px -2px rgba(40, 32, 20, 0.3); }
.dial-art { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: visible; }
.g-face { fill: url(#faceG); }
.g-glow { fill: var(--sun, var(--heat)); opacity: 0.16; filter: blur(18px); transition: fill .5s ease; }
.hero { --sun: color-mix(in oklab, var(--heat) var(--heat-pct), var(--cool)); }
.d-ticks line { stroke: rgba(236, 235, 230, 0.26); stroke-width: 1.6; }
.d-ticks line.major { stroke: rgba(236, 235, 230, 0.6); stroke-width: 2.4; }
.d-arc { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--sun)); transition: stroke-dasharray .35s var(--ease), stroke-dashoffset .35s var(--ease); }
.d-mark { transition: transform .35s var(--ease); }
.d-mark circle { stroke: #0c1012; stroke-width: 3; }
.d-mark-set circle { fill: var(--on-night); }
.d-mark-reads circle { fill: var(--sun); }
.d-end { font: 500 15px var(--sans); fill: rgba(236, 235, 230, 0.45); }
.g-sheen { fill: rgba(255, 255, 255, 0.05); }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--on-night); pointer-events: none; }
.dr-label, .dr-set { margin: 0; font-size: max(0.62rem, calc(var(--d) * 0.052)); font-weight: 450; letter-spacing: 0.02em; color: rgba(236, 235, 230, 0.66); }
.dr-num { margin: 0.04em 0 0.02em; font-family: var(--sans); font-weight: 200; font-size: calc(var(--d) * 0.33); line-height: 0.9; letter-spacing: -0.04em; display: flex; justify-content: center; align-items: flex-start; padding-left: 0.12em; font-feature-settings: 'tnum'; }
.dr-num .deg { font-size: 0.38em; font-weight: 300; margin-top: 0.1em; }
.dr-set output { color: var(--on-night); font-weight: 500; }

.thermo-panel { display: grid; gap: 8px; min-width: 0; }
.tp-title { margin: 0 0 2px; font-size: 0.82rem; font-weight: 500; color: var(--ink); background: rgba(243, 242, 238, 0.82); justify-self: start; padding: 4px 8px; border-radius: 2px; }
.stp { display: flex; align-items: center; gap: 6px; background: rgba(250, 249, 246, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: var(--r); padding: 5px 5px 5px 12px; box-shadow: 0 10px 24px -16px rgba(30, 24, 14, 0.6); }
.stp-l { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.sw { width: 8px; height: 8px; border-radius: 50%; }
.sw-reads { background: var(--sun, var(--heat)); }
.sw-set { background: var(--ink); }
.stp button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 3px; border: 0; background: transparent; cursor: pointer; transition: background .15s; }
.stp button svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.stp button:hover { background: var(--stone-2); }
.stp button:active { background: var(--stone-3); }
.gap-line { margin: 2px 0 0; font-size: 0.9rem; font-weight: 500; color: var(--ink); background: rgba(243, 242, 238, 0.82); justify-self: start; padding: 4px 8px; border-radius: 2px; }

/* facts rail */
.facts { padding-top: 6px; }
.facts-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8.2rem 1fr; gap: 14px; align-items: baseline; }
.facts-list dt { font-family: var(--serif); font-size: 1.28rem; font-weight: 420; letter-spacing: -0.01em; }
.facts-list dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }

/* tablet and desktop hero: two columns, the photograph bleeds to the right edge */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: stretch; column-gap: clamp(32px, 5vw, 80px); }
  .hero-text { padding: clamp(40px, 7vw, 110px) 0 clamp(40px, 6vw, 96px); align-self: center; }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
  .hero-cta .btn-primary { flex: 0 0 auto; }
  .hero-scene { margin: 0 calc(-1 * max(var(--gut), (100cqw - var(--shell)) / 2 + var(--gut))) 0 0; min-height: 560px; display: grid; align-items: end; }
  .thermo { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: clamp(48px, 8vw, 110px) var(--gut) clamp(36px, 5vw, 64px) clamp(28px, 5vw, 80px); align-self: center; }
  .dial { --d: clamp(250px, 26vw, 360px); }
  .thermo-panel { grid-template-columns: auto auto; gap: 10px; justify-items: stretch; }
  .tp-title, .gap-line { grid-column: 1 / -1; justify-self: center; }
  .stp { padding-left: 14px; }
  .facts { padding-top: 0; }
  .facts-list { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .facts-list > div { grid-template-columns: 1fr; gap: 4px; padding: 24px 28px 26px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .facts-list > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .dial { --d: clamp(300px, 25vw, 380px); }
}

/* ==========================================================================
   SEND A TICKET: quiet, clear, conversion first
   ========================================================================== */
.ticket-sec { background: var(--stone-2); padding: var(--sec) 0; margin-top: clamp(40px, 6vw, 80px); }
.ts-grid { display: grid; gap: 48px; }
.ticket-sec h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); max-width: 18ch; margin-bottom: 18px; }
.symptoms { border: 0; margin: 34px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.symptoms legend, .town-field label, .field label, .field .label, .group legend, .plans legend { font-size: 0.92rem; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 12px; }
.symptoms legend { margin-bottom: 14px; float: left; width: 100%; }
.sym { position: relative; display: block; border-bottom: 1px solid var(--line-2); }
.sym:nth-of-type(odd) { border-right: 1px solid var(--line-2); }
.sym input, .plans input, .radio input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sym-in { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; cursor: pointer; font-size: 0.98rem; font-weight: 450; line-height: 1.25; transition: background .2s ease, color .2s ease; }
.sym:nth-of-type(odd) .sym-in { padding-left: 2px; }
.sym-in svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-2); transition: color .2s; }
.sym-in:hover { background: rgba(255, 255, 255, 0.45); }
.sym input:checked + .sym-in { background: var(--ink); color: var(--stone); padding-left: 14px; }
.sym input:checked + .sym-in svg { color: var(--stone); }
.sym input:focus-visible + .sym-in { outline: 2px solid var(--ink); outline-offset: -2px; }
.town-field label { display: block; }
input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 54px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: #fbfaf7; color: var(--ink); font-size: 1.02rem; transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
select option { color: var(--ink); background: #fbfaf7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 28, 31, 0.08); }
textarea { min-height: 84px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 42px; }
.town-line { margin: 10px 0 0; font-size: 0.95rem; color: var(--ink-2); padding-left: 14px; position: relative; }
.town-line::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.town-line:empty { display: none; }
.town-line[data-zone="home"]::before { background: var(--ok); }
.town-line[data-zone="planned"]::before { background: var(--amber); }
.town-line[data-zone="out"]::before { background: var(--heat); }

/* the service ticket: a paper slip, perforated, with a real shadow */
.ticket { position: relative; background: var(--paper); color: var(--paper-ink); padding: 28px 22px 16px; border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 30px 50px -30px rgba(40, 32, 12, 0.45), 0 10px 18px -12px rgba(40, 32, 12, 0.18); }
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: radial-gradient(circle at 6px 0, var(--hole, var(--stone-2)) 4px, transparent 4.5px) 0 0 / 12px 10px repeat-x; }
.ticket::after { content: ''; position: absolute; left: 14px; right: 14px; top: 14px; border-top: 1px dashed rgba(43, 39, 23, 0.25); }
.tk-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; margin-bottom: 10px; }
.tk-brand { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.tk-title { grid-column: 1; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: rgba(43, 39, 23, 0.65); }
.tk-no { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.9rem; font-weight: 500; font-feature-settings: 'tnum'; }
.tk-rows { margin: 0; }
.tk-rows > div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid rgba(43, 39, 23, 0.14); }
.tk-rows dt { font-size: 0.8rem; font-weight: 500; color: rgba(43, 39, 23, 0.62); padding-top: 2px; }
.tk-rows dd { margin: 0; font-size: 0.98rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.tk-rows dd.is-blank { font-weight: 400; color: rgba(43, 39, 23, 0.42); }
.tk-foot { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid rgba(43, 39, 23, 0.14); font-size: 0.8rem; color: rgba(43, 39, 23, 0.62); }
.ticket .tk-tuneup { display: none; }
.ticket.is-tuneup .tk-tuneup { display: block; }
.ticket.is-tuneup .tk-repair, .ticket.is-tuneup .tk-repair-row { display: none; }

.advice { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.adv-head { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 8px; }
.adv-body { color: var(--ink-2); margin-bottom: 16px; }
.adv-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.adv-btns .btn { flex: 1 1 200px; }
.advice.send-first .adv-send { order: -1; background: var(--ink); color: var(--stone); border-color: var(--ink); }
.advice.send-first .adv-call { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.advice.no-send .adv-send, .advice.no-call .adv-call { display: none; }
.adv-after { margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.adv-after:empty { display: none; }
@media (min-width: 960px) {
  .ts-grid { grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); gap: clamp(56px, 8vw, 120px); align-items: start; }
  .ts-side { position: sticky; top: 104px; }
  .ticket { transform: rotate(-0.6deg); }
}

/* ==========================================================================
   IF YOU CALL NOW: the night section
   ========================================================================== */
.now { background: var(--night); color: var(--on-night); padding: var(--sec) 0; }
.now-grid { display: grid; gap: 44px; }
.now h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 360; max-width: none; }
.now-lead { color: var(--on-night-2); font-style: italic; }
.now-time { display: block; font-family: var(--sans); font-weight: 200; font-size: 2.6em; letter-spacing: -0.04em; line-height: 0.95; margin: 0.06em 0 0.08em -0.03em; color: var(--on-night); font-feature-settings: 'tnum'; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; border-top: 1px solid var(--line-night); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 12px; padding: 22px 0; border-bottom: 1px solid var(--line-night); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font-size: 0.85rem; font-weight: 500; color: var(--on-night-2); padding-top: 4px; font-feature-settings: 'tnum'; }
.steps strong { font-family: var(--serif); font-size: 1.32rem; font-weight: 420; letter-spacing: -0.005em; line-height: 1.25; }
.steps p { margin: 6px 0 0; color: var(--on-night-2); font-size: 0.98rem; }
.now-more { margin: 0; }
.now-more a { color: var(--on-night); }
@media (min-width: 960px) {
  .now-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: clamp(56px, 8vw, 120px); align-items: start; }
  .now h2 { position: sticky; top: 120px; }
  .now-more { grid-column: 2; }
}

/* ==========================================================================
   THE HANDS: photograph bleeds left, words overlap the light
   ========================================================================== */
.hands { display: grid; background: var(--stone); }
.hands-photo { margin: 0; position: relative; overflow: hidden; }
.hands-photo img { width: 100%; height: 100%; object-fit: cover; }
.hands-photo figcaption { position: absolute; left: var(--gut); bottom: 18px; right: var(--gut); color: #f6f4ef; font-family: var(--serif); font-style: italic; font-size: 1.05rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hands-photo::after { content: ''; position: absolute; inset: 60% 0 0 0; background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.5)); }
.hands-photo figcaption { z-index: 1; }
.hands-text { padding: 56px var(--gut) var(--sec); max-width: 680px; }
.hands-text h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); margin-bottom: 30px; }
.parts { margin: 0; border-top: 1px solid var(--line-2); }
.parts > div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.parts dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 430; }
.parts dd { margin: 0; color: var(--ink-2); }
.parts-close { margin: 22px 0 0; font-weight: 500; max-width: 44ch; }
@media (min-width: 900px) {
  .hands { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .hands-photo { align-self: stretch; min-height: 640px; }
  .hands-photo figcaption { left: 36px; bottom: 30px; }
  .hands-text { padding: var(--sec) clamp(32px, 6vw, 96px); max-width: 720px; }
}

/* ==========================================================================
   WHAT WE FIX: an accordion, not a grid of cards
   ========================================================================== */
.faults { padding: var(--sec) 0; background: var(--stone); border-top: 1px solid var(--line); }
.faults-grid { display: grid; gap: 40px; }
.faults h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); margin-bottom: 18px; max-width: 14ch; }
.faults-list { border-top: 1px solid var(--line-2); }
.faults-list details { border-bottom: 1px solid var(--line-2); }
.faults-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 400; letter-spacing: -0.01em; }
.faults-list summary::-webkit-details-marker { display: none; }
.faults-list summary::after { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.faults-list details[open] summary::after { transform: rotate(45deg); }
.faults-list summary:hover { color: var(--ink-2); }
.fx { padding: 0 0 24px; max-width: 62ch; }
.fx p { color: var(--ink-2); margin-bottom: 10px; }
.fx .safe { color: var(--ink); font-weight: 500; padding-left: 14px; border-left: 2px solid var(--sage); }
@supports (interpolate-size: allow-keywords) {
  .faults-list { interpolate-size: allow-keywords; }
  .faults-list details::details-content { height: 0; overflow: hidden; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faults-list details[open]::details-content { height: auto; }
}
@media (min-width: 960px) {
  .faults-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(56px, 8vw, 120px); align-items: start; }
  .faults-intro { position: sticky; top: 120px; }
}

/* ==========================================================================
   THE RIVER: where this company works
   ========================================================================== */
.river { position: relative; background: #2b3a3f; color: var(--ink); overflow: hidden; isolation: isolate; }
.river-photo img { width: 100%; height: auto; display: block; }
.river-in { position: relative; }
.river-head { position: absolute; left: var(--gut); right: var(--gut); top: 28px; z-index: 1; }
.river-head .sec-num { color: #1d2a2f; }
.river h2 { font-size: clamp(2rem, 8vw, 4.4rem); font-weight: 380; max-width: 13ch; color: #12202a; }
.river-photo { position: relative; display: block; }
.river-photo::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 55%; background: linear-gradient(180deg, rgba(232, 238, 238, 0.78), rgba(232, 238, 238, 0)); pointer-events: none; }
.river-key { background: var(--night); color: var(--on-night); padding: 26px var(--gut) 30px; }
.rk-lede { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; margin-bottom: 16px; color: var(--on-night); max-width: 34ch; }
.rk-zones { margin: 0 0 18px; border-top: 1px solid var(--line-night); }
.rk-zones > div { display: grid; grid-template-columns: 8.6rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-night); font-size: 0.94rem; }
.rk-zones dt { display: flex; align-items: baseline; gap: 9px; font-weight: 500; }
.rk-zones dt::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.z-home dt::before { background: var(--ok); } .z-planned dt::before { background: var(--amber); } .z-out dt::before { background: var(--heat); }
.rk-zones dd { margin: 0; color: var(--on-night-2); }
.rk-link { color: var(--on-night); }
.river-cap { margin: 0; padding-top: 12px; padding-bottom: 16px; font-size: 0.85rem; color: rgba(236, 235, 230, 0.6); background: var(--night); max-width: none; font-family: var(--serif); font-style: italic; }
@media (min-width: 900px) {
  .river { background: none; }
  .river-photo img { height: clamp(640px, 64vw, 900px); object-fit: cover; object-position: 50% 55%; }
  .river-in { position: absolute; inset: 0; margin-inline: auto; display: grid; grid-template-columns: 1fr minmax(360px, 420px); align-items: end; padding-top: 72px; padding-bottom: 72px; }
  .river-head { position: static; align-self: start; }
  .river-key { position: relative; padding: 28px 30px 30px; border-radius: var(--r); background: rgba(19, 24, 25, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
  .river-cap { position: absolute; left: 0; right: 0; bottom: 0; background: none; color: rgba(246, 244, 239, 0.86); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); max-width: var(--shell); }
}

/* ==========================================================================
   PLAN AHEAD
   ========================================================================== */
.plan-ahead { padding: clamp(64px, 8vw, 110px) 0; background: var(--stone); }
.pa-grid { display: grid; gap: 24px; border-top: 1px solid var(--line-2); padding-top: 36px; }
.plan-ahead h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); font-style: italic; font-weight: 340; }
.pa-body p { color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
@media (min-width: 900px) { .pa-grid { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ==========================================================================
   FOOTER: dusk, the house back to the number you set
   ========================================================================== */
.foot { background: var(--night); color: var(--on-night); }
.foot-scene { position: relative; overflow: hidden; isolation: isolate; }
.foot-photo img { width: 100%; height: clamp(300px, 42vw, 560px); object-fit: cover; object-position: 30% 70%; }
.foot-photo { display: block; position: relative; }
.foot-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 24, 25, 0) 30%, var(--night) 100%); }
.foot-scene-in { position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; padding-bottom: clamp(20px, 4vw, 48px); }
.promise { margin: 0; font-family: var(--serif); font-weight: 340; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.025em; color: #f6f4ef; }
.promise .pr-a { display: block; font-style: italic; font-size: 0.42em; color: rgba(246, 244, 239, 0.78); margin-bottom: 0.2em; letter-spacing: -0.01em; }
.foot-grid { display: grid; gap: 30px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line-night); }
.foot-grid p { margin: 0 0 8px; color: var(--on-night-2); font-size: 0.95rem; }
.foot-name { font-family: var(--serif); font-size: 1.3rem !important; color: var(--on-night) !important; }
.foot .link-btn { color: var(--on-night); }
.foot-nav { display: grid; gap: 8px; align-content: start; font-size: 0.95rem; }
.foot-nav a { color: var(--on-night); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.fh-l { display: block; color: var(--on-night); font-weight: 500; }
.foot-fine { font-size: 0.82rem; color: rgba(236, 235, 230, 0.5); padding-bottom: 110px; margin: 0; max-width: none; }
.foot-fine a { color: var(--on-night-2); }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.3fr 0.7fr 1fr; padding-top: 48px; }
  .foot-fine { padding-bottom: 40px; }
}

/* ---------- phone call bar ---------- */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25;
    padding: 8px 8px 8px 16px; background: rgba(19, 24, 25, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--on-night); border-radius: 6px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); transform: translateY(140%); transition: transform .35s var(--ease); }
  .callbar.is-on { transform: none; }
  .callbar-status { order: -1; margin-right: auto; font-size: 0.86rem; line-height: 1.25; color: var(--on-night-2); }
  .callbar .btn { min-height: 46px; background: var(--stone); color: var(--ink); padding: 0 18px; }
  .callbar .btn-num { display: none; }
}

/* ---------- call dialog ---------- */
.call-dialog { border: 0; border-radius: 6px; padding: 30px 28px 24px; width: min(420px, calc(100vw - 32px)); background: var(--stone); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.call-dialog::backdrop { background: rgba(19, 24, 25, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cd-name { font-size: 0.86rem; font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.cd-num { font-family: var(--sans); font-weight: 250; font-size: 2.7rem; letter-spacing: -0.03em; line-height: 1; margin: 0 0 14px; }
.cd-status { color: var(--ink); }
.cd-demo { font-size: 0.88rem; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.btn-ink { background: var(--ink); color: var(--stone); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-head { padding: clamp(40px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.ph-in { display: grid; gap: 32px; align-items: end; }
.page-title { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 350; letter-spacing: -0.022em; max-width: 14ch; margin: 0 0 20px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 48ch; margin: 0; }
.ph-img { display: block; margin-inline: calc(-1 * var(--gut)); }
.ph-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .ph-split .ph-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
  .ph-img { margin: 0 calc(-1 * max(var(--gut), (100cqw - var(--shell)) / 2 + var(--gut))) 0 0; }
  .ph-img img { aspect-ratio: 5 / 4; }
}
.page-head h2, .year h2, .checked h2, .book h2, .when h2, .fees h2, .towns h2, .credits h2, .how h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-bottom: 22px; max-width: 20ch; }
section.year, section.checked, section.book, section.when, section.fees, section.credits, section.how, section.where { padding: clamp(64px, 8vw, 110px) 0; }
.year, .fees, .credits { background: var(--stone-2); }
.book { background: var(--night); color: var(--on-night); }

/* tune-ups: the year */
.year-note { font-family: var(--serif); font-style: italic; font-size: 1.25rem; max-width: 52ch; }
.months { list-style: none; margin: 30px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; height: 220px; }
.months li { --h: 70; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.months li::before { content: ''; order: 2; height: calc((var(--h) - 55) / 60 * 100%); background: var(--stone-3); }
.months b { order: 1; font-size: clamp(0.7rem, 1.8vw, 0.95rem); font-weight: 500; margin-bottom: 6px; color: var(--ink-2); font-feature-settings: 'tnum'; }
.months span { order: 3; font-size: 0.78rem; padding-top: 8px; border-top: 1px solid var(--ink); color: var(--ink-2); }
.months li.w-spring::before { background: var(--cool); opacity: 0.55; }
.months li.w-fall::before { background: var(--sage); opacity: 0.6; }
.months [data-month="6"]::before, .months [data-month="7"]::before, .months [data-month="8"]::before { background: var(--heat); opacity: 0.55; }
.months li.is-now span { color: var(--ink); font-weight: 600; border-top-width: 3px; }
.months [data-month="1"] { --h: 66; } .months [data-month="2"] { --h: 71; } .months [data-month="3"] { --h: 78; } .months [data-month="4"] { --h: 86; }
.months [data-month="5"] { --h: 96; } .months [data-month="6"] { --h: 106; } .months [data-month="7"] { --h: 110; } .months [data-month="8"] { --h: 109; }
.months [data-month="9"] { --h: 102; } .months [data-month="10"] { --h: 89; } .months [data-month="11"] { --h: 75; } .months [data-month="12"] { --h: 65; }
.year-key, .map-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--ink-2); margin: 10px 0; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.k { width: 12px; height: 12px; border-radius: 1px; }
.k-spring { background: var(--cool); opacity: 0.55; } .k-fall { background: var(--sage); opacity: 0.6; } .k-none { background: var(--heat); opacity: 0.55; }
.k-home { background: var(--ok); } .k-planned { background: var(--amber); } .k-out { background: var(--heat); }
.checked-in { display: grid; gap: 48px; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.ticks li strong { color: var(--ink); font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 10px; height: 5px; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }
.aside { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 22px; }

.book h2 { color: var(--on-night); }
.tune-form { display: grid; gap: 28px; max-width: 1000px; }
.plans { border: 0; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-night); }
.book .plans legend, .book .field label { color: var(--on-night); }
.plans legend { margin-bottom: 14px; }
.plan { position: relative; display: block; cursor: pointer; color: var(--on-night); }
.plan-in { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 16px 16px 16px 50px; border-bottom: 1px solid var(--line-night); transition: background .2s ease; }
.plan-in::before { content: ''; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--on-night-2); transition: border-color .2s, box-shadow .2s; }
.plan-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 400; line-height: 1.25; }
.plan-price { font-size: 1.02rem; font-weight: 500; font-feature-settings: 'tnum'; white-space: nowrap; }
.plan-what { grid-column: 1 / -1; color: var(--on-night-2); font-size: 0.92rem; line-height: 1.45; }
.plan:hover .plan-in { background: rgba(236, 235, 230, 0.04); }
.plan:hover .plan-in::before { border-color: var(--on-night); }
.plan input:checked + .plan-in { background: rgba(236, 235, 230, 0.09); }
.plan input:checked + .plan-in::before { border-color: var(--on-night); box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 9px var(--on-night); }
.plan input:focus-visible + .plan-in { outline: 2px solid var(--on-night); outline-offset: -2px; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .plans legend { grid-column: 1 / -1; }
  .plan-in { height: 100%; grid-template-columns: 1fr; align-content: start; border: 1px solid var(--line-night); border-radius: var(--r); }
  .plan + .plan .plan-in { border-left-color: var(--line-night); }
  .plans { gap: 10px; }
}
.tune-row { display: grid; gap: 20px; }
@media (min-width: 760px) { .tune-row { grid-template-columns: 1fr 1fr; } }
.book .town-line { color: var(--on-night-2); }
.book .btn-ticket { background: var(--stone); color: var(--ink); justify-self: start; }
.book .small { color: var(--on-night-2); }
.err { color: #b4432c; font-weight: 500; margin: 6px 0 0; }
.book .err { color: #f19a83; }
.err:empty { display: none; }

/* where and when */
.where-in { display: grid; gap: 40px; }
.map-wrap { background: var(--stone-2); padding: 18px; border-radius: var(--r); }
.map { width: 100%; height: auto; display: block; max-height: 78svh; }
.m-az { fill: #fbfaf7; }
.m-zone { fill: var(--ok); opacity: 0.18; }
.m-river { fill: none; stroke: #6f9cad; stroke-width: 9; stroke-linecap: round; }
.m-state { font: 500 13px var(--sans); fill: var(--ink-3); letter-spacing: 0.04em; }
.m-town circle { fill: var(--ink); }
.m-town text, .m-shop text, .m-far text { font: 500 14px var(--sans); fill: var(--ink); }
.m-out circle { fill: var(--heat); } .m-planned circle { fill: var(--amber); }
.m-shop rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.m-shop text { font-size: 12px; fill: var(--ink-2); }
.m-far path { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.m-far text { font-size: 12px; fill: var(--ink-2); }
.m-town { cursor: pointer; }
.m-town.is-hit circle { r: 9; fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.towns h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 30px 0 8px; }
.town-check { margin-bottom: 8px; }
.town-check label { display: block; font-size: 0.92rem; font-weight: 500; margin-bottom: 10px; }
.town-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.town-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.town-list button { background: none; border: 0; padding: 12px 0; font-family: var(--serif); font-size: 1.15rem; cursor: pointer; text-align: left; }
.town-list button:hover, .town-list button.is-hit { text-decoration: underline; text-underline-offset: 0.2em; }
.town-list span { color: var(--ink-2); font-size: 0.9rem; text-align: right; }
@media (min-width: 900px) { .where-in { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: start; } .map-wrap { position: sticky; top: 104px; } }
.band { margin: 0; }
.band img { width: 100%; height: clamp(320px, 46vw, 620px); object-fit: cover; }
.band figcaption { padding-top: 12px; padding-bottom: 12px; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.az-now { font-size: 1.1rem; }
.hours { display: grid; gap: 0; margin: 26px 0; border-top: 1px solid var(--line-2); }
.hours-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.hours-row h3 { font-size: 1.6rem; margin-bottom: 6px; }
.hours-time { font-weight: 500; }
.hours-row p:last-child { margin: 0; color: var(--ink-2); }
.hours-row.is-now { box-shadow: inset 3px 0 0 var(--ok); padding-left: 18px; background: rgba(255, 255, 255, 0.4); }
html[data-mode="oncall"] .hours-row.is-now { box-shadow: inset 3px 0 0 var(--amber); }
html[data-mode="night"] .hours-row.is-now { box-shadow: inset 3px 0 0 var(--ink-3); }
.hours-row.is-now h3::after { content: ' (now)'; font-family: var(--sans); font-size: 0.55em; color: var(--ink-2); }
@media (min-width: 900px) { .hours { grid-template-columns: repeat(3, 1fr); border-top: 0; } .hours-row { border-top: 1px solid var(--line-2); border-bottom: 0; padding-right: 28px; } .hours-row + .hours-row { padding-left: 28px; border-left: 1px solid var(--line); } .hours-row.is-now { padding-left: 18px; } }
.fees-in > p { max-width: 62ch; color: var(--ink-2); }
.fee-list { margin: 0 0 26px; max-width: 760px; border-top: 1px solid var(--line-2); }
.fee-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.fee-list dd { margin: 0; font-size: 1.15rem; font-weight: 500; white-space: nowrap; font-feature-settings: 'tnum'; }

/* request */
.req { display: grid; gap: 34px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 90px; }
.req .page-title { font-size: clamp(2.4rem, 6vw, 4rem); }
.carried { font-family: var(--serif); font-style: italic; font-size: 1.1rem; border-left: 2px solid var(--sage); padding: 4px 0 4px 16px; max-width: 56ch; color: var(--ink); }
.req-lede { color: var(--ink-2); max-width: 56ch; }
.status-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; margin-left: 4px; }
.form { display: grid; gap: 40px; }
.group { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; }
.group legend { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; padding-top: 18px; border-top: 1px solid var(--line-2); width: 100%; margin-bottom: 16px; }
.field label, .field .label { display: block; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.has-err input, .field.has-err select { border-color: #b4432c; box-shadow: 0 0 0 3px rgba(180, 67, 44, 0.12); }
.checks, .radios { display: grid; gap: 8px; }
.check, .radio { position: relative; display: block; cursor: pointer; }
.check span, .radio span { display: block; padding: 14px 14px 14px 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fbfaf7; position: relative; transition: border-color .2s; }
.check span::before, .radio span::before { content: ''; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border: 1.5px solid var(--ink); background: #fbfaf7; border-radius: 2px; }
.radio span::before { border-radius: 50%; }
.check input:checked + span, .radio input:checked + span { border-color: var(--ink); }
.check input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px #fbfaf7; }
.radio input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 4px #fbfaf7; }
.check input:focus-visible + span, .radio input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check small { display: block; color: var(--ink-2); font-size: 0.88rem; margin-top: 2px; }
.err-summary { background: #f4e4df; border-left: 3px solid #b4432c; padding: 12px 14px; font-weight: 500; margin: 0; }
.submit-row { display: grid; gap: 12px; justify-items: start; }
.req-ticket .tk-foot { display: none; }
.req-ticket { --hole: var(--stone); }
@media (max-width: 959px) {
  .req-ticket { position: sticky; top: 64px; z-index: 4; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) 12px; background: var(--stone); border-bottom: 1px solid var(--line); }
  .req-ticket .ticket { padding: 20px 16px 8px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
  .req-ticket .tk-rows > div { padding: 5px 0; }
  .req-ticket .tk-rows > div:nth-child(n+4) { display: none; }
}
@media (min-width: 960px) {
  .req { grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(56px, 8vw, 120px); align-items: start; }
  .req-ticket { position: sticky; top: 104px; }
  .req-ticket .ticket { transform: rotate(-0.6deg); }
  .form, .done { max-width: 680px; }
}
.done { display: grid; gap: 8px; }
.done-title { max-width: 18ch; }
.done-who { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; max-width: 34ch; }
.done-visit { color: var(--ink-2); max-width: 58ch; }
.done-risk { border-left: 2px solid var(--heat); padding-left: 14px; max-width: 58ch; }
.done-call { margin: 6px 0 16px; }
.ticket-copy { background: var(--rose); --hole: var(--stone); margin: 22px 0 10px; max-width: 560px; }
.done.is-in .ticket-copy { animation: slip-in .7s var(--ease) both .1s; }
@keyframes slip-in { from { transform: translateY(-12px) rotate(-1.6deg); opacity: 0; } to { transform: rotate(-0.4deg); opacity: 1; } }

/* about */
.how .fix-list { margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.how .fix-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.how .fix-list dt { font-family: var(--serif); font-size: 1.4rem; }
.how .fix-list dd { margin: 0; color: var(--ink-2); max-width: 62ch; }
.how .fix-list dd p { margin: 0; }
@media (min-width: 900px) { .how .fix-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.credits .wrap > p, .credits .shell > p { max-width: 70ch; color: var(--ink-2); }
.credits h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 30px 0 10px; letter-spacing: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 500; color: var(--ink-2); }
td img { width: 96px; height: 64px; object-fit: cover; border-radius: 2px; }

/* the old .wrap class on inner pages behaves like .shell */
.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

/* ==========================================================================
   MOTION: one opening, scroll-linked depth, cross-page continuity
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-text > :nth-child(5) { animation-delay: .24s; }
  .hero-photo img { animation: develop 1.6s ease both; }
  .dial { animation: mount 1.1s var(--ease) both .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes develop { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
  @keyframes mount { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

  @supports (animation-timeline: view()) {
    .hands-photo img, .river-photo img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
    .reveal, .faults-list details, .parts > div, .steps li { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }

  @view-transition { navigation: auto; }
  .ts-side .ticket, .req-ticket .ticket { view-transition-name: ticket; }
  .masthead { view-transition-name: masthead; }
  ::view-transition-group(ticket) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- hero call row ---------- */
.hero-cta .status { flex: 1 0 100%; margin: 8px 0 0; }
@media (max-width: 767px) {
  .hero-cta { gap: 6px 14px; align-items: center; }
  .hero-cta .btn-primary { flex: 1 0 100%; }
  .hero-cta .status { order: 2; flex: 1 1 auto; margin: 6px 0 0; }
  .hero-req { order: 3; min-height: 44px; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 0.22em; margin-top: 6px; }
  .tp-title { display: none; }
  .dial { --d: clamp(124px, 36vw, 150px); }
  .thermo { gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .hero-text { padding-bottom: 22px; }
}

/* ---------- the control plate: one frosted object that belongs to the device ---------- */
.tp-plate { display: grid; background: rgba(250, 249, 246, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), -14px 22px 34px -20px rgba(20, 18, 14, 0.55); overflow: hidden; }
.tp-plate .stp { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0; padding: 4px 4px 4px 14px; }
.tp-plate .stp + .stp { border-top: 1px solid var(--line); }
.tp-plate .gap-line { background: none; padding: 10px 14px 11px; margin: 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); justify-self: stretch; }
.tp-title { background: none; padding: 0; color: #f6f4ef; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
@media (min-width: 768px) {
  .thermo-panel { grid-template-columns: 1fr; width: min(100%, calc(var(--d) + 40px)); }
  .tp-plate { grid-template-columns: 1fr 1fr; }
  .tp-plate .stp + .stp { border-top: 0; border-left: 1px solid var(--line); }
  .tp-plate .gap-line { grid-column: 1 / -1; text-align: center; }
  .tp-title { justify-self: center; }
}
@media (max-width: 479px) { .brand-sub { display: none; } }

.g-glow { opacity: 0.07; }
.tp-title { display: none; }

/* short phone screens: the opening tightens so the whole thermostat lands on the first screen */
@media (max-width: 767px) and (max-height: 760px) {
  .hero-place, .sub-more { display: none; }
  .hero-text { padding-top: 14px; padding-bottom: 16px; }
  .hero h1 { font-size: clamp(2rem, 8.2vw, 2.4rem); }
  .hero-sub { margin: 12px 0 16px; font-size: 1rem; }
  .thermo { padding-top: 16px; padding-bottom: 16px; }
  .dial { --d: clamp(118px, 33vw, 136px); }
  .tp-plate .stp button { width: 42px; height: 42px; }
  .tp-plate .gap-line { padding: 8px 12px 9px; font-size: 0.82rem; }
}

/* the smallest phones */
@media (max-width: 374px) {
  .hero-cta .btn-primary { padding: 0 14px; gap: 8px; font-size: 0.95rem; }
  .menu-word { display: none; }
  .masthead-in { gap: 6px; }
  .call-pill { padding: 0 12px; }
  .hero-cta .status, .hero-req { font-size: 0.88rem; }
}
@media (max-width: 767px) and (max-height: 600px) {
  .hero-sub { display: none; }
  .hero h1 { margin-bottom: 16px; }
}

@media (max-width: 374px) {
  .dial { --d: 100px !important; }
  .thermo { gap: 12px; grid-template-columns: 100px minmax(0, 1fr); }
  .tp-plate .stp { padding-left: 10px; gap: 0; }
  .tp-plate .stp button { width: 40px; height: 42px; }
  .stp-l { font-size: 0.86rem; gap: 6px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .thermo-panel { width: min(100%, 300px); }
  .tp-plate { grid-template-columns: 1fr; }
  .tp-plate .stp + .stp { border-left: 0; border-top: 1px solid var(--line); }
}

/* symptoms: legend sits above a clean two-column list */
.symptoms { border-top: 0; }
.symptoms legend { float: none; display: block; width: auto; margin-bottom: 14px; }
.sym:nth-of-type(1), .sym:nth-of-type(2) { border-top: 1px solid var(--line-2); }

@media (max-width: 899px) { .river-in { position: static; padding: 0; max-width: none; } .river-head { top: 26px; } }
@media (max-width: 899px) { .river-photo::after { height: 62%; background: linear-gradient(180deg, rgba(236, 240, 239, 0.9), rgba(236, 240, 239, 0.55) 55%, rgba(236, 240, 239, 0)); } }

/* portrait photographs inside landscape frames keep the face in view */
.ph-img img.ph-top { object-position: 62% 12%; }

/* the technician photo keeps its own proportions on desktop instead of stretching to the text height */
@media (min-width: 900px) { .hands-photo { align-self: center; min-height: 0; } .hands-photo img { height: auto; aspect-ratio: 1300 / 1055; object-position: 50% 40%; } }

/* ---------- tune-ups: what each visit checks ----------
   Two parallel columns on one grid. Subgrid locks the header row and the list start
   to the same line in both columns; the fall column's photograph fills the space
   its shorter list leaves, ending level with the spring list. */
.checked h2 { max-width: none; margin-bottom: clamp(28px, 4vw, 44px); }
.checked-in { display: grid; gap: 56px; }
.ck-col { display: grid; grid-template-rows: auto 1fr; align-content: start; }
.ck-head { padding-bottom: 18px; }
.ck-head h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 8px; }
.ck-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.ck-meta span:last-child { color: var(--ink); font-weight: 500; }
.ck-body { display: flex; flex-direction: column; }
.ck-photo { margin: 28px 0 0; overflow: hidden; border-radius: 2px; }
.ck-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 22%; }
.ck-close { margin: clamp(32px, 4vw, 48px) 0 0; max-width: 46ch; }
@media (min-width: 700px) {
  .checked-in { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; column-gap: clamp(32px, 7vw, 110px); row-gap: 0; }
  .ck-col { grid-row: span 2; grid-template-rows: subgrid; }
  .ck-body { height: 100%; }
  .ck-photo { flex: 1 1 0; min-height: 200px; display: flex; }
  .ck-photo img { aspect-ratio: auto; height: 100%; min-height: 200px; }
}
