/* ==========================================================================
   Hertel Plumbing & Heating — stylesheet
   Single file. Organised as:
   01 Tokens · 02 Reset · 03 Typography · 04 Layout · 05 Buttons
   06 Image frames · 07 Header / nav · 08 Footer · 09 Components
   10 Forms · 11 Page-specific · 12 Responsive · 13 Reduced motion / print
   ========================================================================== */

/* 01 · TOKENS ============================================================= */

:root {
  /* Core neutrals — from the logo's pipe frame */
  --ink:          #1C2229;
  --charcoal:     #2B333B;
  --slate:        #38414A;
  --steel:        #626973;
  --steel-light:  #9AA1AA;
  --line:         #DFE3E7;
  --mist:         #F4F6F8;
  --paper:        #FFFFFF;

  /* Brand accents — from the logo mark */
  --flame:        #EC6D01;
  --flame-deep:   #AD4A00;
  --flame-tint:   #FFF3E8;

  --water:        #0091CB;
  --water-deep:   #04688F;   /* use for text / small UI — holds contrast */
  --water-tint:   #EAF6FC;

  /* Complementary shades */
  --copper:       #9E4D18;
  --sand:         #EFE9E2;
  --deep-teal:    #14495C;
  --ice:          #E6EFF4;
  --brick-navy:   #1F2B3E;

  --emergency:    #C0392B;

  /* Default page accent; overridden per page on <body> */
  --accent:       var(--water-deep);
  --accent-bright: var(--water);
  --accent-tint:  var(--water-tint);

  /* Spacing scale (8px base) */
  --s1: 8px;   --s2: 12px;  --s3: 16px;  --s4: 24px;  --s5: 32px;
  --s6: 48px;  --s7: 64px;  --s8: 96px;  --s9: 128px; --s10: 160px;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --pad: 20px;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur: 220ms;

  /* Elevation — tight and low opacity only */
  --shadow: 0 1px 2px rgba(28,34,41,.06), 0 8px 24px rgba(28,34,41,.08);

  /* Chrome heights, used to offset sticky anchors */
  --header-h: 84px;
  --bar-h: 40px;
}

@media (max-width: 1023px) { :root { --header-h: 64px; } }
@media (min-width: 768px) { :root { --pad: 40px; } }
@media (min-width: 1024px) { :root { --pad: 64px; } }

/* Page accents ------------------------------------------------------------ */
body.accent-water  { --accent: var(--water-deep); --accent-bright: var(--water);  --accent-tint: var(--water-tint); }
body.accent-flame  { --accent: var(--flame-deep); --accent-bright: var(--flame);  --accent-tint: var(--flame-tint); }
body.accent-teal   { --accent: var(--deep-teal);  --accent-bright: var(--deep-teal); --accent-tint: var(--ice); }
body.accent-copper { --accent: var(--copper);     --accent-bright: var(--copper); --accent-tint: var(--sand); }


/* 02 · RESET ============================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--steel);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

/* The hidden attribute always wins. Component rules such as
   .form-success { display: grid } would otherwise override it and show
   panels (the form confirmation, for one) before they should appear. */
[hidden] { display: none !important; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--accent); color: #fff; }

/* Focus — always visible, never removed */
:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .gateway :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute; left: var(--s3); top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 14px 22px;
  border-radius: 2px; font-size: .875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s3); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* 03 · TYPOGRAPHY ========================================================= */

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  color: var(--slate);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }

p + p { margin-top: 1.1em; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 62ch;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s4);
  line-height: 1.4;
}

.small { font-size: .875rem; line-height: 1.55; }
.muted { color: var(--steel-light); }
.fineprint { font-size: .8125rem; line-height: 1.6; color: var(--steel-light); }

.rule {
  width: 64px; height: 3px; background: var(--accent);
  margin-bottom: var(--s4); border: 0;
}

/* Measure-limited reading column */
.measure { max-width: 68ch; }
.measure-tight { max-width: 60ch; }

