/* ============================================================
   Swiss Mountain Builders
   Design system. Tokens mirror the identity boards exactly.
   ============================================================ */

:root {
  --ink:      #14161A;
  --ink-80:   #2A2E33;
  --bone:     #F7F5F0;
  --bone-2:   #EFECE5;
  --maple:    #E4D5BC;
  --steel:    #697078;
  --steel-lt: #8B9299;   /* steel on ink grounds: 5.75:1, the base steel is 3.61:1 */
  --steel-20: #D7DADD;
  --signal:   #C8102E;   /* on light grounds */
  --signal-dk: #EF3755;  /* on ink grounds, AA at 4.61:1 */
  --white:    #FFFFFF;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* one bar of the mark = the spacing unit */
  --bar: 0.75rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 78rem;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5:  clamp(3.1rem, 2rem + 5vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.018em; line-height: 1.15; }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

/* -------------------------------------------------- primitives */
.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 calc(var(--bar) * 1.5);
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3;
}
.eyebrow--plain::after { display: none; }
.eyebrow--steel { color: var(--ink-80); }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-80); max-width: 46ch; }

.mono {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--ink .eyebrow,
.site-footer .eyebrow { color: var(--signal-dk); }
.section--maple { background: var(--maple); }
.section--bone2 { background: var(--bone-2); }

.rule { height: 1px; background: var(--ink); opacity: .16; border: 0; margin: 0; }
.section--ink .rule { background: var(--bone); opacity: .22; }

/* -------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-weight: 700; font-size: var(--step-0);
  letter-spacing: -0.01em;
  padding: .95em 1.5em;
  text-decoration: none; border: 2px solid var(--ink); background: var(--ink);
  color: var(--bone); transition: background .16s ease, color .16s ease;
}
.btn:hover, .btn:focus-visible { background: var(--signal); border-color: var(--signal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.section--ink .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.section--ink .btn:hover { background: var(--signal); border-color: var(--signal); color: var(--white); }
.section--ink .btn--ghost { background: transparent; color: var(--bone); }
.section--ink .btn--ghost:hover { background: var(--bone); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--bar); }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--signal); outline-offset: 3px;
}

/* -------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid rgba(20, 22, 26, .14);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--bar); min-height: 4.75rem;
}
.brand { display: flex; align-items: center; gap: .95rem; text-decoration: none; }
.brand svg { width: 2.9rem; height: 2.9rem; flex: none; }

/* The two lines are their own column with their own gap. Left to a <br> they
   inherited the body line-height and sat 15px apart, which broke the lockup:
   the text block came out taller than the mark and overhung it top and bottom. */
.brand__text { display: flex; flex-direction: column; gap: .34rem; line-height: 1; }
/* The wordmark carries the signal red, the cross never does. Two different
   reds because the grounds differ: measured 5.40:1 on bone, 4.61:1 on ink.
   Both clear WCAG AA for 16px bold, which needs 4.5:1. Do not use --signal on
   ink, it drops to 3.08:1. */
.brand__name {
  font-weight: 900; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.05;
  text-transform: uppercase; color: var(--signal);
}
.brand--inv .brand__name { color: var(--signal-dk); }
.brand__sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; color: var(--steel); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--signal); }
.header-cta { display: none; }
@media (min-width: 60rem) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none;
  border: 2px solid var(--ink); padding: .5rem .8rem; font: inherit; font-weight: 700;
  font-size: .85rem; cursor: pointer; text-transform: uppercase; letter-spacing: .06em;
}
@media (min-width: 52rem) { .nav-toggle { display: none; } }
@media (max-width: 51.99rem) {
  .nav {
    position: fixed; inset: 4.75rem 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink); padding: var(--gutter); gap: 0; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { color: var(--bone); font-size: 1.3rem; font-weight: 700; padding-block: .9rem;
           border-bottom: 1px solid rgba(247,245,240,.15); }
  .nav .btn { margin-top: 1.2rem; justify-content: center; }
  .header-cta { display: inline-flex; }
}

/* -------------------------------------------------- hero */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 6vw, 5.5rem); }
.hero h1 { max-width: 17ch; }
.hero__lede { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 54ch; font-size: var(--step-1); line-height: 1.45; color: var(--ink-80); }
.hero .btn-row { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* -------------------------------------------------- stat strip */
.stats {
  display: grid; gap: 1px; background: rgba(247,245,240,.22);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--ink); padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.stat__k {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal-dk); margin-bottom: .9rem;
}
.stat__v { font-family: var(--display); font-size: var(--step-2); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin-bottom: .7rem; }
.stat__d { color: #A8AEB4; font-size: .95rem; line-height: 1.5; margin: 0; }

/* -------------------------------------------------- grids */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 44rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 62rem) { .split { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }

/* -------------------------------------------------- cards */
.card {
  background: var(--white); border: 1px solid rgba(20,22,26,.14);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--ink); }
