/* ═══════════════════════════════════════════════════════════════
   QMW history — "Forged in Arc and Line" (/history)
   Same system: charcoal base, orange ≤10%, Barlow only, square edges,
   corner brackets, no left-edge accent rules.

   Two layers:
   1. The static page (no JS, reduced motion): every chapter laid out in
      full, all content visible. This is the default below.
   2. html.hs-motion (set inline before first paint, see history.astro):
      pinned stages and the initial states history.js animates from.
      Desktop-only pins sit under (min-width: 1025px), matching the
      gsap.matchMedia breakpoint in history.js.
   ═══════════════════════════════════════════════════════════════ */

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

.hs { position: relative; }
/* width/height attributes reserve space; CSS sizes by aspect-ratio. Zero
   specificity so every class rule below (height: 100% etc.) still wins. */
:where(.hs) img { height: auto; }
.hs-ch { position: relative; padding-block: 120px; }
.hs-begin { padding-bottom: 40px; }

/* ── Type ── */
.hs-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 16px;
  max-width: 17ch;
  text-wrap: balance;
}
.hs-title--sm { font-size: clamp(34px, 3.8vw, 56px); max-width: 22ch; }

.hs-verse {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.42;
  color: var(--qmw-off-white);
  margin-top: 28px;
}
.hs-verse > br { display: none; }
.hs-verse > span { display: block; padding-left: 1em; text-indent: -1em; } /* a wrapped line hangs, as verse should */
.hs-verse--wide { font-size: clamp(24px, 2.8vw, 38px); max-width: 32ch; }
.hs-verse--line { font-size: clamp(19px, 1.7vw, 24px); margin-top: 0; }
.hs-verse--close {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.3;
  text-align: center;
  margin-top: 28px;
}
.hs-verse--close > span { padding-left: 0; text-indent: 0; text-wrap: balance; }

.hs-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--qmw-slate);
  max-width: 52ch;
  margin-top: 24px;
}
.hs-lede {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--qmw-slate);
  max-width: 62ch;
  margin-top: 24px;
}
.hs-lede em { font-style: normal; color: var(--qmw-off-white); }
.hs-lede strong { color: var(--qmw-off-white); font-weight: 600; }
.hs-cap {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--qmw-slate);
  margin-top: 10px;
}
.hs-cap a { color: var(--qmw-off-white); text-decoration: underline; text-decoration-color: rgba(236, 122, 45, 0.6); text-underline-offset: 3px; }
.hs-cap a:hover { color: var(--qmw-orange); }
.hs-note {
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--qmw-slate);
  max-width: 90ch;
  margin-top: 28px;
}
.hs-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qmw-off-white);
}

/* evidence grade tags — square, hairline, never filled */
.hs-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(236, 122, 45, 0.5);
  color: var(--qmw-orange);
  white-space: nowrap;
}
.hs-tag--photo { border-color: rgba(244, 243, 240, 0.4); color: var(--qmw-off-white); }
.hs-tag--imagery { border-color: rgba(139, 150, 168, 0.55); color: var(--qmw-slate); }

