/* Bernard Building — The Crafted Line, homepage v1 */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--obsidian);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze-deep);
  outline-offset: 3px;
}
.hero :focus-visible,
.proof :focus-visible,
.work :focus-visible,
.closer :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--bronze);
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--bronze);
  color: var(--obsidian);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s-3); }

.shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type components ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow.on-dark { color: var(--steel); }

/* Signature: the kerf line, a measured cut */
.kerf {
  width: 40px;
  height: 9px;
  flex: none;
  color: var(--bronze);
}
.kerf path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.section-head { margin-bottom: clamp(var(--s-6), 6vw, var(--s-8)); }
.section-head .eyebrow { margin-bottom: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn-primary {
  background: var(--bronze);
  color: var(--obsidian);
}
.btn-primary:hover { background: #D5A868; }
.btn-primary:active { background: var(--bronze-deep); color: var(--warm-white); }
.btn-ghost {
  border-color: var(--line-on-light);
  color: var(--obsidian);
}
.btn-ghost:hover { border-color: var(--bronze-deep); }
.btn-ghost.on-dark {
  border-color: var(--line-on-dark);
  color: var(--warm-white);
}
.btn-ghost.on-dark:hover { border-color: var(--bronze); }

.text-link {
  font-weight: 600;
  color: var(--bronze-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--carbon);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}
/* The client lockup ships as black artwork on transparency; both chrome
   surfaces it sits on are dark, so it is knocked out to white. */
.brand-logo {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav-list a:not(.btn) {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--warm-white);
  text-decoration: none;
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease-out);
}
.nav-list a:not(.btn):hover { border-bottom-color: var(--bronze); }
.nav-cta { min-height: 42px; padding: 0 var(--s-4); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-2);
  background: none;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-1);
}
.nav-toggle-box span {
  width: 18px;
  height: 2px;
  background: var(--bronze);
  transition: transform var(--dur) var(--ease-out);
}
.nav-open .nav-toggle-box span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle-box span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--carbon);
    border-bottom: 1px solid var(--line-on-dark);
    padding: var(--s-3) var(--gutter) var(--s-5);
    display: none;
  }
  .nav-open .nav-list { display: flex; }
  .nav-list a:not(.btn) {
    display: block;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .nav-list li:last-child { margin-top: var(--s-4); }
  .nav-cta { width: 100%; }
}

/* ---------- Hero ---------- */
/* Full viewport minus the sticky header, photograph full bleed behind. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 72px);
  padding-top: clamp(var(--s-7), 14vh, 160px);
  background: var(--obsidian);
  color: var(--warm-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}
.hero-inner {
  position: relative;
  width: 100%;
}
.hero-copy .eyebrow { margin-bottom: var(--s-4); }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title-accent { color: var(--bronze); }
.hero-sub {
  margin-top: var(--s-4);
  max-width: 52ch;
  font-size: var(--fs-body);
  color: var(--steel);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.trust-bar {
  display: grid;
  margin-top: clamp(var(--s-6), 7vw, var(--s-8));
  border-top: 1px solid var(--line-on-dark);
}
.trust-bar li {
  padding: var(--s-4) 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--steel);
  border-bottom: 1px solid var(--line-on-dark);
}
@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(3, 1fr); }
  .trust-bar li {
    border-bottom: 0;
    padding: var(--s-4) var(--s-4) var(--s-5) 0;
  }
  .trust-bar li + li { padding-left: var(--s-4); border-left: 1px solid var(--line-on-dark); }
}

@media (min-width: 1024px) {
  .hero-copy { max-width: 62%; }
  .hero-title { max-width: 14ch; }
}

/* ---------- Proof band ---------- */
.proof {
  position: relative;
  overflow: hidden;
  background: var(--obsidian);
  color: var(--warm-white);
  padding-block: var(--section-y);
}
.proof h2 { color: var(--warm-white); }
/* Outlined display word, set behind the content as a ground mark */
.proof-ghost {
  position: absolute;
  /* Clear of the section edge so the cap height never reads as cropped. */
  top: var(--s-4);
  left: calc(-1 * var(--s-2));
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 24rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost-on-dark);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.proof-inner { position: relative; }
.proof-eyebrow { margin-bottom: clamp(var(--s-5), 5vw, var(--s-7)); }
.proof-rule {
  flex: 1;
  height: 1px;
  background: var(--rule-bronze);
}
.proof-head {
  display: grid;
  gap: var(--s-5);
}
.proof-accent { color: var(--bronze); }
.proof-lede {
  margin-top: var(--s-4);
  max-width: 54ch;
  color: var(--steel);
}

