:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #211d1e;
  background: #f8f4f5;
  --red: #d71920;
  --red-dark: #8f080e;
  --red-soft: #fff0f1;
  --ink: #211d1e;
  --muted: #74676a;
  --line: #eadde0;
  --header-height: 76px;
  --nav-height: 78px;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body { margin: 0; overflow: hidden; background: #f8f4f5; }
button { font: inherit; }
.topbar { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 3vw, 58px); color: #fff; background: var(--red); box-shadow: 0 8px 30px rgba(120,0,8,.16); position: relative; z-index: 20; }
.brand-lockup strong { display: block; font-size: clamp(25px,2.1vw,34px); font-style: italic; letter-spacing: -2px; line-height: .85; }
.brand-lockup span { font-size: 9px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 22px; }
.updated { color: rgba(255,255,255,.76); font-size: 12px; }
.live-state { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.live-state i, .stream-dot { width: 9px; height: 9px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.18); animation: live-pulse 1.8s infinite; }
.live-state b { font: inherit; }
.live-state.paused i { background: #ffd166; animation: none; }
.fullscreen-button { padding: 10px 14px; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; }
.fullscreen-button:hover, .fullscreen-button:focus-visible { background: #fff; color: var(--red); outline: none; }
.wall { height: calc(100vh - var(--header-height)); min-height: 620px; position: relative; }
.slides { height: calc(100% - var(--nav-height)); position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; display: grid; padding: clamp(28px,3.2vw,58px); opacity: 0; visibility: hidden; transform: translateX(4%); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
.slide.active { opacity: 1; visibility: visible; transform: translateX(0); z-index: 2; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: clamp(10px,.8vw,13px); font-weight: 950; letter-spacing: .19em; }
.light { color: rgba(255,255,255,.68); }
h1 { margin: 0; font-size: clamp(52px,5.6vw,104px); line-height: .88; letter-spacing: -.065em; }
h1 em { color: var(--red); font-style: normal; }
h2 { margin: 0; font-size: clamp(22px,2vw,35px); letter-spacing: -.04em; }

.overview-slide { grid-template-columns: 1.04fr .58fr .88fr; grid-template-rows: 1fr auto; gap: clamp(22px,2.6vw,48px); color: #fff; background: radial-gradient(circle at 52% 40%,rgba(255,255,255,.19),transparent 17%), radial-gradient(circle at 76% 14%,rgba(255,255,255,.13),transparent 23%), linear-gradient(132deg,#ed2028 0%,#d3131b 54%,#97080f 100%); overflow: hidden; }
.overview-slide::before { content: ""; position: absolute; width: min(52vw,900px); aspect-ratio: 1; right: 18%; bottom: -72%; border: 2px dashed rgba(255,255,255,.2); border-radius: 50%; pointer-events: none; }
.overview-slide::after { content: ""; position: absolute; width: min(26vw,440px); aspect-ratio: 1; right: 25%; top: -24%; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; pointer-events: none; }
.overview-sea-map { position: absolute; z-index: 0; top: 1%; left: 25%; width: min(61vw,1080px); height: 96%; color: #fff; opacity: .15; pointer-events: none; filter: drop-shadow(0 18px 34px rgba(105,0,7,.13)); }
.overview-sea-map path { fill: currentColor; fill-rule: evenodd; stroke: rgba(255,255,255,.75); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.overview-sea-map circle { fill: #fff; stroke: rgba(215,25,32,.72); stroke-width: 4; vector-effect: non-scaling-stroke; }
.overview-copy, .hero-counter, .summary-strip, .latest-panel { position: relative; z-index: 1; }
.overview-copy { align-self: center; max-width: 860px; }
.overview-slide .overview-copy > .eyebrow { color: #fff; }
.overview-slide h1 { color: #fff; text-shadow: 0 16px 46px rgba(103,0,7,.15); }
.overview-slide h1 em { color: #ffd5d7; }
.intro { max-width: 700px; margin: 25px 0 0; color: rgba(255,255,255,.8); font-size: clamp(15px,1.25vw,22px); line-height: 1.55; }
.scan-rule { display: inline-flex; align-items: center; gap: 12px; margin-top: 25px; padding: 9px 14px 9px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(104,0,7,.16); backdrop-filter: blur(10px); font-size: 11px; }
.scan-rule b { padding: 7px 10px; border-radius: 999px; color: var(--red-dark); background: #fff; text-transform: uppercase; letter-spacing: .09em; }
.hero-counter { align-self: center; justify-self: center; display: grid; place-items: center; align-content: center; width: clamp(210px,16vw,285px); min-height: clamp(235px,21vw,330px); padding: 28px 22px; text-align: center; border: 0; border-radius: 28px; background: #fff; box-shadow: 0 28px 75px rgba(87,0,6,.24); }
.hero-counter::before { content: ""; width: 34px; height: 5px; margin-bottom: 20px; border-radius: 99px; background: var(--red); }
.hero-counter > span { display: block; color: var(--muted); font-size: clamp(11px,.9vw,15px); font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero-counter strong { display: block; margin: 12px 0; color: var(--red); font-size: clamp(100px,9vw,165px); line-height: .72; letter-spacing: -.09em; font-variant-numeric: tabular-nums; }
.hero-counter small { display: block; margin-top: 14px; color: var(--red-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.summary-strip { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(3,1fr); align-self: end; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.58); border-radius: 22px; box-shadow: 0 22px 60px rgba(87,0,6,.2); overflow: hidden; }
.summary-strip article { min-height: 108px; padding: 20px 24px; border-right: 1px solid var(--line); }
.summary-strip article:last-child { border: 0; }
.summary-strip span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.summary-strip strong { display: block; margin-top: 12px; color: var(--red); font-size: clamp(30px,3vw,50px); line-height: 1; }
.summary-strip .text-value { font-size: clamp(21px,2vw,32px); }
.latest-panel { grid-column: 3; grid-row: 1 / 3; min-width: 0; padding: clamp(22px,2.1vw,36px); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.6); border-radius: 28px; box-shadow: 0 28px 80px rgba(79,0,5,.24); color: var(--ink); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading.compact { align-items: center; }
.latest-panel .eyebrow { color: var(--red); }
.latest-panel .stream-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(215,25,32,.13); }
.event-list { display: grid; margin-top: 18px; }
.event-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: clamp(13px,1.4vh,20px) 0; border-top: 1px solid var(--line); }
.event-item time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.event-item strong { display: block; font-size: clamp(14px,1vw,18px); overflow-wrap: anywhere; }
.event-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.empty { color: var(--muted); text-align: center; }
.latest-panel .empty { color: var(--muted); padding-top: 60px; }

.insights-slide { grid-template-columns: 1.4fr .8fr; grid-template-rows: auto 1fr; gap: clamp(20px,2vw,34px); background: linear-gradient(145deg,#fff 0%,#faf4f5 60%,#f2e7e9 100%); }
.slide-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; }
.slide-heading h1 { font-size: clamp(48px,4.6vw,82px); }
.chart-card { min-height: 0; padding: clamp(22px,2vw,36px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 54px rgba(74,12,18,.07); overflow: hidden; }
.section-heading > strong { color: var(--red); font-size: clamp(18px,1.5vw,26px); }
.hourly-chart { width: 100%; height: calc(100% - 72px); min-height: 250px; margin-top: 8px; overflow: visible; }
.chart-grid { stroke: #eee4e6; stroke-width: 1; }
.chart-area { fill: url(#area-gradient); }
.chart-line { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #fff; stroke: var(--red); stroke-width: 5; }
.chart-value { fill: var(--red-dark); font-size: 18px; font-weight: 900; text-anchor: middle; }
.chart-label { fill: var(--muted); font-size: 16px; font-weight: 750; text-anchor: middle; }
.device-card { display: flex; flex-direction: column; }
.donut-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(16px,2vw,34px); }
.donut-group { min-width: 0; text-align: center; }
.donut { width: clamp(135px,13vw,220px); aspect-ratio: 1; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #eee6e8; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); transition: background .5s ease; }
.donut::after { content: ""; position: absolute; inset: 23%; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.donut span { position: relative; z-index: 1; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.donut b { display: block; color: var(--ink); font-size: clamp(24px,2vw,37px); line-height: 1; }
.donut-group h3 { margin: 0 0 12px; font-size: 15px; }
.legend { display: grid; gap: 6px; text-align: left; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 10px; }
.legend-row i { width: 8px; height: 8px; border-radius: 50%; }
.legend-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-row b { color: var(--ink); }

.lesson-slide { grid-template-columns: .8fr 1.2fr; grid-template-rows: 1fr auto; gap: clamp(26px,4vw,78px); color: #fff; background: radial-gradient(circle at 10% 20%,rgba(255,255,255,.12),transparent 26%),var(--red); }
.lesson-lead { align-self: center; }
.lesson-lead h1 { font-size: clamp(60px,6.2vw,110px); }
.lesson-lead h1 em { color: #fff; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .1em; }
.lesson-lead > p:last-child { max-width: 620px; margin-top: 30px; color: rgba(255,255,255,.78); font-size: clamp(16px,1.35vw,24px); line-height: 1.55; }
.lesson-steps { align-self: center; display: grid; gap: clamp(14px,1.6vh,24px); }
.lesson-steps article { display: grid; grid-template-columns: 80px 1fr; align-items: start; gap: 20px; padding: clamp(20px,2vw,30px); background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; backdrop-filter: blur(10px); }
.lesson-steps article > span { color: rgba(255,255,255,.42); font-size: clamp(30px,3vw,52px); font-weight: 950; line-height: .9; }
.lesson-steps h2 { color: #fff; }
.lesson-steps p { margin: 8px 0 0; color: rgba(255,255,255,.76); font-size: clamp(13px,1vw,17px); line-height: 1.45; }
.lesson-callout { grid-column: 1 / -1; padding: 16px 22px; color: #5e050a; background: #fff; border-radius: 14px; text-align: center; font-size: clamp(13px,1vw,17px); }

.slide-navigation { height: var(--nav-height); display: grid; grid-template-columns: 1fr minmax(160px,28vw) auto; align-items: center; gap: 24px; padding: 0 clamp(24px,3vw,58px); color: #c8bfc1; background: var(--ink); }
.slide-dots { display: flex; gap: 24px; }
.slide-dot { padding: 9px 0; color: #9f9497; background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.slide-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: #61585a; border-radius: 50%; }
.slide-dot.active { color: #fff; }
.slide-dot.active::before { background: var(--red); box-shadow: 0 0 0 4px rgba(215,25,32,.24); }
.rotation-track { height: 3px; background: #4a4244; border-radius: 99px; overflow: hidden; }
.rotation-track i { display: block; width: 0; height: 100%; background: var(--red); }
.rotation-track i.running { animation: rotation-progress 12s linear forwards; }
.slide-navigation p { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.participant-notice { position: fixed; right: clamp(24px,3vw,58px); bottom: calc(var(--nav-height) + 12px); z-index: 9; max-width: 520px; padding: 8px 12px; color: rgba(255,255,255,.7); background: rgba(33,29,30,.82); border-radius: 9px; font-size: 9px; line-height: 1.4; backdrop-filter: blur(8px); }
.participant-notice b { color: #fff; margin-right: 5px; }
.scan-flash { position: fixed; inset: 0; z-index: 50; pointer-events: none; border: 0 solid rgba(215,25,32,0); }
.scan-received .scan-flash { animation: scan-frame 1.25s ease-out; }
.scan-alert { position: fixed; top: calc(var(--header-height) + 22px); left: 50%; z-index: 60; display: flex; align-items: center; gap: 11px; padding: 14px 22px; color: #fff; background: var(--ink); border-radius: 999px; box-shadow: 0 16px 48px rgba(33,29,30,.26); transform: translateX(-50%); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; animation: alert-in .4s ease both; }
.scan-alert[hidden] { display: none; }
.scan-alert i { width: 10px; height: 10px; background: #35d07f; border-radius: 50%; box-shadow: 0 0 0 5px rgba(53,208,127,.18); }

@keyframes live-pulse { 50% { opacity: .45; transform: scale(.8); } }
@keyframes rotation-progress { from { width: 0; } to { width: 100%; } }
@keyframes scan-frame { 0% { border-width: 0; border-color: rgba(215,25,32,.9); } 30% { border-width: 16px; } 100% { border-width: 0; border-color: rgba(215,25,32,0); } }
@keyframes alert-in { from { opacity: 0; transform: translate(-50%,-16px); } }

@media (max-width: 1100px), (max-height: 760px) {
  :root { --header-height: 66px; --nav-height: 64px; }
  .slide { padding: 26px; }
  .overview-slide { grid-template-columns: 1fr .48fr .82fr; gap: 20px; }
  .intro { margin-top: 16px; }
  .scan-rule { margin-top: 16px; }
  .hero-counter { width: clamp(180px,18vw,230px); min-height: 220px; }
  .summary-strip article { min-height: 82px; padding: 14px 18px; }
  .summary-strip strong { margin-top: 8px; }
  .latest-panel { padding: 22px; }
  .event-item:nth-child(n+5) { display: none; }
  .participant-notice { display: none; }
}
@media (max-width: 800px) {
  body { overflow: auto; }
  .topbar { height: auto; min-height: var(--header-height); padding-top: 12px; padding-bottom: 12px; }
  .updated, .fullscreen-button span { display: none; }
  .wall { height: auto; min-height: calc(100vh - var(--header-height)); }
  .slides { height: auto; min-height: 920px; overflow: visible; }
  .slide { display: none; position: relative; min-height: 920px; }
  .slide.active { display: grid; }
  .overview-slide { grid-template-columns: 1fr; grid-template-rows: auto; }
  .overview-slide { padding-bottom: 36px; }
  .overview-sea-map { top: 2%; left: -12%; width: 128vw; height: 58%; opacity: .1; }
  .hero-counter { justify-self: center; width: 230px; min-height: 250px; text-align: center; }
  .hero-counter strong { font-size: 120px; }
  .summary-strip { grid-column: 1; grid-template-columns: 1fr; }
  .summary-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .latest-panel { grid-column: 1; grid-row: auto; }
  .insights-slide { grid-template-columns: 1fr; grid-template-rows: auto; }
  .slide-heading { grid-column: 1; }
  .lesson-slide { grid-template-columns: 1fr; grid-template-rows: auto; }
  .lesson-callout { grid-column: 1; }
  .slide-navigation { position: sticky; bottom: 0; z-index: 10; grid-template-columns: 1fr; height: auto; padding: 14px 20px; }
  .rotation-track, .slide-navigation > p { display: none; }
  .slide-dots { justify-content: space-between; gap: 8px; }
  .slide-dot span { display: none; }
  .participant-notice { display: block; position: relative; right: auto; bottom: auto; margin: 12px; color: var(--muted); background: #eee5e7; }
  .participant-notice b { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