/* corner brackets (engineering crop marks) */
.hs-card::before, .hs-card::after,
.hs-tl__note::before, .hs-tl__note::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--qmw-orange);
  pointer-events: none;
}
.hs-card::before, .hs-tl__note::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hs-card::after, .hs-tl__note::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ── Scroll progress (a weld run across the top) ── */
.hs-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  display: none;
}
.hs-progress span {
  display: block;
  height: 100%;
  background: var(--qmw-orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
html.hs-motion .hs-progress { display: block; }

/* ── Chapter rail (wide desktop) ── */
.hs-rail { display: none; }
@media (min-width: 1280px) {
  html.hs-motion .hs-rail {
    display: block;
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
  }
  html.hs-motion .hs-rail.is-on { opacity: 1; visibility: visible; }
  .hs-rail ol { list-style: none; display: grid; gap: 12px; }
  .hs-rail a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--qmw-slate);
    text-shadow: 0 1px 8px rgba(20, 23, 30, 0.8);
    transition: color var(--dur) var(--ease);
  }
  .hs-rail a::after {
    content: '';
    width: 14px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 0 1px rgba(20, 23, 30, 0.25);
    transition: width var(--dur) var(--ease);
  }
  .hs-rail a span {
    opacity: 0;
    transform: translateX(6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .hs-rail:hover a span, .hs-rail a:focus-visible span, .hs-rail a.is-active span { opacity: 1; transform: none; }
  .hs-rail a:hover { color: var(--qmw-off-white); }
  .hs-rail a.is-active { color: var(--qmw-orange); }
  .hs-rail a.is-active::after { width: 28px; }
}

/* ═══ 00 · Opening ═══ */
.hs-open {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - 45px);
  display: flex;
  align-items: center;
  padding-block: 96px 150px;
  overflow: clip;
}
.hs-open__stripes {
  position: absolute;
  top: 0; right: 0;
  width: 520px; height: 520px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(236, 122, 45, 0.06) 0px, rgba(236, 122, 45, 0.06) 2px,
    transparent 2px, transparent 14px
  );
  -webkit-mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
  pointer-events: none;
}
/* giant rotated outline bleeding off the top-right (brand device) */
.hs-open__frame {
  position: absolute;
  top: -180px; right: -160px;
  width: 620px; height: 620px;
  border: 1.5px solid rgba(236, 122, 45, 0.12);
  transform: rotate(18deg);
  pointer-events: none;
}
.hs-open__inner { position: relative; }
.hs-open__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(60px, 10vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 22px;
}
.hs-open__title > span { display: block; }
.hs-open__lead {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--qmw-off-white);
  max-width: 44ch;
  margin-top: 30px;
}
.hs-open__byline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmw-slate);
  margin-top: 22px;
}
.hs-open__cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmw-slate);
  transition: color var(--dur) var(--ease);
}
.hs-open__cue:hover { color: var(--qmw-orange); }
.hs-open__cue-line {
  width: 2px;
  height: 44px;
  background: var(--qmw-orange);
  transform-origin: 50% 0;
  animation: hs-cue 2.4s var(--ease) infinite;
}
@keyframes hs-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* the weld: a bead laid left to right, the arc point leading it */
.hs-weld {
  position: relative;
  height: 2px;
  width: min(100%, 880px);
  margin-top: 36px;
}
.hs-weld__bead {
  position: absolute;
  inset: 0;
  background: var(--qmw-orange);
  transform-origin: 0 50%;
}
.hs-weld__arc {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--qmw-yellow);
  transform: rotate(45deg);
  opacity: 0;
}
.hs-weld--close { margin: 48px auto 0; width: min(100%, 520px); }

html.hs-motion [data-hs-open-item],
html.hs-motion [data-hs-open-title] { opacity: 0; }
html.hs-motion .hs-weld__bead { transform: scaleX(0); }

/* ═══ 01 · 1984 ═══ */
.hs-begin__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: center;
}

/* image wipe: a clip opened left to right, an orange cut line leading it */
.hs-wipe { position: relative; overflow: hidden; background: var(--qmw-charcoal-mid); }
.hs-wipe img { display: block; width: 100%; height: auto; }
.hs-wipe__edge {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--qmw-orange);
  opacity: 0;
  pointer-events: none;
}
html.hs-motion .hs-wipe img { clip-path: inset(0 100% 0 0); filter: grayscale(1); }

html.hs-motion [data-hs-verse] > span { opacity: 0.16; }
html.hs-motion [data-hs-fade] { opacity: 0; transform: translateY(16px); }

