/* ============================================================
   MERIDIAN FACILITY SERVICES — demo-local stylesheet
   GridGhost.Dev portfolio concept · self-contained (no site CSS)
   Palette: ink navy / bone paper / single signal-orange accent
   Type: Archivo (variable width) display · Inter text
   ============================================================ */

:root {
  --ink:        #101d2a;
  --ink-2:      #16293c;
  --ink-3:      #1d3850;
  --paper:      #f4f1e9;
  --paper-2:    #ece7db;
  --white:      #fbfaf6;
  --accent:     #e2542b;
  --accent-deep:#c5431f;
  --text:       #1c2b39;
  --muted:      #5c6a77;
  --muted-dark: #93a2b0;
  --line:       rgba(16, 29, 42, 0.16);
  --line-strong:rgba(16, 29, 42, 0.34);
  --line-light: rgba(244, 241, 233, 0.18);
  --danger:     #b3351b;
  --ok:         #2e7d4f;
  --radius:     4px;
  --font-disp:  "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-text:  "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h:   72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- layout utilities ---------- */

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
}

.section { padding-block: clamp(64px, 9vw, 118px); }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- typography roles ---------- */

.t-display {
  font-family: var(--font-disp);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: break-word;
}

.t-h2 {
  font-family: var(--font-disp);
  font-stretch: 118%;
  font-weight: 720;
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.t-h3 {
  font-family: var(--font-disp);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}

.t-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}
.section--dark .t-lede { color: var(--muted-dark); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.t-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .t-meta,
.on-dark { --meta-c: var(--muted-dark); }
.on-dark .t-meta { color: var(--muted-dark); }

.t-caption {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* numbered section header */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-head__idx {
  font-family: var(--font-disp);
  font-stretch: 120%;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 10px;
  border-top: 2px solid var(--accent);
  min-width: 44px;
}
.sec-head__body { max-width: 720px; }
.sec-head__note {
  margin-top: 14px;
  max-width: 560px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(197, 67, 31, 0.3);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: var(--ink-3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 29, 42, 0.05);
}

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 233, 0.4);
}
.btn--ghost-light:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 233, 0.08);
}

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* text link with arrow */
.t-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.t-link:hover { color: var(--accent); border-color: var(--accent); }
.on-dark .t-link { color: var(--paper); border-color: rgba(244,241,233,.35); }
.on-dark .t-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.wordmark__glyph { flex: none; display: block; }
.wordmark__name {
  font-family: var(--font-disp);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark__sub {
  display: block;
  font-family: var(--font-text);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.on-dark .wordmark__name, .site-footer .wordmark__name { color: var(--paper); }
.site-footer .wordmark__sub { color: var(--muted-dark); }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

.header-cta { display: inline-flex; align-items: center; gap: 14px; }
.header-cta .phone {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}
.header-cta .phone:hover { color: var(--accent); }
.header-cta .btn { padding: 11px 18px; }

/* CSS-only mobile menu (works without JS) */
.menu-toggle { display: none; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  padding: 10px 0;
  user-select: none;
}
.menu-btn .bars {
  position: relative;
  width: 20px; height: 12px;
  flex: none;
}
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-btn .bars::before { top: 2px; }
.menu-btn .bars::after  { top: 9px; }

.mobile-panel { display: none; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta .phone { display: none; }

  .mobile-panel {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
    border-top: 1px solid transparent;
  }
  .menu-toggle:checked ~ .mobile-panel {
    max-height: 420px;
    border-top-color: var(--line);
  }
  .menu-toggle:checked ~ .header-in .menu-btn .bars::before { top: 5px; transform: rotate(45deg); }
  .menu-toggle:checked ~ .header-in .menu-btn .bars::after  { top: 5px; transform: rotate(-45deg); }

  .mobile-panel nav { display: flex; flex-direction: column; padding-block: 8px 20px; }
  .mobile-panel nav a {
    padding: 14px 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .mobile-panel nav a:last-child { border-bottom: 0; }
  .mobile-panel nav a[aria-current="page"] { color: var(--accent); }
}

@media (max-width: 560px) {
  /* Keep the header inside the viewport — the mobile panel carries the quote link */
  .header-cta .btn { display: none; }
  .wordmark__name { font-size: 0.98rem; }
}

@media (max-width: 480px) {
  /* De-expand the display face so long words fit narrow screens */
  .t-display { font-stretch: 112%; letter-spacing: -0.006em; }
  /* No nowrap surprises on tiny viewports */
  .btn { white-space: normal; text-align: center; }
  .cta-band .btn { width: 100%; }
}

/* ---------- hero variant A : split spec-sheet ---------- */

.hero-a {
  border-bottom: 1px solid var(--line);
}
.hero-a__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: calc(100svh - var(--header-h));
}
.hero-a__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 64px) clamp(48px, 6vw, 80px) 0;
  min-width: 0;
}
.hero-a__left .t-display {
  font-size: clamp(2.1rem, 4.3vw, 4.5rem);
  text-wrap: balance;
}
.hero-a__left .t-lede { max-width: 480px; margin: 22px 0 0; }
.hero-a__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-a__specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(20px, 2.5vw, 44px);
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  justify-content: start;
}
.spec-item__v {
  font-family: var(--font-disp);
  font-stretch: 118%;
  font-weight: 750;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1;
}
.spec-item__l { display: block; margin-top: 7px; }

