/* Dundalk Stadium · The Card
   Grounds hard-cut per race: paper for the horse card, night for the dogs.
   One hue of accent (Dundalk red), two lightnesses keyed to the ground. */

:root {
  --navy: #13194A;
  --night: #0A0C22;
  --night-2: #11143A;
  --paper: #F6F5F1;
  --paper-2: #ECEAE3;
  --red: #DC4462;
  --red-deep: #B82A49;     /* on paper: 5.4:1 */
  --red-lift: #FF7D93;     /* on night: 7.5:1 */
  --teal: #84CBBB;
  --sand: #D8B98C;
  --bone: #F4F1EA;

  --sc-canvas: var(--night);
  --sc-surface: var(--night-2);
  --sc-ink: var(--bone);
  --sc-ink-soft: #B9BCD3;
  --sc-accent: var(--red);
  --sc-accent-ink: #fff;
  --sc-font-display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --sc-font-text: "Instrument Sans", system-ui, sans-serif;

  --chrome-h: 4.25rem;
}

html { background: var(--night); }
body { background: var(--night); color: var(--bone); font-family: var(--sc-font-text); }
::selection { background: var(--red); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--red-lift); outline-offset: 3px; border-radius: 4px; }
.race--paper :focus-visible { outline-color: var(--red-deep); }