.card__n { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .14em; color: var(--signal); }
.card h3 { margin: 0; }
.card p { color: var(--ink-80); font-size: .98rem; margin: 0; }
.card__list { margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--steel); }
.card__list li { padding-block: .3rem; border-top: 1px solid rgba(20,22,26,.1); }
.card__list li:first-child { border-top: 0; }
a.card { text-decoration: none; }

/* -------------------------------------------------- process steps */
.steps { display: grid; gap: 0; border-top: 1px solid rgba(20,22,26,.16); }
.step {
  display: grid; gap: .6rem 2rem; padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(20,22,26,.16);
  grid-template-columns: 1fr;
}
@media (min-width: 50rem) {
  .step { grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr) auto; align-items: baseline; }
}
.step__n { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .14em; color: var(--signal); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-80); margin: 0; font-size: .98rem; }
.step__t {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em;
  color: var(--steel); text-transform: uppercase; white-space: nowrap;
}
.section--ink .steps, .section--ink .step { border-color: rgba(247,245,240,.22); }
.section--ink .step__n, .section--ink .card__n { color: var(--signal-dk); }
.section--ink .step p { color: #A8AEB4; }

/* -------------------------------------------------- price table */
.ptable { border-top: 2px solid var(--ink); }
.prow {
  display: grid; gap: .4rem 2rem; padding-block: clamp(1.25rem, 2.5vw, 1.9rem);
  border-bottom: 1px solid rgba(20,22,26,.16); grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .prow { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 13.5rem 8.5rem; align-items: baseline; }
}
.prow__name { font-family: var(--display); font-weight: 900; font-size: var(--step-1); letter-spacing: -.02em; }
.prow__note { color: var(--ink-80); font-size: .95rem; margin: 0; }
.prow__price { font-family: var(--mono); font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
  color: var(--ink); white-space: nowrap; }
.prow__time { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .08em;
  color: var(--steel); text-transform: uppercase; white-space: nowrap; }
@media (min-width: 52rem) { .prow__price, .prow__time { text-align: right; } }

/* -------------------------------------------------- callout */
.callout {
  border-left: 4px solid var(--signal); background: rgba(200,16,46,.05);
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2rem);
}
.callout p { margin: 0; }
.callout p + p { margin-top: .7rem; }

/* -------------------------------------------------- area list */
.areas { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.areas li {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(20,22,26,.22); padding: .5rem .85rem; color: var(--ink-80);
}

/* -------------------------------------------------- quote */
.quote { border-top: 2px solid var(--ink); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.quote blockquote { margin: 0; font-size: var(--step-2); font-weight: 700; letter-spacing: -.025em; line-height: 1.22; max-width: 26ch; }
.quote figcaption { margin-top: 1.25rem; }

/* -------------------------------------------------- form */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .85rem .95rem; background: var(--white);
  border: 1px solid rgba(20,22,26,.28); color: var(--ink); border-radius: 0;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 42rem) { .field-row { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--bone); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 50rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
/* Was an <h4>, which skipped a level under every page's h2. Same appearance,
   hung off the class instead of the tag. --steel-lt because plain --steel is
   3.61:1 on ink and fails AA at this size. */
.footer-grid .foot__h { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-lt); font-weight: 500; margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .96rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(247,245,240,.2);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
}

/* -------------------------------------------------- page head */
.pagehead { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(20,22,26,.16); }
.pagehead h1 { font-size: var(--step-4); max-width: 18ch; }
.pagehead .lede { margin-top: 1.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone);
  padding: .8rem 1.2rem; z-index: 100; font-weight: 700;
}
.skip:focus { left: var(--gutter); }

/* ============================================================
   PHOTOGRAPHY
   Real jobsite photos, graded as one set. Never stock, never
   generated. The scrim values below are what keep type legible
   over a photograph, so do not lighten them without re-testing.
   ============================================================ */

