/* ==========================================================================
   RSI Mechanical — design tokens
   Palette derived from the company mark: deep navy body, ice-blue for the
   refrigeration side, flame-red/orange for the heating side. The two accents
   are never blended into one "brand color" — they stay opposed on purpose,
   because doing both is the whole pitch.
   ========================================================================== */
:root {
  --navy: #061f52;
  --navy-dark: #040f2e;
  --navy-mid: #0b2d75;
  --ice: #4fa8dc;
  --ice-light: #bfe3f5;
  --flame: #e5432c;
  --flame-light: #ff8a5c;
  --paper: #f3f6f9;
  --paper-alt: #e7edf4;
  --ink: #0d1626;
  --steel: #5c6b81;
  --steel-light: #94a2b8;
  --white: #ffffff;
  --line: rgba(6, 31, 82, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1220px;
  --radius: 4px;
  --shadow-lg: 0 24px 60px -20px rgba(4, 15, 46, 0.45);
  --shadow-sm: 0 2px 10px rgba(4, 15, 46, 0.08);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--flame); color: var(--white);
  padding: 0.65rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; z-index: 1000; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

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

/* ==========================================================================
   Shared type + labels
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-light);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--flame));
}
.eyebrow.dark { color: var(--navy-mid); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: var(--navy); }
h3 { font-size: 1.35rem; color: var(--navy); }

.section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-heading p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--steel);
  font-size: 1.05rem;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--flame), var(--flame-light));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 30px -12px rgba(229, 67, 44, 0.55);
}
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button:active { transform: translateY(0); }

.button-outline {
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--white);
  box-shadow: none;
}
.button-outline:hover { border-color: var(--ice); color: var(--ice-light); }

.button-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--flame);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.18s ease;
}
.text-link:hover { color: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 500; }

.topbar {
  background: var(--navy-dark);
  color: var(--steel-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem);
}
.topbar-inner a { color: var(--ice-light); font-weight: 600; }
.topbar-inner a:hover { color: var(--white); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 0.7rem clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  gap: 1.5rem;
}
.brand img { height: 56px; width: auto; }

@media (max-width: 480px) {
  .brand img { height: 46px; }
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.menu-button span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.nav-links a:not(.button) { color: var(--navy); position: relative; padding: 0.25rem 0; }
.nav-links a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--flame));
  transition: right 0.22s ease;
}
.nav-links a:not(.button):hover::after { right: 0; }

@media (max-width: 860px) {
  .menu-button { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    box-shadow: var(--shadow-sm);
    display: none;
    gap: 0.9rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .button { justify-content: center; margin-top: 0.4rem; }
}

/* ==========================================================================
   Hero — blueprint field with a thermal gradient thesis statement
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-mid) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero-badge {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.hero-badge img {
  height: clamp(80px, 11vw, 132px);
  width: auto;
  background: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(75% 75% at 30% 30%, black 10%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 8%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--ice) 0deg, transparent 90deg, var(--flame) 210deg, transparent 320deg);
  opacity: 0.16;
  filter: blur(4px);
}
.hero-content { position: relative; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero-copy {
  font-family: var(--font-body);
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ice-light);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.hero-points span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(90deg, var(--ice), var(--flame));
}

/* ==========================================================================
   Thermal divider — the signature device. A gauge-like line that runs
   cold-to-hot, used sparingly at load-bearing seams between sections.
   ========================================================================== */
.trust-strip {
  position: relative;
  background: var(--navy-dark);
  color: var(--white);
}
.trust-strip::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--ice) 0%, var(--navy-mid) 50%, var(--flame) 100%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .trust-strip::before { animation: thermal-sweep 7s ease-in-out infinite; }
}
@keyframes thermal-sweep {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 2.2rem;
}
.trust-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(255,255,255,0.12);
}
.trust-grid strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.trust-grid span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-light);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Services — equipment nameplate cards with corner brackets
   ========================================================================== */
.section#services { background: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--navy);
  opacity: 0.25;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.service-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.service-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }
.service-card:hover .service-icon.snow ~ * ,
.service-card:has(.service-icon.snow):hover::before,
.service-card:has(.service-icon.snow):hover::after { border-color: var(--ice); }
.service-card:has(.service-icon.flame):hover::before,
.service-card:has(.service-icon.flame):hover::after { border-color: var(--flame); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  background: var(--paper-alt);
  color: var(--navy);
}
.service-icon.snow { background: rgba(79, 168, 220, 0.14); color: var(--ice); }
.service-icon.flame { background: rgba(229, 67, 44, 0.12); color: var(--flame); }

.service-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.service-card p { color: var(--steel); font-size: 0.98rem; }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Industries split — animated schematic of fans + pipe runs
   ========================================================================== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  color: var(--white);
  min-height: 560px;
}
.split-visual {
  position: relative;
  background: var(--navy-dark);
  overflow: hidden;
}
/* Full-width job photo closing out the services section. */
.work-band {
  margin: clamp(2.6rem, 5vw, 3.6rem) 0 0;
}
.work-band img {
  display: block;
  width: 100%;
  height: auto;
  /* aspect-ratio (not max-height) so the box is definite at every width —
     max-height against height:auto gives inconsistent results across engines.
     object-fit then crops toward the evaporator rather than the product below. */
  aspect-ratio: 20 / 7;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
}
.work-band figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--steel);
}

/* Real job-site photo filling the visual half of the split section. object-fit
   keeps the portrait crop sensible at any column width. */
.split-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem);
}
.split-content h2 { color: var(--white); margin-bottom: 1rem; }
.split-content > p { color: var(--ice-light); max-width: 46ch; margin-bottom: 2rem; }

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.industry-list span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--white);
}

@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-visual { min-height: 260px; }
}

/* NOTE: these two blocks must stay AFTER the 900px block above — it also sets
   .split-visual min-height, and equal specificity means source order decides.

   Tablets: the about grid stacks at 780px, so that photo goes full-width and
   needs a wide ratio rather than the column ratio it uses beside the copy. */
@media (max-width: 780px) {
  .about-photo { aspect-ratio: 16 / 9; }
  .split-visual { min-height: 300px; }
  /* Bias the crop upward so the suspended unit and crane stay in frame
     instead of cropping to an empty slice of roof. */
  .split-photo { object-position: center 28%; }
}

/* Phones: a 20/7 band is only ~130px tall at these widths — a sliver that
   reads as squashed. Move both photos closer to the source shape; they cost
   little vertical space at a ~350-390px container. */
@media (max-width: 620px) {
  .work-band img { aspect-ratio: 3 / 2; }
  .about-photo { aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid h2 { margin-top: 0.5rem; }
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  /* Fixed ratio so the portrait source can't tower over the shorter copy
     column beside it. The crop keeps the copper bend and compressor centred. */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--radius);
}
.about-copy p { color: var(--steel); font-size: 1.02rem; margin-bottom: 1rem; }
.check-list { margin-top: 1.4rem; display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice), var(--flame));
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6.5px; top: 6px;
  width: 7px; height: 12px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Service area — radar map
   ========================================================================== */
.service-area { background: var(--paper); }
.service-area-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.service-area h2 { margin: 0.6rem 0 1rem; }
.service-area > .container > div:first-child > p { color: var(--steel); margin-bottom: 1.4rem; max-width: 48ch; }