/* ═══ 02 · The mobile years ═══ */
.hs-mobile { padding-bottom: 0; }
.hs-mobile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}
.hs-mobile__card img {
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: var(--shadow-3);
}
.hs-list { list-style: none; margin-top: 18px; }
.hs-list li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 17px;
  line-height: 1.4;
  color: var(--qmw-off-white);
}
.hs-list li::before {
  content: '';
  position: absolute;
  left: 3px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  background: var(--qmw-orange);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* filmstrip — static: a swipe strip */
.hs-strip { margin-top: 104px; }
.hs-strip__stage { padding-bottom: 120px; }
.hs-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.hs-strip__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--qmw-slate);
  white-space: nowrap;
}
.hs-strip__count span { color: var(--qmw-off-white); }
.hs-strip__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px max(var(--gutter), calc((100vw - var(--max-w)) / 2)) 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--qmw-charcoal-light) transparent;
}
.hs-strip__item { flex: 0 0 min(78vw, 680px); scroll-snap-align: center; }
.hs-strip__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ═══ 03 · 1986 onward ═══ */
.hs-base__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: center;
}
.hs-base__stats { display: grid; gap: 22px; margin-top: 40px; }
.hs-stat {
  display: flex;
  flex-direction: column-reverse;
  border-top: 1px solid var(--border-hairline);
  padding-top: 16px;
}
.hs-stat dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmw-orange);
  margin-top: 8px;
}
.hs-stat dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.hs-stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 0.9;
  color: var(--qmw-off-white);
}
.hs-stat__src { font-size: var(--fs-body-sm); color: var(--qmw-slate); }

/* static: the four build photos as a grid */
.hs-seq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-seq__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-seq__ticks { display: none; }

/* the work that filled it */
.hs-work { padding-top: 0; }
.hs-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
  margin-top: 56px;
}
.hs-work__item { display: flex; flex-direction: column; }
.hs-work__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-work__item--wide { grid-column: span 2; grid-row: span 2; }
.hs-work__item--wide img { flex: 1; min-height: 0; aspect-ratio: auto; }

/* ═══ 04 · c. 1991 ═══ */
.hs-name { padding-block: 0 120px; }
.hs-name__stage { padding-block: 120px 96px; }
.hs-morph {
  position: relative;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 9.4vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hs-morph__from { display: flex; flex-direction: column; color: var(--qmw-charcoal-light); }
.hs-morph__word { display: inline-flex; white-space: nowrap; }
.hs-morph__ch { display: inline-block; }
.hs-morph__ch.is-initial { color: var(--qmw-orange); }
/* then the logo itself: official vector artwork, one path per letter */
.hs-morph__to {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 56px;
  margin-top: 0.4em;
}
.hs-morph__stage { margin: 0; }
.hs-morph__logo { display: block; width: min(100%, 640px); height: auto; }
.hs-morph__cap {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qmw-slate);
  margin-top: 16px;
}
.hs-morph svg path, .hs-morph svg g { transform-box: fill-box; transform-origin: center; }
.hs-name__after {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: center;
}
.hs-name__copy .hs-verse { margin-top: 0; }

html.hs-motion .hs-name__pin { height: 300vh; }
html.hs-motion .hs-name__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 0;
  overflow: hidden;
}
html.hs-motion .hs-name__inner { width: 100%; }
html.hs-motion .hs-morph__from { color: var(--qmw-off-white); }
html.hs-motion .hs-morph__from .hs-morph__ch.is-initial { color: inherit; }
/* motion: the old name and the logo share one spot; the scene builds the
   logo letter by letter (history.js) */
html.hs-motion .hs-morph__to {
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  margin-top: 0;
  display: block;
}
html.hs-motion .hs-morph__stage {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  transform: translateY(-50%);
}
html.hs-motion .hs-morph__logo { width: min(100%, 1120px); }
html.hs-motion .hs-morph__cap,
html.hs-motion .hs-morph [data-logo] > path,
html.hs-motion .hs-morph [data-logo="q"],
html.hs-motion .hs-morph [data-logo="m"],
html.hs-motion .hs-morph [data-logo="w"] { opacity: 0; }
html.hs-motion .hs-morph [data-logo="frame"] { opacity: 1; }
html.hs-motion .hs-morph__from .hs-morph__ch.is-initial { position: relative; z-index: 1; will-change: transform; }