/* ------------------------------------------------------------ chrome --- */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--chrome-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(1rem, 2.4vw, 2rem);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.cloth {
  display: flex; align-items: center; gap: .7rem;
  background: none; border: 0; padding: .25rem; color: inherit; cursor: pointer;
  font: inherit;
}
.cloth__face {
  position: relative;
  width: 2.75rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 5px 5px 9px 9px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 6px 16px -6px rgba(4,6,20,.55), inset 0 1px 0 rgba(255,255,255,.6);
  transition: background-color 220ms var(--sc-ease-out), color 220ms var(--sc-ease-out), transform 160ms var(--sc-ease-out);
  overflow: hidden;
}
.cloth:active .cloth__face { transform: scale(.96); }
.cloth__num {
  font-family: var(--sc-font-display); font-weight: 900; font-size: 1.7rem; line-height: 1;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.cloth__mark { width: 1.9rem; height: 1.9rem; display: none; }
.cloth__label { display: grid; text-align: left; line-height: 1.15; text-shadow: 0 1px 8px rgba(4,6,20,.6); }
.cloth__race { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.cloth__hint { font-size: .75rem; color: var(--sc-ink-soft); }

/* The cloth changes material with the sport. Horses: white saddlecloth.
   Greyhounds: the racing jacket in its real trap colour. */
.cloth[data-kind="cover"] .cloth__face { background: var(--paper); }
.cloth[data-kind="cover"] .cloth__mark { display: block; }
.cloth[data-kind="cover"] .cloth__num { display: none; }
.cloth[data-kind="horse"] .cloth__face { background: var(--paper); color: var(--navy); border-radius: 4px 4px 12px 12px; }
.cloth[data-kind="dog4"] .cloth__face { background: #15161B; color: #fff; border-radius: 12px 12px 4px 4px; }
.cloth[data-kind="dog5"] .cloth__face { background: #F27A1A; color: #15161B; border-radius: 12px 12px 4px 4px; }
.cloth[data-kind="dog6"] .cloth__face {
  background: repeating-linear-gradient(90deg, #15161B 0 .42rem, #F4F1EA .42rem .84rem);
  color: var(--red); border-radius: 12px 12px 4px 4px;
}
.cloth[data-kind="dog6"] .cloth__num { -webkit-text-stroke: 1px #fff; paint-order: stroke fill; }
.cloth[data-kind="card"] .cloth__face { background: var(--red); color: #fff; }
.cloth[data-kind="card"] .cloth__mark { display: block; }
.cloth[data-kind="card"] .cloth__num { display: none; }
.cloth[data-kind="card"] .cloth__mark .mk-red { fill: #fff; }

/* chrome ink follows the ground under it */
.chrome[data-ground="paper"] .cloth__label { color: var(--navy); text-shadow: none; }
.chrome[data-ground="paper"] .cloth__hint { color: #4B4F6E; }
.chrome[data-ground="paper"] .brand { color: var(--navy); }

.brand {
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; line-height: .9;
  color: var(--bone); text-decoration: none;
}
.brand__word { font-family: var(--sc-font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-lift); }
.chrome[data-ground="paper"] .brand__word { color: var(--red-deep); }
.brand__sub { font-size: .6rem; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }

.book, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.book { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(220,68,98,.9); }
.btn--red { background: var(--red-deep); color: #fff; box-shadow: 0 10px 24px -12px rgba(184,42,73,.8); }
.race--night .btn--red, .cover .btn--red { background: var(--red); }
.btn--line { border: 1.5px solid currentColor; color: var(--navy); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .book:hover, .btn--red:hover { background: #C8314F; }
  .btn--line:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
}
.book:active, .btn:active { transform: translateY(1px) scale(.98); }

/* ------------------------------------------------------------ index ---- */
.index {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: min(26rem, 100vw); height: 100%;
  background: var(--paper); color: var(--navy);
  inset: 0 auto 0 0;
  box-shadow: 30px 0 60px -30px rgba(4,6,20,.6);
}
.index::backdrop { background: rgba(10,12,34,.55); }
.index[open] { animation: ixIn 260ms var(--sc-ease-out); }
@keyframes ixIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.index__sheet { padding: 1.5rem 1.5rem 2rem; }
.index__head { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 2px solid var(--navy); padding-bottom: .9rem; }
.index__kicker { margin: 0; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red-deep); font-weight: 600; grid-column: 1; }
.index__title { margin: .2rem 0 0; font-family: var(--sc-font-display); font-weight: 900; font-size: 2.6rem; text-transform: uppercase; line-height: .95; grid-column: 1; }
.index__close { grid-column: 2; grid-row: 1 / span 2; align-self: start; background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.index__list { list-style: none; margin: 0; padding: 0; }
.index__list a {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: center;
  padding: .85rem 0; border-bottom: 1px solid #D6D3CA; color: inherit; text-decoration: none;
  font-family: var(--sc-font-display); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; line-height: 1;
}
.index__list small { display: block; font-family: var(--sc-font-text); font-weight: 400; font-size: .85rem; text-transform: none; color: #4B4F6E; margin-top: .25rem; }
.index__list a[aria-current="true"] { color: var(--red-deep); }
@media (hover: hover) and (pointer: fine) { .index__list a:hover { color: var(--red-deep); } }
.ix { display: grid; place-items: center; width: 2.6rem; height: 2.3rem; border-radius: 4px 4px 10px 10px; font-weight: 900; font-size: 1.4rem; }
.ix--h { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); }
.ix--4 { background: #15161B; color: #fff; border-radius: 10px 10px 4px 4px; }
.ix--5 { background: #F27A1A; color: #15161B; border-radius: 10px 10px 4px 4px; }
.ix--6 { background: repeating-linear-gradient(90deg, #15161B 0 .4rem, #F4F1EA .4rem .8rem); color: var(--red); border-radius: 10px 10px 4px 4px; -webkit-text-stroke: 1px #fff; paint-order: stroke fill; }
.ix--c { background: var(--red); color: #fff; font-size: 1.1rem; }

/* ------------------------------------------------------- card line ----- */
/* The one label schema on the page. Every race opens with it. */
.cardline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem;
  margin: 0 0 var(--sc-6);
  padding-bottom: .7rem;
  border-bottom: 2px solid currentColor;
  color: var(--navy);
  font-size: .85rem;
}
.cardline--dark { color: var(--bone); border-bottom-color: rgba(244,241,234,.5); }
.cl-num {
  display: grid; place-items: center;
  width: 2.3rem; height: 2rem; border-radius: 3px 3px 9px 9px;
  font-family: var(--sc-font-display); font-weight: 900; font-size: 1.3rem; line-height: 1;
}
.cl-num--h { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.cardline--dark .cl-num--h { border-color: transparent; }
.cl-num--4 { background: #15161B; color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 9px 9px 3px 3px; }
.cl-num--5 { background: #F27A1A; color: #15161B; border-radius: 9px 9px 3px 3px; }
.cl-num--6 { background: repeating-linear-gradient(90deg, #15161B 0 .36rem, #F4F1EA .36rem .72rem); color: var(--red); -webkit-text-stroke: 1px #fff; paint-order: stroke fill; border-radius: 9px 9px 3px 3px; }
.cl-num--c { background: var(--red-deep); color: #fff; font-size: 1rem; }
.cl-title { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.cl-fact { margin-left: auto; font-weight: 500; opacity: .86; }

.d-head {
  font-family: var(--sc-font-display); font-weight: 900;
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem);
  line-height: .92; letter-spacing: -.005em; text-transform: uppercase;
  margin: 0; color: var(--navy); text-wrap: balance;
}
.d-head--light { color: var(--bone); }

.race { position: relative; }
.race--paper { background: var(--paper); color: var(--navy); --sc-ink: var(--navy); --sc-ink-soft: #3F4366; }
.race--paper .sc-body { color: #3F4366; }
.race--night, .race--dusk { background: var(--night); color: var(--bone); }
.race--dusk { background: #0E1029; }
.race--red { background: #5B1428; color: var(--bone); --sc-ink-soft: #F0D5DB; }
.race--red .sc-body { color: #F3DDE2; }

.note { font-size: .82rem; color: #4B4F6E; margin-top: var(--sc-4); }
.note--dark { color: #F0D5DB; }

/* ------------------------------------------------------------ cover ---- */
.cover__stage { background: #050611; }
.scene {
  position: absolute; left: 50%; bottom: 0;
  width: max(100vw, 150.2vh); aspect-ratio: 2560 / 1705;
  translate: -50% 0;
}
.scene > * { position: absolute; max-width: none; display: block; will-change: transform; }
.scene__plate { inset: 0; width: 100%; height: 100%; transform: scale(calc(1 + var(--sc-p, 0) * .05)) translateY(calc(var(--sc-p, 0) * -1.5%)); transform-origin: 50% 70%; }
.scene__glare {
  left: 13%; top: 20%; width: 34%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255,250,235,.85), rgba(255,236,200,.28) 40%, rgba(255,230,190,0) 72%);
  mix-blend-mode: screen;
  opacity: calc(.35 + var(--sc-p, 0) * .65);
  transform: scale(calc(.9 + var(--sc-p, 0) * .35));
}
/* lead horses, anchored at their rear hooves so the surge never exposes the plate behind */
.scene__leaders {
  left: 34.8%; top: 42.99%; width: 31.76%; height: auto;
  transform-origin: 92% 96%;
  transform: translateX(calc(var(--sc-p, 0) * -2.2%)) scale(calc(1 + var(--sc-p, 0) * .2));
}
.scene__sand { left: 0; top: 72.37%; width: 100%; height: auto; transform-origin: 50% 100%; transform: translateY(calc(var(--sc-p, 0) * -3%)) scale(calc(1 + var(--sc-p, 0) * .12)); }
.scene__rail {
  left: 61.37%; top: 0; width: 38.63%; height: auto;
  transform-origin: 100% 0;
  transform: translate(calc(var(--sc-p, 0) * 14%), calc(var(--sc-p, 0) * -22%)) scale(calc(1 + var(--sc-p, 0) * .18));
}
.scene__fade { inset: auto 0 0 0; height: 14%; background: linear-gradient(to top, var(--paper), rgba(246,245,241,0)); opacity: calc(var(--sc-p, 0) * 1.1 - .1); }

.cover__copy {
  position: absolute; z-index: 3;
  left: clamp(1.25rem, 5vw, 5rem); top: calc(var(--chrome-h) + 7vh);
  max-width: 52rem;
}
.cover__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,6,17,.92) 0%, rgba(5,6,17,.84) 28%, rgba(5,6,17,.6) 42%, rgba(5,6,17,.2) 54%, rgba(5,6,17,0) 62%); }
.cardline--cover { color: var(--bone); border-bottom-color: rgba(244,241,234,.45); font-size: .9rem; gap: .6rem; max-width: 30rem; }
.cardline__mark { width: 1.6rem; height: 1.6rem; }
.cardline__mark .mk-navy, .cloth__mark .mk-navy { fill: var(--navy); }
.cardline--cover .cardline__mark .mk-navy { fill: var(--bone); }
.cardline--cover span:nth-child(2) { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red-lift); }
.cover__title {
  margin: 0;
  font-family: var(--sc-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 1rem + 6vw, 7.2rem); line-height: .86; letter-spacing: -.01em;
  color: var(--bone);
}
.cover__title span { color: var(--red-lift); }
.cover__sub { margin: var(--sc-5) 0 0; max-width: 30ch; font-size: var(--sc-t-lg); line-height: 1.4; color: #E3E4EE; }
.cover__actions { margin: var(--sc-6) 0 0; }
.cover__actions .btn { min-height: 3.1rem; padding: 0 1.6rem; font-size: 1.02rem; }

/* ------------------------------------------------------------ race 1 --- */
.doors { padding-block: calc(var(--sc-section) * .6) calc(var(--sc-section) * .8); }
.doors__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: var(--sc-6) !important; }
.tbl th, .tbl td { text-align: left; padding: .7rem .5rem .7rem 0; border-bottom: 1px solid #CFCBC0; }
.tbl thead th { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; border-bottom: 2px solid var(--navy); vertical-align: bottom; }
.tbl thead th span { font-family: var(--sc-font-text); font-size: .78rem; font-weight: 500; text-transform: none; color: #4B4F6E; }
.tbl tbody th { font-weight: 500; }
.tbl td { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); }
.tbl tbody tr:nth-child(1) td:nth-child(2) { color: var(--red-deep); }
.facts { list-style: none; padding: 0; margin-top: var(--sc-6) !important; display: grid; gap: .55rem; color: #3F4366; }
.facts b { color: var(--navy); font-weight: 700; margin-right: .3rem; }
.doors__fig { margin: 0; position: sticky; top: calc(var(--chrome-h) + 2rem); }
.doors__fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(19,25,74,.55); }
.doors__fig figcaption { font-size: .85rem; color: #4B4F6E; margin-top: .6rem; }

/* ------------------------------------------------------ film acts ------ */
.film { display: grid; grid-template-rows: auto auto 1fr; align-content: center; gap: clamp(1rem, 3vh, 2rem); padding: calc(var(--chrome-h) + 1rem) clamp(1.25rem, 5vw, 5rem) 2rem; background: #0E1029; }
.band { position: relative; width: 100%; aspect-ratio: 1900 / 600; overflow: hidden; border-radius: 4px; background: #000; box-shadow: 0 40px 80px -40px #000; }
.film__line { max-width: none; margin: 0; }
.film__copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.film__copy .d-head { font-size: clamp(2.2rem, 1rem + 3.6vw, 4.6rem); }
.film__copy .sc-body { color: #C9CBDD; padding-top: .4rem; }

/* ------------------------------------------------------------ race 3 --- */
.view { padding-block: var(--sc-section); }
.view__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.view__pics { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(19,25,74,.55); }
.view__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.view__track { object-position: 30% 50%; }
.view__room { margin: 0; position: absolute; inset: 0; }
.view__room img { object-position: 40% 50%; }
.menu { margin: var(--sc-6) 0 0; display: grid; }
.menu > div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px dotted #9A9789; }
.menu dt { font-weight: 600; }
.menu dt small { display: block; font-weight: 400; color: #4B4F6E; font-size: .8rem; }
.menu dd { margin: 0; display: flex; gap: .9rem; font-family: var(--sc-font-display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu--dark > div { border-bottom-color: rgba(244,241,234,.35); }
.menu--dark dt small { color: #F0D5DB; }

/* ------------------------------------------------------------ race 4 --- */
.lights__stage { background: #04050C; display: grid; place-items: center; }
.lights__frame { position: absolute; left: 50%; top: 50%; width: max(100vw, 120vh); aspect-ratio: 1900 / 600; translate: -50% -58%; }
.lights__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.lights__dark { filter: brightness(.16) saturate(.4) contrast(1.1); }
.lights__lit {
  --b1: 0; --b2: 0; --b3: 0; --b4: 0; --b5: 0; --b6: 0; --b7: 0; --b8: 0; --all: 0;
  -webkit-mask-image:
    radial-gradient(circle at 8.5% 53.7%, #000 calc(var(--b1) * 10%), transparent calc(var(--b1) * 22%)),
    radial-gradient(circle at 21.2% 18.8%, #000 calc(var(--b2) * 10%), transparent calc(var(--b2) * 26%)),
    radial-gradient(circle at 27.6% 27.8%, #000 calc(var(--b3) * 10%), transparent calc(var(--b3) * 26%)),
    radial-gradient(circle at 46.8% 20%, #000 calc(var(--b4) * 11%), transparent calc(var(--b4) * 28%)),
    radial-gradient(circle at 51.6% 19.8%, #000 calc(var(--b5) * 11%), transparent calc(var(--b5) * 28%)),
    radial-gradient(circle at 59.7% 23.5%, #000 calc(var(--b6) * 12%), transparent calc(var(--b6) * 32%)),
    radial-gradient(circle at 68.8% 61%, #000 calc(var(--b7) * 12%), transparent calc(var(--b7) * 30%)),
    radial-gradient(circle at 78% 61.5%, #000 calc(var(--b8) * 12%), transparent calc(var(--b8) * 30%)),
    linear-gradient(rgba(0,0,0,var(--all)), rgba(0,0,0,var(--all)));
          mask-image:
    radial-gradient(circle at 8.5% 53.7%, #000 calc(var(--b1) * 10%), transparent calc(var(--b1) * 22%)),
    radial-gradient(circle at 21.2% 18.8%, #000 calc(var(--b2) * 10%), transparent calc(var(--b2) * 26%)),
    radial-gradient(circle at 27.6% 27.8%, #000 calc(var(--b3) * 10%), transparent calc(var(--b3) * 26%)),
    radial-gradient(circle at 46.8% 20%, #000 calc(var(--b4) * 11%), transparent calc(var(--b4) * 28%)),
    radial-gradient(circle at 51.6% 19.8%, #000 calc(var(--b5) * 11%), transparent calc(var(--b5) * 28%)),
    radial-gradient(circle at 59.7% 23.5%, #000 calc(var(--b6) * 12%), transparent calc(var(--b6) * 32%)),
    radial-gradient(circle at 68.8% 61%, #000 calc(var(--b7) * 12%), transparent calc(var(--b7) * 30%)),
    radial-gradient(circle at 78% 61.5%, #000 calc(var(--b8) * 12%), transparent calc(var(--b8) * 30%)),
    linear-gradient(rgba(0,0,0,var(--all)), rgba(0,0,0,var(--all)));
}
.lights__line { position: absolute; left: clamp(1.25rem, 5vw, 5rem); right: clamp(1.25rem, 5vw, 5rem); top: calc(var(--chrome-h) + 1.5rem); margin: 0; }
.lights__copy { position: absolute; left: clamp(1.25rem, 5vw, 5rem); bottom: clamp(2rem, 8vh, 5rem); max-width: 36rem; z-index: 2; }
.lights__copy .sc-body { color: #D3D5E4; margin-top: var(--sc-4); }
.lights__scrim { display: none; }
.lights__stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48%; background: linear-gradient(to top, rgba(4,5,12,.96) 10%, rgba(4,5,12,.7) 50%, rgba(4,5,12,0)); z-index: 1; pointer-events: none; }

/* ------------------------------------------------------------ race 5 --- */
.finish__stage { background: var(--night); }
.finish__line { position: absolute; left: clamp(1.25rem, 5vw, 5rem); right: clamp(1.25rem, 5vw, 5rem); top: calc(var(--chrome-h) + 1rem); margin: 0; z-index: 4; }
.finish__film { position: absolute; left: 0; right: 0; top: calc(var(--chrome-h) + 4.8rem); padding-inline: clamp(1.25rem, 5vw, 5rem); z-index: 1; will-change: transform, opacity; }
.band--finish .post { position: absolute; top: 0; bottom: 0; left: 72%; width: 0; border-left: 2px solid rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(220,68,98,.6); z-index: 2; }
.post span { position: absolute; top: .5rem; left: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--red); padding: .15rem .4rem; border-radius: 2px; }
.finish__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.finish.is-painted .finish__video { opacity: 1; }
.finish.is-painted .sc-stage__poster { opacity: 0; }
.band .sc-stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 6; }

.print {
  position: absolute; z-index: 3; margin: 0;
  left: clamp(1.25rem, 5vw, 5rem); right: clamp(1.25rem, 5vw, 5rem);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  background: #F3F0E6; color: #1A1A1A;
  padding: .7rem .7rem .55rem;
  border-radius: 3px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.85), 0 2px 0 rgba(255,255,255,.4) inset;
  transform-origin: 50% 100%;
  will-change: transform;
}
.print__img { position: relative; aspect-ratio: 2055 / 600; overflow: hidden; background: #191919; }
.print__photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; clip-path: inset(0 0 0 calc(var(--dev, 0) * 100%)); }
.print__hair { position: absolute; top: 0; bottom: 0; left: 98.7%; border-left: 1.5px solid #FFE600; opacity: 0; mix-blend-mode: normal; }
.ruler { height: 14px; margin-top: 4px; background:
  repeating-linear-gradient(90deg, #1A1A1A 0 1px, transparent 1px 2%) 0 100% / 100% 6px no-repeat,
  repeating-linear-gradient(90deg, #1A1A1A 0 1.5px, transparent 1.5px 10%) 0 100% / 100% 14px no-repeat; }
.print__cap { display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .35rem; font-variant-numeric: tabular-nums; }

.finish__copy { position: absolute; z-index: 5; left: clamp(1.25rem, 5vw, 5rem); top: calc(var(--chrome-h) + 4.8rem); max-width: 40rem; }
.finish__copy .sc-body { color: #D3D5E4; margin-top: var(--sc-4); max-width: 46ch; }
.finish__copy .d-head { font-size: clamp(2.4rem, 1rem + 4vw, 5rem); }

/* ------------------------------------------------------------ race 6 --- */
.after { padding-block: calc(var(--sc-section) * .8); overflow: clip; }
.after__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.after__pics { position: relative; height: clamp(26rem, 60vw, 44rem); }
.ap { position: absolute; width: 74%; height: auto; border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); object-fit: cover; }
.ap--a { left: 0; top: 2%; aspect-ratio: 3 / 2; filter: brightness(.82) saturate(.9); }
.ap--b { right: 0; top: 30%; width: 64%; aspect-ratio: 3 / 2; z-index: 2; }
.ap--c { left: 10%; bottom: 0; width: 50%; aspect-ratio: 4 / 3; z-index: 3; }

/* ------------------------------------------------------------ close ---- */
.close { padding-top: var(--sc-section); }
.close__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: var(--sc-section); }
.close .d-head { font-size: clamp(2.4rem, 1rem + 4vw, 4.8rem); margin-bottom: var(--sc-6); }
.plan { display: grid; gap: var(--sc-6); }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.field__label { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; padding: 0; }
.plan select {
  font: inherit; font-size: 1.05rem; color: var(--navy); width: 100%; max-width: 100%; min-width: 0;
  min-height: 3rem; padding: 0 2.6rem 0 .9rem;
  border: 1.5px solid var(--navy); border-radius: 6px; background: #fff;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 50%, calc(100% - .85rem) 50%; background-size: .36rem .36rem; background-repeat: no-repeat;
}
.steppers { display: grid; gap: .5rem; }
.step { display: grid; grid-template-columns: 1fr 2.75rem 2.5rem 2.75rem; align-items: center; gap: .4rem; padding: .3rem 0; border-bottom: 1px solid #D6D3CA; }
.step button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background-color 140ms var(--sc-ease-out), transform 100ms var(--sc-ease-out); }
.step button:active { transform: scale(.94); }
.step button:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .step button:not(:disabled):hover { background: var(--navy); color: #fff; } }
.step output { text-align: center; font-family: var(--sc-font-display); font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.pkgs { display: grid; gap: .5rem; }
.pkg { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .8rem .9rem; border: 1.5px solid #CFCBC0; border-radius: 6px; background: #fff; cursor: pointer; transition: border-color 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out); }
.pkg input { width: 1.15rem; height: 1.15rem; accent-color: var(--red-deep); margin: 0; }
.pkg b { display: block; font-weight: 600; }
.pkg small { display: block; color: #4B4F6E; font-size: .82rem; }
.pkg .pp { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.pkg:has(input:checked) { border-color: var(--red-deep); box-shadow: 0 0 0 1px var(--red-deep); }
.pkg:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pkg:has(input:focus-visible) { outline: 2px solid var(--red-deep); outline-offset: 2px; }

.mycard {
  position: sticky; top: calc(var(--chrome-h) + 1rem);
  background: var(--navy); color: var(--bone);
  border-radius: 10px; padding: 1.5rem;
  box-shadow: 0 40px 70px -35px rgba(19,25,74,.75), inset 0 1px 0 rgba(255,255,255,.12);
}
.mycard__top { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 2px solid rgba(244,241,234,.45); }
.mycard__mark { width: 2.4rem; height: 2.4rem; }
.mycard__mark .mk-navy { fill: var(--bone); }
.mycard__venue { margin: 0; font-family: var(--sc-font-display); font-weight: 900; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; }
.mycard__kind { margin: 0; font-size: .82rem; color: #C9CBDD; }
.mycard__date { font-family: var(--sc-font-display); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); text-transform: uppercase; line-height: .95; margin: 1rem 0 .3rem; }
.mycard__when { margin: 0; color: #C9CBDD; font-size: .92rem; }
.mycard__lines { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .1rem; font-variant-numeric: tabular-nums; }
.mycard__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dotted rgba(244,241,234,.3); font-size: .95rem; }
.mycard__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 0; }
.mycard__total span { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: #C9CBDD; }
.mycard__total strong { font-family: var(--sc-font-display); font-weight: 900; font-size: 2.6rem; color: var(--red-lift); font-variant-numeric: tabular-nums; }
.mycard__small { font-size: .78rem; color: #B9BCD3; margin: .4rem 0 0; }
.mycard__actions { display: grid; gap: .6rem; margin-top: 1.3rem; }
.mycard .btn--red { background: var(--red); }
.mycard .btn--line { color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .mycard .btn--line:hover { background: var(--bone); color: var(--navy); border-color: var(--bone); } }

.foot { background: var(--navy); color: #D9DBE8; padding-block: 3rem 2rem; font-size: .9rem; }
.foot a { color: #fff; text-underline-offset: 3px; }
.foot p { margin: .25rem 0; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot__brand { font-family: var(--sc-font-display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; color: #fff; }
.foot__social { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-content: start; }
.foot__small { margin-top: 2rem !important; color: #A9ACC6; font-size: .78rem; }

/* ------------------------------------------------------------ phones --- */
@media (max-width: 860px) {
  :root { --chrome-h: 3.75rem; }
  .cloth__hint { display: none; }
  .cloth__race { font-size: 1rem; }
  .brand { display: none; }
  .book { margin-left: auto; min-height: 2.6rem; padding: 0 1rem; }

  .scene { width: max(100vw, 96vh); }
  .scene__rail { display: none; }
  .cover__copy { top: calc(var(--chrome-h) + 1.25rem); right: 1.25rem; }
  .cover__title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .cover__sub { font-size: 1.02rem; }
  .cover__stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 62%; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(5,6,17,.92) 0%, rgba(5,6,17,.78) 60%, rgba(5,6,17,0)); }

  .doors__grid, .view__grid, .after__grid, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .doors__fig { position: static; }
  .doors__fig img { aspect-ratio: 4 / 3; }
  .cl-fact { margin-left: 0; flex-basis: 100%; }
  .tbl td { font-size: 1.4rem; }

  .film { padding-inline: 1.25rem; align-content: start; padding-top: calc(var(--chrome-h) + 1rem); }
  .band { aspect-ratio: 16 / 10; }
  .film__copy { grid-template-columns: 1fr; gap: 1rem; }

  .view__pics { aspect-ratio: 4 / 3; }

  .lights__frame { width: 250vw; translate: -42% -62%; }

  .finish__film { top: calc(var(--chrome-h) + 6rem); padding-inline: 1.25rem; }
  .band--finish .post { left: 72%; }
  .print { left: .75rem; right: .75rem; padding: .45rem .45rem .4rem; }
  .print__cap { font-size: .6rem; letter-spacing: .08em; }
  .finish__copy { left: 1.25rem; right: 1.25rem; top: calc(var(--chrome-h) + 5.6rem); }

  .after__pics { height: 26rem; }
  .mycard { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .foot__grid { grid-template-columns: 1fr; }
  .menu dd { flex-wrap: wrap; gap: .2rem .7rem; justify-content: flex-end; font-size: 1.1rem; }
}

/* reduced motion: every plane at its resolved, readable frame */
@media (prefers-reduced-motion: reduce) {
  .scene > * { transform: none !important; }
  .scene__glare { opacity: .8; }
  .scene__fade { opacity: 0; }
  .lights__lit { -webkit-mask-image: none !important; mask-image: none !important; }
  .print__photo { clip-path: none !important; }
  .print__hair { opacity: 1 !important; }
}

/* short phones (360 × 640 class): tighter type so nothing collides with media */
@media (max-width: 860px) {
  .cover__stage::before { height: 74%; background: linear-gradient(to bottom, rgba(5,6,17,.94) 0%, rgba(5,6,17,.86) 66%, rgba(5,6,17,0)); }
  .lights__stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(4,5,12,.92) 55%, rgba(4,5,12,0)); }
  .lights__line { z-index: 2; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .cover__title { font-size: 2.7rem; }
  .cover__sub { font-size: .95rem; margin-top: .8rem; }
  .cover__actions { margin-top: 1rem; }
  .cardline { margin-bottom: 1rem; }
  .film { gap: .75rem; }
  .band { aspect-ratio: 2 / 1; }
  .film__copy .d-head { font-size: 1.9rem; }
  .film__copy .sc-body { font-size: .92rem; }
}
