/* ==========================================================================
   FREE MY BOYS — design system  (spec §3)
   Booking room: concrete under a single overhead light, a height chart, paper
   placards. Grayscale; amber ONLY on primary actions, the $1, prices at the
   point of decision, and focus rings. Hard 2px corners. No gradients on type.
   ========================================================================== */

@font-face { font-family: 'Stencil'; src: url('/fonts/big-shoulders-stencil-latin.woff2') format('woff2-variations'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Mono'; src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0f0f10;
  --bg-raised: #161618;
  --ink: #f2f2f0;
  --body: #bdbdb9;
  --mute: #9e9e9a;
  --line: rgba(242, 242, 240, .28);
  --line-soft: rgba(242, 242, 240, .07);
  --name: #c9c9c6;
  --accent: #ffb000;
  --accent-ink: #111111;
  --paper: #e9e7e1;
  --paper-ink: #141414;
  --danger: #ff8a73;

  --radius: 2px;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --measure: 62ch;

  --f-display: 'Stencil', Impact, 'Arial Narrow', sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 17px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The room: one overhead light, a floor vignette, concrete grain. Fixed so it
   never repaints on scroll; pointer-events none so it can't eat clicks. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 58% at 68% -8%, rgba(255, 236, 200, .12), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .55), transparent 60%);
}
body::after {
  /* Concrete grain as a tiny pre-rendered tile: a live SVG feTurbulence filter
     blended over the whole viewport cost ~0.5s of paint on mid-range phones. */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32;
  background: url('/img/grain.png') repeat;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--paper); color: var(--paper-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--paper-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* --- layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line-soft); }
.section__head { grid-column: 1 / span 5; }
.section__body { grid-column: 7 / span 6; }
@media (max-width: 860px) { .section__head, .section__body { grid-column: 1 / -1; } .section__body { margin-top: 28px; } }

/* --- type ---------------------------------------------------------------- */
.display { font: 900 clamp(64px, 11.2vw, 168px)/.84 var(--f-display); letter-spacing: -.012em; text-transform: uppercase; color: var(--ink); margin: 0; }
.h2 { font: 800 clamp(40px, 5vw, 72px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; color: var(--ink); margin: 0 0 20px; }
.h3 { font: 600 20px/1.3 var(--f-text); color: var(--ink); margin: 0 0 8px; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--body); max-width: 36ch; margin: 0; }
.lede strong, .body strong { color: var(--ink); font-weight: 600; }
.body { max-width: var(--measure); }
.body p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-weight: 600; letter-spacing: .04em; }
.fine { font-size: 14px; color: var(--mute); }
.amt { color: var(--accent); font-weight: 600; }

/* --- actions ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--f-text); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; transition: transform .12s var(--ease), background-color .12s;
}
.btn:hover { background: #ffc233; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { background: #6b5a2a; color: #1b1b1b; cursor: progress; }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { background: var(--line-soft); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mute); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-color: var(--ink); }

/* --- nav + footer -------------------------------------------------------- */
.promo { margin: 0; padding: 9px var(--gut); text-align: center; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--bg-raised); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: baseline; gap: clamp(16px, 2.4vw, 36px); padding: 26px 0; font-size: 15px; font-weight: 500; }
.nav__logo { font: 900 26px/1 var(--f-display); letter-spacing: .02em; color: var(--ink); text-decoration: none; margin-right: 12px; white-space: nowrap; }
.nav__link { color: var(--mute); text-decoration: none; white-space: nowrap; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__sp { flex: 1; }
.nav__cta { align-self: center; color: var(--accent-ink); background: var(--accent); text-decoration: none; white-space: nowrap; font-weight: 600; padding: 10px 14px; border-radius: var(--radius); }
.nav__cta:hover { background: #ffc233; }
@media (max-width: 720px) { .nav__link--wide { display: none; } }
/* Phones: logo, Help and the button fit on one line, down to 320 px. */
.nav { align-items: center; }
@media (max-width: 400px) { .nav { gap: 12px; } .nav__logo { font-size: 22px; margin-right: 0; } .nav__cta { padding: 9px 11px; font-size: 14px; } }
/* Smallest phones: Help is also in the footer, so it gives the button room. */
@media (max-width: 359px) { .nav .nav__link { display: none; } }

.foot { border-top: 1px solid var(--line-soft); padding: 48px 0 56px; font-size: 14px; color: var(--mute); }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot__mark { font: 900 28px/1 var(--f-display); color: var(--ink); letter-spacing: .02em; margin-bottom: 12px; }
.foot__h { color: var(--ink); font-weight: 500; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__human { margin-top: 10px; }
.foot .foot__human a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* --- booking-room objects ------------------------------------------------ */
.chart {
  position: absolute; inset: 0 0 0 auto; width: 48%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(56px - 1.5px), var(--line) calc(56px - 1.5px) 56px),
    repeating-linear-gradient(180deg, transparent 0 calc(14px - 1px), var(--line-soft) calc(14px - 1px) 14px);
}
.chart__marks { position: absolute; right: 22px; top: 0; display: grid; grid-auto-rows: 56px; font: 600 13px/1 var(--f-text); font-variant-numeric: tabular-nums; color: rgba(242, 242, 240, .55); text-align: right; }
.chart__marks span { transform: translateY(-7px); }

.placard {
  display: inline-block; min-width: 250px; background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius); padding: 12px 16px 14px; font: 600 12.5px/1.55 var(--f-mono); letter-spacing: .06em;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5); transform: rotate(-1.2deg);
}
.placard__row { display: flex; justify-content: space-between; gap: 24px; }
.placard__name { font: 900 30px/1 var(--f-display); letter-spacing: .02em; margin: 6px 0 4px; text-transform: uppercase; }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); padding: 24px; }