.hero-a__right {
  position: relative;
  min-height: 380px;
}
.hero-a__right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-a__fig {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 20px;
  background: rgba(16, 29, 42, 0.82);
  backdrop-filter: blur(6px);
  color: var(--paper);
}
.hero-a__fig .t-meta { color: var(--paper); }
.hero-a__fig .fig-idx { color: var(--accent); }

@media (max-width: 900px) {
  .hero-a__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-a__left { padding-right: 0; }
  /* explicit height — aspect-ratio + min-height would transfer a 480px min-width */
  .hero-a__right { min-height: 0; aspect-ratio: auto; height: clamp(280px, 62vw, 440px); }
}
@media (max-width: 520px) {
  .hero-a__specs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-a__ctas .btn { flex: 1 1 auto; }
}

/* ---------- hero variant B : dark statement ---------- */

.hero-b {
  background: var(--ink);
  color: var(--paper);
}
.hero-b__top {
  padding-top: clamp(56px, 8vw, 110px);
}
.hero-b .t-display { font-size: clamp(2rem, 7.6vw, 6.2rem); text-wrap: balance; }
.hero-b__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.hero-b__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.hero-b__meta .spec-row { border-color: var(--line-light); }
.hero-b__media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-b__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-b__fig {
  position: absolute;
  left: 0; bottom: 0;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--white);
}
.hero-b .kicker { color: var(--accent); }

@media (max-width: 900px) {
  .hero-b__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- spec rows (label : value list) ---------- */

.spec-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.spec-row dt { margin: 0; }
.spec-row dd { margin: 0; font-weight: 500; color: var(--text); }
.section--dark .spec-row, .on-dark .spec-row { border-color: var(--line-light); }
.section--dark .spec-row dd, .on-dark .spec-row dd { color: var(--paper); }

/* ---------- media figure ---------- */

.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
  margin-top: 12px;
}
.figure figcaption .fig-idx {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex: none;
  margin-left: auto;
}

/* ---------- ticker strip ---------- */

.strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px 16px 0;
  margin-right: 26px;
  border-right: 1px solid var(--line);
  padding-right: 26px;
}
.strip__item:last-child { border-right: 0; }
.strip__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  flex: none;
}

/* ---------- split section (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--wide-l { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-r { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; }

@media (max-width: 860px) {
  .split, .split--wide-l, .split--wide-r, .split--form { grid-template-columns: minmax(0, 1fr); }
  .split .figure { order: -1; }
  .split--no-reorder .figure { order: 0; }
}

/* ---------- service line rows ---------- */