.google-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  align-self: start;
  justify-self: start;
  padding: var(--s-4) var(--s-5);
  background: var(--warm-white);
  color: var(--obsidian);
  border-radius: var(--radius);
}
.google-g { width: 30px; height: 30px; flex: none; }
.google-card-label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.google-card-score {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.google-card-score .rating-stars {
  font-size: 0.875rem;
  color: var(--bronze-deep);
  margin-right: 0;
}
.google-card-meta {
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  color: var(--slate);
}

.stats-grid {
  display: grid;
  gap: var(--s-5) var(--s-6);
  margin-top: clamp(var(--s-6), 6vw, var(--s-8));
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--s-5);
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--s-2);
  position: relative;
}
.stat::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--s-5) - 1px);
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--bronze);
}
.stat dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.stat dd {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-head {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .proof-copy { grid-column: 1 / 8; }
  .google-card { grid-column: 9 / 13; justify-self: end; }
}

/* ---------- Meet Ben ---------- */
.ben {
  background: var(--parchment);
  padding-block: var(--section-y);
}
.ben-grid {
  display: grid;
  gap: var(--s-6);
}
.ben-copy .eyebrow { margin-bottom: var(--s-4); }
.ben-copy h2 { margin-bottom: var(--s-4); }
.ben-copy > p { max-width: 58ch; }
.ben-plates {
  display: grid;
  gap: var(--s-4);
  align-items: end;
}
@media (min-width: 560px) {
  .ben-plates { grid-template-columns: 1fr 1fr; }
}
.ben-media img {
  width: 100%;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
}
/* Frames are held so mixed portrait and landscape originals cannot shift layout. */
.ben-media img { aspect-ratio: 4 / 5; object-fit: cover; }
.ben-media-wide img { aspect-ratio: 3 / 2; }
@media (min-width: 560px) {
  .ben-media-wide { grid-column: 1 / -1; }
}
.ben-proof {
  margin-top: var(--s-5);
  border-top: 1px solid var(--line-on-light);
}
.ben-proof li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-on-light);
  font-size: var(--fs-small);
  font-weight: 600;
}
.ben-proof li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--bronze-deep);
  flex: none;
}
.ben-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 1024px) {
  .ben-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
  }
  .ben-plates { grid-column: 1 / 7; }
  .ben-copy { grid-column: 8 / 13; }
}

/* ---------- Work ---------- */
.work {
  background: var(--carbon);
  color: var(--warm-white);
  padding-block: var(--section-y);
}
.work h2 { color: var(--warm-white); }
.work-lead {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(var(--s-6), 6vw, var(--s-8));
}
.work-lead-media img,
.work-card img {
  width: 100%;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
}
.work-lead-docket {
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--s-4);
}
.work h3 {
  font-size: var(--fs-h3);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}
.work p {
  color: var(--steel);
  font-size: var(--fs-small);
  max-width: 44ch;
}
.work-row {
  display: grid;
  gap: var(--s-6);
}
.work-card figure {
  margin-bottom: var(--s-4);
}
.work-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.work-close {
  margin-top: clamp(var(--s-6), 6vw, var(--s-8));
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) {
  .work-lead {
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
  }
  .work-lead-media { grid-column: 1 / 9; }
  .work-lead-docket { grid-column: 9 / 13; }
  .work-row { grid-template-columns: repeat(3, 1fr); }
  /* intentional asymmetry: staggered baselines, not an identical card grid */
  .work-card:nth-child(2) { margin-top: var(--s-6); }
  .work-card:nth-child(3) { margin-top: var(--s-8); }
}