/* A shirt: a photo mockup (Printful's own Gildan 5000 template, made by
   scripts/make-tee-mockups.mjs) with the real artwork (an <img> of /api/preview
   or a static render, 3:4) over Printful's 12x16 in print area, at true scale.
   .tee__canvas is the 1000x1000 template; .tee crops its empty margins to the
   shirt (x 110-916, y 10-980; the shirt spans x 115-911) so the shirt fills
   the column. Zero CLS. */
.tee { position: relative; aspect-ratio: 806 / 970; width: 100%; overflow: hidden; }
.tee__canvas { position: absolute; left: -13.6476%; top: -1.0309%; width: 124.0695%; aspect-ratio: 1; background: center / 100% 100% no-repeat; }
.tee--black .tee__canvas { background-image: url(/img/tee-black.webp); }
.tee--white .tee__canvas { background-image: url(/img/tee-white.webp); }
/* Print area on the template: 3000-px coords left 950, top 413, 1106x1475
   (Printful mockup template 153150, Gildan 5000 front). */
.tee__art { position: absolute; left: 31.667%; top: 13.767%; width: 36.867%; height: 49.167%; object-fit: contain; object-position: top; }

.facts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; color: var(--mute); margin: 0; padding: 0; list-style: none; }
.facts li + li::before { content: '/'; color: var(--line); margin-right: 12px; }
/* On phones a wrapped line would start with a stray slash: stack instead. */
@media (max-width: 520px) { .facts { flex-direction: column; gap: 4px; } .facts li + li::before { content: none; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; counter-increment: step; }
.steps li::before { content: counter(step); font: 900 38px/.9 var(--f-display); color: var(--name); }
.steps b, .steps strong { display: block; color: var(--ink); font-weight: 600; }

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mute); font: 400 22px/1 var(--f-text); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-top: 12px; max-width: var(--measure); }

.notice { border-left: 2px solid var(--mute); padding: 12px 16px; background: var(--bg-raised); color: var(--ink); }
.notice--error { border-left-color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 500; color: var(--mute); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }

.orgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.orgs__item { display: grid; gap: 2px; }
.orgs__item a { color: var(--ink); font-weight: 600; }
.orgs__pending { color: var(--mute); }

