/* Build-Net Solutions
   Brand: true black ground, Build blue + Net orange, dotted globe, wide geometric type. */

:root {
  --black: #000;
  --surface: #0c0e12;
  --line: #262a31;
  --line-strong: #3a404a;
  --text: #f3f5f8;
  --muted: #a7afbb;
  --blue: #0155d2;
  --blue-deep: #01359b;
  --blue-text: #4a8dff;
  --orange: #fd8103;
  --orange-hover: #ff9a33;
  --orange-deep: #f65002;
  --danger: #ff8a8a;
  --success: #6fdc9a;

  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 76rem;
  --header-h: 4.5rem;
  --radius-sm: 6px;
  --chamfer: 12px;
  /* Service page drawing box: every bit of height the screen allows, keeping room for the title
     and summary underneath. The Home tile zoom lands in this same box. */
  --service-media-h: max(40vh, calc(100vh - var(--header-h) - 16.5rem));
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  /* Keep the scrollbar's space reserved, so unlocking scroll after the intro
     doesn't narrow the viewport and jog the whole scene sideways */
  scrollbar-gutter: stable;
}
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.scroll-locked,
html.intro-running { overflow: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main:focus { outline: none; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }

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

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

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3D canvas layer ---------- */
#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body[data-scene="home"] #scene { pointer-events: auto; }
#scene.is-hovering { cursor: pointer; }
#scene.is-front { z-index: 45; pointer-events: none; } /* above the new page while the tile dissolves */

main { position: relative; z-index: 2; }

/* ---------- Enter screen and intro ---------- */
.gate {
  --hole: 0vmax;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding-inline: var(--gutter);
  background: #000;
  color: var(--text);
}
.intro-pending .gate { display: grid; }
.gate-inner { display: grid; justify-items: center; gap: 1.4rem; text-align: center; }
.gate-mark { width: clamp(110px, 16vw, 170px); }
.gate-brand {
  margin: 0;
  font-size: 1.05rem;
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gate-brand .b { color: var(--blue-text); }
.gate-brand .n { color: var(--orange); }
.gate-progress { width: min(240px, 60vw); height: 2px; overflow: hidden; background: #23272e; }
.gate-progress span {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width 0.3s ease;
}
.gate.is-ready .gate-progress { opacity: 0; transition: opacity 0.4s ease; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.flash { position: fixed; inset: 0; z-index: 190; background: #fff; opacity: 0; pointer-events: none; }

.skip-intro {
  position: fixed;
  right: var(--gutter);
  bottom: 1.1rem;
  z-index: 210;
  display: none;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: var(--step--1);
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}
.intro-jumping .skip-intro { display: inline-flex; align-items: center; }

.site-header,
.hud,
.sound-bar { transition: opacity 0.9s ease, visibility 0.9s ease; }
.intro-running .site-header,
.intro-running .hud,
.intro-running .sound-bar { opacity: 0; visibility: hidden; }

/* ---------- Music ---------- */
.sound-bar {
  position: fixed;
  left: var(--gutter);
  bottom: 0.75rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2 * var(--gutter));
  pointer-events: none;
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  white-space: nowrap;
}
.sound-toggle:hover { border-color: var(--orange); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-bars i { display: block; width: 2px; height: 3px; background: var(--orange); border-radius: 1px; }
.sound-on .sound-bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-on .sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-on .sound-bars i:nth-child(3) { animation-delay: -0.6s; }
.sound-on .sound-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

.credits { display: grid; gap: 0.3rem; }
.credit {
  max-width: 34ch;
  margin: 0;
  color: #7f8793;
  font-size: 0.75rem;
  line-height: 1.35;
  pointer-events: auto;
}
.credit a { color: inherit; text-underline-offset: 0.15em; }
.credit a:hover { color: var(--text); }
@media (max-width: 560px) {
  .credit { max-width: 24ch; font-size: 0.6875rem; }
}

/* ---------- Brand lockup ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
}
.brand-mark { width: 44px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 1.05rem;
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name .b { color: var(--blue-text); }
.brand-name .n { color: var(--orange); }
.brand-sub {
  margin-top: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

/* The split blue/orange rule from the logo */
.brand-rule {
  display: block;
  width: 7rem;
  height: 3px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(90deg, var(--blue) 0 48%, transparent 48% 52%, var(--orange) 52% 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: var(--line);
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: #000;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-inline: 0; font-size: var(--step-1); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 0.9rem; }
}

/* ---------- Buttons (chamfered like the B) ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font: inherit;
  font-weight: 600;
  font-stretch: 110%;
  color: #000;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn:hover::before { background: var(--orange-hover); }
.btn:active::before { transform: scale(0.97); }
.btn[disabled] { cursor: progress; opacity: 0.6; }

.btn-ghost { color: var(--text); }
.btn-ghost::before { background: #1b1f26; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover::before { background: #262b33; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--text);
  background: rgba(12, 14, 18, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--orange);
  font-weight: 600;
  text-underline-offset: 0.2em;
}
.text-link:hover { color: var(--orange-hover); }

/* ---------- Home: globe experience ---------- */
.experience { pointer-events: none; }
.experience-track {
  height: calc(100vh + var(--stops, 10) * 55vh);
  height: calc(100svh + var(--stops, 10) * 55svh);
}

.hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hud a,
.hud button { pointer-events: auto; }

.intro {
  position: absolute;
  inset: auto 0 clamp(3.5rem, 8vh, 5.5rem) 0;
  padding-inline: var(--gutter);
  text-align: center;
}
.intro-copy { position: relative; isolation: isolate; max-width: 48rem; margin-inline: auto; }
.intro-copy::before {
  content: "";
  position: absolute;
  inset: -4rem -12vw -3rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5) 60%, transparent);
  pointer-events: none;
}
.intro h1 { max-width: 20ch; margin-inline: auto; letter-spacing: 0.01em; text-transform: uppercase; }
.intro .lede {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.intro-fallback { display: none; width: min(60vw, 360px); margin: 0 auto 1rem; }
html:not(.webgl) .intro-fallback { display: block; }

.est {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1.25rem;
  font-size: var(--step--1);
  font-stretch: 125%;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.est::before,
.est::after { content: ""; width: 3rem; height: 2px; }
.est::before { background: linear-gradient(90deg, transparent, var(--blue)); }
.est::after { background: linear-gradient(90deg, var(--orange), transparent); }

/* Scroll prompt: a line that keeps drawing downward */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(var(--orange), var(--blue));
  transform-origin: top;
  animation: cue 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.caption {
  position: absolute;
  inset: calc(var(--header-h) + 2vh) 0 auto 0;
  padding-inline: var(--gutter);
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
.caption.is-visible { visibility: visible; }
.caption-count {
  margin: 0 auto 0.35rem;
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.caption[data-family="fiber"] .caption-count { color: var(--orange); }
.caption[data-family="lv"] .caption-count { color: var(--blue-text); }
.caption-title {
  max-width: 22ch;
  margin: 0 auto 1rem;
  font-size: var(--step-3);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px #000, 0 0 12px #000;
}
.caption-controls { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }

/* ---------- Inner pages: one section at a time comes into focus ---------- */
[data-reveal] { will-change: opacity, transform; }

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(4rem, 12vh, 7rem);
  text-align: center;
}
.page-hero .inner { width: 100%; max-width: 52rem; margin-inline: auto; }
.page-hero h1 { max-width: 18ch; margin-inline: auto; letter-spacing: 0.01em; text-transform: uppercase; }
.page-hero .lede { max-width: 46ch; margin-inline: auto; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(4.5rem, 3rem + 6vw, 8rem) var(--gutter);
}
.section > .inner { width: 100%; max-width: var(--max); margin-inline: auto; }
.section-intro { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-intro p { margin-inline: auto; color: var(--muted); }

/* Rows: heading left, detail right */
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.row h2,
.row h3 { margin: 0; font-size: var(--step-2); }
.row p { color: #d5dae1; }
.row-head { align-self: start; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; padding: 2rem 0; }
}

.ticks { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.ticks li { margin-bottom: 0.35rem; }
.ticks li::marker { color: var(--family-color, var(--orange)); }

/* Service families: orange = Net (fiber/OSP), blue = Build (in-building low voltage) */
.family--fiber,
.family-fiber { --family-color: var(--orange); }
.family--lv,
.family-lv { --family-color: var(--blue-text); }
.family--pm,
.family-pm { --family-color: var(--text); }
.family-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.family-head::before { content: ""; flex: none; width: 2.5rem; height: 4px; background: var(--family-color); }
.family-head h2 { margin: 0; }

/* Process (a real sequence, so it is numbered) */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li { padding-top: 1.25rem; border-top: 2px solid var(--line-strong); counter-increment: step; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--orange);
  font-size: var(--step-2);
  font-stretch: 125%;
  font-weight: 700;
}
.process h3 { margin-bottom: 0.4rem; }
.process p { color: var(--muted); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; color: var(--muted); }

/* ---------- Service detail pages ---------- */
/* The drawing sits on top, fully visible; the title and summary sit underneath it, never over it.
   The tile zoom on Home lands in this same box (it measures --header-h, --gutter and
   --service-media-h), so the hand-off lines up exactly. */
.service-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  text-align: center;
}
.service-hero-media {
  flex: none;
  width: 100%;
  height: var(--service-media-h, 64vh);
}
.service-hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.service-hero-copy { max-width: 72rem; margin-top: clamp(0.75rem, 2.5vh, 1.75rem); }
.service-hero-copy h1 { margin-inline: auto; font-size: var(--step-3); letter-spacing: 0.01em; text-transform: uppercase; }
.service-hero .lede { max-width: 52ch; margin-inline: auto; color: #dfe3e9; font-size: var(--step-1); line-height: 1.5; }
.service-family {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto 1rem;
  color: var(--family-color);
  font-weight: 600;
}
.service-family::before { content: ""; width: 2rem; height: 3px; background: var(--family-color); }

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
@media (max-width: 860px) { .service-body { grid-template-columns: 1fr; } }
.service-text p { color: #d5dae1; font-size: var(--step-1); line-height: 1.55; }
.service-includes h2 { font-size: var(--step-2); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease;
}
.tag-list a:hover { border-color: var(--orange); }

.next-service > .inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 0.2em; }
.back-link:hover { color: var(--text); }
.next-link { display: grid; gap: 0.25rem; text-align: right; text-decoration: none; }
.next-link span { color: var(--muted); }
.next-link strong { font-size: var(--step-3); font-stretch: 125%; line-height: 1.1; transition: color 0.2s ease; }
.next-link:hover strong { color: var(--orange); }
/* Service page headings and the next-service links read in caps, like the page title */
.service-includes h2,
#serves-title,
.back-link,
.next-link span,
.next-link strong { text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.details { margin: 0; }
.details div { padding: 1rem 0; border-top: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: var(--step--1); }
.details dd { margin: 0.15rem 0 0; font-size: var(--step-1); font-weight: 600; overflow-wrap: anywhere; }
.details a { text-decoration: none; }
.details a:hover { color: var(--orange); }

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; }
.req { color: var(--orange); }
.hint { color: var(--muted); font-size: var(--step--1); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--orange); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: var(--step--1); }

.honeypot { position: absolute; left: -9999px; }

.error-summary { padding: 1rem 1.25rem; border: 2px solid var(--danger); }
.error-summary h2 { margin-bottom: 0.5rem; font-size: var(--step-1); }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--danger); }

.form-status:empty { display: none; }
.form-status { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--line-strong); background: var(--surface); }
.form-status[data-state="success"] { border-left-color: var(--success); }
.form-status[data-state="error"] { border-left-color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { padding: 4rem var(--gutter) 6rem; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
}
.footer-inner p { margin-top: 1rem; color: var(--muted); }
.footer-title { margin-bottom: 0.75rem; font-size: var(--step-0); font-stretch: 100%; font-weight: 500; color: var(--muted); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--orange); }
.footer-links li:not(:has(a)) { padding-block: 0.6rem; color: var(--muted); }
.footer-legal { max-width: var(--max); margin: 2.5rem auto 0; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