/* ---------- The film ---------- */
/* Base = the no-JS / no-GSAP / reduced-motion layout: head, then the video
   docked in the shell with its native controls. anim.js adds .is-scrub only
   when the scroll scrub is live: the section becomes a pinned stage where a
   clipped window over the full-bleed video blooms open to fullscreen
   (--film-fs 0 to 1, written only by anim.js), then the scroll drives the
   playhead. The head and cue fade out on the same variable. */
.film {
  background: var(--obsidian);
  color: var(--warm-white);
  padding-block: var(--section-y);
}
.film h2 { color: var(--warm-white); }
.film-head .eyebrow { margin-bottom: var(--s-4); }
.film-media {
  max-width: min(calc(100% - 2 * var(--gutter)), 1100px);
  margin: clamp(var(--s-6), 6vw, var(--s-7)) auto 0;
}
.film-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--obsidian);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
}
.film-frame,
.film-cue { display: none; }
/* Portrait cut active (anim.js swaps the 9:16 file in and flags it): the
   docked fallback video is a phone-shaped panel, not a 16:9 letterbox. */
.film-video.is-portrait {
  display: block;
  aspect-ratio: 9 / 16;
  max-width: min(100%, 400px);
  margin-inline: auto;
}

/* The scrub stage. One set of docked-window variables is shared by the clip
   window and the hairline frame that tracks it; percentages resolve against
   the stage, so every viewport blooms clean. */
.film.is-scrub {
  position: relative;
  /* The sticky header owns the top 72px of the viewport for the whole pin.
     vh fallback first: every child is absolute, so a dropped declaration
     would collapse the stage to 0. */
  height: calc(100vh - 72px);
  height: calc(100svh - 72px);
  padding: 0;
  --film-top: 27%;
  --film-bottom: 16%;
  --film-max: min(66vw, 1100px);
  --film-side: max(var(--gutter), calc(50% - var(--film-max) / 2));
  --film-fs: 0;
  --film-i: calc(1 - var(--film-fs));
}
.film.is-scrub .film-head {
  position: absolute;
  top: clamp(32px, 7svh, 80px);
  left: 0;
  right: 0;
  z-index: 3;
  opacity: clamp(0, calc(1 - var(--film-fs) * 1.75), 1);
  pointer-events: none;
}
/* Fallback-first: without clip-path inset support the media layer IS the
   docked panel and fullscreen simply never engages; the video still scrubs. */
