/* ==========================================================================
   Fulcro Insurance of Georgia
   Visual world: a construction submission package. Survey baselines, field
   measurements, and the physics of a lever, which is what "fulcro" means.
   Palette and type are documented in README.md.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */

:root {
  /* Ground: warm graphite, the colour of wet-cured concrete in shadow.
     Not near-black, which reads as the default "dark SaaS" look. */
  --ink-900: #16181c;
  --ink-800: #1e2126;
  --ink-700: #282c33;
  --ink-600: #363b44;
  --ink-500: #4a5058;

  /* Paper: bone, the colour of a drawing set left in a job trailer. */
  --bone-100: #f4f1ea;
  --bone-200: #ede9e1;
  --bone-300: #ded8cc;
  --bone-400: #c2bbac;

  /* Structural steel blue. Load-bearing colour: navigation, structure, trust. */
  --steel-700: #1d4257;
  --steel-600: #2c5f7c;
  --steel-500: #3f7d9e;
  --steel-300: #8fb6c9;

  /* Signal orange, from survey lath and safety flagging. Used rarely, so it
     keeps its force: primary action, the live indicator, the lever load arm. */
  --signal: #e8622a;
  --signal-bright: #ff7a3d;
  --signal-deep: #ad4116;

  /* Semantic roles */
  --page: var(--ink-900);
  --surface: var(--ink-800);
  --surface-raised: var(--ink-700);
  --text: #e8e6e1;
  --text-muted: #a9aab0;
  --text-faint: #878a92;
  --rule: rgb(255 255 255 / 0.09);
  --rule-strong: rgb(255 255 255 / 0.16);
  --action: var(--signal);
  /* White text needs a darker fill than the display orange to clear AA. */
  --signal-fill: #c74917;
  --signal-fill-hover: #b84012;
  --focus: var(--signal-bright);

  /* Type. Bricolage Grotesque has real optical-size and width axes, so the
     display face changes shape rather than just scale. Public Sans is a
     workhorse with an open aperture that holds up at 16px on dark ground.
     JetBrains Mono carries the field-measurement voice. */
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Type ramp. Two fluid display roles, fixed roles below. */
  --t-display: clamp(2.75rem, 1.4rem + 6.2vw, 7.5rem);
  --t-head: clamp(1.9rem, 1.2rem + 3.1vw, 3.6rem);
  --t-sub: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --t-lede: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.8125rem;
  --t-micro: 0.6875rem;

  /* 4-unit spacing base, per the layout reference. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;

  --measure: 68ch;
  --shell: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-firm: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ----------------------------------------------------------- 2. FOUNDATION */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--signal-fill);
  color: #fff;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: var(--s-3) var(--s-6);
  background: var(--signal-fill);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip:focus-visible { top: var(--s-4); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Anchored sections must clear the sticky masthead when jumped to. */
section[id],
main[id] { scroll-margin-top: 88px; }

/* Section rhythm lives on one class so specificity never fights itself. */
.band { padding-block: clamp(var(--s-16), 11vw, var(--s-32)); }
.band--tight { padding-block: clamp(var(--s-12), 7vw, var(--s-16)); }
.band--paper {
  background: var(--bone-200);
  color: var(--ink-900);
}

/* One grade for every photograph so the set reads as one company's work. */
.ph {
  filter: saturate(0.86) contrast(1.04) brightness(1.02);
}

/* ---------------------------------------------- 3. SHARED TYPE COMPONENTS */

/* The eyebrow encodes a real drawing-sheet reference, not decoration. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--rule-strong), transparent);
}
.band--paper .eyebrow { color: var(--signal-deep); }
.band--paper .eyebrow::after {
  background: linear-gradient(to right, rgb(22 24 28 / 0.25), transparent);
}

.lede {
  max-width: 58ch;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--text-muted);
}
.band--paper .lede { color: var(--ink-700); }

.section-head {
  max-width: 42ch;
  font-size: var(--t-head);
}

/* ---------------------------------------------------------- 4. THE MARK */

.mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  padding: var(--s-2) 0;
}

.mark__glyph {
  flex: none;
  width: 30px;
  height: 30px;
  overflow: visible;
}

/* The beam tips on hover: the logo performs the word it spells. */
.mark__beam {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 520ms var(--ease);
}
.mark:hover .mark__beam,
.mark:focus-visible .mark__beam { transform: rotate(-9deg); }

.mark__name {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mark__state {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-top: 3px;
}

/* --------------------------------------------------------- 5. NAVIGATION */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(22 24 28 / 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-4), 2.2vw, var(--s-8));
}

.nav__link {
  position: relative;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: var(--s-2);
  transition: color 180ms var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-small);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.phone-link:hover { color: var(--signal); }
.phone-link svg { flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;               /* whole pixels: 1.5px renders unevenly */
  background: var(--text);
  transition: transform 260ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------- 6. BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--body);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
              color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--signal-fill);
  color: #fff;
}
.btn--primary:hover { background: var(--signal-fill-hover); }