/* ═══ 05 · Testing and quality ═══ */
.hs-test__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}
.hs-miles { list-style: none; position: relative; --fill: 1; }
/* the line that joins the milestones: a track, and the run that fills it */
.hs-miles::before, .hs-miles::after {
  content: '';
  position: absolute;
  left: 104px;
  top: 30px; bottom: 30px;
  width: 2px;
  margin-left: -1px;
}
.hs-miles::before { background: rgba(255, 255, 255, 0.1); }
.hs-miles::after {
  background: var(--qmw-orange);
  transform-origin: 50% 0;
  transform: scaleY(var(--fill));
}
.hs-mile {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 48px;
  padding-block: 20px;
  transition: opacity var(--dur-slow) var(--ease);
}
.hs-mile::before {
  content: '';
  position: absolute;
  left: 104px; top: 34px;
  width: 10px; height: 10px;
  margin-left: -5px;
  background: var(--qmw-orange);
  border: 1.5px solid var(--qmw-orange);
  border-radius: 1px;
  transform: rotate(45deg);
  z-index: 1;
  transition: background-color var(--dur-slow) var(--ease);
}
.hs-mile__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--qmw-off-white);
}
.hs-mile__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--qmw-off-white);
}
.hs-mile__body p { font-size: 14px; color: var(--qmw-slate); margin-top: 6px; }
.hs-mile__body .hs-tag { margin-top: 12px; }
html.hs-motion .hs-miles { --fill: 0; }
html.hs-motion .hs-mile { opacity: 0.32; }
html.hs-motion .hs-mile::before { background: var(--qmw-charcoal); }
html.hs-motion .hs-mile.is-on { opacity: 1; }
html.hs-motion .hs-mile.is-on::before { background: var(--qmw-orange); }

.hs-test__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-test__figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 22px;
}
.hs-fig {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1;
  color: var(--qmw-off-white);
}
.hs-fig__lab {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qmw-orange);
  margin-top: 10px;
}

/* ═══ 06 · The aerial record ═══ */
.hs-tl { padding-bottom: 0; }
.hs-tl__intro { margin-bottom: 56px; }

/* static: all eighteen frames as a contact sheet, notes beneath */
.hs-tl__frames {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hs-tl__frame picture { display: block; }
.hs-tl__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hs-tl__frame figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}
.hs-tl__hud { display: none; }
.hs-tl__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 40px auto 0;
  padding-inline: var(--gutter);
}
.hs-tl__note {
  position: relative;
  background: var(--qmw-charcoal-mid);
  border: 1px solid var(--border-hairline);
  padding: 22px 24px;
}
.hs-tl__note-when {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qmw-orange);
}
.hs-tl__note h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 10px;
}
.hs-tl__note p { font-size: 14px; line-height: 1.6; color: var(--qmw-slate); margin-top: 10px; }
.hs-tl__record {
  border-top: 1px solid var(--border-hairline);
  padding-top: 12px;
  color: var(--qmw-off-white) !important;
}
.hs-tl__attrib {
  font-size: 11px;
  line-height: 1.6;
  color: var(--qmw-slate);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 14px auto 0;
  padding-inline: var(--gutter);
}
.hs-tl__attrib a { color: var(--qmw-off-white); text-decoration: underline; text-decoration-color: rgba(236, 122, 45, 0.6); text-underline-offset: 2px; }
.hs-tl__credit {
  font-size: 11px;
  color: var(--qmw-slate);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 16px auto 0;
  padding-inline: var(--gutter);
}

