/* ==========================================================================
   Pacific Crematory, LLC — Site Styles
   Palette sampled from brand logo: warm platinum silvers, graphite,
   flame red + steel blue used only as a paired accent.
   ========================================================================== */

:root {
  /* Color tokens */
  --paper: #FBFBF9;
  --white: #FFFFFF;
  --platinum: #ECECE7;
  --platinum-deep: #E2E2DB;
  --silver: #C9C9C2;
  --steel: #6E6E67;
  --steel-dark: #5C5C56;
  --graphite: #2B2B27;
  --ink: #1E1E1B;
  --flame-red: #B5121F;
  --flame-blue: #205E9E;

  /* Type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --container: 74rem;
  --nav-h: 5.75rem;
  --radius: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

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

button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--flame-blue);
  outline-offset: 3px;
}

::selection { background: var(--platinum-deep); }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--graphite);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Machined hairline rule */
.rule {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 400; }

.display {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2.display { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: 0.005em; }

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--steel);
  max-width: 38em;
}

/* Eyebrow with flame tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Section marker: the American flag (class name kept so markup is untouched) */
.flame-tick {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 18px;
  background-image: url("../img/flag-192.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  cursor: pointer;
}

.btn-primary {
  background: var(--graphite);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(30, 30, 27, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary .btn-arrow { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--silver);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--graphite);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--platinum-deep);
  box-shadow: 0 8px 24px -20px rgba(30, 30, 27, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}
.nav-logo img { height: 3.75rem; width: auto; }

.nav-wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.2;
}
.nav-wordmark .wm-top {
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-wordmark .wm-sub {
  font-size: 0.72rem;
  letter-spacing: 0.47em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--steel);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--graphite);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

/* Mobile-menu-only extras stay hidden on desktop */
.menu-cta { display: none; }

.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease-out);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--flame-blue); }

.nav .btn { padding: 0.7rem 1.4rem; font-size: 0.875rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

/* faint engineering grid backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--platinum) 1px, transparent 1px),
    linear-gradient(90deg, var(--platinum) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 12%, black 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 75% at 50% 12%, black 0%, transparent 78%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-copy {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}
.hero-copy > * + * { margin-top: var(--space-3); }
.hero-copy .eyebrow { margin-bottom: 0.25rem; }

/* Type carries the hero, so it runs larger than a standard h1 */
.hero h1.display {
  font-size: clamp(2.05rem, 5vw, 3.6rem);
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero .lead {
  max-width: 46ch;
  margin-inline: auto;
}

.hero-ctas { justify-content: center; }

/* Model index: real specs standing in for a hero image */
.hero-models {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--platinum-deep);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem 2.75rem;
}
.hero-models-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero-model {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--steel);
  transition: color 0.2s var(--ease-out);
}
.hero-model strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
}
.hero-model:hover { color: var(--ink); }
.hero-model:hover strong { color: var(--flame-blue); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}

/* Page-load sequence */
.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 0.7s var(--ease-out) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Placeholder photo frames (engineering drawing style) ---------- */
.ph-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
  background:
    linear-gradient(145deg, #F4F4F0 0%, #E9E9E3 55%, #EFEFEA 100%);
  border: 1px solid var(--silver);
  color: var(--steel);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
.ph-frame::before {
  /* brushed metal sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.35) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(30, 30, 27, 0.02) 4px,
    rgba(255, 255, 255, 0) 6px
  );
  pointer-events: none;
}

/* crosshair corner ticks */
.ph-corners,
.ph-corners::before,
.ph-corners::after { position: absolute; pointer-events: none; }
.ph-corners { inset: 10px; }
.ph-corners::before,
.ph-corners::after {
  content: "";
  width: 14px;
  height: 14px;
}
.ph-corners::before {
  top: 0; left: 0;
  border-top: 1.5px solid var(--steel);
  border-left: 1.5px solid var(--steel);
}
.ph-corners::after {
  bottom: 0; right: 0;
  border-bottom: 1.5px solid var(--steel);
  border-right: 1.5px solid var(--steel);
}

.ph-frame svg { opacity: 0.55; }

.ph-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 26ch;
}

/* aspect variants */
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-3x4 { aspect-ratio: 3 / 4; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-square { aspect-ratio: 1; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-platinum { background: var(--platinum); }
.section-white { background: var(--white); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .lead { margin-top: 1rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--platinum-deep);
  border-bottom: 1px solid var(--platinum-deep);
  background: var(--white);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-block: 1.1rem;
}
.trust-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-item::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--silver);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Capability grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--platinum-deep);
  border: 1px solid var(--platinum-deep);
}