/* Dark-section typography */
.on-dark { color: rgba(255,255,255,.76); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .eyebrow { color: var(--accent-bright); }
.on-dark .muted { color: rgba(255,255,255,.55); }
.on-dark a { color: #fff; }


/* 04 · LAYOUT ============================================================= */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--pad); }
.container-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(80px, 10vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section--ice  { background: var(--ice); }
.section--tint { background: var(--accent-tint); }
.section--charcoal { background: var(--charcoal); }
.section--ink { background: var(--ink); }

/* 12-column editorial grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4); }
.grid--wide-gap { gap: var(--s6); }

.col-1-5  { grid-column: 1 / 6; }
.col-1-6  { grid-column: 1 / 7; }
.col-1-7  { grid-column: 1 / 8; }
.col-7-12 { grid-column: 7 / 13; }
.col-6-12 { grid-column: 6 / 13; }
.col-8-12 { grid-column: 8 / 13; }
.col-full { grid-column: 1 / -1; }

.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }

.section-head { max-width: 62ch; margin-bottom: var(--s7); }
.section-head p { margin-top: var(--s4); }

/* A row of cards; count set per instance */
.cards { display: grid; gap: var(--s4); grid-template-columns: repeat(var(--cols, 3), 1fr); }

.divider { border-top: 1px solid var(--line); }
.on-dark .divider, .section--charcoal .divider, .section--ink .divider { border-color: rgba(255,255,255,.14); }


/* 05 · BUTTONS ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 16px 32px;
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }

.btn--secondary { background: transparent; color: var(--slate); border-color: var(--charcoal); }
.btn--secondary:hover { background: var(--charcoal); color: #fff; transform: translateY(-1px); }

.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-1px); }

/* On-dark variant — for buttons sitting on charcoal / ink sections.
   (.on-dark a { color: #fff } out-ranks .btn--light, which left those
   buttons white-on-white until hovered.) */
.btn--on-dark { background: transparent; color: #fff; border-color: #fff; }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* Ghost / arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; padding-block: 6px;
  position: relative; min-height: 44px;
}
.arrow-link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0;
  background: currentColor; transition: width var(--dur) var(--ease);
}
.arrow-link:hover::after, .arrow-link:focus-visible::after { width: 100%; }
.arrow-link svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.on-dark .arrow-link { color: #fff; }


/* 06 · IMAGE FRAMES ======================================================= */
/* Every photo lives in a fixed-ratio frame and is cover-fitted, so nothing is
   ever stretched or squashed. Portrait files get portrait ratios only;
   landscape files get landscape ratios only. Focal point is tunable per image
   with a --pos inline custom property. */

.frame {
  position: relative;
  width: 100%;              /* definite width: stops aspect-ratio deriving
                               width from min-height inside narrow tracks */
  overflow: hidden;
  border-radius: 4px;
  background: var(--mist);
}
.frame > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, center 40%);
  transition: transform 400ms var(--ease);
}
.frame--zoom:hover > img { transform: scale(1.03); }
.frame--square-off { border-radius: 0; }

/* Portrait ratios — for files WITHOUT -wide in the name */
.r-3x4 { aspect-ratio: 3 / 4; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-1x1 { aspect-ratio: 1 / 1; }

/* Landscape ratios — for files WITH -wide in the name */
.r-16x9 { aspect-ratio: 16 / 9; }
.r-3x2  { aspect-ratio: 3 / 2; }
.r-21x9 { aspect-ratio: 21 / 9; }

/* Portrait frames must never collapse below a readable height */
.r-3x4, .r-4x5, .r-1x1 { min-height: 320px; }

figure.photo { margin: 0; }
figure.photo figcaption { margin-top: var(--s2); font-size: .8125rem; color: var(--steel-light); }

/* Triptych */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }

/* Placeholder — occupies the exact final box so nothing reflows on swap */
.ph {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--mist);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--s3);
}
.ph span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem; line-height: 1.5; color: var(--steel-light);
  letter-spacing: .02em; word-break: break-word;
}
.on-dark .ph, .section--charcoal .ph, .section--ink .ph {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22);
}
.on-dark .ph span { color: rgba(255,255,255,.5); }


/* 07 · HEADER / NAV ======================================================= */