/* motion: one pinned frame, the years run with the scroll */
html.hs-motion .hs-tl__scene { height: 560vh; }
html.hs-motion .hs-tl__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #1f232c;
}
html.hs-motion .hs-tl__frames {
  display: block;
  position: absolute;
  inset: 0;
  max-width: none;
  padding: 0;
  transform-origin: 52% 58%;
}
html.hs-motion .hs-tl__frame { position: absolute; inset: 0; opacity: 0; }
html.hs-motion .hs-tl__frame picture { width: 100%; height: 100%; }
html.hs-motion .hs-tl__frame:first-child { opacity: 1; }
html.hs-motion .hs-tl__frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 52% 58%;
}
html.hs-motion .hs-tl__frame figcaption { display: none; }
html.hs-motion .hs-tl__hud {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px var(--gutter) 22px;
  background: rgba(38, 43, 54, 0.82);
  border-top: 1px solid rgba(236, 122, 45, 0.25);
}
.hs-tl__place {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--qmw-orange);
}
.hs-tl__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--qmw-off-white);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.hs-tl__track { position: relative; margin-top: 20px; height: 30px; }
.hs-tl__track::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: rgba(244, 243, 240, 0.18);
}
.hs-tl__fill {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--qmw-orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.hs-tl__ticks {
  list-style: none;
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
}
.hs-tl__ticks li { position: relative; width: 2px; }
.hs-tl__ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: -3px;
  width: 2px; height: 8px;
  background: rgba(244, 243, 240, 0.35);
}
.hs-tl__ticks li span {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--qmw-slate);
  display: none;
}
.hs-tl__ticks li.is-labelled span { display: block; }
.hs-tl__ticks li.is-past::before { background: var(--qmw-orange); }

html.hs-motion .hs-tl__notes {
  display: block;
  position: absolute;
  top: calc(var(--nav-h) + 40px);
  right: var(--gutter);
  width: min(400px, 34vw);
  max-width: none;
  margin: 0;
  padding: 0;
}
html.hs-motion .hs-tl__note {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(46, 51, 64, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
}
html.hs-motion .hs-tl__note.is-active { opacity: 1; visibility: visible; transform: none; }
html.hs-motion .hs-tl__stage > .hs-tl__credit {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  left: var(--gutter);
  margin: 0;
  padding: 3px 8px;
  background: rgba(38, 43, 54, 0.75);
  color: var(--qmw-off-white);
}

/* same site, 22 years apart */
.hs-cmp { padding-block: 120px; }
.hs-cmp__frame {
  position: relative;
  margin-top: 40px;
  aspect-ratio: 1480 / 1110;
  max-height: 82vh;
  width: 100%;
  overflow: hidden;
  background: var(--qmw-charcoal-mid);
  user-select: none;
  -webkit-user-select: none;
}
.hs-cmp__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hs-cmp__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.hs-cmp__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: var(--qmw-orange);
  pointer-events: none;
}
.hs-cmp__handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  background: var(--qmw-charcoal);
  border: 2px solid var(--qmw-orange);
  transform: rotate(45deg);
}
.hs-cmp__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.hs-cmp__frame:has(.hs-cmp__range:focus-visible) .hs-cmp__handle span {
  outline: 2px solid var(--qmw-off-white);
  outline-offset: 3px;
}
.hs-cmp__tag {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  background: rgba(38, 43, 54, 0.88);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--qmw-off-white);
  pointer-events: none;
}
.hs-cmp__tag--a { left: 18px; }
.hs-cmp__tag--b { right: 18px; }
.hs-cmp__frame .hs-tl__credit {
  position: absolute;
  right: 12px; bottom: 10px;
  margin: 0;
  padding: 3px 8px;
  background: rgba(38, 43, 54, 0.75);
  color: var(--qmw-off-white);
  pointer-events: none;
}