/* --- forms (builder) ----------------------------------------------------- */
.field { display: grid; gap: 8px; margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.field__label { color: var(--ink); font-weight: 500; font-size: 15px; padding: 0; }
.field__hint { font-size: 14px; color: var(--mute); margin: 0; }
.field__error { font-size: 14px; color: var(--danger); min-height: 0; margin: 0; }
.field__error:empty { display: none; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-raised); color: var(--ink); font: 500 17px/1.3 var(--f-text);
}
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--name { font: 900 34px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; min-height: 64px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 56px; justify-content: center; padding: 0 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 500; }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); background: var(--line-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 1px; box-shadow: inset 0 0 0 1px var(--line); }
.swatch--black { background: #1b1b1d; }
.swatch--white { background: #ecebe7; }
.chip { min-height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--body); font: 500 13px/1 var(--f-text); cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.summary { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.summary__row { display: flex; justify-content: space-between; }
.summary__row--total { color: var(--ink); font-weight: 600; font-size: 18px; padding-top: 6px; }
.summary__row--total .amt { font-size: 18px; }

/* --- 404 ------------------------------------------------------------------ */
.lost { border-top: 0; }
.lost .lede { margin: 28px 0 36px; }
.lost__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 0 0 28px; }

/* --- motion policy ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Home: the booking-room hero, samples, pledge. */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 40px; }
.hero__grid { position: relative; align-items: center; min-height: min(78vh, 760px); }
.hero__copy { grid-column: 1 / span 6; position: relative; z-index: 2; padding-bottom: 48px; }
.hero__stage { grid-column: 8 / span 5; position: relative; z-index: 1; display: grid; }
.hero__slide { position: relative; }
.hero__title { display: block; }
.hero__free { display: block; }
/* The name is typed straight into the headline: a blank on a form, not a box. */
.hero__input {
  display: block; width: 100%; padding: 0 0 .06em; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--name); caret-color: var(--accent);
  border-bottom: 3px solid var(--line); outline: none;
}
.hero__input::placeholder { color: #4a4a48; opacity: 1; }
.hero__input:focus { border-bottom-color: var(--accent); }
.hero__error { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; color: var(--accent); }
.hero__error:empty { min-height: 0; margin: 0; }
.hero__for { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 22px 0 0; }
.hero__for label { position: relative; cursor: pointer; }
.hero__for input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hero__for span { display: block; padding: 9px 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--body); }
.hero__for input:checked + span { color: var(--ink); background: rgba(242, 242, 240, .12); box-shadow: inset 0 0 0 2px var(--ink); }
.hero__for input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero__lede { margin-top: 26px; }
/* Three short facts, one per line: wrapped slash-separated lines read as a mistake. */
.hero__facts { flex-direction: column; gap: 4px; }
.hero__facts li + li::before { content: none; }
.hero__cta { display: flex; align-items: center; gap: 24px; margin: 36px 0 22px; flex-wrap: wrap; }
.hero .chart__marks { top: 56px; } /* first numeral sits on the first rule, not clipped at the top */
.hero__placard[hidden] { display: none; }
/* Memorial: no height chart behind someone who died. A warm light where the
   lines were, like a lamp over a photo at a service. */
.hero__chart { transition: opacity .8s var(--ease); }
.hero__memorial {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background:
    radial-gradient(ellipse 36% 52% at 74% 44%, rgba(255, 222, 178, .15), rgba(255, 200, 140, .05) 50%, transparent 72%);
}
/* doors.css draws the chart in with a filled animation; it must not hold the lines up here. */
.hero--rip .hero__chart, html.doors-closed .hero--rip .hero__chart { opacity: 0; animation: none; }
.hero--rip .hero__memorial { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__chart, .hero__memorial { transition: none; } }
.hero__placard { position: absolute; left: 12%; bottom: -6%; z-index: 2; }
.hero__strip { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; min-height: 64px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--mute); margin-top: 0; }
.hero__strip b { color: var(--body); font-weight: 500; }
.hero__strip-sp { flex: 1; }
@media (max-width: 860px) {
  .hero__copy, .hero__stage { grid-column: 1 / -1; }
  /* width:100% — auto margins would shrink-wrap the stage to 0 and hide the tee */
  .hero__stage { width: 100%; max-width: 440px; margin: 0 auto 56px; }
  .hero .chart { width: 100%; opacity: .6; top: auto; height: 480px; }
  .hero .chart__marks { display: none; } /* numerals would run through the lede */
  .hero__grid { min-height: 0; }
  /* Phones: the shirt sits right under the name box, so it stays in view while
     they type. The form's children join the hero grid to be reordered. */
  .hero__copy { display: contents; }
  .hero__copy > *, .hero__stage { grid-column: 1 / -1; }
  .hero__title { order: 1; } .hero__input { order: 2; } .hero__error { order: 3; }
  .hero__stage { order: 4; max-width: 270px; margin: 22px auto 0; }
  .hero__for { order: 5; } .hero__lede { order: 6; } .hero__cta { order: 7; } .hero__facts { order: 8; padding-bottom: 8px; }
  .hero__placard { left: auto; right: -14%; bottom: -4%; min-width: 0; transform: rotate(-1.2deg) scale(.78); transform-origin: right bottom; }
  .hero .chart { top: 0; height: 640px; } /* behind the name and shirt, not the paragraph */
  .hero--rip .hero__chart { opacity: 0; }
  .hero__memorial { background: radial-gradient(ellipse 70% 30% at 50% 380px, rgba(255, 222, 178, .14), rgba(255, 200, 140, .04) 55%, transparent 75%); }
}