.hero--photo {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  padding-block: clamp(4rem, 14vw, 9.5rem);
  min-height: clamp(30rem, 76vh, 46rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero--photo > .wrap { position: relative; z-index: 2; }

/* The photograph is a real <img> now, not a background: Google Images can see
   it, it carries alt text, and it can be given fetchpriority. Positioned behind
   the scrim, object-fit: cover, so it behaves exactly as the background did. */
.bleed__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}

/* Two scrims. The linear one carries the headline, the vertical one keeps the
   bottom edge from fighting the section below. Together they hold better than
   4.5:1 anywhere type sits. */
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(20,22,26,.94) 0%,
      rgba(20,22,26,.88) 34%,
      rgba(20,22,26,.62) 58%,
      rgba(20,22,26,.30) 100%),
    linear-gradient(to top, rgba(20,22,26,.55) 0%, rgba(20,22,26,0) 38%);
}

.hero--photo h1 { color: var(--bone); }
.hero--photo .hero__lede { color: #D7DBDE; }
.hero--photo .eyebrow { color: var(--signal-dk); }
.hero--photo .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.hero--photo .btn:hover { background: var(--signal); border-color: var(--signal); color: var(--white); }
.hero--photo .btn--ghost { background: transparent; color: var(--bone); border-color: var(--bone); }

/* Both buttons sit on moving video, so they invert like the ink sections do.
   The ink-on-ink default was invisible against the graded footage. */
.reel .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.reel .btn:hover, .reel .btn:focus-visible { background: var(--signal); border-color: var(--signal); color: var(--white); }
.reel .btn--ghost { background: transparent; color: var(--bone); border-color: var(--bone); }
.reel .btn--ghost:hover, .reel .btn--ghost:focus-visible { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.hero--photo .btn--ghost:hover { background: var(--bone); color: var(--ink); }

/* Caption pinned to the hero, so the photo is credited as a real job */
.hero__caption {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 1.25rem;
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .12em;
  text-transform: uppercase; color: rgba(247,245,240,.72); text-align: right;
  max-width: 22ch; line-height: 1.6;
}
@media (max-width: 52rem) { .hero__caption { display: none; } }

/* ---- full bleed photo band, used between sections ---- */
.band {
  position: relative; isolation: isolate; background: var(--ink);
  min-height: clamp(16rem, 34vw, 26rem);
  display: flex; align-items: flex-end; overflow: hidden;
}
.band .bleed__img { object-position: center 45%; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20,22,26,.86) 0%,
              rgba(20,22,26,.30) 46%, rgba(20,22,26,.05) 100%);
}
.band__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(1.75rem, 4vw, 3rem); }
.band__inner p { margin: 0; color: var(--bone); max-width: 40ch;
  font-family: var(--display); font-weight: 900; letter-spacing: -.025em;
  font-size: var(--step-2); line-height: 1.1; }
.band__meta { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(247,245,240,.72); margin-top: .9rem !important;
  font-weight: 400 !important; font-family: var(--mono) !important; }

/* ---- figures inside cards and the projects grid ---- */
.card__media {
  margin: calc(clamp(1.5rem, 3vw, 2.1rem) * -1) calc(clamp(1.5rem, 3vw, 2.1rem) * -1) 0;
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--bone-2);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- the build sequence: photos with dates, the point of the page ---- */
.seq { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 44rem) { .seq { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 68rem) { .seq { grid-template-columns: repeat(4, 1fr); } }
.seq figure { margin: 0; }
.seq img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bone-2); }
.seq figcaption {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); margin-top: .6rem;
  display: flex; justify-content: space-between; gap: .5rem;
}
.seq figcaption b { color: var(--ink); font-weight: 700; }

/* ---- split with a photo on one side ---- */
.duo { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .duo { grid-template-columns: 1fr 1fr; } }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bone-2); }
@media (min-width: 62rem) { .duo--flip > :first-child { order: 2; } }

/* Inner page heroes are shorter than the homepage: enough photo to set the
   tone, not so much that the content gets pushed below the fold. */