/* ═══ 07 · Growth measures ═══ */
.hs-growth__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
  gap: 88px;
  margin-top: 56px;
  align-items: start;
}
.hs-bars ol { list-style: none; display: grid; gap: 26px; }
.hs-bar { display: grid; gap: 8px; }
.hs-bar__label { font-size: 15px; color: var(--qmw-off-white); }
.hs-bar__label strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin-right: 6px;
}
.hs-bar__track { display: flex; align-items: center; gap: 14px; min-height: 24px; }
.hs-bar__fill {
  flex: none;
  height: 22px;
  width: calc(var(--v) * (100% - 8.5rem));
  background: var(--qmw-slate);
  transform-origin: 0 50%;
  transition: background-color var(--dur) var(--ease);
}
.hs-bar.is-now .hs-bar__fill { background: var(--qmw-orange); }
.hs-bar:hover .hs-bar__fill { background: #A3ADBD; }
.hs-bar.is-now:hover .hs-bar__fill { background: var(--qmw-orange-light); }
.hs-bar__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--qmw-off-white);
  white-space: nowrap;
}
.hs-bar__src { font-size: 12px; color: var(--qmw-slate); }
.hs-bars .hs-note { margin-top: 32px; }

.hs-kit dl { display: grid; gap: 26px; }
.hs-kit dl > div {
  display: flex;
  flex-direction: column-reverse;
  border-top: 1px solid var(--border-hairline);
  padding-top: 16px;
}
.hs-kit dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 4.6vw, 70px);
  line-height: 0.9;
}
.hs-kit dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmw-orange);
  margin-top: 10px;
}
.hs-kit__src { font-size: 12px; color: var(--qmw-slate); margin-top: 18px; }

/* ═══ 08 · 2023 ═══ */
.hs-eng { padding-top: 0; }
.hs-eng__nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.hs-eng__nums > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-top: 1px solid var(--border-hairline);
  padding-top: 18px;
}
.hs-eng__nums dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.hs-eng__nums dt { font-size: 14px; color: var(--qmw-slate); margin-top: 10px; max-width: 18ch; }
.hs-eng__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.hs-card {
  position: relative;
  background: var(--qmw-charcoal-mid);
  border: 1px solid var(--border-hairline);
  padding: 28px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hs-card:hover { border-color: rgba(236, 122, 45, 0.3); box-shadow: var(--shadow-2); }
.hs-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.hs-card p { font-size: 15px; color: var(--qmw-slate); margin-top: 10px; }

/* ═══ 09 · 40 years ═══ */
.hs-people { padding-top: 0; }
.hs-shutter { overflow: hidden; background: var(--qmw-charcoal-mid); }
.hs-shutter img { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.hs-people__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px 72px;
  align-items: end;
  margin-top: 56px;
}
.hs-people__copy .eyebrow { grid-column: 1 / -1; }
.hs-people__copy .hs-verse { margin-top: 0; }
.hs-people__copy .hs-body { margin-top: 0; }
html.hs-motion .hs-shutter img { clip-path: inset(0 50% 0 50%); }

/* ═══ 10 · 2026 ═══ */
.hs-today { padding-block: 0; }
.hs-today__bg img { width: 100%; height: auto; }
.hs-today__scrim { display: none; }
.hs-today__inner { padding-top: 56px; }
.hs-today__inner .hs-verse { margin-top: 20px; }
.hs-today__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 40px;
}
.hs-today__stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-top: 1px solid rgba(244, 243, 240, 0.12);
  padding-top: 14px;
}
.hs-today__stats dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 0.9;
  white-space: nowrap;
}
.hs-today__stats dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qmw-orange);
  margin-top: 10px;
}
.hs-today__src { font-size: 12px; color: var(--qmw-slate); margin-top: 28px; }