.map-card {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 30% 15%, var(--navy-mid) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.2rem) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.iowa-map {
  width: 100%;
  max-width: 280px;
  height: auto;
  overflow: visible;
}
.iowa-outline {
  fill: rgba(79, 168, 220, 0.16);
  stroke: var(--ice-light);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.iowa-dot { fill: var(--flame); }
.iowa-ring {
  fill: none;
  stroke: var(--flame);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .ring-one { animation: iowa-ping 3.2s ease-out infinite; }
  .ring-two { animation: iowa-ping 3.2s ease-out infinite; animation-delay: 1.1s; }
}
@keyframes iowa-ping {
  0% { transform: scale(0.6); opacity: 0.85; }
  70% { opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
.map-label {
  text-align: center;
  margin-top: 1.3rem;
}
.map-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.map-label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ice-light);
  margin-top: 0.3rem;
}

@media (max-width: 780px) {
  .service-area-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { background: var(--white); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid h2 { margin: 0.6rem 0 1rem; }
.contact-grid > div:first-child > p { color: var(--steel); margin-bottom: 1.6rem; max-width: 42ch; }
.contact-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  border-bottom: 3px solid var(--flame);
  padding-bottom: 0.2rem;
  margin-bottom: 0.8rem;
}
.contact-note { font-family: var(--font-mono); font-size: 0.82rem; color: var(--steel-light); }

.contact-form {
  background: var(--navy);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  display: grid;
  gap: 1.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice-light);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--steel-light); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ice);
  background: rgba(255,255,255,0.09);
}
.contact-form select { color-scheme: dark; }
.contact-form option {
  color: var(--ink);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .button { justify-self: start; }
/* Honeypot — invisible to people, irresistible to bots. Netlify discards any
   submission that arrives with this field filled in. Must stay display:none
   so screen readers and keyboard users never reach it. */
.hp-field { display: none; }

.form-message {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ice-light);
  min-height: 1.2em;
}
.form-message.is-success { color: var(--ice-light); }
.form-message.is-error { color: var(--flame-light); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: var(--steel-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4rem) 2.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand img {
  height: 50px;
  width: fit-content;
  background: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
}
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.site-footer > .container > div > a,
.site-footer > .container > div > span {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--ice-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Legal pages — terms & conditions. Same thermal palette, but the accents
   step back: legal copy has to be readable at length, so the page leans on
   a measured column and a sticky index instead of the marketing devices.
   ========================================================================== */
.legal-hero {
  position: relative;
  background: radial-gradient(120% 160% at 15% 0%, var(--navy-mid) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ice) 0%, var(--navy-mid) 50%, var(--flame) 100%) 1;
}
.legal-hero-content { position: relative; max-width: 760px; }
.legal-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--white);
  margin-bottom: 1.1rem;
}
.legal-lead {
  color: var(--ice-light);
  font-size: 1.05rem;
  max-width: 56ch;
}
.legal-lead a { color: var(--white); border-bottom: 1px solid var(--flame); }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-top: 1.4rem;
}

.legal-section { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 7.5rem;
  max-height: calc(100vh - 9.5rem);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.3rem;
}
.legal-toc h2 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--steel);
  transition: color 0.16s ease;
}
.legal-toc a::before {
  content: counter(toc) ".";
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel-light);
  flex: 0 0 1.5rem;
  padding-top: 0.15rem;
}
.legal-toc a:hover { color: var(--flame); }
.legal-toc a:hover::before { color: var(--flame); }

.legal-body { max-width: 78ch; }
.legal-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-mid);
  padding: 1.7rem clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 1.1rem;
  scroll-margin-top: 8.5rem;
}
.legal-item:target { border-left-color: var(--flame); }
.legal-item h2 {
  display: flex;
  gap: 0.6rem;
  font-size: 1.3rem;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.legal-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ice);
  flex: 0 0 auto;
  padding-top: 0.15rem;
}
.legal-item p {
  color: var(--steel);
  font-size: 0.97rem;
  line-height: 1.7;
}
.legal-item p + p,
.legal-item ul + p { margin-top: 1rem; }

.legal-list {
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.legal-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--steel);
  font-size: 0.97rem;
  line-height: 1.65;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--flame));
}

/* All-caps provisions in the source document stay all-caps — the emphasis is
   legally load-bearing, so it gets a container rather than a restyle. */
.legal-emphasis {
  background: var(--paper-alt);
  border-left: 2px solid var(--flame);
  padding: 1.1rem 1.2rem;
  font-size: 0.86rem !important;
  line-height: 1.65 !important;
  letter-spacing: 0.01em;
  color: var(--ink) !important;
  font-weight: 500;
}

.legal-footer-note {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--steel);
}
.legal-footer-note a { color: var(--flame); border-bottom: 1px solid currentColor; }
.legal-footer-note a:hover { color: var(--navy); }

@media (max-width: 940px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.2rem;
  }
}
@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