.emergency-bar {
  background: var(--emergency);
  color: #fff;
  font-size: .8125rem;
  line-height: 1.4;
  position: relative;
  z-index: 120;
}
.emergency-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bar-h); padding-block: 8px; text-align: center; flex-wrap: wrap; }
.emergency-bar strong { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; }
.emergency-bar a { color: #fff; font-weight: 600; text-underline-offset: 2px; }
.emergency-bar svg { width: 15px; height: 15px; flex: none; }
.emergency-bar .eb-long { display: none; }
@media (min-width: 900px) {
  .emergency-bar .eb-long { display: inline; }
  .emergency-bar .eb-short { display: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 110;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 64px;
}
@media (min-width: 1024px) { .site-header .container { min-height: var(--header-h); } }

/* Transparent-over-hero variant (dark heroes) */
body.header-over .site-header { background: transparent; border-bottom-color: transparent; }
body.header-over .site-header:not(.is-scrolled) .nav-link,
body.header-over .site-header:not(.is-scrolled) .header-phone { color: #fff; }
body.header-over .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
body.header-over .site-header:not(.is-scrolled) .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.site-header.is-scrolled { background: rgba(255,255,255,.94); border-bottom-color: var(--line); }
/* Must out-rank `body.header-over .site-header` above, or the transparent
   state sticks after scrolling and the nav becomes unreadable. */
body.header-over .site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
}

/* Brand lockup — the supplied logo, with a knockout copy for dark chrome.
   Both files ship; CSS decides which is visible so there is no layout shift. */
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 44px; width: auto; }
@media (min-width: 1024px) { .brand-logo { height: 54px; } }
.brand-logo--light { display: none; }

/* Over a dark hero, before the header solidifies, swap to the knockout */
body.header-over .site-header:not(.is-scrolled) .brand-logo--dark { display: none; }
body.header-over .site-header:not(.is-scrolled) .brand-logo--light { display: block; }

/* Footer and mobile overlay are always dark */
.brand--footer img { height: 64px; width: auto; }
.mobile-menu .brand-logo--dark { display: none; }
.mobile-menu .brand-logo--light { display: block; height: 48px; }

.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: var(--s4); list-style: none; }
@media (max-width: 1279px) { .primary-nav ul { gap: var(--s3); } .header-actions { margin-left: var(--s3); } }
.nav-link {
  display: inline-block; text-decoration: none; color: var(--slate);
  font-size: .875rem; font-weight: 500; padding: 10px 2px; white-space: nowrap;
  position: relative; transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; background: var(--accent-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: none; align-items: center; gap: var(--s3); margin-left: var(--s4); }
.header-actions .btn { white-space: nowrap; padding: 14px 24px; min-height: 46px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--slate); font-weight: 600; font-size: .9375rem;
  white-space: nowrap; transition: color var(--dur) var(--ease);
}
.header-phone svg { width: 16px; height: 16px; }
.header-phone:hover { color: var(--accent); }

.nav-toggle {
  margin-left: auto; width: 48px; height: 48px;
  display: grid; place-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 12px 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--slate);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: show the real nav, hide the hamburger. This block must come AFTER
   the .nav-toggle rules above — equal specificity, so source order decides. */
@media (min-width: 1100px) {
  .primary-nav, .header-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  padding: var(--s4) 0 calc(var(--s4) + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.mobile-menu-close {
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
}
.mobile-menu-close svg { width: 22px; height: 22px; }
.mobile-menu nav ul { list-style: none; }
.mobile-menu nav a {
  display: block; padding: var(--s2) 0;
  font-family: var(--serif); font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.02em; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu nav a[aria-current="page"] { color: var(--accent-bright); }
.mobile-menu-foot { margin-top: auto; padding-top: var(--s6); display: grid; gap: var(--s2); }
body.nav-open { overflow: hidden; }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255,255,255,.12);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; text-decoration: none; color: #fff;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.action-bar a + a { background: var(--accent); }
.action-bar svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .action-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 56px; } }


/* 08 · FOOTER ============================================================= */

.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding-top: clamp(64px, 8vw, 112px); font-size: .9375rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s5); } }

.footer-col h2 { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: #fff; margin-bottom: var(--s4); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.66); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-positioning { margin-top: var(--s4); max-width: 38ch; line-height: 1.6; }
.trust-row { margin-top: var(--s4); font-size: .8125rem; color: rgba(255,255,255,.5); line-height: 1.7; }

.footer-contact address { font-style: normal; display: grid; gap: 10px; }
.footer-contact a { color: rgba(255,255,255,.66); }
.footer-phone { font-family: var(--serif); font-size: 1.5rem; color: #fff !important; text-decoration: none; letter-spacing: -0.02em; }

.social-row { display: flex; gap: var(--s2); margin-top: var(--s4); }
.social-row a {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px;
  display: grid; place-items: center; color: rgba(255,255,255,.75);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social-row a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--s4) calc(var(--s4) + 56px);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: center; justify-content: space-between;
  font-size: .8125rem; color: rgba(255,255,255,.5);
}
@media (min-width: 768px) { .footer-bottom { padding-bottom: var(--s4); } }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s4); }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }


/* 09 · COMPONENTS ========================================================= */

/* Hero — full-bleed landscape photo with scrim */
.hero {
  position: relative; overflow: hidden;
  background: var(--brick-navy);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 45%); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(28,34,41,.93) 0%, rgba(28,34,41,.84) 38%, rgba(31,43,62,.7) 68%, rgba(31,43,62,.6) 100%),
    linear-gradient(to bottom, rgba(28,34,41,.55) 0%, rgba(28,34,41,.15) 35%, rgba(28,34,41,.3) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(96px, 14vw, 180px);
  min-height: min(82vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,.82); margin-top: var(--s5); max-width: 52ch; }
.hero .btn-row { margin-top: var(--s6); }
.hero .eyebrow { color: #fff; opacity: .85; }

.trust-strip {
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .8125rem; letter-spacing: .04em;
  color: rgba(255,255,255,.72); line-height: 1.8;
  max-width: 54ch;
}

/* Stat cluster */
.stats { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); margin-top: var(--s6); }
.stat { }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: #fff; display: block;
}
.stat-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 10px; display: block; }
.stats--light .stat-num { color: var(--slate); }
.stats--light .stat-label { color: var(--steel); }