/* After the hero, headings step down: one loud thing per page. */
.home-h { font: 800 clamp(28px, 3vw, 40px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .005em; color: var(--ink); margin: 0 0 16px; }

/* Occasions: the visitor's name on four designs, each a link into the builder. */
.occasions__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-bottom: clamp(20px, 3vw, 36px); }
.occasions__head .home-h, .occasions__head .body { margin: 0; }
.samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.sample { display: grid; align-content: start; gap: 2px; text-decoration: none; color: var(--body); border-radius: var(--radius); }
.sample .tee { margin-bottom: 14px; transition: transform .2s var(--ease); }
.sample:hover .tee { transform: translateY(-4px); }
.sample__name { font: 600 18px/1.25 var(--f-text); color: var(--ink); }
.sample__info { font-size: 15px; line-height: 1.45; }
.sample__go { margin-top: 8px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 1000px) { .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: a row you swipe, with the next shirt peeking in so it reads as more. */
@media (max-width: 720px) {
  .samples { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); padding-bottom: 6px; scrollbar-width: none; }
  .samples::-webkit-scrollbar { display: none; }
  .sample { scroll-snap-align: start; }
}

.ask { margin: 22px 0 0; max-width: 34ch; }

.pledge__bill { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 0 22px; }

/* ==========================================================================
   Cell doors. FAIL-OPEN — three independent layers:
     1. Resting state of .door is OPEN (off-screen). No script, no animation: open.
     2. Opening is a pure CSS animation, fill-mode both. JS never opens them.
     3. .doors is pointer-events:none always.
   The ONLY thing that closes them is the inline head script adding .doors-closed.
   Transform/opacity only.
   ========================================================================== */
.doors { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.doors::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 45%, rgba(15,15,16,.6), rgba(15,15,16,.92)); opacity: 0; }
/* light spill through the seam as the doors part */
.doors::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 36vw; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 50%, rgba(255,240,215,.22), transparent 70%); opacity: 0; z-index: 1; }

.door {
  position: absolute; top: -2%; bottom: -2%; width: 51%;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-image:
    linear-gradient(180deg, #4a4a4e, #2e2e31),                 /* top rail */
    linear-gradient(180deg, #4a4a4e, #2e2e31),                 /* cross rail */
    linear-gradient(180deg, #4a4a4e, #2e2e31),                 /* bottom rail */
    repeating-linear-gradient(90deg, transparent 0 40px, #151517 40px 42px, #56565b 42px 46px, #3a3a3e 46px 54px, #0d0d0e 54px 57px, transparent 57px 60px);
  background-size: 100% 26px, 100% 18px, 100% 26px, auto 100%;
  background-position: 0 3%, 0 52%, 0 97%, 0 0;
}
.door--l { left: 0; transform: translate3d(-101%, 0, 0); }
.door--r { right: 0; transform: translate3d(101%, 0, 0); }
.door--l::after, .door--r::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, #0a0a0b, #5a5a5f 45%, #3a3a3e 55%, #0a0a0b); }
.door--l::after { right: 0; }
.door--r::after { left: 0; }
/* lock box on the left door's leading edge */
.door--l::before { content: ''; position: absolute; right: 12px; top: 47%; width: 46px; height: 72px; background: linear-gradient(180deg, #505055, #2b2b2e); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }

html.doors-closed .door--l { animation: door-open-l 900ms cubic-bezier(.7, 0, .18, 1) 320ms both; }
html.doors-closed .door--r { animation: door-open-r 900ms cubic-bezier(.7, 0, .18, 1) 320ms both; }
html.doors-closed .doors::after { animation: scrim-lift 700ms ease-out 420ms both; }
html.doors-closed .doors::before { animation: spill 900ms ease-out 300ms both; }
/* after the doors clear, the height chart draws in. Resting state is visible. */
html.doors-closed .hero__chart { animation: chart-in 600ms ease-out 1100ms both; }

@keyframes door-open-l { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-101%, 0, 0); } }
@keyframes door-open-r { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(101%, 0, 0); } }
@keyframes scrim-lift { from { opacity: 1; } to { opacity: 0; } }
@keyframes spill { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chart-in { from { opacity: 0; transform: translate3d(2%, 0, 0); } to { opacity: 1; transform: none; } }

.doors[data-spent] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .doors { display: none; }
  html.doors-closed .door--l, html.doors-closed .door--r, html.doors-closed .doors::after,
  html.doors-closed .doors::before, html.doors-closed .hero__chart { animation: none; }
}
