/* cine.css: the cinematic layer. Tall condensed type, motion tokens, and layout fixes from the UI audit. Loaded last. */
:root {
  --f-poster: 'Big Shoulders Display', 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --f-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --ease-out: cubic-bezier(.165, .84, .44, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 240ms; --dur-4: 600ms;
}
/* ---- type: tall display over a quiet body ---- */
h1, h2 { font-family: var(--f-poster); font-stretch: normal; text-transform: uppercase; letter-spacing: .012em; line-height: .92; font-weight: 800; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); } h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-family: var(--f-display); font-stretch: normal; font-size: 1.42rem; font-weight: 600; letter-spacing: .01em; line-height: 1.08; }
h4 { font-family: var(--f-display); font-stretch: normal; font-size: 1.16rem; font-weight: 600; letter-spacing: .02em; }
.brand { font-family: var(--f-poster); font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; }
.nav a { font-family: var(--f-display); font-size: 1.04rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 8px 9px; }
.tag, .eyebrow, .ctl > .lab, .tabs button, table.t th, .lab-name, .screen .cap b { font-family: var(--f-display); font-stretch: normal; font-size: .92rem; letter-spacing: .09em; }
.screen .cap b { font-size: 1.02rem; letter-spacing: .03em; text-transform: uppercase; }
.btn { font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.btn.sm { font-size: .95rem; }
.lead { font-size: 1.12rem; }
.page-head h1 { max-width: 14ch; }
/* landing */
.lp-t { font-family: var(--f-poster); font-stretch: normal; text-transform: uppercase; font-weight: 800; font-size: clamp(3rem, 7vw, 7rem); line-height: .86; letter-spacing: .008em; }
.lp-k, .lp-tick, .lp-hint, .lp-num { font-family: var(--f-display); font-size: .95rem; letter-spacing: .2em; }
.lp-head h2 { font-family: var(--f-poster); font-stretch: normal; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .9; }
.lp-part h3 { font-size: 1.7rem; text-transform: uppercase; } .lp-part a { font-family: var(--f-body); }
.lp-missions b, .lp-scene b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.lp-cap { width: min(44vw, 640px); margin-top: -230px; } .lp-cap.l4 { margin-top: -300px; }
@media (max-width: 859px) { .lp-t { font-size: clamp(2.5rem, 12vw, 3.6rem); } .lp-cap, .lp-cap.l4 { margin: 0; width: auto; } }

/* ---- audit fixes: everything reachable ---- */
/* 1. Simulator deck: all seven tabs always visible (they wrap instead of hiding off the edge), and the panel scrolls on its own beside the viewfinder */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
.tabs button { padding: 12px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 44px; text-align: center; transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
.tabs button:hover { background: var(--surface2); }
@media (min-width: 1021px) {
  .deck { position: sticky; top: 68px; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); display: flex; flex-direction: column; }
  .deck .pane.on { overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-gutter: stable; }
}
/* 2. Scene wall: visible scrollbar and an edge fade so it is obvious there is more */
.wall { scrollbar-width: thin; padding-bottom: 10px; mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; }
.screen { flex-basis: 164px; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); } .screen:hover { transform: translateY(-3px); border-color: var(--accent); }
/* 3. Top navigation: scrolls with a visible fade on narrow screens; chips never squeeze it */
.nav { scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }
/* 4. Wide tables and long rows scroll inside their own box instead of pushing the page */
.tablewrap, .c3d-shelf, .film { scrollbar-width: thin; }
.c3d-right { position: sticky; top: 68px; max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; } @media (max-width: 900px) { .c3d-right { position: static; max-height: none; overflow: visible; } }
/* 5. Targets at least 40px tall, focus always visible */
.btn, .seg button, select, .c3d-select { min-height: 40px; } .btn.sm { min-height: 36px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- motion: fast, eased, never bouncy ---- */
.view.on { animation: view-in var(--dur-3) var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pane.on { animation: pane-in var(--dur-2) var(--ease-out) both; } @keyframes pane-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.btn { transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out), color var(--dur-2) var(--ease-out); } .btn:active { transform: scale(.97); }
.card { transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); } a.card:hover { transform: translateY(-3px); }
.nav a { transition: color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
.rise { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); } .rise.in { opacity: 1; transform: none; }
.review.on .rv { animation: rv-in var(--dur-3) var(--ease-out) both; } @keyframes rv-in { from { opacity: 0; transform: scale(.975) translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.on, .pane.on, .review.on .rv { animation: none; } .rise { opacity: 1; transform: none; transition: none; } .btn, .card, .screen { transition: none; } }
@media (max-width: 700px) { .brand { font-size: 0; gap: 0; } .brand svg { width: 28px; height: 28px; } .nav a { font-size: .98rem; padding: 8px 8px; } }