/* Split gateway */
.gateway { background: var(--ink); }
.gateway-intro { text-align: center; padding-block: var(--s7) var(--s6); }
.gateway-intro p { color: rgba(255,255,255,.6); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.gateway-halves { display: flex; flex-direction: column; }
.gateway-half {
  position: relative; display: block; overflow: hidden;
  text-decoration: none; color: #fff;
  flex: 1 1 50%;
  transition: flex-basis 400ms var(--ease);
  border-top: 4px solid var(--half-accent, var(--accent-bright));
}
.gateway-half-media { position: absolute; inset: 0; }
.gateway-half-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 40%); transition: transform 500ms var(--ease); }
.gateway-half-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,34,41,.93) 0%, rgba(28,34,41,.72) 45%, rgba(28,34,41,.48) 100%);
  transition: background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.gateway-half-body {
  position: relative; z-index: 2;
  padding: var(--s6) var(--pad) var(--s7);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px;
}
.gateway-half h2 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.gateway-half .gw-desc { margin-top: var(--s3); color: rgba(255,255,255,.78); max-width: 38ch; }
.gateway-half ul { list-style: none; margin-top: var(--s4); display: grid; gap: 6px; }
.gateway-half li { font-size: .875rem; color: rgba(255,255,255,.66); padding-left: 18px; position: relative; }
.gateway-half li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--half-accent); }
.gateway-half .gw-cta { margin-top: var(--s5); display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gateway-half .gw-cta svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.gw-underline { display: block; height: 2px; width: 0; background: var(--half-accent); margin-top: var(--s4); transition: width 400ms var(--ease); }

@media (min-width: 900px) {
  .gateway-halves { flex-direction: row; }
  .gateway-half { border-top: 0; }
  .gateway-half-body { min-height: 70vh; }
  .gateway-half:hover, .gateway-half:focus-visible { flex-basis: 58%; }
  .gateway-half:hover .gateway-half-media img { transform: scale(1.04); }
  .gateway-half:hover .gateway-half-scrim { opacity: .82; }
  .gateway-half:hover .gw-underline, .gateway-half:focus-visible .gw-underline { width: 96px; }
  .gateway-half:hover .gw-cta svg { transform: translateX(4px); }
  .gateway-halves:hover .gateway-half:not(:hover) .gateway-half-scrim { opacity: 1; background: linear-gradient(to top, rgba(28,34,41,.95) 0%, rgba(28,34,41,.85) 100%); }
}

/* Feature list (Why Hertel) */
.feature { display: grid; gap: var(--s3); }
.feature-icon { width: 40px; height: 40px; color: var(--slate); }
.feature-icon .accent-stroke { stroke: var(--accent-bright); }
.feature-icon .accent-fill { fill: var(--accent-bright); }
.feature h3 { font-size: 1.25rem; }
.on-dark .feature-icon { color: #fff; }

/* Card */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: var(--s5); display: grid; gap: var(--s2); align-content: start;
}
.card h3 { font-size: 1.25rem; }
.card--plain { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: var(--s4) 0 0; }
.on-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.on-dark .card--plain { background: transparent; border-color: rgba(255,255,255,.16); }

.card-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: var(--s1); }

/* Checklist */
.checklist { list-style: none; display: grid; gap: var(--s2); }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.55; }
.checklist svg { width: 16px; height: 16px; margin-top: 5px; color: var(--accent); flex: none; }
.on-dark .checklist svg { color: var(--accent-bright); }

.checklist--2col { grid-template-columns: 1fr; }
@media (min-width: 720px) { .checklist--2col { grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); } }

/* Bullet list with hairline rules */
.rule-list { list-style: none; }
.rule-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); line-height: 1.5; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.on-dark .rule-list li { border-color: rgba(255,255,255,.14); }

/* Credentials strip */
.credentials { background: var(--charcoal); color: rgba(255,255,255,.8); }
.credentials .container { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); padding-block: var(--s4); justify-content: center; text-align: center; }
.credentials span { font-size: .8125rem; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 10px; }
.credentials span::before { content: ""; width: 5px; height: 5px; background: var(--accent-bright); border-radius: 50%; flex: none; }

/* Logo band */
.logo-band-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  color: var(--steel); margin-bottom: var(--s5); text-align: center;
}
/* Hairlines are drawn by each cell (a 1px outline shadow that fills the 1px
   gap and the 1px padding), not by a grey container background showing
   through the gaps. Empty trailing cells therefore paint nothing. With full
   rows the geometry is identical to the old border + gap version. */
.logo-grid {
  display: grid; gap: 1px; padding: 1px;
  border-radius: 4px; overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(var(--logo-cols, 4), 1fr); } }