.cap-card {
  background: var(--paper);
  padding: 2.2rem 1.9rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: background-color 0.3s var(--ease-out);
}
.cap-card:hover { background: var(--white); }
.cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.9rem;
  width: 2.25rem;
  height: 2px;
  background: var(--silver);
  transition: width 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.cap-card:hover::before {
  width: 3.5rem;
  background: var(--flame-blue);
}

.cap-card h3 { margin-top: 0.4rem; }
.cap-card p { color: var(--steel); font-size: 0.9688rem; }

.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.cap-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cap-link .btn-arrow { transition: transform 0.25s var(--ease-out); }
.cap-card:hover .cap-link .btn-arrow { transform: translateX(3px); }

/* Seven cards: 3, 3, then the last spanning the final row */
@media (min-width: 1025px) {
  .cap-grid.grid-7 > :nth-child(7) { grid-column: 1 / -1; }
  .cap-grid.grid-7 > :nth-child(7) p { max-width: 54ch; }
}

/* Five service cards: 3 across, then 2 sharing the row evenly */
@media (min-width: 1025px) {
  .cap-grid.grid-5 { grid-template-columns: repeat(6, 1fr); }
  .cap-grid.grid-5 > * { grid-column: span 2; }
  .cap-grid.grid-5 > :nth-child(4),
  .cap-grid.grid-5 > :nth-child(5) { grid-column: span 3; }
}

/* ---------- Feature split (image + copy) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.feature-split.reverse .feature-media { order: 2; }

.feature-copy > * + * { margin-top: var(--space-3); }
.feature-copy .eyebrow { margin-bottom: 0; }
.feature-copy p { color: var(--steel); }

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 1.5px;
  background: var(--flame-blue);
  transform: translateY(-0.25em);
}
.feature-list strong { font-weight: 600; }
.feature-list span { color: var(--steel); }

/* Centred single-column variant (no accompanying image) */
.feature-split.feature-solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.feature-solo .feature-list {
  max-width: 34rem;
  margin-inline: auto;
  text-align: left;
}
.feature-solo .feature-copy p { margin-inline: auto; }

/* Standard photograph (not a cutout): capped so low-resolution
   sources are never upscaled past their native width */
.photo-plain {
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  height: auto;
  border: 1px solid var(--silver);
  margin-inline: auto;
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--graphite); color: var(--platinum); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stat { padding-block: 0.5rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--white);
}
.stat-value sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--silver);
}
.stat-label {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  max-width: 22ch;
}

/* ---------- Quote / pull section ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  max-width: 30em;
  color: var(--ink);
}
.pull-quote em { font-style: normal; color: var(--steel); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white);
  border-top: 1px solid var(--platinum-deep);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.cta-band h2 { max-width: 20em; }
.cta-band .lead { margin-top: 0.75rem; }

/* ---------- Product blocks ---------- */
.product-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.product-block + .product-block { border-top: 1px solid var(--platinum-deep); }
.product-block.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product-block.product-solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
}
.product-block.reverse > .product-media { order: 2; }

.product-media { position: sticky; top: 7.5rem; }

.product-copy > * + * { margin-top: var(--space-2); }
.product-copy .eyebrow { margin-bottom: 0.4rem; }
.product-copy h2 { margin-bottom: 0.25rem; }
.product-copy p { color: var(--steel); }

/* Product photography */
/* Cutouts sit directly on the page; height caps them so the tall PC-PT
   and the wider PC-H1 read at a comparable scale. */
.product-photo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(19rem, 40vw, 34rem);
  margin-inline: auto;
}
.product-pending {
  font-size: 0.9375rem;
  color: var(--steel);
}
.product-pending a {
  color: var(--graphite);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.product-pending a:hover { color: var(--flame-blue); }

.product-title {
  font-size: clamp(1.55rem, 2.9vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}
.product-title .model {
  font-family: var(--font-mono);
  font-size: 0.66em;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
  white-space: nowrap;
}

.spec-list {
  list-style: none;
  margin-top: var(--space-3);
  border-top: 1px solid var(--platinum-deep);
}
.spec-list li {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--platinum-deep);
  font-size: 0.9688rem;
}
.spec-list dt-label,
.spec-list .spec-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 0.2rem;
}
.spec-list .spec-val { color: var(--ink); }

