:root {
  --bg-void:      #030303;   
  --paper-white:  #F4F4F2;
  --paper-grey:   #E5E5E2;
  --paper-shade:  #EAEAE7;   
  --ink-black:    #0A0A0A;
  --ink-grey:     #3A3A38;
  --accent:       #FF4400;
  --rack:         #0A0A0A;
  --font-serif: 'Newsreader', 'Times New Roman', Times, serif;
  --font-mono:  'Courier Prime', 'Courier New', Courier, monospace;
  --radius-none: 0px;
  --shadow-paper: 0 24px 48px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);
  --shadow-hover: 0 32px 64px rgba(0,0,0,.8), 0 8px 16px rgba(0,0,0,.5);
  --shadow-chit:  0 10px 20px rgba(0,0,0,.62), 0 2px 5px rgba(0,0,0,.5);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --tile-w: clamp(23px, 7.6vw, 52px);
  --pad-x:  clamp(18px, 3vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-void);
  color: var(--paper-white);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 400; letter-spacing: -.02em; margin: 0; }
.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;
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(14px, 1.7vw, 22px) var(--pad-x);
  border-bottom: 1px solid rgba(244,244,242,.06);
}
footer.band { border-bottom: 0; border-top: 1px solid rgba(244,244,242,.06); }
.band-group { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 26px); flex-wrap: wrap; }
.band-group--end { align-items: center; }
.mark {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -.02em; color: var(--paper-white);
}
.micro {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .3em; color: rgba(244,244,242,.34);
}
.clock {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; font-variant-numeric: tabular-nums;
  color: rgba(244,244,242,.55);
}
.reflap {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3em;
  background: transparent; color: rgba(244,244,242,.66);
  border: 1px solid rgba(244,244,242,.18);
  border-radius: var(--radius-none);
  padding: .6em 1.1em; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.reflap:hover { background: var(--paper-white); color: var(--ink-black); border-color: var(--paper-white); }
.reflap:active { translate: 0 2px; }
.reflap:focus-visible, .sheet:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stage {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(26px, 3.6vh, 52px);
  padding: clamp(26px, 3.6vh, 52px) var(--pad-x);
}
.lede {
  margin: 0 auto; max-width: 58ch; text-align: center;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: rgba(244,244,242,.62);
}
.rackwrap { display: flex; justify-content: center; }
.rack {
  position: relative; overflow: hidden;
  width: 100%; max-width: 860px;
  background: var(--rack);
  border-radius: var(--radius-none);
  border-top: 1px solid rgba(244,244,242,.07);
  border-bottom: 1px solid rgba(0,0,0,.7);
  padding: clamp(20px, 2.6vw, 38px) clamp(18px, 2.6vw, 40px);
  box-shadow: inset 0 0 120px rgba(0,0,0,.9), 0 40px 90px rgba(0,0,0,.55);
}
.rack::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    rgba(244,244,242,.05) 0 1px, transparent 1px 6px);
  opacity: .55;
}
.rack > * { position: relative; z-index: 1; }
.rack-meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .3em; color: rgba(244,244,242,.36);
  padding-bottom: clamp(14px, 1.8vw, 24px);
  margin-bottom: clamp(16px, 2vw, 26px);
  border-bottom: 1px solid rgba(244,244,242,.08);
}
.legs { display: flex; flex-wrap: wrap; gap: .1em 1.1em; justify-content: flex-end; }
.legs > span { white-space: nowrap; }
.legs > span:not(:last-child)::after { content: " —"; }
.board { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, .9vw, 12px); }
.row { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 24px); }
.row-label {
  flex: 0 0 auto; width: clamp(66px, 8.4vw, 116px); text-align: right;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .28em;
  color: rgba(244,244,242,.3);
}
.tiles { display: flex; gap: clamp(3px, .55vw, 8px); }
.tile {
  position: relative; flex: 0 0 auto;
  width: var(--tile-w);
  height: calc(var(--tile-w) * 1.3);      
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-none);
  background: linear-gradient(180deg,
    var(--paper-white) 0 50%, var(--paper-shade) 50% 100%);
  color: var(--ink-black);
  font-family: var(--font-mono); font-weight: 700; line-height: 1;
  font-size: calc(var(--tile-w) * 1.02);
  box-shadow: var(--shadow-chit);
  transform-origin: top center;           
  transition: transform .05s ease-in-out; 
}
.tile::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 100%);
  z-index: 1;
}
.tile::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
  background: rgba(10,10,10,.34);
  box-shadow: 0 1px 3px rgba(10,10,10,.2);
  z-index: 10;
}
.tile .g {
  position: relative; z-index: 2;         
  display: block; translate: 0 .144em;    
}
.tile.is-blank {
  background: linear-gradient(180deg, var(--paper-grey) 0 50%, #D9D9D5 50% 100%);
  opacity: .35;
}
.tile.flipping { transform: scaleY(.95); }
.tile.settle   { transform: scaleY(1.035); }
.row[data-field="price"] .tile { color: var(--accent); }
.fares {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
  width: 100%; max-width: 1040px; margin: 0 auto; align-items: stretch;
}
.sheet {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .6rem; text-align: left;
  padding: clamp(18px, 1.9vw, 26px);
  background: var(--paper-white); color: var(--ink-black);
  border: 0; border-radius: var(--radius-none);
  box-shadow: var(--shadow-paper);
  font: inherit; cursor: pointer;
  rotate: var(--rest); translate: 0 0;
  transition: rotate .5s var(--ease), translate .5s var(--ease),
              box-shadow .5s var(--ease), background-color .28s, color .28s;
}
.sheet:nth-child(1) { --rest: -1.2deg; z-index: 1; }
.sheet:nth-child(2) { --rest:  .6deg;  z-index: 2; }
.sheet:nth-child(3) { --rest:  1.4deg; z-index: 1; }
.sheet:hover { translate: 0 -8px; box-shadow: var(--shadow-hover); z-index: 6; }
.sheet:active { translate: 0 -3px; }
.sheet[aria-pressed="true"] {
  rotate: 0deg; translate: 0 -10px; z-index: 5;
  background: var(--accent); color: var(--ink-black);
  box-shadow: var(--shadow-hover);
}
.sheet-tag {
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .26em; color: #6A6A66;
}
.sheet[aria-pressed="true"] .sheet-tag { color: rgba(0,0,0,.6); }
.sheet-name { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.02em; }
.sheet-line {
  font-family: var(--font-serif); font-style: italic;
  font-size: .95rem; color: var(--ink-grey);
  padding-bottom: .7rem; border-bottom: 1px solid rgba(10,10,10,.14);
  width: 100%;
}
.sheet[aria-pressed="true"] .sheet-line { color: rgba(0,0,0,.7); border-bottom-color: rgba(0,0,0,.22); }
.feat { list-style: none; margin: 0; padding: 0; width: 100%; flex-grow: 1; }
.feat li {
  position: relative; padding-left: 1.55em; padding-block: .48em;
  font-family: var(--font-mono); font-size: .74rem; line-height: 1.5;
  color: var(--ink-grey);
  border-bottom: 1px solid rgba(10,10,10,.1);
}
.feat li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.sheet[aria-pressed="true"] .feat li { color: rgba(0,0,0,.78); border-bottom-color: rgba(0,0,0,.16); }
.sheet[aria-pressed="true"] .feat li::before { color: var(--ink-black); }
.sheet-cta {
  margin-top: .7rem;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .26em; color: #6A6A66;
}
.sheet[aria-pressed="true"] .sheet-cta { color: var(--ink-black); }
@media (max-width: 900px) {
  .stage { justify-content: flex-start; gap: 22px; }
  .lede { text-align: left; font-size: 1rem; }
  .rackwrap {
    position: sticky; top: 0; z-index: 20;
    background: var(--bg-void); padding-block: 10px 12px;
  }
  .rack { padding: 16px 14px; }
  .rack-meta { font-size: .55rem; letter-spacing: .22em; gap: .35rem; margin-bottom: 14px; padding-bottom: 12px; }
  .row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .row-label { width: auto; text-align: left; }
  .fares { grid-template-columns: 1fr; max-width: 520px; }
  .sheet { rotate: 0deg; }
  .sheet:hover { translate: 0 0; }
  .sheet[aria-pressed="true"] { translate: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .sheet { transition: background-color .2s, color .2s; }
}