.logo-cell {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  display: grid; place-items: center;
  padding: var(--s4) var(--s3);
  min-height: 108px;
}
.logo-cell img { max-height: 36px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 768px) { .logo-cell { min-height: 128px; } .logo-cell img { max-height: 48px; } }
/* Square and portrait marks need more height to carry the same optical weight
   as a wide wordmark; a flat 48px turns them into postage stamps. */
.logo-cell--tall img { max-height: 58px; }
@media (min-width: 768px) { .logo-cell--tall img { max-height: 76px; } }
/* Logos delivered on an opaque white background get a white tile so the box
   never shows as a rectangle against a tinted section. */
.logo-cell--opaque { background: #fff; }
.logo-cell .ph { width: 100%; min-height: 60px; border-radius: 2px; }

/* Award callout */
.award {
  display: grid; gap: var(--s5); align-items: center;
  grid-template-columns: 1fr;
  padding: var(--s6); border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper);
}
@media (min-width: 768px) { .award { grid-template-columns: 200px 1fr; gap: var(--s7); } }
.award--text { grid-template-columns: 1fr; border-left: 3px solid var(--accent); }
@media (min-width: 768px) { .award--text { grid-template-columns: 1fr; } }
.award-logo { display: grid; place-items: center; min-height: 120px; }
.award-logo img { max-height: 120px; width: auto; }

/* Quote cards */
.quote {
  border-top: 2px solid var(--accent); padding-top: var(--s4);
  display: grid; gap: var(--s4); align-content: start;
}
.quote blockquote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--slate); letter-spacing: -0.01em; }
.quote figcaption { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.quote figcaption .via { color: var(--steel-light); }
.on-dark .quote blockquote { color: #fff; }
.on-dark .quote figcaption { color: rgba(255,255,255,.6); }

/* Big feature pull-quote */
.pullquote { text-align: left; max-width: 22ch; }
.pullquote blockquote {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--slate); max-width: 20ch;
}
.pullquote figcaption { margin-top: var(--s5); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

/* Offer band */
.offer {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  padding: clamp(32px, 5vw, 64px);
  display: grid; gap: var(--s5); align-items: center;
}
@media (min-width: 860px) { .offer { grid-template-columns: 1.4fr auto; gap: var(--s7); } }
.offer h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0; text-align: left; min-height: 56px;
  font-family: var(--serif); font-size: 1.1875rem; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3; color: var(--slate);
}
.acc-trigger:hover { color: var(--accent); }
.acc-icon { flex: none; width: 20px; height: 20px; margin-top: 4px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.acc-icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.acc-icon::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.acc-panel-inner { padding-bottom: var(--s5); max-width: 68ch; }
.on-dark .accordion, .on-dark .acc-item { border-color: rgba(255,255,255,.14); }
.on-dark .acc-trigger { color: #fff; }

/* Tabs */
.tablist {
  display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: thin;
  border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: var(--s6);
  -webkit-overflow-scrolling: touch;
}
.tab {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--s3) var(--s4); min-height: 56px;
  font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--steel);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab svg { width: 20px; height: 20px; }
.tab:hover { color: var(--slate); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { margin-bottom: var(--s3); }
.tabpanel .tab-desc { margin-bottom: var(--s5); max-width: 66ch; font-style: italic; }

/* Timeline */
.timeline { list-style: none; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); align-items: start; }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; color: var(--slate); line-height: 1; }
.tl-item--future { background: var(--accent-tint); padding-inline: var(--s3); }
.tl-item--future .tl-year { color: var(--accent); }
@media (min-width: 768px) {
  .tl-item { grid-template-columns: 180px 1fr; gap: var(--s6); }
  .tl-item--future { margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
}

/* Numbered sequence (project phases / how it works) */
.sequence { list-style: none; counter-reset: seq; display: grid; gap: 0; }
.seq-item {
  counter-increment: seq;
  display: grid; grid-template-columns: 56px 1fr; gap: var(--s4);
  padding: var(--s4) 0; border-top: 1px solid var(--line); align-items: baseline;
}
.seq-item:last-child { border-bottom: 1px solid var(--line); }
.seq-item::before {
  content: counter(seq, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.125rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0;
}
.on-dark .seq-item { border-color: rgba(255,255,255,.14); }
.on-dark .seq-item::before { color: var(--accent-bright); }

/* Big numbered steps */
.steps { display: grid; gap: var(--s6); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.step { counter-increment: step; position: relative; padding-top: var(--s5); border-top: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent); opacity: .22; margin-bottom: var(--s3);
}
.step h3 { margin-bottom: var(--s2); }

/* Watermark numeral */
.watermark {
  position: absolute; right: var(--pad); bottom: -.18em;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(10rem, 28vw, 26rem); line-height: .8;
  color: #fff; opacity: .035; pointer-events: none; user-select: none;
  letter-spacing: -0.04em; z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* Notice / callout */
.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--emergency);
  background: var(--paper); border-radius: 4px;
  padding: var(--s5); display: grid; gap: var(--s2);
  grid-template-columns: 24px 1fr; align-items: start; column-gap: var(--s3);
}
.notice svg { width: 22px; height: 22px; color: var(--emergency); grid-row: span 2; margin-top: 2px; }
.notice h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--slate); letter-spacing: 0; line-height: 1.4; }
.notice p { font-size: .9375rem; }
.notice a { color: var(--emergency); font-weight: 600; }