.btn--ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.band--paper .btn--ghost {
  border-color: rgb(22 24 28 / 0.28);
  color: var(--ink-900);
}
.band--paper .btn--ghost:hover {
  border-color: var(--signal-deep);
  color: var(--signal-deep);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- 7. HERO */

.hero {
  position: relative;
  padding-block: clamp(var(--s-16), 9vw, var(--s-24)) clamp(var(--s-12), 7vw, var(--s-24));
  overflow: hidden;
}

/* Structural ground: a survey grid with a heavier baseline every fifth line,
   the way a rule reads on a drawing sheet. No glow, no orbs. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: center;
}

.hero__title {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

/* The pivot word carries the thesis, so it gets the one piece of colour. */
.hero__pivot {
  display: inline-block;
  position: relative;
  color: var(--signal);
  font-style: italic;
}
.hero__pivot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 3px;
  background: var(--signal);
  transform: scaleX(var(--pivot-underline, 1));
  transform-origin: left;
}

.hero__lede {
  margin-top: var(--s-8);
  max-width: 46ch;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

/* Field record strip: the numbers a contractor actually asks about. */
.hero__record {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) clamp(var(--s-8), 4vw, var(--s-16));
  margin-top: clamp(var(--s-12), 6vw, var(--s-16));
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}

.record__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.record__label {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  max-width: 20ch;
}

/* ------------------------------------------------ 8. THE LEVER (signature) */

/* A real, physically-simulated lever. Drag the fulcrum and the beam finds its
   own equilibrium: the load (project exposure) sits on the long arm, the
   contractor's retained risk on the short one. It is the brand name, working. */

.lever {
  position: relative;
  padding: var(--s-8) var(--s-6) var(--s-6);
  background:
    linear-gradient(to bottom, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.012));
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.lever__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.lever__title {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lever__state {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.lever__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.lever__stage {
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
  display: block;
}
.lever__stage:active { cursor: grabbing; }

.lever__beam,
.lever__load,
.lever__counter {
  transform-box: fill-box;
  transform-origin: center;
}

.lever__pivot-handle { cursor: grab; }
.lever__pivot-handle:active { cursor: grabbing; }

.lever__readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

.readout__label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.readout__value {
  display: block;
  margin-top: var(--s-1);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lever__hint {
  margin-top: var(--s-4);
  font-size: var(--t-label);
  color: var(--text-faint);
  line-height: 1.5;
}

/* Keyboard route to the same control, so the signature is not gesture-only. */
.lever__slider {
  width: 100%;
  height: 44px;
  margin-top: var(--s-2);
  accent-color: var(--signal);
  touch-action: manipulation;
}

/* ------------------------------------------------------------ 9. COVERAGE */

/* Deliberately not six identical bordered cards. One lead item takes the
   full width with the photograph; the rest flow as unbordered entries whose
   only division is the space between them. */

.coverage__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: end;
  margin-bottom: clamp(var(--s-12), 6vw, var(--s-16));
}

/* When the right column carries a long list, bottom alignment strands the
   heading. Lead with the heading instead. */
.coverage__intro--top { align-items: start; }

.lead-line {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 4vw, var(--s-12));
  align-items: center;
  padding-bottom: clamp(var(--s-12), 6vw, var(--s-16));
  margin-bottom: clamp(var(--s-12), 6vw, var(--s-16));
  border-bottom: 1px solid var(--rule);
}

.lead-line__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
}
.lead-line__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.lead-line__figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: var(--s-8) var(--s-4) var(--s-3);
  background: linear-gradient(to top, rgb(22 24 28 / 0.9), transparent);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-300);
}

.lead-line__tag {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: var(--s-1) var(--s-3);
  background: var(--signal-fill);
  color: #fff;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead-line__title {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
}

.lead-line__body {
  margin-top: var(--s-4);
  max-width: 46ch;
  color: var(--text-muted);
}

.lead-line__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-6);
}
.lead-line__points li {
  font-family: var(--mono);
  font-size: var(--t-label);
  color: var(--text-faint);
}
.lead-line__points li::before {
  content: "／";
  margin-right: var(--s-2);
  color: var(--signal);
}

/* The remaining lines: no boxes, no repeated rules. Grouping is by space. */
.line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(var(--s-8), 4vw, var(--s-12)) clamp(var(--s-8), 4vw, var(--s-16));
}

.line__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.line__title::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: var(--s-4);
  background: var(--signal);
}
.line__body {
  margin-top: var(--s-3);
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------- 10. BONDING SEQUENCE */

/* This IS an ordered sequence, so a connected timeline is honest here.
   A single continuous rule with dot markers, not N identical divided rows. */

.sequence {
  position: relative;
  margin-top: clamp(var(--s-12), 6vw, var(--s-16));
  padding-left: var(--s-8);
}
.sequence::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--signal) 0%,
    rgb(22 24 28 / 0.3) 100%
  );
}
.band--paper .sequence::before {
  background: linear-gradient(to bottom, var(--signal-deep) 0%, rgb(22 24 28 / 0.18) 100%);
}

