/*
 * components.css — WildFirefighters.com
 * Fireline dark design system (2026-07 redesign, supersedes the Sketch 001-D
 * light theme; see sketches/004-unconformity-dark/CONCEPT-NOTES.md).
 * All colors flow from the @theme tokens in src/css/tailwind-source.css —
 * never hardcode a hex here; use var(--color-brand-*).
 * Downstream enforcement checks use grep "^\.brand ", "^\.eq-id ", "\.lightbox"
 * as existence tests — keep those selectors at line starts.
 */

/* ─── Brand block ─── */
.brand {
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-text);
  text-decoration: none;
}
.brand small {
  display: block;
  font-family: var(--font-family-mono);
  font-weight: 400;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand-muted);
  margin-top: 4px;
}

/* ─── Equipment-ID pill ─── */
.eq-id {
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  background: var(--color-brand-accent-soft);
  color: var(--color-brand-accent);
  border-radius: var(--radius-brand);
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ─── Site header (fixed on desktop, static on mobile) ─── */
.site-head {
  background: var(--color-brand-bg);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  z-index: 60;
}
.site-head .container {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}
.site-head ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  padding: 0;
  margin: 0 0 0 auto;
  flex-wrap: wrap;
}
.site-head li a {
  position: relative;
  font-family: var(--font-family-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-text);
  text-decoration: none;
  padding-bottom: 5px;
}
.site-head li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-brand-accent);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-head li a:hover::after,
.site-head li a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.site-head li a.current {
  color: var(--color-brand-accent);
}
@media (min-width: 761px) {
  .site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  body.has-hero .site-head {
    background: transparent;
  }
  body.has-hero .site-head.scrolled,
  .site-head.scrolled {
    background: rgba(12, 9, 6, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--color-brand-rule);
  }
  body:not(.has-hero) main {
    padding-top: 6.5rem;
  }
}
@media (max-width: 760px) {
  .site-head {
    border-bottom: 1px solid var(--color-brand-rule);
  }
}

/* ─── Signature arrow link ─── */
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-heading);
  font-weight: 400;
  color: var(--color-brand-accent);
  text-decoration: none;
}
.site-link .arrow {
  position: relative;
  width: clamp(70px, 8vw, 140px);
  height: 14px;
  flex: none;
}
.site-link .arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 100%;
  margin-top: -1px;
  background: var(--color-brand-accent);
  transition: transform 0.25s ease;
  transform-origin: left center;
}
.site-link .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border-right: 2px solid var(--color-brand-accent);
  border-top: 2px solid var(--color-brand-accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.site-link:hover,
.site-link:focus-visible {
  color: var(--color-brand-flame);
}
.site-link:hover .arrow::before { transform: scaleX(1.1); }
.site-link:hover .arrow::after { transform: rotate(45deg) translate(3px, -3px); }
.site-link.sm { font-size: var(--fs-sub); }
.site-link.sm .arrow { width: 64px; height: 12px; }

/* ─── Home hero (Fireline media stack) ─── */
.fl-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}
.fl-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.fl-hero-media img,
.fl-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fl-hero-media img {
  filter: brightness(0.8) saturate(0.92);
}
.fl-hero-media video {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.fl-hero-media video.live { opacity: 0.88; }
.fl-hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fl-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(12, 9, 6, 0.85), rgba(12, 9, 6, 0) 32%),
    linear-gradient(to top, var(--color-brand-bg) 2%, rgba(12, 9, 6, 0.55) 30%, rgba(12, 9, 6, 0) 60%);
}
.fl-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(7rem, 16vh, 10rem) 0 clamp(2.5rem, 6vh, 4rem);
}
.fl-hero h1 {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--color-brand-text);
  max-width: 14ch;
  margin: 1.1rem 0 0;
}
.fl-hero .lede {
  max-width: 52ch;
  font-size: var(--fs-sub);
  line-height: 1.55;
  margin-top: 1.6rem;
  opacity: 0.88;
}
.fl-hero .lede p { margin: 0 0 0.6rem; }
.fl-hero .meta {
  font-family: var(--font-family-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-muted);
  margin-top: 1.4rem;
}
.fl-hero .site-link { margin-top: 2rem; }

/* ─── Inline mono pill ─── */
.mono-pill {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  padding: 2px 7px;
  background: var(--color-brand-accent-soft);
  color: var(--color-brand-accent);
  border-radius: var(--radius-brand);
  margin-right: 0.5rem;
}