/* Hours table */
.hours { list-style: none; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.hours .day { color: var(--slate); font-weight: 500; }
.hours li.is-closed .day, .hours li.is-closed .time { color: var(--steel-light); }
.hours-emergency {
  margin-top: 0; padding: var(--s3) var(--s4);
  background: var(--accent-tint); border: 1px solid var(--accent); border-top: 0;
  border-radius: 0 0 4px 4px;
  color: var(--accent); font-weight: 600; font-size: .9375rem; line-height: 1.5;
}
.hours-emergency a { color: inherit; }

/* Map card */
.map-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--mist); }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-card-foot { padding: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; background: var(--paper); border-top: 1px solid var(--line); }

/* Cross-link card */
.crosslink {
  display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--paper); grid-template-columns: 1fr;
}
@media (min-width: 720px) { .crosslink { grid-template-columns: 320px 1fr; align-items: stretch; } }
.crosslink .frame { border-radius: 0; height: 100%; }
.crosslink-body { padding: clamp(28px, 4vw, 56px); display: grid; gap: var(--s3); align-content: center; }
.crosslink-body h2 { font-size: clamp(1.625rem, 2.8vw, 2.25rem); }

/* Reveal on scroll.
   The hidden state is scoped to .js, which is set by an inline script in <head>.
   Without JavaScript the class never lands, so content is simply visible —
   it can never be stranded at opacity 0. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }


/* 10 · FORMS ============================================================== */

.form-shell { display: grid; gap: var(--s5); }
.form-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .form-grid--3 { grid-template-columns: 1fr 1fr 1fr; } }

.field { display: grid; gap: 8px; }
.field > label, .fieldset-legend {
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate);
}
.field .optional { color: var(--steel-light); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--paper); color: var(--slate);
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; padding-top: 14px; }
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23626973' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--emergency);
}

.field-error { font-size: .8125rem; color: var(--emergency); font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }

fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fieldset-legend { padding: 0; }

/* Pill / tile selectable radios and checkboxes */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  font-size: .9375rem; font-weight: 500; color: var(--slate);
  cursor: pointer; text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pill input:hover + span { border-color: var(--steel); }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.pill input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 3px; }

/* Consent / inline checkbox */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.check span { font-size: .9375rem; line-height: 1.55; color: var(--steel); }

/* Honeypot */
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Success panel */
.form-success {
  border: 1px solid var(--accent); border-radius: 4px; background: var(--accent-tint);
  padding: clamp(32px, 5vw, 56px); display: grid; gap: var(--s3);
}
.form-success h3 { color: var(--slate); }
.form-success svg { width: 36px; height: 36px; color: var(--accent); }

.form-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px, 4vw, 56px);
}


/* 11 · PAGE-SPECIFIC ====================================================== */

/* Page hero — split: charcoal text panel + portrait photo */
.page-hero { background: var(--charcoal); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1fr; }
.page-hero-body { padding-block: clamp(64px, 9vw, 128px); display: flex; flex-direction: column; justify-content: center; }
.page-hero-body h1 { color: #fff; max-width: 15ch; }
.page-hero-body .lede { color: rgba(255,255,255,.78); margin-top: var(--s5); }
.page-hero-body .btn-row { margin-top: var(--s6); }
.page-hero-media { position: relative; min-height: 380px; }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 35%); }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(43,51,59,.75) 0%, rgba(43,51,59,0) 42%);
}
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .page-hero-body { padding-right: var(--s7); }
  .page-hero-media { min-height: 620px; }
}

/* Landscape page hero variant */
.page-hero--wide .page-hero-grid { grid-template-columns: 1fr; }
.page-hero--wide { position: relative; background: var(--ink); }
.page-hero--wide .page-hero-media { position: absolute; inset: 0; min-height: 0; }
.page-hero--wide .page-hero-media::after {
  background: linear-gradient(to right, rgba(28,34,41,.92) 0%, rgba(28,34,41,.76) 45%, rgba(28,34,41,.5) 100%);
}
.page-hero--wide .page-hero-body { position: relative; z-index: 2; min-height: min(72vh, 620px); }

