/* ============================================================
   Community II Heating & Air Conditioning — "Shop-built"
   Palette from the van livery. Type: League Gothic (display),
   Public Sans (text), IBM Plex Mono (tickets & data plates).
   ============================================================ */

@font-face {
  font-family: 'League Gothic';
  src: url('/assets/fonts/league-gothic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/public-sans-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --red: #d81e27;
  --red-dark: #b0121a;
  --navy: #20296b;
  --navy-deep: #171e4e;
  --midnight: #12173a;
  --paper: #faf9f5;
  --paper-dim: #f1efe8;
  --zinc: #dde0e4;
  --zinc-dark: #b8bdc4;
  --ink: #1a1d26;
  --ink-soft: #4a4f5c;
  --gold: #f0a929;
  --focus: #1552c4;

  --display: 'League Gothic', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .6rem 1rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Display type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .95;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .35em; }
h4 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; margin-bottom: .3em; }
p + p { margin-top: .9em; }

.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

/* Ticket-stub eyebrow: the section label motif */
.stub {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.stub::before {
  content: ""; width: 26px; height: 14px; background: var(--red);
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
}
.section-dark .stub, .on-dark .stub { color: #ff8f94; }
.section-dark .stub::before, .on-dark .stub::before { background: #ff8f94; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--midnight); color: #cfd4ee;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
}
.utility .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; }
.utility a { color: #fff; text-decoration: none; white-space: nowrap; }
.utility .lic { white-space: nowrap; }
@media (max-width: 1200px) { .utility .hours { display: none; } }
@media (max-width: 720px) { .utility .lic { display: none; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper); border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; gap: 1.4rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 1.35rem; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .4rem 0; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }
.header-phone { text-align: right; line-height: 1.15; white-space: nowrap; }
.header-phone .call-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.header-phone a { font-family: var(--display); font-size: 1.7rem; text-decoration: none; color: var(--red); letter-spacing: .02em; }

.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: .78rem 1.5rem; border: 2px solid transparent; cursor: pointer;
  font-family: var(--body); line-height: 1.2; text-align: center;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark); }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--midnight); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn-ghost, .page-hero .btn-ghost, .hero-home .btn-ghost, .section-dark .btn-ghost { border-color: #fff; color: #fff; }
.on-dark .btn-ghost:hover, .page-hero .btn-ghost:hover, .hero-home .btn-ghost:hover, .section-dark .btn-ghost:hover { background: #fff; color: var(--navy); }

.menu-toggle { display: none; }

@media (max-width: 1140px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 3px solid var(--navy);
    flex-direction: column; align-items: stretch; padding: .6rem var(--gutter) 1rem; gap: .1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .2rem; border-bottom: 1px solid var(--zinc); font-size: 1.05rem; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: 2px solid var(--navy); width: 46px; height: 42px;
    padding: 0 9px; cursor: pointer;
  }
  .menu-toggle span { height: 3px; background: var(--navy); display: block; }
  .header-cta { display: none; }
}
@media (max-width: 520px) {
  .brand img { width: 118px; }
  .header-phone a { font-size: 1.4rem; }
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  grid-template-columns: 1fr 1fr;
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; font-weight: 800; font-size: 1.02rem; text-decoration: none;
}
.callbar .cb-call { background: var(--red); color: #fff; }
.callbar .cb-est { background: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .callbar { display: grid; }
  body { padding-bottom: 56px; }
}

/* ---------- Split hero (home) ---------- */
.hero-split { background: var(--midnight); color: #fff; border-bottom: 4px solid var(--red); }
.hero-split .container {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 4vw, 3.6rem);
  align-items: center; padding-top: clamp(2.6rem, 6vw, 4.6rem); padding-bottom: clamp(2.6rem, 6vw, 4.6rem);
}
.hero-split h1 { color: #fff; max-width: 14ch; }
.hero-split h1 .accent { color: #ff6b71; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-photo .photo-tag {
  display: flex; justify-content: space-between; gap: 1rem;
  background: var(--navy); color: #cfd4ee; padding: .55rem .9rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero-photo .photo-tag strong { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .hero-photo { order: 2; }
}

/* ---------- Home hero (photo backdrop, kept for interior use) ---------- */
.hero-home { position: relative; background: var(--midnight); color: #fff; overflow: hidden; }
.hero-home .hero-img { position: absolute; inset: 0; }
.hero-home .hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero-home .hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(18, 23, 58, .93) 0%, rgba(18, 23, 58, .82) 34%, rgba(18, 23, 58, .38) 68%, rgba(18, 23, 58, .18) 100%);
}
.hero-home .container { position: relative; z-index: 1; padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero-home h1 { color: #fff; max-width: 13ch; }
.hero-home h1 .accent { color: #ff6b71; }
.hero-kicker {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero-sub { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 52ch; color: #dfe3f5; }
.hero-actions { margin-top: 1.9rem; display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-phone-big { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; text-decoration: none; letter-spacing: .02em; }
.hero-phone-big small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: #aeb5dd; text-transform: uppercase; }

/* Proof strip under hero */
.proof {
  position: relative; z-index: 2; background: var(--paper); border-top: 4px solid var(--red);
}
.proof .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.proof .cell {
  padding: 1.15rem 1.2rem; border-right: 1px solid var(--zinc);
  display: flex; flex-direction: column; justify-content: center;
}
.proof .cell:last-child { border-right: 0; }
.proof .num { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--navy); }
.proof .num .star { color: var(--gold); }
.proof .lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .3rem; }
@media (max-width: 860px) {
  .proof .container { grid-template-columns: 1fr 1fr; }
  .proof .cell { border-bottom: 1px solid var(--zinc); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section-dim { background: var(--paper-dim); }
.section-dark { background: var(--navy-deep); color: #e6e9f8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-rule { border-top: 2px solid var(--navy); }
.section-dark a { color: #b9c3f4; }

.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.two-col > div > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--zinc-dark); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin-top: 1.1rem; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: .6rem;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- Service ledger (home) ---------- */
.ledger { border-top: 2px solid var(--navy); }
.ledger-row {
  display: grid; grid-template-columns: 210px 1fr auto; gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--zinc-dark);
  text-decoration: none; color: var(--ink);
}
.ledger-row:hover { background: #fff; }
.ledger-row:hover .ledger-go { background: var(--red); color: #fff; }
.ledger-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.ledger-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ledger-title { display: block; font-family: var(--display); font-size: 1.75rem; text-transform: uppercase; color: var(--navy); line-height: 1; }
.ledger-desc { display: block; color: var(--ink-soft); margin-top: .45rem; max-width: 64ch; }
.ledger-tags { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.ledger-tags span {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid var(--zinc-dark); padding: .18rem .5rem; color: var(--ink-soft);
}
.ledger-go {
  width: 46px; height: 46px; border: 2px solid var(--navy); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700;
}
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 96px 1fr; }
  .ledger-thumb { aspect-ratio: 1; }
  .ledger-go { display: none; }
  .ledger-title { font-size: 1.4rem; }
}

/* ---------- Ticket (coupon / offer) ---------- */
.ticket {
  position: relative; background: #fff; border: 2px solid var(--navy);
  display: grid; grid-template-columns: 1fr auto;
}
.ticket-main { padding: 1.5rem 1.7rem; }
.ticket-amount { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--red); line-height: .9; }
.ticket-what { font-weight: 700; font-size: 1.1rem; margin-top: .35rem; color: var(--ink); }
.ticket-terms { font-size: .85rem; color: var(--ink-soft); margin-top: .55rem; max-width: 46ch; }
.ticket-side {
  border-left: 2px dashed var(--zinc-dark); padding: 1.1rem .9rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--paper-dim); min-width: 120px; text-align: center;
}
.ticket-serial { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--ink-soft); writing-mode: vertical-rl; }
.ticket-side .btn { font-size: .85rem; padding: .55rem .8rem; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: 118px; width: 18px; height: 18px;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 50%;
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.section-dim .ticket::before, .section-dim .ticket::after { background: var(--paper-dim); }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 860px) { .ticket-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-side { border-left: 0; border-top: 2px dashed var(--zinc-dark); flex-direction: row; }
  .ticket-serial { writing-mode: horizontal-tb; }
  .ticket::before, .ticket::after { display: none; }
}

/* ---------- Reviews ---------- */
.stars { color: var(--gold); letter-spacing: .12em; font-size: 1.05rem; white-space: nowrap; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review {
  background: #fff; border: 1px solid var(--zinc-dark); border-top: 4px solid var(--gold);
  padding: 1.4rem 1.5rem;
}
.section-dark .review { background: var(--midnight); border-color: #2c3570; color: #dfe3f5; }
.review blockquote { font-size: .98rem; }
.review footer { margin-top: .9rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--ink-soft); }
.section-dark .review footer { color: #aeb5dd; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--zinc-dark); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 1.05rem .2rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--red); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 .2rem 1.2rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Work order form ---------- */
.workorder { background: #fff; border: 2px solid var(--navy); }
.workorder-head {
  background: var(--navy); color: #fff; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.workorder-head .wo-title { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.workorder-head .wo-no { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: #b9c3f4; }
.workorder-body { padding: 1.6rem 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--zinc-dark);
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--focus); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; }
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Data plate footer ---------- */
.dataplate {
  background: var(--zinc); border-top: 2px solid var(--zinc-dark);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: #33373f;
}
.dataplate .container {
  display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; padding-top: .8rem; padding-bottom: .8rem;
}
.dataplate strong { font-weight: 600; }

.site-footer { background: var(--midnight); color: #c3c9e8; padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2.2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #c3c9e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-phone { font-family: var(--display); font-size: 1.9rem; color: #fff !important; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #2c3570;
  font-size: .8rem; color: #8d95c4; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy-deep); color: #fff; padding: clamp(2.6rem, 6vw, 4.2rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.5vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { color: #ccd3f0; margin-top: 1rem; }
.page-hero .hero-actions { margin-top: 1.6rem; }
.page-hero .bg {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
}
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.crumbs a { color: #aeb5dd; text-decoration: none; }
.crumbs span { color: #6f77a8; margin: 0 .45rem; }

/* ---------- Prose (service pages) ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: .8em 0 .8em 1.2em; }
.prose li { margin-bottom: .4em; }

.aside-card { background: #fff; border: 2px solid var(--navy); padding: 1.5rem; }
.aside-card + .aside-card { margin-top: 1.4rem; }
.aside-card .big-phone { font-family: var(--display); font-size: 2rem; color: var(--red); text-decoration: none; display: block; margin-top: .3rem; }
.aside-card ul { list-style: none; }
.aside-card li { padding: .5rem 0; border-bottom: 1px solid var(--zinc); }
.aside-card li:last-child { border-bottom: 0; }
.aside-card a { text-decoration: none; font-weight: 600; }
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .service-layout { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure { margin: 0; }
.gallery-grid figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--zinc-dark); }
.gallery-grid figcaption { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: .5rem .1rem 0; }

/* Before / after */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .ba-pair { grid-template-columns: 1fr; } }
.ba-pair figure { position: relative; margin: 0; }
.ba-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--zinc-dark); }
.ba-tag {
  position: absolute; top: .8rem; left: .8rem; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; padding: .3rem .7rem; color: #fff;
}
.ba-before .ba-tag { background: var(--ink); }
.ba-after .ba-tag { background: var(--red); }

/* ---------- Area chips ---------- */
.area-cols { columns: 3; column-gap: 2.5rem; max-width: 900px; }
@media (max-width: 800px) { .area-cols { columns: 2; } }
@media (max-width: 480px) { .area-cols { columns: 1; } }
.area-cols li { break-inside: avoid; padding: .38rem 0; border-bottom: 1px solid var(--zinc); list-style: none; }

/* ---------- Plan cards (maintenance) ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; max-width: 900px; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 2px solid var(--navy); display: flex; flex-direction: column; }
.plan-head { padding: 1.3rem 1.5rem .9rem; border-bottom: 2px solid var(--navy); }
.plan-head .plan-name { font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; color: var(--navy); }
.plan-head .plan-for { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.plan-featured { border-color: var(--red); }
.plan-featured .plan-head { border-bottom-color: var(--red); background: #fdf1f1; }
.plan ul { list-style: none; padding: 1.2rem 1.5rem; flex: 1; }
.plan li { padding: .45rem 0 .45rem 1.7rem; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: .95rem; height: .5rem;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
.plan .plan-cta { padding: 0 1.5rem 1.5rem; }

/* ---------- Emergency band ---------- */
.em-band { background: var(--red); color: #fff; }
.em-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; flex-wrap: wrap; }
.em-band .em-msg { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; line-height: 1; }
.em-band .em-sub { font-size: .95rem; opacity: .92; margin-top: .3rem; font-family: var(--body); text-transform: none; }
.em-band .btn { background: #fff; color: var(--red); box-shadow: 0 3px 0 rgba(0,0,0,.25); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-split h1, .hero-split .hero-kicker, .hero-split .hero-sub, .hero-split .hero-actions,
  .hero-home h1, .hero-home .hero-kicker, .hero-home .hero-sub, .hero-home .hero-actions {
    opacity: 0; transform: translateY(12px);
    animation: rise .4s cubic-bezier(.2, .7, .3, 1) forwards;
  }
  .hero-home .hero-kicker, .hero-split .hero-kicker { animation-delay: .03s; }
  .hero-home h1, .hero-split h1 { animation-delay: .08s; }
  .hero-home .hero-sub, .hero-split .hero-sub { animation-delay: .16s; }
  .hero-home .hero-actions, .hero-split .hero-actions { animation-delay: .22s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .callbar, .utility, .site-footer { display: none; }
}

/* ============================================================
   2026 layer: kinetic type, scroll-driven motion, view transitions
   ============================================================ */

/* Cross-document view transitions (progressive; Chrome/Safari 2025+) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation-duration: .16s; }
  ::view-transition-new(root) { animation-duration: .22s; }
}

/* ---------- Hero v4: oversized kinetic type ---------- */
.hero-v4 { background: var(--midnight); color: #fff; border-bottom: 4px solid var(--red); overflow: hidden; }
.hero-v4 .container { padding-top: clamp(2.4rem, 5vw, 4rem); padding-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.hero-v4 h1 { color: #fff; }
.hero-v4 .h1-lead {
  display: block; font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  color: #aeb5dd; letter-spacing: .06em; margin-bottom: .12em;
}
.hero-v4 .h1-huge {
  display: block; font-size: clamp(3.4rem, 9.6vw, 8.4rem); line-height: .9; letter-spacing: .005em;
}
.hero-v4 .h1-huge .accent { color: #ff6b71; }
.hero-row {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start; margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
}
.hero-row .hero-sub { margin-top: 0; }
.hero-row .hero-photo { margin-top: clamp(-9rem, -10vw, 0rem); }
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-row .hero-photo { margin-top: 0; order: 2; }
}

/* Neighborhood marquee */
.marquee {
  border-top: 1px solid #2c3570; background: var(--navy);
  overflow: hidden; white-space: nowrap; padding: .62rem 0;
}
.marquee-track {
  display: inline-block; animation: marquee 46s linear infinite;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: #cfd4ee;
}
.marquee-track .sep { color: var(--gold); margin: 0 1.1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Shop slab: outline-type backdrop ---------- */
.slab { position: relative; background: var(--navy-deep); color: #e6e9f8; overflow: hidden; padding: clamp(3.4rem, 8vw, 6rem) 0; }
.slab h2, .slab h3 { color: #fff; }
.slab-word {
  position: absolute; top: -.06em; left: -.02em; right: 0;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(5.5rem, 17vw, 15rem); line-height: .8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .10);
  pointer-events: none; user-select: none;
}
.slab .container { position: relative; }
.slab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(3.5rem, 9vw, 8rem); }
@media (max-width: 900px) { .slab-grid { grid-template-columns: 1fr; } }
.slab-grid figure { margin: 0; }
.slab-grid figcaption {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #aeb5dd; background: var(--midnight); padding: .55rem .9rem;
  display: flex; justify-content: space-between; gap: 1rem;
}

/* ---------- Scroll-driven reveals (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section h2, .ledger-row, .ticket, .review, .gallery-grid figure,
    .plan, .ba-pair figure, .slab-grid > *, .faq details {
      animation: view-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 34%;
    }
  }
}
/* Transform-only: content is never hidden for non-scrolling renderers */
@keyframes view-rise { from { transform: translateY(26px); } to { transform: none; } }

/* Sticky header gains a shadow only once the page scrolls */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header { animation: hdr-shadow linear both; animation-timeline: scroll(); animation-range: 0 140px; }
  }
}
@keyframes hdr-shadow { to { box-shadow: 0 4px 20px rgba(18, 23, 58, .16); } }

/* ---------- Micro-interactions ---------- */
.ticket { transition: transform .18s ease, box-shadow .18s ease; }
.ticket:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(18, 23, 58, .13); }
.ticket-side { position: relative; }
.ticket-side::after {
  content: ""; position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%);
  width: 60%; height: 12px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--ink-soft) 0 2px, transparent 2px 5px);
}
@media (max-width: 480px) { .ticket-side::after { display: none; } }
.ledger-thumb { overflow: hidden; }
.ledger-thumb img { transition: transform .35s ease; }
.ledger-row:hover .ledger-thumb img { transform: scale(1.05); }
.ledger-go { transition: transform .18s ease, background .18s ease, color .18s ease; }
.ledger-row:hover .ledger-go { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) {
  .ticket, .ledger-thumb img, .ledger-go { transition: none; }
}

/* ---------- Interior hero: navy duotone treatment ---------- */
.page-hero { border-bottom: 4px solid var(--red); }
.page-hero .bg { opacity: 1; }
.page-hero .bg img {
  filter: grayscale(1) contrast(1.08) brightness(.85);
  opacity: .26; mix-blend-mode: luminosity;
}
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-deep) 8%, transparent 55%, rgba(23, 30, 78, .6) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); }

/* ---------- Texture: fine dot grid on dim sections ---------- */
.section-dim {
  background-image: radial-gradient(rgba(32, 41, 107, .055) 1px, transparent 1.5px);
  background-size: 24px 24px;
}

/* ---------- Footer wordmark ---------- */
.footer-word {
  font-family: var(--display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(4.4rem, 14.5vw, 12.5rem); line-height: .78;
  color: rgba(255, 255, 255, .045); user-select: none; pointer-events: none;
  overflow: hidden; margin-bottom: clamp(-1rem, -1vw, -.5rem);
}
.proof .num, .dataplate { font-variant-numeric: tabular-nums; }

/* ============================================================
   Spectacle layer: X-ray house, live strip, cinema scroll, live ticket
   ============================================================ */

/* ---------- Live conditions chip ---------- */
.live-now {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.3rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: #cfd4ee; border: 1px solid #2c3570; padding: .5rem .9rem; max-width: 100%;
}
.live-now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.live-now.is-live .dot { background: #ff5a61; }
@media (prefers-reduced-motion: no-preference) {
  .live-now.is-live .dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- X-ray house ---------- */
.xray { background: var(--midnight); color: #e6e9f8; padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 4px solid var(--red); }
.xray h2 { color: #fff; }
.xray-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; margin-top: 1.8rem; }
@media (max-width: 900px) { .xray-grid { grid-template-columns: 1fr; } }
.xray svg { width: 100%; height: auto; display: block; }

.xray .sys { cursor: pointer; }
.xray .sys .ln { stroke: #7d87c4; transition: stroke .18s ease, filter .18s ease; }
.xray .sys .lbl-t { fill: #8f9bd9; transition: fill .18s ease; }
.xray .sys .leader { stroke: #3a4380; transition: stroke .18s ease; }
.xray .sys.active .ln, .xray .sys:hover .ln {
  stroke: #ff5a61; filter: drop-shadow(0 0 6px rgba(255, 90, 97, .8));
}
.xray .sys.active .lbl-t, .xray .sys:hover .lbl-t { fill: #ffd9a0; }
.xray .sys.active .leader, .xray .sys:hover .leader { stroke: #b0121a; }
.xray .shell { stroke: #454f8f; }
.xray .dim { stroke: #2a3475; }
.xray .earth { fill: #0c0f28; }
.xray .glass { fill: rgba(143, 155, 217, .08); }

@media (prefers-reduced-motion: no-preference) {
  .xray .scan { animation: scan 9s linear infinite; }
}
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: .5; } 60% { opacity: .5; } 70% { transform: translateY(640px); opacity: 0; } 100% { transform: translateY(640px); opacity: 0; } }

.xray-card {
  background: var(--navy-deep); border: 2px solid #2c3570; padding: 1.4rem 1.5rem;
  position: sticky; top: 110px;
}
.xray-card .xc-sys { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.xray-card .xc-title { font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; color: #fff; line-height: 1; margin: .35rem 0 .5rem; }
.xray-card .xc-body { font-size: .95rem; color: #ccd3f0; min-height: 5.2em; }
.xray-card .btn { margin-top: 1rem; }
.xray-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.xray-legend button {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid #3a4380; color: #aeb5dd; padding: .45rem .7rem; cursor: pointer;
}
.xray-legend button:hover, .xray-legend button[aria-pressed="true"] { border-color: var(--red); color: #fff; background: rgba(216, 30, 39, .18); }

/* ---------- Cinema scroll scene ---------- */
.cinema { position: relative; background: var(--midnight); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cinema { height: 300vh; view-timeline-name: --cin; }
    .cinema-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
    .cinema .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .cinema .f2 { opacity: 0; animation: cine-fade linear both; animation-timeline: --cin; animation-range: cover 32% cover 45%; }
    .cinema .f3 { opacity: 0; animation: cine-fade linear both; animation-timeline: --cin; animation-range: cover 60% cover 73%; }
    .cinema .cine-line.l1 { animation: cine-rise linear both; animation-timeline: --cin; animation-range: cover 4% cover 16%; }
    .cinema .cine-line.l2 { animation: cine-rise linear both; animation-timeline: --cin; animation-range: cover 34% cover 46%; }
    .cinema .cine-line.l3 { animation: cine-rise linear both; animation-timeline: --cin; animation-range: cover 62% cover 74%; }
    .cinema .cine-tail { animation: cine-rise linear both; animation-timeline: --cin; animation-range: cover 74% cover 86%; }
  }
}
@keyframes cine-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cine-rise { from { transform: translateY(70px); } to { transform: none; } }
.cinema-stage { position: relative; min-height: 620px; display: flex; align-items: flex-end; }
.cinema .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema .frame:not(.f1) { display: block; }
@supports not (animation-timeline: view()) {
  .cinema .f2, .cinema .f3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cinema { height: auto !important; }
  .cinema .f2, .cinema .f3 { display: none; }
}
.cinema-scrim { position: absolute; inset: 0; background: linear-gradient(10deg, rgba(12, 14, 32, .92) 22%, rgba(12, 14, 32, .35) 60%, rgba(12, 14, 32, .15)); }
.cinema-copy { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); color: #fff; width: 100%; }
.cine-huge {
  display: block; font-family: var(--display); text-transform: uppercase; line-height: .9;
  font-size: clamp(2.6rem, 7.2vw, 6.2rem); color: #fff;
}
.cine-line .accent { color: #ff6b71; }
.cine-tail { margin-top: 1.4rem; max-width: 54ch; color: #dfe3f5; }
.cine-tail .btn { margin-top: 1.1rem; }

/* ---------- Live work-order ticket (contact) ---------- */
.js-only { display: none; }
body.js .js-only { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid var(--zinc-dark); background: #fff; color: var(--ink-soft);
  padding: .5rem .75rem; cursor: pointer;
}
.chips button[aria-pressed="true"] { border-color: var(--red); color: var(--red-dark); background: #fdf1f1; font-weight: 600; }
body.js .field-select-native { display: none; }

.wo-preview { background: #fffdf6; border: 2px solid var(--navy); position: sticky; top: 110px; }
.wo-preview .wop-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}
.wo-preview .wop-body { padding: 1.1rem 1.2rem; font-family: var(--mono); font-size: .8rem; line-height: 2.05; color: var(--ink); }
.wo-preview .wop-row { display: flex; gap: .8rem; border-bottom: 1px dashed var(--zinc-dark); }
.wo-preview .wop-row:last-child { border-bottom: 0; }
.wo-preview .wop-k { color: var(--ink-soft); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; flex: 0 0 84px; padding-top: .1rem; }
.wo-preview .wop-v { flex: 1; min-height: 1.6em; word-break: break-word; }
.wo-preview .wop-v:empty::before { content: "———"; color: var(--zinc-dark); }
.wo-preview .wop-bars { height: 26px; margin: .9rem 1.2rem 1.1rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px); opacity: .75; }
.wo-preview .stamp {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: var(--red);
  border: 1.5px solid var(--red); padding: .2rem .5rem; transform: rotate(-4deg); display: inline-block;
}

/* Cascade fix: the sticky stage must beat the base .cinema-stage rule above */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cinema .cinema-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  }
}

/* ---------- Blog ---------- */
.post-list { border-top: 2px solid var(--navy); max-width: 840px; }
.post-item {
  display: block; padding: 1.7rem 0; border-bottom: 1px solid var(--zinc-dark);
  text-decoration: none; color: var(--ink);
}
.post-item:hover { background: #fff; }
.post-item:hover h2 { color: var(--red); }
.post-date { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
.post-item h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); margin: .35rem 0 .45rem; }
.post-item p { color: var(--ink-soft); max-width: 68ch; margin: 0; }
.post-meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #aeb5dd; margin-top: 1.1rem;
}
.prose > h2:first-child, .prose > p:first-child { margin-top: 0; }

/* Neighbourhood lists inside article copy align with the text, not the bullet indent */
.prose .area-cols { margin: 1rem 0 1.4rem; }
