/* MTO Windows & Doors. On The Mark, On The Money.
   Shared site styles. Phone first, 390px is the design target. Hand edited (not generated). */

:root {
  --royal: #1D4FA3;
  --royal-2: #2A62C4;
  --navy: #0F2A5C;
  --night: #0A1F45;
  --sky: #A7D3F5;
  --ink: #0F2A5C;
  --paper: #FFFFFF;
  --off: #F4F6F9;
  --mist: #E6E9EE;
  --ice: #EEF5FC;
  --glass: #DDEEFB;
  --glass-2: #A7D3F5;
  --slate: #6B7480;
  --muted: #566070;
  --line: rgba(15, 42, 92, 0.14);
  --line-2: rgba(15, 42, 92, 0.24);
  --shadow: 0 1px 0 rgba(15, 42, 92, 0.08), 0 12px 30px rgba(15, 42, 92, 0.08);
  --shadow-up: 0 2px 0 rgba(15, 42, 92, 0.06), 0 22px 44px rgba(15, 42, 92, 0.16);
  --gutter: 16px;
  --radius: 18px;
  --head: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 64px;
  --pin: repeating-linear-gradient(90deg, rgba(167, 211, 245, 0.28) 0 2px, transparent 2px 28px);
  --pin-dark: repeating-linear-gradient(90deg, rgba(167, 211, 245, 0.07) 0 2px, transparent 2px 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { text-decoration-color: var(--royal); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.06; margin: 0 0 0.45em; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 10vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 7.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 4.8vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 38em; }
.lede { font-size: 1.15rem; line-height: 1.55; }
.small { font-size: 0.92rem; color: var(--muted); }
strong { font-weight: 700; }
ul, ol { padding-left: 1.2em; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); margin: 0 auto; max-width: 1180px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.alt { background: var(--off); }
.measure { max-width: 760px; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 999px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Eyebrow: small collegiate label over a heading */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--royal);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; flex: none; }
.ink .eyebrow, .band .eyebrow, .foot .eyebrow { color: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  font-family: var(--head); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.15;
  padding: 16px 24px; border-radius: 999px; text-decoration: none; border: 2px solid var(--royal);
  background: var(--royal); color: #fff; cursor: pointer; min-height: 54px;
  box-shadow: 0 6px 16px rgba(29, 79, 163, 0.22);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ink { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(10, 31, 69, 0.28); }
.btn-ink:hover { background: var(--night); border-color: var(--night); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--ice); border-color: var(--royal); color: var(--royal); }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(10, 31, 69, 0.22); }
.btn-light:hover { background: var(--ice); border-color: var(--ice); color: var(--navy); }
.ink .btn-ghost, .band .btn-ghost, .foot .btn-ghost, .stick .btn-ghost, .menu .btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.ink .btn-ghost:hover, .band .btn-ghost:hover, .foot .btn-ghost:hover, .stick .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-top: 3px solid var(--royal);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 42, 92, 0.05);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-height: 44px; flex: none; }
.brand img, .brand .brand-mark { height: 50px; width: auto; }
.brand-word { display: grid; font-family: var(--head); line-height: 1; }
.brand-word span { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; color: var(--navy); }
.brand-word small { font-weight: 700; font-size: 0.6rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--royal); margin-top: 4px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; text-decoration: none; flex: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.icon-btn:hover { background: var(--ice); }
.icon-btn.call { background: var(--royal); border-color: var(--royal); color: #fff; }
.icon-btn.call:hover { background: var(--navy); border-color: var(--navy); }
.icon-btn svg { width: 22px; height: 22px; }
.nav-desktop { display: none; }
.top-call { display: none; }

/* Full screen menu (phones and tablets) */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--navy); color: #fff;
  background-image: var(--pin-dark);
  transform: translateY(-104%); visibility: hidden;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 320ms;
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.menu.open { transform: translateY(0); visibility: visible; transition: transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.brand-rev, .brand-on-dark, .brand-rev .brand-word span, .brand-on-dark .brand-word span { color: #fff; }
.brand-rev .brand-word small, .brand-on-dark .brand-word small { color: var(--sky); }
.brand-rev .brand-mark, .brand-on-dark .brand-mark { background: #fff; border-radius: 12px; padding: 4px 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.menu-top .icon-btn { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.menu-top .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.menu ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.menu a.link {
  display: flex; align-items: center; min-height: 52px; font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.1; letter-spacing: -0.01em;
  text-decoration: none; color: #fff; padding: 6px 0; border-bottom: 1px solid rgba(167, 211, 245, 0.22);
}
.menu a.link:hover { color: var(--sky); }
.menu a.link[aria-current="page"] { color: var(--sky); }
.menu a.link[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); margin-left: 12px; }
.menu-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.menu-foot .btn { width: 100%; }
.menu .small { color: rgba(255, 255, 255, 0.78); margin: 0; }
body.menu-open { overflow: hidden; }

/* Hero (base layout; the home page adds its own look in home.css) */
.hero { position: relative; overflow: hidden; padding: 28px 0 36px; }
.hero-sweep {
  position: absolute; left: -60vw; right: -60vw; bottom: 16%; height: 20%; z-index: 1;
  background: linear-gradient(90deg, var(--sky) 0, var(--royal) 60%, var(--navy) 100%);
  transform: rotate(-8deg); border-radius: 999px;
}
.hero-in { position: relative; z-index: 1; }
.hero-text, .hero-actions { position: relative; z-index: 4; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .ln { display: block; }
.hero .lede { max-width: 24em; margin-bottom: 8px; }
.hero-stage { position: relative; height: min(76vw, 420px); margin: 14px auto 18px; max-width: 520px; }
.hero-cta { display: grid; gap: 10px; }
.hero-note { margin: 14px 0 0; }

/* Page head: ice panel, varsity pinstripes, jersey stripe at the bottom, Mo on the right */
.page-head {
  position: relative; padding: 32px 0 34px; overflow: hidden;
  background: var(--ice); background-image: var(--pin);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: linear-gradient(var(--royal) 0 6px, #fff 6px 8px, var(--sky) 8px 12px);
}
.page-head h1 { font-size: clamp(2.3rem, 9.6vw, 4.4rem); margin-bottom: 12px; }
.page-head .lede { color: var(--muted); margin-bottom: 0; }
.ph-in { display: grid; grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "eb art" "h art" "lede lede" "more more"; column-gap: 14px; align-items: start; }
.ph-in > .eyebrow { grid-area: eb; justify-self: start; }
.ph-in > h1 { grid-area: h; }
.ph-in > .lede { grid-area: lede; }
.ph-in > .ph-more { grid-area: more; margin-top: 20px; }
.ph-more .btn { flex: 1 1 auto; }
.ph-art { grid-area: art; align-self: end; width: 100%; }
.ph-art svg { width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(15, 42, 92, 0.16)); }

/* Shine on illustrated glass */
.sheen { opacity: 0.5; transform: translateX(-140%) skewX(-18deg); transform-box: fill-box; transform-origin: center; }
.in .sheen { animation: sheen 2.4s cubic-bezier(.4,0,.2,1) 200ms 1 both; }
.product:hover .sheen, .panel:hover .sheen, .jcard:hover .sheen { animation: sheen 1.6s cubic-bezier(.4,0,.2,1) 0ms 1 both; }
@keyframes sheen { 0% { transform: translateX(-140%) skewX(-18deg); } 55% { transform: translateX(160%) skewX(-18deg); } 100% { transform: translateX(160%) skewX(-18deg); } }
/* Style art moves on hover: slider slides, casement cranks open, double hung tilts in (transform only) */
.mv { transform-box: fill-box; transition: transform 760ms cubic-bezier(.34,1.56,.64,1); }
.mv-slide { transform-origin: center; }
.mv-tilt { transform-origin: 50% 100%; }
.mv-crank { transform-origin: 0 50%; }
@media (hover: hover) {
  .product:hover .mv-slide, .panel:hover .mv-slide, .jcard:hover .mv-slide { transform: translateX(-34%); }
  .product:hover .mv-tilt, .panel:hover .mv-tilt, .jcard:hover .mv-tilt { transform: scaleY(.72) scaleX(1.08); }
  .product:hover .mv-crank, .panel:hover .mv-crank, .jcard:hover .mv-crank { transform: scaleX(.6) skewY(-9deg); }
}

/* Numbered jersey cards (01, 02, ...) */
.jcards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.jcard {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 16px 16px 16px 12px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); isolation: isolate;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}
.jcard::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.2); border-radius: 13px; pointer-events: none; z-index: -1; transition: border-color 220ms ease; }
.jcard .jnum {
  position: absolute; top: 8px; right: 14px; z-index: -1;
  font-family: var(--head); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.6px var(--royal); transition: color 220ms ease;
}
.jcard .art { width: 100%; }
.jcard .art svg { width: 100%; height: auto; }
.jcard h3 { font-size: 1.22rem; margin: 0 0 4px; padding-right: 48px; }
.jcard p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.jcard .jbest {
  margin-top: 10px; font-family: var(--head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal); line-height: 1.4;
}
.jcard .jbest::before { content: "Best for: "; color: var(--navy); }
@media (hover: hover) {
  .jcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
  .jcard:hover::before { border-color: rgba(29, 79, 163, 0.45); }
  .jcard:hover .jnum { color: var(--sky); }
}
.jcard:focus-visible { outline-offset: 4px; }