@media (min-width: 1025px) {
  html.hs-motion .hs-today { height: 250vh; }
  html.hs-motion .hs-today__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  html.hs-motion .hs-today__bg { position: absolute; inset: 0; }
  html.hs-motion .hs-today__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
    transform: scale(1.14);
    transform-origin: 62% 50%;
  }
  /* a solid charcoal panel holds the type (as in the printed history), no gradient */
  html.hs-motion .hs-today__scrim {
    display: block;
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: calc(max(0px, (100vw - var(--max-w) - var(--gutter) * 2) / 2) + var(--gutter) + 560px);
    background: rgba(38, 43, 54, 0.9);
    transform-origin: 0 50%;
  }
  html.hs-motion .hs-today__inner { position: relative; z-index: 2; padding-top: 0; }
  html.hs-motion .hs-today__inner > * { max-width: 520px; }
  html.hs-motion .hs-today__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  html.hs-motion [data-hs-today-stat] { opacity: 0; transform: translateY(12px); }
  html.hs-motion .hs-today__src { opacity: 0; }
}

/* recent work */
.hs-recent__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
  margin-top: 56px;
}
.hs-recent__item { display: flex; flex-direction: column; }
.hs-recent__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-recent__item--tall { grid-row: span 2; }
.hs-recent__item--tall img { flex: 1; min-height: 0; aspect-ratio: auto; }

/* ═══ 11 · Close ═══ */
.hs-close { padding-block: 150px 140px; text-align: center; }
.hs-close__inner { display: flex; flex-direction: column; align-items: center; }
.hs-close__sign {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qmw-slate);
  margin-top: 28px;
}
.hs-close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