/* ─── Eyebrow text ─── */
.eyebrow {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-accent);
}

/* ─── Spec table ─── */
.spec-table {
  border-top: 1px solid var(--color-brand-rule);
}
.spec-table .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-brand-rule);
  align-items: baseline;
}
.spec-table .row dt {
  font-family: var(--font-family-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-muted);
}
.spec-table .row dd {
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 500px) {
  .spec-table .row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ─── Photo card (.ph) ─── */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-brand);
  cursor: zoom-in;
  display: block;
  background: var(--color-brand-surface);
}
.ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.95);
  transform: scale(1.01);
  transition: transform 1s ease-out;
}
.ph:hover img { transform: scale(1.05); }
.ph .corner-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-family-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  background: rgba(12, 9, 6, 0.72);
  color: var(--color-brand-flame);
  border-radius: var(--radius-brand);
}
.ph .meta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(12, 9, 6, 0.8), transparent);
  color: var(--color-brand-text);
  font-family: var(--font-family-mono);
  font-size: 0.72rem;
  padding: 1.5rem 0.75rem 0.75rem;
}
.ph .meta-overlay .title {
  font-weight: 600;
}
.ph .meta-overlay .why {
  display: block;
  text-transform: uppercase;
  color: var(--color-brand-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

/* Gallery photo card variants */
.ph.hero {
  aspect-ratio: 4/5;
  grid-row: span 2;
}
.ph.support {
  aspect-ratio: 4/3;
}

/* ─── Stat band (dark_spec_band block) ─── */
.specs {
  background: var(--color-brand-spec-bg);
  color: var(--color-brand-spec-text);
  border-top: 1px solid var(--color-brand-rule);
  border-bottom: 1px solid var(--color-brand-rule);
  padding: 3.5rem 0;
  margin: var(--section-gap) 0;
}
.specs .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.specs .stat strong {
  display: block;
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-brand-accent);
}
.specs .stat span {
  font-family: var(--font-family-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-muted);
}
@media (max-width: 800px) {
  .specs .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Footer ─── */
.foot {
  margin-top: var(--section-gap);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-brand-rule);
  font-size: 0.85rem;
  color: var(--color-brand-muted);
}
.foot .container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.foot .cert {
  font-family: var(--font-family-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot .cert strong {
  color: var(--color-brand-text);
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.foot ul li {
  color: var(--color-brand-muted);
  font-family: var(--font-family-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot ul a {
  color: var(--color-brand-muted);
  text-decoration: none;
}
.foot ul a:hover { color: var(--color-brand-accent); }

/* ─── Breadcrumb ─── */
.crumb {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-brand-muted);
  padding: 1rem 0;
}
.crumb a {
  color: var(--color-brand-muted);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--color-brand-accent);
}
.crumb .sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* ─── Equipment detail header ─── */
.hdr {
  padding: 1.5rem 0 2rem;
}
.hdr h1 {
  font-size: var(--fs-big);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-brand-accent);
  margin: 0;
}
.hdr .nick {
  font-family: var(--font-family-mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--color-brand-muted);
  margin-top: 0.5rem;
}
.hdr .sub {
  font-size: 1.1rem;
  color: var(--color-brand-text);
  opacity: 0.85;
  margin-top: 1rem;
  max-width: 64ch;
}

/* ─── Equipment specs section ─── */
.specs-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-brand-rule);
}
.specs-section h2 {
  font-family: var(--font-family-mono);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ─── Photo strip (adaptive — 1, 2, or 3+ photos) ─── */
.photo-strip {
  display: flex;
  gap: 8px;
  /* margin-block-only — preserve .container's margin: 0 auto centering */
  margin-block: 2.5rem;
}

/* CF-01 — Per-role aspect ratios for above-fold hero/evidence strip */
.photo-strip .ph[data-role="hero"] {
  flex: 0 0 calc(40% - 4px);
  aspect-ratio: 4/5;
}
.photo-strip .ph[data-role="evidence"] {
  flex: 1 1 calc(30% - 4px);
  aspect-ratio: 4/3;
}
.photo-strip .ph[data-role="detail"] {
  flex: 1 1 calc(30% - 4px);
  aspect-ratio: 4/3;
}

/* CF-02 — Single-photo strip centering: :has() primary rule */
.photo-strip:has(> :only-child) {
  justify-content: center;
}
.photo-strip:has(> :only-child) .ph {
  max-width: 480px;
}

/* CF-02 — Single-photo strip centering: fallback for browsers without :has() */
.photo-strip--single {
  justify-content: center;
}
.photo-strip--single .ph {
  max-width: 480px;
}

/* Mobile: single-column, natural aspect ratio */
@media (max-width: 500px) {
  .photo-strip {
    flex-direction: column;
  }
  .photo-strip .ph[data-role="hero"],
  .photo-strip .ph[data-role="evidence"],
  .photo-strip .ph[data-role="detail"] {
    flex: 1 1 auto;
    aspect-ratio: 4/3;
    max-width: 100%;
  }
}

/* ─── Narrative section ─── */
.narrative {
  padding: 2rem 0 3rem;
  max-width: 70ch;
}
.narrative p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.narrative a,
.intro a,
.lede a {
  color: var(--color-brand-accent);
}

/* ─── Page header (.gh) — used by equipment index, about, services, gallery ─── */
.gh {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--color-brand-rule);
}
.gh h1 {
  font-size: var(--fs-big);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-brand-text);
  margin: 0;
}
.gh .eyebrow {
  display: block;
  margin-bottom: 1.1rem;
}
.gh p {
  max-width: 60ch;
  color: var(--color-brand-muted);
}
.gh .intro {
  margin-top: 1.1rem;
  font-size: var(--fs-sub);
  line-height: 1.55;
}
.gh .intro p { color: var(--color-brand-text); opacity: 0.85; }
.gh .meta {
  font-family: var(--font-family-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--color-brand-muted);
  margin-top: 1.25rem;
}