.step {
  position: relative;
  padding-bottom: clamp(var(--s-8), 4vw, var(--s-12));
}
.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  left: calc(var(--s-8) * -1 + 1px);
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bone-200);
  border: 2px solid var(--signal-deep);
}

.step__no {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  color: var(--signal-deep);
}
.step__title {
  margin-top: var(--s-2);
  font-size: 1.375rem;
}
.step__body {
  margin-top: var(--s-2);
  max-width: 54ch;
  font-size: var(--t-small);
  line-height: 1.65;
  color: var(--ink-700);
}

.bonding__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: start;
}

.bonding__figure {
  position: sticky;
  top: 104px;
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
}
.bonding__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (max-width: 960px) {
  .bonding__figure { position: static; }
}

/* ------------------------------------------------------------ 11. INDUSTRY */

.trades {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}
.trades li {
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: var(--t-small);
  color: var(--text-muted);
}

/* ------------------------------------------------------------- 12. ABOUT */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: center;
}

.about__figure { margin: 0; border-radius: 3px; overflow: hidden; }
.about__figure img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.about__body { margin-top: var(--s-6); }
.about__body p + p { margin-top: var(--s-4); }

.footprint {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-8);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.footprint__item {
  font-family: var(--mono);
  font-size: var(--t-label);
  color: var(--text-muted);
}
.footprint__item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------- 13. CONTACT */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: start;
}

.detail-list { margin-top: var(--s-8); }
.detail {
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
}
.detail:last-child { border-bottom: 1px solid var(--rule); }

.detail__label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.detail__value {
  margin-top: var(--s-2);
  font-size: var(--t-body);
  line-height: 1.5;
}
.detail__value a {
  display: inline-block;
  padding-block: var(--s-3);
  color: var(--text);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
  transition: color 180ms var(--ease);
}
.detail__value a:hover { color: var(--signal); }

.hours {
  font-family: var(--mono);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- 14. FORM */

.form {
  padding: clamp(var(--s-6), 4vw, var(--s-12));
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.form__head { margin-bottom: var(--s-8); }
.form__title { font-size: 1.75rem; }
.form__note {
  margin-top: var(--s-3);
  font-size: var(--t-small);
  color: var(--text-muted);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.field { margin-bottom: var(--s-5, 1.25rem); }

.field__label {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__req { color: var(--signal); }

.field__control {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  min-height: 46px;
  background: var(--ink-900);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: var(--t-body);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.field__control::placeholder { color: var(--text-faint); }
.field__control:hover { border-color: rgb(255 255 255 / 0.26); }
.field__control:focus-visible {
  border-color: var(--signal);
  outline-offset: 1px;
}
textarea.field__control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
select.field__control {
  background-color: var(--ink-900);
  color: var(--text);
  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' stroke='%23a9aab0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-8);
}

.field__error {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-label);
  color: var(--signal-bright);
  min-height: 0;
}
.field__control[aria-invalid="true"] { border-color: var(--signal-bright); }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.form__status {
  font-size: var(--t-small);
  color: var(--text-muted);
}
.form__status[data-state="error"] { color: var(--signal-bright); }
.form__status[data-state="ok"] { color: var(--steel-300); }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 620ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}

/* ------------------------------------------------------------ 15. FOOTER */

.footer {
  padding-block: var(--s-16) var(--s-8);
  padding-bottom: max(var(--s-8), env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: var(--ink-800);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(var(--s-8), 4vw, var(--s-16));
  padding-bottom: var(--s-12);
}

.footer__blurb {
  margin-top: var(--s-4);
  max-width: 34ch;
  font-size: var(--t-small);
  color: var(--text-faint);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}

.footer__list li + li { margin-top: var(--s-1); }
.footer__list a {
  display: inline-block;
  padding-block: var(--s-2);
  font-size: var(--t-small);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.footer__list a:hover { color: var(--signal); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
  font-size: var(--t-label);
  color: var(--text-faint);
}
.footer__bottom p { max-width: 62ch; }

/* ------------------------------------------------------- 16. SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------- 17. RESPONSIVE */

@media (max-width: 960px) {
  .hero__grid,
  .coverage__intro,
  .lead-line,
  .bonding__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .coverage__intro { align-items: start; }

  /* Photograph follows its text on narrow screens rather than leading it. */
  .lead-line__figure,
  .about__figure { order: 2; }

  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-8);
    background: var(--ink-900);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease),
                visibility 220ms;
  }
  .nav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    padding-block: var(--s-4);
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
  }
  .nav__link::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .masthead__actions .btn { display: none; }

  /* Keep the call action tappable: hide the digits, not the target. */
  .phone-link {
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 1px solid var(--rule-strong);
    border-radius: 3px;
  }
  .phone-link span { display: none; }
  .phone-link svg { width: 18px; height: 18px; }
}

@media (max-width: 620px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .lever__readout { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__record { gap: var(--s-6) var(--s-8); }
}

@media print {
  .masthead, .nav-toggle, .lever { display: none; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
  .band--paper { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