.svc-list { border-top: 1px solid var(--line-strong); }
.svc-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, padding-left 0.2s ease;
}
a.svc-row:hover { background: var(--white); padding-left: 12px; }
.svc-row__idx {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
a.svc-row:hover .svc-row__idx { color: var(--accent); }
.svc-row__name { }
.svc-row__desc { font-size: 0.92rem; color: var(--muted); max-width: 480px; }
.svc-row__arrow {
  font-family: var(--font-disp);
  font-weight: 700;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}
a.svc-row:hover .svc-row__arrow { color: var(--accent); transform: translateX(5px); }

@media (max-width: 720px) {
  .svc-row { grid-template-columns: 44px 1fr auto; }
  .svc-row__desc { grid-column: 2 / 4; }
  .svc-row__arrow { grid-column: 3; grid-row: 1; align-self: start; padding-top: 0.35em; }
  .strip__item { border-right: 0; margin-right: 16px; padding-right: 16px; }
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 34px);
}
.card--dark { background: var(--ink-2); color: var(--paper); }
.card-grid .card { min-height: 180px; display: flex; flex-direction: column; gap: 12px; }
.card .t-h3 { font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.card--dark p { color: var(--muted-dark); }
.card__num {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
@media (max-width: 860px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- project feature ---------- */

.proj-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  border: 1px solid var(--line-light);
  background: var(--ink-2);
}
.proj-feature__media { position: relative; min-height: 340px; }
.proj-feature__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.proj-feature__body {
  padding: clamp(28px, 3.5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.proj-feature__body .spec-row { border-color: var(--line-light); padding: 10px 0; }
.proj-feature__body .spec-row dd { color: var(--paper); }
@media (max-width: 860px) {
  .proj-feature { grid-template-columns: minmax(0, 1fr); }
  .proj-feature__media { min-height: 0; aspect-ratio: auto; height: clamp(220px, 58vw, 360px); }
}

/* ---------- steps ---------- */

.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 60px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step__n {
  font-family: var(--font-disp);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--paper);
  -webkit-text-stroke: 1px var(--muted);
  line-height: 1;
}
.section--paper2 .step__n, .steps .step__n { -webkit-text-stroke-color: var(--line-strong); color: transparent; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) {
  .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; }
}

/* ---------- callout CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
}
.cta-band .t-h2 { color: var(--paper); }
.cta-band__accent {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--accent);
}
@media (max-width: 720px) { .cta-band__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 4.5vw, 60px);
}
.footer-grid h4 {
  margin: 0 0 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a, .footer-grid li {
  font-size: 0.88rem;
  color: rgba(244, 241, 233, 0.78);
}
.footer-grid a:hover { color: var(--accent); }
.footer-blurb { margin-top: 18px; font-size: 0.88rem; color: var(--muted-dark); max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted-dark);
}
.footer-bottom .demo-note { color: var(--accent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero .t-display { font-size: clamp(1.7rem, 7vw, 4.6rem); }
.page-hero .t-lede { max-width: 620px; margin-top: 20px; }
.page-hero__crumb { margin-bottom: 20px; }
.page-hero--dark { background: var(--ink); color: var(--paper); border-bottom: 0; }

/* ---------- forms ---------- */

.demo-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--accent);
  background: rgba(226, 84, 43, 0.07);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.demo-notice__tag {
  flex: none;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 2px;
  margin-top: 2px;
}
.demo-notice p { margin: 0; font-size: 0.9rem; color: var(--text); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.field label .req { color: var(--accent); }
.field label .opt { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 84, 43, 0.16);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field-error {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}
.field.has-error .field-error { display: block; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-foot .t-caption { max-width: 380px; }

.form-success {
  display: none;
  border: 1px solid var(--ok);
  background: rgba(46, 125, 79, 0.08);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  text-align: left;
}
.form-success.is-visible { display: block; }
.form-success .t-h3 { color: var(--ok); }
.form-success p { color: var(--muted); }
form.is-done { display: none; }

@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- misc ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-light);
}
.stat-cell {
  padding: clamp(20px, 2.5vw, 34px);
  border-right: 1px solid var(--line-light);
}
.stat-cell:last-child { border-right: 0; }
.stat-cell__n {
  font-family: var(--font-disp);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--paper);
}
.stat-cell p { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted-dark); }
@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.checklist li::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--accent);
  margin-top: 7px;
}
.checklist li strong { font-weight: 600; color: var(--ink); }

.quote-band {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.quote-band cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
  font-size: 0.8rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- narrow-screen layout fixes ---------- */

@media (max-width: 560px) {
  /* Spec labels stack above values on narrow screens (declared after the
     base rule so the single-column layout actually wins the cascade) */
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- WordPress menu markup (ul.menu wrappers added to the nav) ---------- */
.main-navigation .menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 880px) {
  .mobile-panel .mobile-navigation .menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-panel .menu-item { border-bottom: 1px solid var(--line); }
  .mobile-panel .menu-item:last-child { border-bottom: 0; }
  .mobile-panel .menu-item a { display: block; }
}
