:root {
  color-scheme: dark;
  --bg: #080e1b;
  --panel: #111d31;
  --ink: #f5f7fc;
  --muted: #adbed6;
  --red: #ff4168;
  --blue: #3ba4ff;
  --teal: #6ae1d4;
  --gold: #ffd16c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.topbar { height: 70px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff16; position: relative; z-index: 5; background: var(--bg); gap: 20px; }
.brand { font-weight: 750; font-size: 16px; letter-spacing: .13em; text-decoration: none; }
.brand span { color: var(--teal); }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar button { border: 0; background: transparent; color: var(--muted); padding: 8px 0; font-size: 14px; }
main { max-width: 1680px; margin: auto; }
.slide { min-height: calc(100svh - 140px); padding: 4vh 5vw; display: flex; flex-direction: column; justify-content: center; gap: 26px; position: relative; }
.slide[hidden] { display: none; }
.eyebrow { margin: 0; color: var(--teal); font-size: 14px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(46px, 5.6vw, 88px); line-height: 1.04; letter-spacing: -.055em; font-weight: 780; }
h2 { font-size: clamp(34px, 4.2vw, 64px); line-height: 1.07; letter-spacing: -.045em; font-weight: 760; max-width: 1100px; }
h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
p, li { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.5; }
.lead { color: var(--muted); max-width: 800px; }
.small, figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); }
figure { margin: 0; min-width: 0; }
figcaption { padding-top: 10px; }
img { display: block; width: 100%; height: auto; }
.split { display: grid; grid-template-columns: 1.08fr 1fr; gap: 5vw; align-items: center; }
.split.visual-first { grid-template-columns: 1.15fr 1fr; }
.split .copy { display: flex; flex-direction: column; gap: 24px; }
.split h2 { font-size: clamp(32px, 3.8vw, 58px); }
.clean-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.clean-list li { padding-left: 20px; border-left: 3px solid var(--blue); }
.clean-list li strong { color: var(--ink); }
.photo { max-height: 56vh; object-fit: cover; border-radius: 4px; }
.photo.portrait { height: 57vh; object-position: 50% 40%; }
.hero { padding-top: 0; padding-bottom: 0; min-height: calc(100svh - 140px); overflow: hidden; }
.hero .hero-photo { position: absolute; inset: 0 0 0 44%; overflow: hidden; }
.hero .hero-photo img { height: 100%; width: auto; max-width: none; }
.hero .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 25%), linear-gradient(0deg, #080e1b66, transparent 40%); }
.hero .copy { width: 45%; position: relative; z-index: 1; display: grid; gap: 24px; padding: 8vh 0; }
.hero .lead { font-size: clamp(18px, 1.6vw, 24px); }
.hero .concept-tag { position: absolute; right: 5vw; bottom: 24px; color: #fff; background: #080e1bd9; font-size: 13px; padding: 8px 12px; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 60px; margin-top: 12px; }
.problem-grid article { border-top: 2px solid #384a65; padding-top: 20px; }
.problem-grid h3 { color: var(--red); margin-bottom: 12px; }
.problem-grid p { color: var(--muted); }
.big-question { font-size: clamp(28px, 3vw, 44px); line-height: 1.2; color: var(--teal); font-weight: 650; letter-spacing: -.025em; }
.image-wide { max-height: 48vh; object-fit: contain; }
.image-light { background: #eeece8; border-radius: 4px; overflow: hidden; }
.three-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.three-points p { font-size: clamp(17px, 1.4vw, 22px); color: var(--muted); }
.three-points strong { display: block; color: var(--ink); margin-bottom: 5px; }
.scoreboard-old { max-height: 59vh; object-fit: contain; }
.energy-demo { padding: 30px; background: var(--panel); display: grid; gap: 22px; border-radius: 6px; }
.energy-row .who { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 750; font-size: 23px; }
.energy-row .who b { font-size: 42px; font-variant-numeric: tabular-nums; }
.energy-track { height: 32px; background: #2a3951; }
.energy-fill { height: 100%; background: var(--red); }
.energy-fill.blue { background: var(--blue); }
.rule-lines { display: grid; gap: 16px; }
.rule-lines div { display: grid; grid-template-columns: 78px 1fr; gap: 20px; align-items: center; }
.rule-lines b { font-size: 33px; color: var(--teal); }
.rule-lines span { font-size: clamp(17px, 1.5vw, 23px); line-height: 1.35; }
.scoring-strip { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #ffffff25; font-size: 16px; color: var(--muted); }
.scoring-strip strong { color: #fff; }
.court-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.court { min-height: 155px; background: #17243b; padding: 18px; display: flex; flex-direction: column; gap: 14px; justify-content: center; position: relative; }
.court.featured { grid-column: span 2; background: #164b65; border: 2px solid var(--teal); }
.court b { font-size: 18px; letter-spacing: .04em; }
.court p { font-size: 20px; }
.court span { color: var(--muted); font-size: 14px; }
.court .featured-label { color: var(--teal); font-weight: 750; }
.score-image { max-height: 62vh; object-fit: contain; background: #080e1b; }
.demo-frame { width: 100%; border: 0; height: 60vh; min-height: 390px; background: #080e1b; }
.video-slide { gap: 18px; }

.video-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.action-link { display: inline-block; padding: 11px 18px; color: #071525; background: var(--teal); border-radius: 4px; font-weight: 750; text-decoration: none; font-size: 16px; }
.pilot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.pilot-grid div { border-top: 3px solid var(--teal); padding-top: 18px; }
.pilot-grid p { font-size: 19px; color: var(--muted); margin-top: 15px; }
.final-banner { height: 37vh; overflow: hidden; border-radius: 4px; }
.final-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.deck-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 4vw; border-top: 1px solid #ffffff16; background: var(--bg); }
.deck-footer .chapter { color: var(--muted); font-size: 14px; }
.deck-footer .controls { display: flex; gap: 16px; align-items: center; }
.deck-footer button { color: var(--ink); background: #18253a; border: 1px solid #3b4e69; padding: 9px 16px; border-radius: 4px; font-size: 15px; }
.deck-footer button:disabled { opacity: .35; cursor: default; }
#slide-count { color: var(--muted); font-size: 14px; min-width: 50px; text-align: center; }
.progress { height: 3px; background: #22314a; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); transition: width .2s; }
dialog { background: #101c30; color: #f5f7fc; border: 1px solid #435574; border-radius: 8px; width: min(850px, 92vw); max-height: 85vh; padding: 30px; }
dialog::backdrop { background: #01040dbe; }
dialog h2 { font-size: 32px; margin-bottom: 20px; }
dialog h3 { font-size: 20px; margin-top: 25px; }
dialog p, dialog li, dialog a { font-size: 16px; }
dialog button { background: #283c59; color: #fff; border: 0; padding: 10px 16px; border-radius: 4px; }
#contents-list { display: grid; gap: 10px; }
#contents-list button { text-align: left; }
.credits-list { display: grid; gap: 18px; }
@media (min-width: 1500px) { .slide { padding-left: 80px; padding-right: 80px; } }
@media (max-width: 900px) {
  .topbar { height: auto; min-height: 65px; padding: 14px 5vw; }
  .brand { max-width: 190px; font-size: 13px; }
  .topbar nav { gap: 14px; }
  .slide { min-height: calc(100svh - 140px); padding: 32px 6vw; gap: 25px; }
  .split, .split.visual-first { grid-template-columns: 1fr; gap: 25px; }
  .split .photo, .split .photo.portrait { max-height: 38vh; height: auto; width: 100%; object-fit: contain; }
  .hero .copy { width: 56%; }
  .hero .hero-photo { left: 48%; opacity: .65; }
  .hero .concept-tag { font-size: 11px; }
  h1 { font-size: clamp(40px, 7vw, 65px); }
  .three-points { gap: 18px; }
  .pilot-grid { grid-template-columns: 1fr 1fr; }
  .score-image { max-height: 48vh; }
  .demo-frame { min-height: 650px; }
}
@media (max-width: 560px) {
  .topbar nav button { font-size: 13px; }
  #fullscreen { display: none; }
  .hero { justify-content: flex-end; min-height: calc(100svh - 145px); }
  .hero .hero-photo { left: 0; bottom: 43%; opacity: .85; }
  .hero .hero-photo img { width: 180%; height: 100%; object-fit: cover; object-position: left; }
  .hero .hero-photo::after { background: linear-gradient(0deg, var(--bg), transparent 65%); }
  .hero .copy { padding: 15px 0 50px; width: 100%; gap: 15px; }
  .hero .concept-tag { bottom: auto; top: 12px; }
  .problem-grid { grid-template-columns: 1fr; gap: 22px; }
  h2 { font-size: 36px; }
  .split h2 { font-size: 34px; }
  .three-points { grid-template-columns: 1fr; gap: 16px; }
  .clean-list { gap: 16px; }
  .court-grid { gap: 10px; }
  .court { min-height: 125px; }
  .court p { font-size: 17px; }
  .pilot-grid { grid-template-columns: 1fr; }
  .pilot-grid p { margin-top: 8px; }
  .deck-footer { padding: 12px 5vw; }
  .deck-footer .chapter { max-width: 100px; font-size: 12px; }
  .deck-footer .controls { gap: 8px; }
  .deck-footer button { padding: 10px 11px; font-size: 13px; }
  .scoring-strip { gap: 10px; font-size: 14px; }
  .energy-demo { padding: 20px; }
  .energy-row .who { font-size: 18px; }
  .final-banner { height: 28vh; }
  .demo-frame { min-height: 760px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .progress div { transition: none; } }
@media print {
  .topbar, .deck-footer, .progress, dialog { display: none !important; }
  .slide, .slide[hidden] { display: flex !important; break-after: page; min-height: 180mm; page-break-after: always; }
  .slide { padding: 20mm; }
  .hero .copy { width: 48%; }
  .photo { max-height: 100mm; }
  video { max-height: 90mm !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.demo-frame { height: 850px; min-height: 0; display: block; }

.showpiece-programme { background: linear-gradient(140deg, #123c57, #18213b); padding: 28px 32px; border-top: 4px solid var(--teal); }
.showpiece-programme .programme-header { font-size: 14px; letter-spacing: .15em; color: var(--teal); font-weight: 750; padding-bottom: 12px; }
.showpiece-programme > div { padding: 18px 0; border-top: 1px solid #ffffff24; }
.showpiece-programme span { color: var(--muted); font-size: 12px; letter-spacing: .1em; font-weight: 650; }
.showpiece-programme h3 { font-size: 26px; margin: 5px 0; }
.showpiece-programme p { font-size: 17px; line-height: 1.4; color: var(--muted); }
@media (max-width:560px) { .showpiece-programme { padding: 22px; } }