.film.is-scrub .film-media {
  position: absolute;
  top: var(--film-top);
  right: var(--film-side);
  bottom: var(--film-bottom);
  left: var(--film-side);
  max-width: none;
  margin: 0;
  overflow: hidden;
  z-index: 1;
  background: var(--obsidian);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
}
.film.is-scrub .film-video {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
@supports (clip-path: inset(1px 1px 1px 1px round 1px)) {
  .film.is-scrub .film-media {
    inset: 0;
    border: 0;
    border-radius: 0;
    clip-path: inset(
      calc(var(--film-top) * var(--film-i))
      calc(var(--film-side) * var(--film-i))
      calc(var(--film-bottom) * var(--film-i))
      calc(var(--film-side) * var(--film-i))
      round calc(var(--radius) * var(--film-i))
    );
  }
  /* The hairline cannot survive inside the clip; a sibling frame tracks the
     window and fades away as it opens. */
  .film.is-scrub .film-frame {
    display: block;
    position: absolute;
    top: calc(var(--film-top) * var(--film-i));
    right: calc(var(--film-side) * var(--film-i));
    bottom: calc(var(--film-bottom) * var(--film-i));
    left: calc(var(--film-side) * var(--film-i));
    z-index: 2;
    pointer-events: none;
    border: 1px solid var(--line-on-dark);
    border-radius: calc(var(--radius) * var(--film-i));
    opacity: var(--film-i);
  }
}
/* Portrait with only the 16:9 footage available: the fullscreen window is
   far taller than the film, and cover would crop the build to a zoomed
   sliver. Contain shows the whole job as a centred cinematic band instead,
   and the docked window is sized to sit close to that band. */
@media (orientation: portrait) {
  .film.is-scrub {
    --film-top: 42%;
    --film-bottom: 30%;
    --film-side: var(--gutter);
  }
  .film.is-scrub .film-video { object-fit: contain; }
}
/* Portrait with the 9:16 cut loaded (.film-portrait, set by the same swap
   that loads it): the film fills the stage edge to edge again, and the
   docked window is a tall phone-shaped crop over its middle. These out-rank
   the media-query rules above by specificity, not by order. */
.film.is-scrub.film-portrait {
  --film-top: 20%;
  --film-bottom: 14%;
  --film-side: max(var(--gutter), 11%);
}
.film.is-scrub.film-portrait .film-video { object-fit: cover; }
.film.is-scrub .film-cue {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6svh, 56px);
  transform: translateX(-50%);
  z-index: 3;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
  opacity: clamp(0, calc(1 - var(--film-fs) * 1.75), 1);
  pointer-events: none;
}
.film.is-scrub .film-cue svg {
  width: 15px;
  height: 15px;
  color: var(--bronze);
  animation: film-cue-bob 2.2s ease-in-out infinite;
}
@keyframes film-cue-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* ---------- Process ---------- */
.process {
  background: var(--warm-white);
  padding-block: var(--section-y);
}
.process-list {
  display: grid;
  gap: var(--s-6);
  counter-reset: step;
}
.process-step {
  border-top: 1px solid var(--line-on-light);
  padding-top: var(--s-4);
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--obsidian);
  margin-bottom: var(--s-4);
}
.process-step h3 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}
.process-step p {
  color: var(--slate);
  font-size: var(--fs-small);
}
@media (min-width: 768px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--parchment);
  padding-block: var(--section-y);
}
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
}
.rating-chip {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: var(--s-2);
}
.rating-stars {
  color: var(--bronze-deep);
  letter-spacing: 0.1em;
  margin-right: var(--s-1);
}
/* Three rows of distinct real reviews drift continuously: rows 1 and 3 left,
   row 2 right. Rows stand still and stay fully readable when GSAP is absent
   or motion is reduced; the loop clones are aria-hidden so each review is
   announced once. */
.reviews .section-head { margin-bottom: 0; }
.review-rail {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: clamp(var(--s-6), 6vw, var(--s-7));
  overflow: hidden;
  -webkit-mask-image: var(--rail-mask);
  mask-image: var(--rail-mask);
}
.rail-row {
  display: flex;
  gap: var(--s-3);
  width: max-content;
  will-change: transform;
  user-select: none;
}
.rail-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--warm-white);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
}
.rail-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.rail-head strong {
  font-size: var(--fs-small);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-head .rating-stars {
  font-size: 0.8125rem;
  flex: none;
  margin-right: 0;
}
/* Four lines exactly, so every card in a row is the same height. */
.rail-card blockquote {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(4 * 1.6em);
}
@media (max-width: 640px) {
  .rail-card { flex-basis: 262px; }
}

/* ---------- Closer ---------- */
.closer {
  background: var(--obsidian);
  color: var(--warm-white);
  padding-block: var(--section-y);
}
.closer h2 { color: var(--warm-white); margin-bottom: var(--s-4); }
.closer-copy .eyebrow { margin-bottom: var(--s-4); }
.closer-copy > p {
  max-width: 48ch;
  color: var(--steel);
}
.closer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.closer-grid {
  display: grid;
  gap: var(--s-7);
}
.closer-details { margin-top: var(--s-5); }
.closer-details > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: var(--fs-small);
}
.closer-details > div:first-child { border-top: 1px solid var(--line-on-dark); }
.closer-details dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 2px;
}
.closer-details a {
  color: var(--warm-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 1024px) {
  .closer-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
  }
  .closer-copy { grid-column: 1 / 7; }
  .closer .lead-form-card { grid-column: 8 / 13; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--carbon);
  color: var(--steel);
  border-top: 1px solid var(--line-on-dark);
  padding-block: var(--s-5);
  font-size: var(--fs-eyebrow);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  justify-content: space-between;
}
.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