/* Proof rows */
.proofs { display: grid; gap: 22px; }
.proof { border-left: 5px solid var(--royal); padding-left: 16px; }
.proof h3 { margin-bottom: 6px; }
.proof p { margin: 0; color: var(--muted); }

/* Ink block (dark section) */
.ink { background: var(--navy); color: #fff; background-image: var(--pin-dark); }
.ink h1, .ink h2, .ink h3 { color: #fff; }
.ink .big { font-family: var(--head); font-weight: 800; color: var(--sky); font-size: clamp(4.5rem, 24vw, 10rem); line-height: 0.9; letter-spacing: -0.04em; margin: 0 0 8px; }
.ink p { color: rgba(255, 255, 255, 0.86); }
.ink .small { color: rgba(255, 255, 255, 0.75); }
.ink .btn-light { margin-top: 8px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps li { position: relative; padding: 0 0 28px 62px; }
.steps li::before {
  content: attr(data-n); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 999px;
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--sky);
}
.steps li::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 0; border-left: 2px dashed rgba(15, 42, 92, 0.3); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Service area */
.areas { display: grid; gap: 16px; }
.area { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.area::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 13px; pointer-events: none; }
.area h3 { margin-bottom: 6px; }
.area .state { color: var(--royal); font-family: var(--head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px; }
.area p { margin: 0; color: var(--muted); }

/* CTA band */
.band { position: relative; overflow: hidden; background: var(--royal); color: #fff; padding: 52px 0; background-image: var(--pin-dark); }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(var(--navy) 0 4px, var(--sky) 4px 8px); }
.band .wrap { position: relative; }
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { color: rgba(255, 255, 255, 0.92); margin-bottom: 22px; }
.band .btn-ink { width: 100%; }
.band .btn-row .btn { width: 100%; }
.band-in { display: grid; gap: 20px; align-items: center; }
.band-art { display: none; }
.band-art svg { width: 100%; height: auto; }

/* Notes, spec lists, product rows */
.note { background: var(--ice); border-left: 5px solid var(--royal); padding: 16px 18px; border-radius: 0 14px 14px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.spec { display: grid; gap: 0; margin: 0; }
.spec-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec-row dt { font-family: var(--head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); }
.spec-row dd { margin: 0; color: var(--ink); }
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-card { position: relative; background: #fff; border-radius: 20px; padding: 6px 20px; box-shadow: var(--shadow); }
.spec-card::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 15px; pointer-events: none; }
.spec-card .spec-row:first-child { border-top: 0; }
.spec-card .spec-row:last-child { border-bottom: 0; }
.product-list { display: grid; gap: 16px; }
.product {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center;
  background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--nav-h) + 16px);
}
.product::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 17px; pointer-events: none; }
.product .art { background: var(--ice); border-radius: 16px; padding: 4px; }
.product .art svg { width: 100%; height: auto; }
.product h3 { margin-bottom: 6px; }
.product p { margin: 0 0 6px; color: var(--muted); font-size: 0.98rem; }
.product p:last-child { margin-bottom: 0; }
.product p strong { color: var(--navy); }
.product .pnum, .pnum {
  font-family: var(--head); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; margin: 0 0 6px !important;
  color: transparent !important; -webkit-text-stroke: 1.5px var(--royal);
}
.placeholder {
  background: repeating-linear-gradient(135deg, var(--ice) 0 12px, #fff 12px 24px); border: 2px dashed var(--line-2);
  border-radius: var(--radius); padding: 22px; color: var(--muted); font-size: 0.95rem; text-align: center;
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--royal);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%); mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.checks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Split: copy + panel, stacks on phones */
.split { display: grid; gap: 28px; align-items: start; }

/* Tiles: small facts in a grid */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tile { position: relative; background: #fff; border-radius: 16px; padding: 20px 18px; box-shadow: var(--shadow); }
.tile::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 11px; pointer-events: none; }
.tile .lbl { font-family: var(--head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin: 0 0 6px; }
.tile h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.ink .tile { background: rgba(29, 79, 163, 0.42); box-shadow: inset 0 0 0 1px rgba(167, 211, 245, 0.2); }
.ink .tile::before { border-color: rgba(167, 211, 245, 0.28); }
.ink .tile .lbl { color: var(--sky); }
.ink .tile p { color: rgba(255, 255, 255, 0.86); }

/* People */
.people { display: grid; gap: 18px; }
.person { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.person::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 17px; pointer-events: none; }
.person-art { background: var(--ice); border-radius: 16px; padding: 8px; }
.person-art svg { width: 100%; height: auto; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--royal); font-family: var(--head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 639px) {
  .person { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; }
  .person > div:last-child { display: contents; }
  .person-art { grid-row: 1 / span 2; align-self: start; padding: 6px; }
  .person h3 { grid-column: 2; align-self: end; margin: 0 0 4px; }
  .person .role { grid-column: 2; align-self: start; margin: 0; }
  .person .role ~ p { grid-column: 1 / -1; margin-top: 14px; }
}

/* Forms */
.form { display: grid; gap: 16px; position: relative; }
.form-card { position: relative; background: #fff; border-radius: 22px; padding: 30px 18px 22px; box-shadow: 0 0 0 2px var(--navy), 0 20px 44px rgba(15, 42, 92, 0.12); }
.form-card::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(15, 42, 92, 0.22); border-radius: 16px; pointer-events: none; }
.form-card .tab { position: absolute; top: -15px; left: 20px; background: var(--royal); color: #fff; font-family: var(--head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 14px; border-radius: 8px; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--head); font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field .opt { font-family: var(--body); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .qpop input, .qpop select {
  font: inherit; font-size: 1.02rem; padding: 13px 14px; border-radius: 12px; border: 2px solid rgba(15, 42, 92, 0.28); background: #fff; color: var(--ink); width: 100%;
  min-height: 52px; transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field select, .qpop select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2A5C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder, .qpop input::placeholder { color: #6B7480; opacity: 1; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .qpop input:focus, .qpop select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(167, 211, 245, 0.75); }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.two { display: grid; gap: 16px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 0.98rem; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--royal); }
.consent { font-size: 0.86rem; line-height: 1.5; color: var(--muted); margin: 0; }
.consent a { color: var(--royal); font-weight: 700; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form .btn { margin-top: 4px; }
.ghl:empty, .ghl > div:empty { display: none; }

.contact-grid { display: grid; gap: 16px; }
.contact-card { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.contact-card::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 13px; pointer-events: none; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { margin: 0 0 6px; color: var(--muted); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .big-link { position: relative; font-family: var(--head); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.01em; color: var(--royal); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; margin: 0 0 4px; }
.contact-card .big-link:hover { color: var(--navy); text-decoration: underline; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--head); font-weight: 700; font-size: 1.08rem; color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ice); color: var(--royal);
  font-size: 1.4rem; line-height: 32px; text-align: center; font-weight: 700; transition: transform 200ms ease;
}
.faq details[open] summary::after { content: "\2013"; background: var(--royal); color: #fff; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Legal pages */
.legal-copy h2 { font-size: clamp(1.25rem, 4.8vw, 1.5rem); margin: 32px 0 8px; }
.legal-copy p, .legal-copy li { color: var(--ink); }
.legal-copy .stamp { display: inline-block; background: var(--ice); color: var(--navy); font-family: var(--head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; }

/* Reviews (honest placeholder until real customer reviews exist) */
.reviews { position: relative; background: var(--off); overflow: hidden; }
.reviews::before { content: ""; position: absolute; inset: 0; background-image: var(--pin); opacity: 0.7; pointer-events: none; }
.reviews .wrap { position: relative; }
.rv-shell { display: grid; gap: 30px; align-items: center; }
.rv-copy h2 { margin-bottom: 12px; }
.rv-copy .lede { color: var(--navy); font-weight: 700; }
.rv-copy p { color: var(--muted); }
.rv-copy .btn { margin-top: 6px; }
.rv-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rv-ghost {
  position: relative; display: grid; gap: 10px; align-content: start; background: #fff; border-radius: 18px; padding: 20px 18px; box-shadow: var(--shadow);
}
.rv-ghost::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 13px; pointer-events: none; }
.rv-ghost:nth-child(1) { transform: rotate(-1.5deg); }
.rv-ghost:nth-child(3) { transform: rotate(1.2deg); }
.rv-stars { display: flex; gap: 3px; color: var(--sky); }
.rv-stars svg { width: 20px; height: 20px; }
.rv-line { display: block; height: 10px; border-radius: 6px; background: var(--mist); }
.rv-line.short { width: 58%; }
.rv-who { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rv-who .rv-line { width: 46%; height: 9px; background: var(--glass); }
.rv-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--glass); flex: none; }
.rv-ghost-mo {
  grid-column: 2; grid-row: 1 / span 2; align-content: center; justify-items: center; text-align: center;
  background: var(--navy); background-image: var(--pin-dark); color: #fff; padding: 22px 16px; box-shadow: var(--shadow-up);
}
.rv-ghost-mo::before { border-color: rgba(167, 211, 245, 0.3); }
.rv-ghost-mo svg { width: 78%; max-width: 150px; height: auto; }
.rv-ghost-note { font-family: var(--head); font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: #fff; }
.rv-ghost:nth-child(3) { grid-column: 1; grid-row: 2; }
/* Real review cards (uncomment the block in build.py once real reviews exist) */
.rv-grid { display: grid; gap: 16px; margin-top: 28px; }
.rv-card { position: relative; margin: 0; background: #fff; border-radius: 18px; padding: 22px 20px 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.rv-card::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(15, 42, 92, 0.18); border-radius: 13px; pointer-events: none; }
.rv-card .rv-stars { color: var(--royal); }
.rv-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.rv-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--ink); }
.rv-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.rv-initial { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--royal); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.2rem; }
.rv-photo + .rv-initial { display: none; }
.rv-where { color: var(--muted); font-size: 0.88rem; }

/* Footer */
.foot { position: relative; background: var(--navy); color: rgba(255, 255, 255, 0.84); padding: 0 0 112px; font-size: 0.95rem; }
.foot::before { content: ""; display: block; height: 10px; background: linear-gradient(var(--sky) 0 4px, var(--navy) 4px 6px, var(--royal) 6px 10px); }
.foot a { color: #fff; }
.foot .btn-light, .foot .btn-light:hover { color: var(--navy); }
.foot .btn-light:hover { background: var(--ice); }
.foot-top { display: grid; gap: 22px; padding: 36px 0 30px; border-bottom: 1px solid rgba(167, 211, 245, 0.18); }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand p { margin: 0; }
.foot-name { font-family: var(--head); line-height: 1; color: #fff; }
.foot-logo { display: block; width: 150px; height: auto; }
.foot-name span { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sky); margin-top: 10px; }
.foot-tag { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; margin-top: 12px !important; }
.foot-tag::before { content: ""; width: 18px; height: 2px; background: var(--sky); }
.foot-heritage { font-size: 0.82rem; font-style: italic; color: rgba(255, 255, 255, 0.7); margin-top: 4px !important; }
.foot-call { justify-self: start; }
.foot .cols { display: grid; gap: 26px; padding-top: 30px; }
.foot-h { font-family: var(--head); color: var(--sky); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }
.foot .cols p { color: rgba(255, 255, 255, 0.84); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; color: var(--sky); }
.foot .foot-list { gap: 10px; }
.foot .foot-list li { position: relative; padding-left: 22px; }
.foot .foot-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 2px; background: var(--sky); transform: rotate(45deg); }
.foot .legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(167, 211, 245, 0.18); display: grid; gap: 8px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.72); }
.foot .legal p { margin: 0; max-width: none; }
.foot .legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.foot .legal a:first-of-type { margin-left: -8px; }

/* Sticky phone bar (phones only) */
.stick {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 31, 69, 0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -8px 24px rgba(10, 31, 69, 0.25);
  display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px;
  transform: translateY(110%); transition: transform 260ms ease;
}
.stick.show { transform: translateY(0); }
.stick .btn { min-height: 50px; padding: 10px 12px; font-size: 0.9rem; box-shadow: none; }

/* Timed quote popup */
.qpop {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 31, 69, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.qpop[hidden] { display: none; }
.qpop-card {
  position: relative; width: 100%; max-width: 430px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px; padding: 26px 20px 18px; box-shadow: 0 30px 80px rgba(10, 31, 69, 0.45);
  border-top: 8px solid var(--royal);
  animation: qpop-in 320ms cubic-bezier(.2,.8,.2,1);
}
@keyframes qpop-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.qpop-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ice); color: var(--navy);
  font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.qpop-x:hover { background: var(--mist); }
.qpop-badge { width: 60px; height: 60px; margin: 0 0 10px; border-radius: 14px; box-shadow: 0 8px 18px rgba(15, 42, 92, 0.18); }
.qpop h3 { font-size: 1.45rem; margin: 0 0 6px; padding-right: 40px; }
.qpop-card > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 14px; }
.qpop form { display: grid; gap: 10px; }
.qpop .consent { font-size: 0.8rem; }
.qpop .btn { margin-top: 2px; }
.qpop-alt { margin: 4px 0 0; text-align: center; font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 4px; }
@media (max-width: 479px) { .qpop-alt { flex-direction: column; } .qpop-alt > span { display: none; } }
.qpop-alt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--royal); font-weight: 700; }