/* ---------- About page ---------- */
.prose {
  max-width: 42rem;
}
.prose p { margin-bottom: 1.6rem; color: #3A3A35; }
.prose p:first-of-type {
  font-size: 1.1875rem;
  color: var(--ink);
}
.prose .prose-goal {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-aside {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1.5rem;
}

.about-fact {
  border-top: 1px solid var(--platinum-deep);
  padding-top: 1rem;
}
.about-fact .stat-label { color: var(--steel); margin-top: 0.35rem; }
.about-fact .stat-value {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* ---------- Contact page ---------- */

/* Call panel: the primary action, given the page's only dark surface */
.call-panel {
  background: var(--graphite);
  color: var(--platinum);
  padding: clamp(1.75rem, 4vw, 2.9rem);
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  border-radius: var(--radius);
}
.call-panel-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}
.call-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--white);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease-out);
}
.call-number:hover { border-bottom-color: var(--white); }
.call-panel-note {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--silver);
  max-width: 34em;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  flex: none;
}
.btn-light:hover {
  background: var(--platinum);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}
.btn-light:active { transform: translateY(0); }
.call-panel-btn { padding-inline: 2.2rem; }

/* Form */
.form-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}
.form-intro {
  margin: 0.5rem 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--steel);
  max-width: 40em;
}
.req { color: var(--flame-red); }

/* Honeypot: off-screen rather than display:none, so bots still fill it in */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  display: none;
  font-size: 0.8125rem;
  color: var(--flame-red);
  font-weight: 500;
}
.field-error.show { display: block; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--flame-red); }
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(181, 18, 31, 0.15);
}

.form-note.is-success { color: var(--graphite); font-weight: 500; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-cards { display: grid; gap: 1px; background: var(--platinum-deep); border: 1px solid var(--platinum-deep); }
.contact-card {
  background: var(--white);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background-color 0.25s var(--ease-out);
}
a.contact-card:hover { background: var(--paper); }
.contact-card .cap-tag { color: var(--steel); }
.contact-card strong {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-card span { font-size: 0.9063rem; color: var(--steel); }

/* Form */
.form-grid { display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .optional {
  font-weight: 400;
  color: var(--steel);
  font-size: 0.8125rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--flame-blue);
  box-shadow: 0 0 0 3px rgba(32, 94, 158, 0.15);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6E67' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--steel);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--platinum);
  border-top: 1px solid var(--platinum-deep);
  padding-block: var(--space-5) var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
}

.footer-brand img { height: 4.6rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9063rem; color: var(--steel); max-width: 30ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a {
  font-size: 0.9375rem;
  color: var(--graphite);
  transition: color 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--flame-blue); }

.footer-contact { display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.footer-contact a { color: var(--graphite); }
.footer-contact a:hover { color: var(--flame-blue); }

.footer-bottom {
  border-top: 1px solid var(--platinum-deep);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--steel);
}

/* Agency credit — quiet, last line on the page */
.footer-credit {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--steel-dark);
}
.footer-credit a {
  color: var(--graphite);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--silver);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.footer-credit a:hover {
  color: var(--flame-blue);
  text-decoration-color: currentColor;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-copy > * { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   Responsive — designed for phone, not shrunk
   ========================================================================== */

@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid .cap-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-phone { display: none; }
}

@media (max-width: 820px) {
  body { font-size: 1rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--platinum-deep);
    box-shadow: 0 30px 40px -30px rgba(30, 30, 27, 0.3);
    padding: 1rem 1.25rem 1.75rem;
    display: none;
  }
  .nav-menu.open { display: block; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links li { border-bottom: 1px solid var(--platinum-deep); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 1rem 0.25rem;
    font-size: 1.0625rem;
  }
  .nav-links a::after { display: none; }
  .menu-cta {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.75rem;
  }
  .nav-menu .menu-cta .btn { width: 100%; }
  .nav-menu .menu-phone {
    display: flex;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--steel);
    padding: 0.5rem;
  }

  /* Hero stacks; media follows copy */
  .hero-ctas .btn { flex: 1 1 auto; }

  .feature-split,
  .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-media { order: 0; }

  .product-block,
  .product-block.reverse { grid-template-columns: 1fr; }
  .product-block.reverse > .product-media { order: 0; }
  .product-media { position: static; }

  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .about-aside > .ph-frame { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { border-bottom: 1px solid rgba(201, 201, 194, 0.25); padding-block: 1.4rem; }
  .stat:last-child { border-bottom: none; }

  .trust-strip .container {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  /* Trim the enlarged logo back a little on small screens */
  :root { --nav-h: 5rem; }
  .nav-logo img { height: 3.15rem; }
  .nav-wordmark .wm-top { font-size: 1.15rem; }
  .nav-wordmark .wm-sub { font-size: 0.62rem; }

  .cap-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .spec-list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .about-aside { grid-template-columns: 1fr; }
}