/* ─── Gallery equipment section ─── */
.equip-section {
  margin: var(--section-gap) 0;
}
.equip-hdr {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--color-brand-rule);
  margin-bottom: 1.5rem;
}
.equip-hdr .id {
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  background: var(--color-brand-accent-soft);
  color: var(--color-brand-accent);
  border-radius: var(--radius-brand);
}
.equip-hdr h2 {
  font-size: var(--fs-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-brand-accent);
  margin: 0;
}
.equip-hdr .nick {
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  color: var(--color-brand-muted);
}
.equip-hdr .capability {
  margin-left: auto;
  max-width: 50%;
  font-family: var(--font-family-mono);
  font-size: 0.82rem;
  color: var(--color-brand-muted);
}
.equip-hdr .capability strong {
  color: var(--color-brand-text);
}
@media (max-width: 800px) {
  .equip-hdr .capability { margin-left: 0; max-width: 100%; }
}

/* ─── Gallery equipment photo grid ─── */
.equip-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 0.85rem;
}
@media (max-width: 800px) {
  .equip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .equip-grid .ph.hero {
    grid-column: span 2;
    aspect-ratio: 4/3;
    grid-row: span 1;
  }
}
@media (max-width: 500px) {
  .equip-grid {
    grid-template-columns: 1fr;
  }
  .equip-grid .ph.hero {
    grid-column: span 1;
  }
  .equip-grid .ph {
    aspect-ratio: 4/3;
  }
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 4, 2, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lb-stage {
  position: relative;
  max-width: 80vw;
  max-height: 85vh;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-brand);
}
.lb-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-family-mono);
  font-size: 0.78rem;
  padding: 1.5rem 1rem 0.75rem;
  border-radius: 0 0 var(--radius-brand) var(--radius-brand);
}
.lb-counter {
  position: absolute;
  top: -2rem;
  right: 0;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}
.lb-close {
  position: absolute;
  top: -2rem;
  left: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  padding: 0;
}
.lb-close:hover {
  color: #fff;
}
.lb-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: var(--radius-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lb-prev {
  margin-right: 1rem;
}
.lb-next {
  margin-left: 1rem;
}
.lb-thumbs {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.lb-thumbs button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.lb-thumbs button.active {
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}
@media (max-width: 600px) {
  .lb-prev { margin-right: 8px; }
  .lb-next { margin-left: 8px; }
}

/* ─── Equipment index page (02-02) ─── */
.equipment-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}
.eq-card {
  display: flex;
  flex-direction: column;
  background: var(--color-brand-surface);
  border: 1px solid var(--color-brand-rule);
  border-radius: var(--radius-brand);
  overflow: hidden;
}
.eq-card .eq-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.eq-card .eq-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.95);
  transform: scale(1.01);
  transition: transform 1s ease-out;
}
.eq-card:hover .eq-thumb img { transform: scale(1.05); }
.eq-card .eq-meta {
  padding: 1.25rem 1rem 1rem;
}
.eq-card h2 {
  margin: 0.4rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}