/* Larger screens: enhancement only */
@media (min-width: 560px) {
  .jcards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .jcard { grid-template-columns: 1fr; align-content: start; align-items: start; padding: 22px 20px 22px; }
  .jcard .art { width: 74%; margin: 18px auto 10px; }
  .jcard .jnum { font-size: 3.2rem; top: 12px; right: 16px; }
  .jcard h3 { font-size: 1.35rem; padding-right: 0; }
  .jcard:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 0 24px; }
  .jcard:last-child:nth-child(odd) .art { width: 82%; margin: 6px auto; }
  .ph-in { grid-template-columns: minmax(0, 1fr) 120px; }
}

@media (min-width: 640px) {
  .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  .two { grid-template-columns: 1fr 1fr; }
  .proofs { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1.2fr 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr auto; align-items: center; }
  .foot-logo { width: 173px; }
  .band .btn-ink, .band .btn-row .btn { width: auto; }
  .person { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
  .spec-card { padding: 8px 28px; }
  .spec-card .spec-row { grid-template-columns: 140px 1fr; }
  .foot .cols ul:not(.foot-list) { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .stick { display: none; }
  .foot { padding-bottom: 40px; }
  .product { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 22px 28px 22px 22px; }
  .product .pnum, .pnum { font-size: 2.6rem; }
  .form-card { padding: 38px 32px 30px; }
  .rv-grid { grid-template-columns: repeat(2, 1fr); }
  .qpop-card { padding: 30px 28px 20px; }
}

@media (min-width: 760px) {
  .page-head { padding: 56px 0 60px; }
  .ph-in { grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "eb art" "h art" "lede art" "more art"; column-gap: 48px; align-items: center; }
  .ph-in > h1, .ph-in > .eyebrow { align-self: end; }
  .ph-in > .lede, .ph-in > .ph-more { align-self: start; }
  .ph-more .btn { flex: 0 0 auto; }
  .ph-art { align-self: center; max-width: 260px; justify-self: end; }
  .rv-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .band-in { grid-template-columns: minmax(0, 1fr) 150px; gap: 40px; }
  .band-art { display: block; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .people { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-art { max-width: 200px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; --nav-h: 76px; }
  .section { padding: 88px 0; }
  .section-tight { padding: 52px 0; }
  .brand img, .brand .brand-mark { height: 60px; }
  .nav-desktop { display: flex; gap: 2px; margin: 0 auto 0 12px; }
  .nav-desktop a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 10px;
    text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em; color: var(--navy); white-space: nowrap;
  }
  .nav-desktop a:hover { background: var(--ice); color: var(--royal); }
  .nav-desktop a[aria-current="page"] { color: var(--royal); }
  .nav-desktop a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--royal); }
  .icon-btn.menu-toggle { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-in { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "text stage" "cta stage"; align-items: center; column-gap: 48px; row-gap: 8px; }
  .hero-text { grid-area: text; align-self: end; }
  .hero-actions { grid-area: cta; align-self: start; }
  .hero-stage { grid-area: stage; height: 600px; max-width: none; margin: 0; }
  .hero-sweep { left: 14%; right: -60vw; bottom: 18%; height: 18%; transform: rotate(-7deg); transform-origin: left center; }
  .hero h1 { font-size: clamp(3.4rem, 5vw, 5rem); }
  .hero .lede { font-size: 1.3rem; }
  .ink .big { font-size: 11rem; }
  .ink-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .steps.three { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 66px 0 0; }
  .steps li::after { left: 54px; right: -18px; top: 19px; bottom: auto; height: 0; border-left: 0; border-top: 2px dashed rgba(15, 42, 92, 0.3); }
  .steps.stack { grid-template-columns: 1fr; gap: 0; }
  .steps.stack li { padding: 0 0 28px 62px; }
  .steps.stack li::after { left: 22px; right: auto; top: 50px; bottom: 0; height: auto; border-top: 0; border-left: 2px dashed rgba(15, 42, 92, 0.3); }
  .page-head h1 { font-size: clamp(3rem, 5vw, 4.4rem); }
  .ph-in { grid-template-columns: minmax(0, 1fr) 270px; }
  .ph-art { max-width: 270px; }
  .jcards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .jcard:last-child:nth-child(odd) { grid-column: auto; grid-template-columns: 1fr; align-items: start; gap: 4px 14px; }
  .jcard:last-child:nth-child(odd) .art { width: 74%; margin: 18px auto 10px; }
  .jcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 0 32px; }
  .jcard:last-child:nth-child(3n+1) .art { width: 62%; margin: 6px auto; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .product-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .product { grid-template-columns: 170px minmax(0, 1fr); align-items: start; }
  .product-list > .product:only-child { grid-column: 1 / -1; grid-template-columns: 300px minmax(0, 1fr); align-items: center; }
  .contact-grid.three { grid-template-columns: repeat(3, 1fr); }
  .tiles.three { grid-template-columns: repeat(3, 1fr); }
  .rv-grid { grid-template-columns: repeat(3, 1fr); }
  .band { padding: 72px 0; }
  .band-in { grid-template-columns: minmax(0, 1fr) 190px; }
  .menu { display: none; }
  .split.wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

@media (min-width: 1100px) {
  .icon-btn.call { display: none; }
  .top-call {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
    background: var(--royal); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(29, 79, 163, 0.22); transition: background-color 140ms ease;
  }
  .top-call:hover { background: var(--navy); }
  .top-call svg { width: 18px; height: 18px; }
  .nav-desktop a { padding: 0 10px; font-size: 0.9rem; }
  .nav-desktop a[aria-current="page"]::after { left: 10px; right: 10px; }
  .jcards { grid-template-columns: repeat(4, 1fr); }
  .jcard:last-child:nth-child(3n+1) { grid-column: auto; grid-template-columns: 1fr; align-items: start; gap: 4px 14px; }
  .jcard:last-child:nth-child(3n+1) .art { width: 74%; margin: 18px auto 10px; }
  .jcard:last-child:nth-child(4n+3) { grid-column: span 2; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 0 24px; }
  .jcard:last-child:nth-child(4n+3) .art { width: 82%; margin: 6px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sheen, .in .sheen, .product:hover .sheen, .panel:hover .sheen, .jcard:hover .sheen { animation: none; transform: translateX(10%) skewX(-18deg); opacity: 0.35; }
  .mv, .product:hover .mv, .panel:hover .mv, .jcard:hover .mv { transition: none; transform: none; }
  .jcard, .jcard:hover { transition: none; transform: none; }
  .menu, .menu.open, .stick { transition: none; }
  .qpop-card { animation: none; }
  .btn:active { transform: none; }
  .rv-ghost:nth-child(1), .rv-ghost:nth-child(3) { transform: none; }
}

/* ---------- Final visual QA, 10/23 ---------- */
/* Big headings never leave one word alone on the last line; body copy avoids one-word last lines */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
/* Phone numbers in running text never split at the hyphen */
.nw { white-space: nowrap; }
/* inside a tel link (already nowrap, often a flex row) the wrapper must not become its own flex item */
a[href^="tel:"] .nw { display: contents; }

/* Jersey numerals: solid tint (text-stroke showed the font's inner overlap lines) */
.jcard .jnum { color: var(--sky); -webkit-text-stroke: 0; }
@media (hover: hover) { .jcard:hover .jnum { color: var(--royal); } }
.product .pnum, .pnum { color: var(--sky) !important; -webkit-text-stroke: 0 !important; }

/* Eyebrows stay royal inside cards that mute their paragraphs */
.contact-card .eyebrow, .rv-copy .eyebrow { color: var(--royal); }
/* Reviews heading sits on one line in its column at every width (no lone word) */
.reviews .rv-copy { container-type: inline-size; }
.reviews .rv-copy h2 { font-size: min(2.6rem, 8cqi); }

/* Notes hug their text instead of running a long empty box */
.note { width: fit-content; max-width: 100%; }

/* People cards: same art box for both, so the names line up */
.person { align-content: start; }
.person-art { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.person-art svg { width: 100%; height: 100%; }

/* Split sections: CTA under the copy column (tablet and up), copy column rides along while the list scrolls */
.split-cta { display: none; margin-top: 26px; }
@media (min-width: 760px) {
  .split-cta { display: flex; }
  .split > .split-copy { position: sticky; top: calc(var(--nav-h) + 28px); }
}
@media (min-width: 960px) {
  .faq-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
}

/* Wide last style card (patio door): center its content in the row */
@media (min-width: 560px) { .jcard:last-child:nth-child(odd) { align-content: center; } }
@media (min-width: 960px) { .jcard:last-child:nth-child(3n+1) { align-content: center; } }
@media (min-width: 1100px) { .jcard:last-child:nth-child(4n+3) { align-content: center; } }

@media (min-width: 1240px) {
  .nav-desktop a { padding: 0 13px; }
  .nav-desktop a[aria-current="page"]::after { left: 13px; right: 13px; }
}

/* SEO footer links */
.foot-seo { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-seo p { font-size: .9rem; line-height: 2; margin: 0; }
.foot-seo a { white-space: nowrap; }

/* Windows dropdown in the desktop nav (10/28/26). Hover, focus or the caret opens it; site.js handles the click and Escape. */
.nav-desktop .nav-sub { position: relative; display: flex; align-items: center; }
.nav-desktop .nav-sub-btn { appearance: none; border: 0; background: transparent; color: inherit; padding: 0 8px 0 2px; margin-left: -8px; align-self: stretch; cursor: pointer; display: inline-flex; align-items: center; border-radius: 8px; }
.nav-desktop .nav-sub-btn svg { transition: transform .2s; }
.nav-desktop .nav-sub:hover .nav-sub-btn svg, .nav-desktop .nav-sub:focus-within .nav-sub-btn svg, .nav-desktop .nav-sub.is-open .nav-sub-btn svg { transform: rotate(180deg); }
.nav-desktop .nav-sub-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 258px; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(10, 31, 69, .24); padding: 8px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 80; }
.nav-desktop .nav-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-desktop .nav-sub:hover .nav-sub-menu, .nav-desktop .nav-sub:focus-within .nav-sub-menu, .nav-desktop .nav-sub.is-open .nav-sub-menu { opacity: 1; visibility: visible; transform: none; }
/* html body prefix beats the page-level overrides (body.night makes nav links light) so the white panel stays navy-on-white everywhere */
html body .nav-desktop .nav-sub-menu a { display: block; height: auto; min-height: 0; line-height: 1.3; padding: 9px 12px; border-radius: 9px; font-weight: 700; font-size: .92rem; color: #0F2A5C; background: transparent; }
html body .nav-desktop .nav-sub-menu a:hover, html body .nav-desktop .nav-sub-menu a:focus-visible { background: #EEF5FC; color: #1D4FA3; }
html body .nav-desktop .nav-sub-menu a[aria-current="page"] { color: #1D4FA3; background: #EEF5FC; }
.nav-desktop .nav-sub-menu a[aria-current="page"]::after { display: none; }
.nav-desktop .nav-sub-menu .nav-sub-night { margin-top: 4px; border-top: 1px solid #E6E9EE; padding-top: 11px; display: grid; gap: 2px; }
html body .nav-desktop .nav-sub-menu a { display: grid; gap: 2px; }
html body .nav-desktop .nav-sub-menu a small { font-weight: 600; color: #55657d; font-size: .78rem; line-height: 1.25; }
.menu li.menu-sub { padding-left: 1.4em; }
.menu li.menu-sub .link { font-size: .92em; }
.menu li.menu-sub .link::before { content: "\2514\00a0"; opacity: .6; }

/* Style cards on /windows are links to their pages (10/28/26) */
.product-link { display: block; color: inherit; text-decoration: none; }
.product-link .product { transition: transform .2s, box-shadow .2s; }
.product-link:hover .product, .product-link:focus-visible .product { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 31, 69, .14); }
.product-link:focus-visible { outline: 3px solid #1D4FA3; outline-offset: 4px; border-radius: 18px; }
.pmore { margin: 10px 0 0; font-weight: 800; color: #1D4FA3; }
.product-link:hover .pmore { text-decoration: underline; }