/* Editorial article (About story) */
.article { max-width: 68ch; }
.article p { font-size: 1.125rem; line-height: 1.72; }
.article p + p { margin-top: 1.25em; }
.article > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-weight: 600;
  font-size: 4.2em; line-height: .84; padding: .06em .12em 0 0;
  color: var(--slate);
}
.article h3 { margin-top: var(--s7); margin-bottom: var(--s3); }

/* Legal / reading pages */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin-bottom: var(--s3); }
.prose h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); margin-top: var(--s7); margin-bottom: var(--s3); }
.prose h3 { font-size: 1.1875rem; margin-top: var(--s5); margin-bottom: var(--s2); }
.prose p, .prose li { line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }
.prose ul { padding-left: 1.25em; margin-top: var(--s3); display: grid; gap: 10px; list-style: disc; }
.prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul li { padding-left: .25em; }
.prose .updated { font-size: .875rem; color: var(--steel-light); margin-bottom: var(--s6); }
.prose strong { color: var(--slate); }
.prose address { font-style: normal; line-height: 1.8; margin-top: var(--s3); }

/* Pricing card */
.price-card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  padding: clamp(32px, 5vw, 56px); display: grid; gap: var(--s4); max-width: 520px;
}
.price-figure { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-amount { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--slate); }
.price-unit { font-size: .9375rem; color: var(--steel); }
.price-add { font-size: .9375rem; color: var(--steel); padding-top: var(--s3); border-top: 1px solid var(--line); }

/* 404 */
.error-page { display: grid; place-items: center; text-align: center; padding-block: clamp(96px, 16vw, 200px); }
.error-code { font-family: var(--serif); font-size: clamp(5rem, 18vw, 11rem); font-weight: 600; line-height: .9; letter-spacing: -0.04em; color: var(--accent); opacity: .18; }


/* 12 · RESPONSIVE ========================================================= */

@media (max-width: 899px) {
  .grid { grid-template-columns: 1fr; gap: var(--s5); }
  .col-1-5, .col-1-6, .col-1-7, .col-7-12, .col-6-12, .col-8-12 { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .triptych { grid-template-columns: 1fr; }
  /* Landscape frames gain height on narrow screens so they don't become slivers */
  .r-21x9 { aspect-ratio: 4 / 3; }
  .r-16x9 { aspect-ratio: 4 / 3; }
  .hero-scrim { background: linear-gradient(to top, rgba(28,34,41,.95) 0%, rgba(28,34,41,.84) 50%, rgba(31,43,62,.72) 100%); }
  .watermark { font-size: clamp(8rem, 40vw, 14rem); opacity: .04; }
}

@media (min-width: 560px) and (max-width: 899px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .triptych { grid-template-columns: repeat(3, 1fr); }
  .triptych .r-3x4 { min-height: 0; }
}

@media (max-width: 559px) {
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; }
  .stats { gap: var(--s4) var(--s5); }
  .tl-item { grid-template-columns: 1fr; gap: var(--s2); }
  .offer { padding: var(--s5) var(--s4); }
  .notice { grid-template-columns: 1fr; }
  .notice svg { grid-row: auto; }
}

@media (min-width: 1440px) {
  .hero-inner { min-height: min(78vh, 820px); }
}


/* 13 · REDUCED MOTION & PRINT ============================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .frame--zoom:hover > img,
  .gateway-half:hover .gateway-half-media img { transform: none !important; }
  .gateway-half:hover, .gateway-half:focus-visible { flex-basis: 50% !important; }
  .btn:hover { transform: none !important; }
  .acc-panel { transition: none !important; }
}

@media print {
  .emergency-bar, .site-header, .action-bar, .mobile-menu, .btn, .map-card iframe { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 24px; }
  .acc-panel { height: auto !important; }
}


/* 14 · ROUND 2 ADDITIONS ================================================== */
/* Everything below is new in the Round 2 revision and is scoped to new
   class names, so it cannot restyle anything that existed before. */

/* Homepage hero trust strip — each item holds together; one line ≥1024px */
.trust-strip .ts-item { white-space: nowrap; }
.trust-strip .ts-sep { display: inline-block; margin-inline: .1em; }
@media (min-width: 1024px) {
  .trust-strip { max-width: none; }
  .trust-strip .ts-sep { margin-inline: -.05em; }
}

/* Homepage hero stat cluster — four stats: 2 × 2 on small screens,
   one row of four from 768px. Stat typography is unchanged. */
.stats--four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s5); max-width: 520px; }
@media (min-width: 768px)  { .stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--s4); max-width: none; } }
@media (min-width: 1024px) { .stats--four { grid-template-columns: repeat(4, max-content); gap: var(--s5) var(--s6); } }
@media (min-width: 1280px) { .stats--four { gap: var(--s5) var(--s7); } }
@media (max-width: 559px)  { .stats--four { gap: var(--s4) var(--s4); } }