.hero--page {
  min-height: clamp(20rem, 44vh, 30rem);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.hero--page h1 { font-size: var(--step-4); max-width: 18ch; }
.hero--page .hero__lede { margin-top: 1.35rem; max-width: 48ch; font-size: var(--step-1); }

/* ============================================================
   THE SCROLL REEL
   Full bleed video the visitor scrubs with the wheel, bold type
   over it stepping through the stages of the job.

   Default state is the honest one: poster frame, the five stages
   listed as plain text under it, no sticky, no tall track. JS adds
   data-smb-reel="scrub" only once it knows the screen can handle
   it AND the file has actually arrived. See inc/reel.php.
   ============================================================ */

.reel { background: var(--ink); color: var(--bone); }
.reel__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.reel__video { display: block; width: 100%; height: 100%; object-fit: cover; }

.reel__copy { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.reel__eyebrow {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--signal-dk); margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}
.reel__steps { list-style: none; margin: 0; padding: 0; }
.reel__step + .reel__step { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.reel__num {
  display: block; font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: .16em; color: var(--steel-lt); margin-bottom: .55rem;
}
.reel__title {
  font-family: var(--display); font-weight: 900; line-height: .95;
  letter-spacing: -0.02em; font-size: var(--step-4);
  margin: 0; color: var(--bone);
}
.reel__line {
  margin: .9rem 0 0; max-width: 30ch;
  font-size: var(--step-1); line-height: 1.4; color: rgba(247,245,240,.82);
}

.reel__hud { padding: clamp(2rem, 5vw, 3rem) 0 0; }
.reel__hud-inner {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: .16em; text-transform: uppercase; color: var(--steel-lt);
}
.reel__count b { color: var(--bone); font-weight: 400; }
.reel__bar { display: block; flex: 0 1 10rem; height: 2px; background: rgba(247,245,240,.22); }
.reel__bar i { display: block; height: 100%; width: 0%; background: var(--signal-dk); }
.reel__cue { transition: opacity .3s ease; }
.reel__note {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase; color: var(--steel-lt);
  margin: clamp(2rem, 5vw, 3rem) 0 0; padding-bottom: clamp(3rem, 7vw, 5rem);
}
.reel__note .wrap { display: block; }

/* ---- scrub state: everything stacks inside one full viewport panel ---- */
[data-smb-reel="scrub"] .reel__track { height: 520vh; }
[data-smb-reel="scrub"] .reel__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }

[data-smb-reel="scrub"] .reel__media { position: absolute; inset: 0; aspect-ratio: auto; }

/* Type sits on the left third over a photograph that runs from pale dirt to
   dark metal roof, so the scrim is horizontal as well as vertical. */
[data-smb-reel="scrub"] .reel__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(20,22,26,.86) 0%, rgba(20,22,26,.55) 38%, rgba(20,22,26,0) 68%),
    linear-gradient(to top, rgba(20,22,26,.7) 0%, rgba(20,22,26,0) 45%);
}

[data-smb-reel="scrub"] .reel__copy {
  position: absolute; inset: 0; padding: 0;
  display: flex; align-items: center; pointer-events: none;
}
[data-smb-reel="scrub"] .reel__copy .wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); }
[data-smb-reel="scrub"] .reel__steps { position: relative; min-height: 16rem; }
[data-smb-reel="scrub"] .reel__step {
  position: absolute; top: 0; left: 0; margin: 0;
  opacity: 0; transform: translateY(1.4rem);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
[data-smb-reel="scrub"] .reel__step[data-active] { opacity: 1; transform: none; }
[data-smb-reel="scrub"] .reel__title { font-size: var(--step-5); }

/* ---- hero variant: step one is the masthead, so it needs more room ---- */
.reel--hero .reel__step--lead .reel__title { max-width: 17ch; }
.reel--hero .reel__line--lede { max-width: 46ch; }
.reel__btns { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); pointer-events: auto; }
[data-smb-reel="scrub"].reel--hero .reel__steps { min-height: 26rem; }
/* The masthead is taller than a stage, so the panel biases the type upward
   rather than centring it and letting the buttons fall behind the counter. */
[data-smb-reel="scrub"].reel--hero .reel__copy { align-items: center; padding-top: 4rem; }
[data-smb-reel="scrub"].reel--hero .reel__title { font-size: var(--step-4); }
[data-smb-reel="scrub"].reel--hero .reel__step:not(.reel__step--lead) .reel__title { font-size: var(--step-5); }


[data-smb-reel="scrub"] .reel__hud {
  position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 2.75rem);
  padding: 0;
}
[data-smb-reel="scrub"][data-smb-started="1"] .reel__cue { opacity: 0; }
[data-smb-reel="scrub"] .reel__note {
  position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 2.75rem);
  margin: 0; padding-bottom: 0; color: rgba(247,245,240,.72);
}
[data-smb-reel="scrub"] .reel__note .wrap { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  [data-smb-reel] .reel__track { height: auto; }
  [data-smb-reel] .reel__stick { position: static; height: auto; }
}