/* ═══ 12 · Dated record ═══ */
.hs-record { padding-top: 0; }
.hs-record__list { list-style: none; margin-top: 36px; border-top: 1px solid var(--border-hairline); }
.hs-record__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--border-hairline);
}
.hs-record__when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: var(--qmw-off-white);
}
.hs-record__what { font-size: 15px; color: var(--qmw-off-white); }
.hs-record__what a {
  text-decoration: underline;
  text-decoration-color: rgba(236, 122, 45, 0.6);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.hs-record__what a:hover { color: var(--qmw-orange); }

/* ═══ Desktop-only pins ═══ */
@media (min-width: 1025px) {
  /* filmstrip: the stage sticks, the strip runs sideways (height set in JS) */
  html.hs-motion .hs-strip { height: 300vh; }
  html.hs-motion .hs-strip__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 0;
    overflow: hidden;
  }
  html.hs-motion .hs-strip__track {
    overflow: visible;
    scroll-snap-type: none;
    width: max-content;
    will-change: transform;
  }
  html.hs-motion .hs-strip__item { flex-basis: min(46vw, 640px); }

  /* 1986: four photos become one frame that builds itself */
  html.hs-motion .hs-base { height: 330vh; padding-block: 0; }
  html.hs-motion .hs-base__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    align-items: center;
  }
  html.hs-motion .hs-base__grid { width: 100%; }
  html.hs-motion .hs-seq { display: block; position: relative; aspect-ratio: 4 / 3; }
  html.hs-motion .hs-seq__frame { position: absolute; inset: 0; opacity: 0; }
  html.hs-motion .hs-seq__frame:first-child { opacity: 1; }
  html.hs-motion .hs-seq__frame img { height: 100%; aspect-ratio: auto; }
  html.hs-motion .hs-seq__frame figcaption { position: absolute; top: 100%; left: 0; right: 0; }
  html.hs-motion .hs-seq__ticks { display: flex; gap: 6px; margin-top: 48px; }
  html.hs-motion .hs-seq__ticks span {
    position: relative;
    flex: 1;
    height: 2px;
    background: rgba(244, 243, 240, 0.14);
  }
  html.hs-motion .hs-seq__ticks span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--qmw-orange);
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
  }
  html.hs-motion .hs-stat { opacity: 0.28; transition: opacity var(--dur-slow) var(--ease); }
  html.hs-motion .hs-stat.is-on { opacity: 1; }
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .hs-begin__grid, .hs-base__grid, .hs-name__after, .hs-test__grid, .hs-growth__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hs-mobile__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hs-begin__media { order: -1; }
  .hs-eng__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .hs-eng__cards { grid-template-columns: minmax(0, 1fr); }
  .hs-kit dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .hs-tl__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.hs-motion .hs-tl__notes { width: min(380px, 46vw); }
  .hs-people__copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .hs-ch { padding-block: 72px; }
  .hs-mobile { padding-bottom: 0; }
  .hs-work, .hs-eng, .hs-record, .hs-people { padding-top: 0; }
  .hs-name { padding-bottom: 72px; }
  .hs-name__stage { padding-block: 72px 56px; }
  .hs-open { padding-block: 72px 120px; min-height: calc(100svh - var(--nav-h) - 45px); }
  .hs-open__frame { width: 360px; height: 360px; top: -120px; right: -140px; }
  .hs-open__stripes { width: 300px; height: 300px; }
  .hs-strip { margin-top: 72px; }
  .hs-strip__stage { padding-bottom: 72px; }
  .hs-strip__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hs-strip__count { display: none; }
  .hs-strip__track { padding-top: 28px; }
  .hs-work__grid, .hs-recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .hs-work__item--wide { grid-row: auto; }
  .hs-work__item--wide img { aspect-ratio: 16 / 10; }
  .hs-recent__item--tall { grid-row: auto; grid-column: span 2; }
  .hs-recent__item--tall img { aspect-ratio: 4 / 3; }
  .hs-miles::before, .hs-miles::after, .hs-mile::before { left: 72px; }
  .hs-mile { grid-template-columns: 56px minmax(0, 1fr); gap: 36px; }
  .hs-mile__year { font-size: 26px; }
  .hs-mile__body h3 { font-size: 19px; }
  .hs-mile::before { top: 28px; }
  .hs-test__figs { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hs-tl__frames { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hs-tl__notes { grid-template-columns: minmax(0, 1fr); }
  html.hs-motion .hs-tl__scene { height: 460vh; }
  html.hs-motion .hs-tl__hud { padding: 18px var(--gutter) 22px; }
  html.hs-motion .hs-tl__year { font-size: 64px; }
  html.hs-motion .hs-tl__notes {
    top: calc(var(--nav-h) + 44px);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }
  html.hs-motion .hs-tl__note { padding: 16px 18px; }
  html.hs-motion .hs-tl__note h3 { font-size: 20px; }
  html.hs-motion .hs-tl__note p { font-size: 13px; margin-top: 6px; }
  html.hs-motion .hs-tl__stage > .hs-tl__credit { top: calc(var(--nav-h) + 12px); }
  .hs-tl__ticks li.is-labelled span { font-size: 10px; }
  .hs-tl__ticks li:not(:first-child):not(:last-child) span { display: none; }
  /* phones: the logo hangs from the top of the three-line name */
  html.hs-motion .hs-morph__to { top: 0; }
  html.hs-motion .hs-morph__stage { transform: none; }
  .hs-cmp { padding-block: 72px; }
  .hs-cmp__tag { font-size: 20px; top: 12px; }
  .hs-cmp__tag--a { left: 12px; }
  .hs-cmp__tag--b { right: 12px; }
  .hs-bar__fill { width: calc(var(--v) * (100% - 7rem)); height: 18px; }
  .hs-bar__value { font-size: 20px; }
  .hs-kit dl { grid-template-columns: minmax(0, 1fr); }
  .hs-today__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
  .hs-close { padding-block: 96px; }
  .hs-record__row { grid-template-columns: 76px minmax(0, 1fr); gap: 6px 16px; }
  .hs-record__row .hs-tag { grid-column: 2; justify-self: start; }
  .hs-record__when { font-size: 17px; }
}

@media (max-width: 560px) {
  .hs-verse { font-size: 19px; }
  .hs-verse--wide { font-size: 21px; }
  .hs-verse--close { font-size: 22px; }
  .hs-work__grid, .hs-recent__grid { grid-template-columns: minmax(0, 1fr); }
  .hs-work__item--wide, .hs-recent__item--tall { grid-column: auto; }
  .hs-eng__nums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hs-open__cue-line { animation: none; transform: none; }
}