/* Credentials strip as a real list (Plumbing). Same look as the span version. */
.credentials ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: center; }
.credentials li { font-size: .8125rem; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.credentials li::before { content: ""; width: 5px; height: 5px; background: var(--accent-bright); border-radius: 50%; flex: none; }
/* One line on desktop. 1024–1279px: 1px smaller type and tighter gaps so the longer
   HVAC strip (~885px in Inter at full size) fits the 896px container with room to spare.
   Wrapping stays enabled as a safety net, so an unusually wide font wraps cleanly
   instead of overflowing. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .credentials ul { column-gap: 20px; }
  .credentials li { font-size: .75rem; gap: 8px; }
}


/* Vertical logo lockups (Mitsubishi Electric Diamond Contractor) — sized by
   optical height so the stacked mark sits level with the wide wordmarks. */
.logo-cell--vertical img { max-height: 60px; }                              /* 108px cell − 48px padding */
@media (min-width: 768px) { .logo-cell--vertical img { max-height: 80px; } } /* 128px cell − 48px padding */

/* Service jump navigation (Plumbing + HVAC).
   Looks like the Comfort Advantage tab strip, but it is a list of anchor links
   that scroll to each section — nothing is hidden. Sticks under the header. */
.jumpnav {
  position: sticky; top: calc(var(--header-h) + 1px); z-index: 100;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.jumpnav ul {
  list-style: none; display: flex; gap: var(--s1);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jumpnav ul::-webkit-scrollbar { display: none; }
.jumpnav a {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: var(--s3) var(--s4); min-height: 56px;
  font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--steel);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.jumpnav a:hover { color: var(--slate); }
.jumpnav a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.jumpnav a:focus-visible { outline-offset: -3px; }
@media (max-width: 899px) {
  .jumpnav .container { padding-inline: 0; }
  .jumpnav ul {
    padding-inline: var(--pad);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--pad), #000 calc(100% - var(--pad)), transparent 100%);
  }
  .jumpnav a { padding-inline: var(--s3); }
}
/* Headings land clear of the header + jump nav */
body.has-jumpnav main [id] { scroll-margin-top: calc(var(--header-h) + 1px + 57px + var(--s3)); }

/* "Who we work with" — slow two-row marquee of builder names */
.partners-head { text-align: center; margin-inline: auto; }
.marquee { position: relative; display: grid; gap: var(--s4); }
.marquee:focus-visible { outline-offset: 8px; }
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee-left var(--marquee-dur, 70s) linear infinite; }
.marquee-row--reverse .marquee-track { animation-name: marquee-right; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.partner-list { list-style: none; display: flex; align-items: center; flex: none; }
.partner-list li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.3; color: var(--slate);
}
.partner-list li::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright); margin-inline: clamp(20px, 2.6vw, 40px); flex: none;
}
@keyframes marquee-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* Desktop shows two rows; mobile shows one row of every name */
.marquee-row--mobile { display: none; }
@media (max-width: 767px) {
  .marquee-row--desktop { display: none; }
  .marquee-row--mobile { display: block; }
}
.partners-foot {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4);
  align-items: center; justify-content: center; margin-top: var(--s6);
}
.partners-more { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--steel); }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.marquee-toggle:hover { border-color: var(--charcoal); }
.marquee-toggle svg { width: 14px; height: 14px; }
.marquee-toggle .i-play { display: none; }
.marquee-toggle[data-paused="true"] .i-play { display: block; }
.marquee-toggle[data-paused="true"] .i-pause { display: none; }
.on-dark .partner-list li { color: #fff; }
.on-dark .partners-more { color: rgba(255,255,255,.72); }
.on-dark .marquee-toggle { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .marquee-toggle:hover { border-color: #fff; }
/* Reduced motion: a static, centered, wrapping list — no duplicates, no control */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; width: auto; display: block; }
  .marquee-row { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .marquee-row--mobile { display: none !important; }
  .marquee-row--desktop { display: block !important; }
  .partner-list { flex-wrap: wrap; justify-content: center; row-gap: var(--s2); padding-inline: var(--pad); }
  .partner-list[aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
  .marquee { gap: var(--s2); }
  .partner-list li:last-child::after { display: none; }
  .partner-list li { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .partner-list li { font-size: 1.125rem; }
  .partner-list li::after { margin-inline: 14px; }
}
/* Without JavaScript the pause control can't work, so it isn't shown */
html:not(.js) .marquee-toggle { display: none; }

/* Wells Fargo link request panel (Financing) */
.wf-request { margin-top: var(--s4); max-width: 640px; }
.wf-request .form-panel { padding: clamp(24px, 4vw, 40px); }
.wf-intro { font-size: .9375rem; color: var(--steel); }


/* Archival photo set into the About story column */
.article figure.article-photo { margin-block: var(--s6); }   /* caption uses the existing figure.photo style */