.eq-card h2 a {
  color: var(--color-brand-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.eq-card:hover h2 a { color: var(--color-brand-accent); }
.eq-card .capability {
  color: var(--color-brand-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.status-badge {
  display: inline-block;
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-brand);
}
.status-badge.status-active {
  background: var(--color-brand-rust);
  color: var(--color-brand-flame);
}
.status-badge.status-reserve {
  background: transparent;
  color: var(--color-brand-muted);
  border: 1px solid var(--color-brand-muted);
}
.status-badge.status-retired {
  background: transparent;
  color: var(--color-brand-muted);
  border: 1px dashed var(--color-brand-rule);
  text-decoration: line-through;
  opacity: 0.7;
}
.eq-card.eq-status-retired .eq-thumb img {
  filter: grayscale(0.4) brightness(0.8);
  opacity: 0.85;
}
.eq-card .empty {
  color: var(--color-brand-muted);
  font-style: italic;
  padding: 2rem;
}

/* ─── Plan 02-03: About + Services page additions ─── */
.page-body { padding: 2rem 0 4rem; }
.page-body > .container { padding-top: 0; padding-bottom: 0; }

/* About page — list wrappers for cert/agency/fire blocks */
.list-certification_item,
.list-agency_item,
.list-named_fire_item {
  list-style: none;
  padding: 0;
  /* margin-block-only — preserve .container's margin: 0 auto centering */
  margin-block: 1.5rem;
  max-width: 700px;
}
.list-certification_item li,
.list-agency_item li,
.list-named_fire_item li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-brand-rule);
  font-size: 0.95rem;
}
.list-certification_item li .expires {
  color: var(--color-brand-muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.list-agency_item li .since,
.list-named_fire_item li .year {
  color: var(--color-brand-muted);
  font-size: 0.85rem;
}

/* ─── Contact page (02-04) ─── */
.contact-section { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: 2rem 1.5rem; }
@media (max-width: 800px) { .contact-section { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-family: var(--font-family-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--color-brand-muted); text-transform: uppercase; margin-bottom: 0.4rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--color-brand-rule); border-radius: var(--radius-brand); font-family: var(--font-family-body); font-size: 0.95rem; background: var(--color-brand-surface); color: var(--color-brand-text); box-sizing: border-box; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-brand-accent); }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.submit-btn { background: var(--color-brand-accent); color: var(--color-brand-bg); border: 0; padding: 0.75rem 1.5rem; font-family: var(--font-family-body); font-weight: 600; border-radius: var(--radius-brand); cursor: pointer; font-size: 1rem; transition: background 0.2s ease; }
.submit-btn:hover { background: var(--color-brand-flame); }
.errors { color: var(--color-brand-accent); font-size: 0.85rem; margin-top: 0.4rem; }
.form-errors { padding: 0.75rem; background: var(--color-brand-accent-soft); border-left: 3px solid var(--color-brand-rust); margin-bottom: 1rem; }
.contact-direct { background: var(--color-brand-surface); border: 1px solid var(--color-brand-rule); padding: 1.5rem; border-radius: var(--radius-brand); }
.contact-direct h3 { margin-top: 0; font-size: 1rem; font-family: var(--font-family-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-brand-muted); }
.contact-direct a { color: var(--color-brand-accent); }
.thank-you { padding: 2rem 0; max-width: 60ch; }

/* ─── Gallery closing paragraph (02-04) ─── */
.gallery-closing { padding: 3rem 0 1rem; text-align: center; border-top: 1px solid var(--color-brand-rule); max-width: 60ch; margin: 0 auto; font-family: var(--font-family-mono); font-size: 0.85rem; color: var(--color-brand-muted); letter-spacing: 0.04em; }

/* Services page — 3-up capability card grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (max-width: 800px) {
  .capability-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .capability-grid { grid-template-columns: 1fr; }
}
.capability-card {
  background: var(--color-brand-surface);
  border: 1px solid var(--color-brand-rule);
  border-radius: var(--radius-brand);
  padding: 1.5rem;
}
.capability-card h3 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-brand-text);
}
.capability-card .body {
  color: var(--color-brand-text);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ─── Content heading block ─── */
.content-heading h2 {
  font-size: var(--fs-big);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-brand-text);
  margin: var(--section-gap) 0 1rem;
}

/* ─── Brand accent span (heading key word) ─── */
.accent {
  color: var(--color-brand-accent);
}

/* ─── Lists inside RichText narrative ─── */
/* Tailwind preflight strips list-style globally; restore inside RichText */
.narrative ul,
.narrative ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1.25rem;
}
.narrative ul { list-style: disc; }
.narrative ol { list-style: decimal; }
.narrative li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

/* ─── Standalone photo_card (in body StreamFields, not in a strip) ─── */
.photo-card-standalone {
  margin: 1.75rem auto;
}
.photo-card-standalone .ph {
  aspect-ratio: 3 / 2;
  max-width: 800px;
  margin: 0 auto;
}

/* ─── 404 / recovery buttons ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-brand-accent);
  color: var(--color-brand-bg);
  text-decoration: none;
  border-radius: var(--radius-brand);
  font-weight: 600;
}
.btn:hover { background: var(--color-brand-flame); }
.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-brand-rule);
  color: var(--color-brand-text);
  text-decoration: none;
  border-radius: var(--radius-brand);
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--color-brand-accent); color: var(--color-brand-accent); }

/* ─── Scroll reveals (JS-gated; no-JS and reduced-motion users see content) ─── */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .ph img, .eq-card .eq-thumb img { transition: none; }
}

/* ─── Fireline homepage blocks (statement / panel / card grid) ─── */
.fl-statement {
  padding: var(--section-gap) 0 0;
}
.fl-statement .eyebrow {
  display: block;
  margin-bottom: 1.4rem;
}
.fl-statement p {
  font-size: var(--fs-big);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 34ch;
  color: var(--color-brand-text);
  margin: 0;
}

.fl-panel {
  margin-top: var(--section-gap);
}
.fl-panel-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.6rem, 5vw, 4.5rem);
  align-items: start;
}
.fl-panel-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fl-panel-body h2 {
  font-size: var(--fs-big);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-brand-accent);
  margin: 1.1rem 0 0;
  max-width: 16ch;
}
.fl-panel-body .body {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: var(--color-brand-text);
  opacity: 0.85;
}
.fl-panel-body .body a { color: var(--color-brand-accent); }
.fl-panel-body .site-link { margin-top: 1.8rem; }
.fl-panel-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-brand);
}
.fl-panel-media img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.95);
  transform: scale(1.01);
  transition: transform 1s ease-out;
}
.fl-panel-media:hover img { transform: scale(1.045); }
.fl-panel-media .tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  font-family: var(--font-family-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-flame);
  background: rgba(12, 9, 6, 0.78);
  padding: 0.5rem 0.8rem;
  border-radius: 0 var(--radius-brand) 0 0;
}
/* Alternate direction on every second panel (modern browsers; others keep order) */
.fl-panel:nth-child(even of .fl-panel) .fl-panel-grid {
  grid-template-columns: 7fr 5fr;
}
.fl-panel:nth-child(even of .fl-panel) .fl-panel-body { order: 2; }
.fl-panel:nth-child(even of .fl-panel) .fl-panel-media { order: 1; }

.fl-cards {
  padding-top: var(--section-gap);
}
.fl-cards .eyebrow {
  display: block;
  margin-bottom: 1.1rem;
}
.fl-cards h2 {
  font-size: var(--fs-big);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-brand-text);
  margin: 0;
}
.fl-cards-intro {
  margin: 1.2rem 0 0;
  max-width: 52ch;
  color: var(--color-brand-muted);
}
.fl-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2.4rem);
  margin-top: 2.6rem;
}
.fl-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.fl-card-cover {
  overflow: hidden;
  border-radius: var(--radius-brand);
  display: block;
}
.fl-card-cover img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.95);
  transform: scale(1.01);
  transition: transform 1s ease-out;
}
.fl-card:hover .fl-card-cover img { transform: scale(1.06); }
.fl-card-meta {
  font-family: var(--font-family-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-muted);
  margin-top: 0.9rem;
}
.fl-card h3 {
  font-size: var(--fs-sub);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-brand-text);
  margin: 0.45rem 0 0;
  max-width: 24ch;
  transition: color 0.2s ease;
}
.fl-card:hover h3 { color: var(--color-brand-accent); }
@media (max-width: 960px) {
  .fl-panel-grid,
  .fl-panel:nth-child(even of .fl-panel) .fl-panel-grid {
    grid-template-columns: 1fr;
  }
  .fl-panel:nth-child(even of .fl-panel) .fl-panel-body { order: 1; }
  .fl-panel:nth-child(even of .fl-panel) .fl-panel-media { order: 2; }
  .fl-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fl-cards-grid { grid-template-columns: 1fr; }
}
