@import url('../components/kelvin-conclusion.css');
body.kelvin-demo-standalone { margin:0; background:#061019; }
#kelvin-demo { --ink:#e8eee7; --muted:#9aafb0; --night:#071c26; --night-2:#0b2633; --line:#9cd4cd; --coral:#f16d61; --gold:#efbb62; --lav:#b9a7e3; --aqua:#83cfc8; --panel:rgba(8, 28, 38, .78); margin:0; color:var(--ink); background:linear-gradient(180deg, #071c26 0%, #071c26 28%, #296b75 36%, #83cfc8 46%, #3b7280 67%, #061019 100%); font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; overflow-x:clip; isolation:isolate; }
#kelvin-demo, #kelvin-demo *, #kelvin-demo *::before, #kelvin-demo *::after { box-sizing:border-box; }
#kelvin-demo main { position:relative; z-index:1; }
.demo-nav { position:fixed; z-index:20; inset:0 0 auto; height:56px; padding:19px 28px; display:flex; justify-content:space-between; align-items:center; font-size:11px; letter-spacing:.09em; color:var(--muted); border-bottom:1px solid rgba(199,226,218,.15); background:linear-gradient(to bottom, rgba(7,28,38,.9), rgba(7,28,38,0)); pointer-events:none; }
.demo-nav a { color:var(--ink); text-decoration:none; pointer-events:auto; }
.demo-scene { min-height:180vh; position:relative; }
.demo-scene--intro { height:385vh; min-height:0; }
.demo-sticky { height:100vh; position:sticky; top:0; overflow:hidden; display:grid; place-items:center; z-index:1; }
.demo-sticky--intro { --dive:0; isolation:isolate; background:transparent; }
.demo-water-fill { position:fixed; z-index:0; inset:0; width:100%; height:100%; pointer-events:none; overflow:hidden; }
.demo-water-fill path { fill:url(#intro-water-gradient); opacity:.9; }
.demo-sticky--intro .demo-chart-shell { z-index:1; will-change:transform, opacity; }
.demo-intro-waves { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; overflow:hidden; will-change:transform, opacity; }
.intro-wave-line { fill:none; stroke-width:3; stroke-linecap:round; opacity:.9; filter:drop-shadow(0 2px 9px rgba(5, 24, 32, .38)); }
.intro-wave-line--coral { stroke:var(--coral); }
.intro-wave-line--aqua { stroke:var(--aqua); }
.intro-wave-line--lavender { stroke:var(--lav); }
.intro-wave-line--gold { stroke:var(--gold); }
.demo-chart-shell { position:absolute; inset:0; padding:88px 4vw 42px; }
.demo-chart-shell--intro { padding:44px 3vw 26px; opacity:.95; }
.is-scroll-ready .demo-chart-shell--calendar,
.is-scroll-ready .demo-chart-shell--historic,
.is-scroll-ready .demo-chart-shell--historic-sst,
.is-scroll-ready .demo-chart-shell--focus,
.is-scroll-ready .demo-chart-shell--satellite { opacity:0; transform:translateY(32px) scale(.987); transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.is-scroll-ready .demo-chart-shell--calendar.is-revealed,
.is-scroll-ready .demo-chart-shell--historic.is-revealed,
.is-scroll-ready .demo-chart-shell--historic-sst.is-revealed,
.is-scroll-ready .demo-chart-shell--focus.is-revealed,
.is-scroll-ready .demo-chart-shell--satellite.is-revealed { opacity:1; transform:none; }
.demo-chart-kicker { position:absolute; top:72px; left:4vw; color:var(--muted); font-size:13px; letter-spacing:.1em; z-index:2; }
.demo-chart-shell--intro .demo-chart-kicker { top:88px; }
#kelvin-demo h1, #kelvin-demo h2 { font-family:Georgia, serif; font-weight:600; letter-spacing:-.045em; margin:0; }
#kelvin-demo h1 { max-width:820px; font-size:4.2em; line-height:1; }
#kelvin-demo h2 { font-size:clamp(38px, 5.5vw, 82px); line-height:.97; position:absolute; left:4vw; top:99px; z-index:2; }
#kelvin-demo .demo-chart-shell h3 { margin:0; color:var(--ink); font-family:Georgia, serif; font-size:2.0em; font-weight:600; letter-spacing:-.045em; line-height:1.1; }
.demo-intro-heading { opacity:0; transform:translateY(14px); transition:opacity .35s ease, transform .35s ease; pointer-events:none; }
.demo-page[data-scene="lines"] .demo-intro-heading { opacity:1; transform:none; }
#kelvin-demo svg { width:100%; height:100%; display:block; overflow:visible; }
.demo-story-step { min-height:180vh; position:relative; z-index:3; display:flex; justify-content:center; align-items:center; padding:10vh 22px; pointer-events:none; }
.demo-scene--intro .demo-story-step--hero { position:absolute; inset:0 0 auto; min-height:100vh; height:100vh; }
.demo-scene--intro .demo-story-step--hero + .demo-story-step { min-height:285vh; align-items:flex-start; padding-top:28vh; }
.demo-scene:not(.demo-scene--intro) .demo-story-step { min-height:115vh; }
.demo-story-step--detail { align-items:flex-start; padding-top:24vh; }
.demo-story-card { width:min(620px, 90vw); padding:32px 36px; text-align:center; line-height:1.65; font-size:16px; color:#e4e9e2; background:var(--panel); backdrop-filter:blur(10px); box-shadow:0 14px 50px rgba(0,0,0,.22); }
.demo-story-card p { margin:0 0 15px; max-width: 100%; }
.demo-story-card a {text-decoration:none; color:#b9a7e3; font-weight:700; pointer-events: all;}
.demo-story-card p:last-child { margin-bottom:0; }
.demo-story-card--hero { width:min(920px, 92vw); position:relative; isolation:isolate; padding:clamp(28px, 5vw, 64px); background:transparent; box-shadow:none; }
.demo-story-card--hero::before { content:""; position:absolute; z-index:-1; inset:0; border:0px solid rgba(182,218,208,.35); background:rgba(8,28,38,.5); backdrop-filter:blur(10px); box-shadow:0 14px 50px rgba(0,0,0,.22); }
.demo-story-card--hero > * { position:relative; opacity:1; }
.demo-story-card--detail { max-width:510px; }
.demo-scene--intro .demo-story-step { z-index:4; }
.demo-story-card--hero h1 { margin:0 auto; }
.demo-eyebrow { margin:0 0 15px; color:var(--aqua); letter-spacing:.14em; font-size:12px; }
.demo-deck { font-size:clamp(14px,1.5vw,21px); line-height:1.55; max-width:540px; color:#d5dfd9; margin:24px 0; }
.demo-scroll-hint { font-size:11px; letter-spacing:.08em; margin-top:50px; color:var(--muted); }
.demo-scroll-hint span { margin-left:9px; color:var(--coral); font-size:20px; vertical-align:middle; }
.demo-card-number { color:var(--coral); font-size:11px; letter-spacing:.14em; }
.demo-muted { color:#aebfbc; font-size:11px; }
.demo-loading { position:fixed; z-index:40; right:24px; bottom:20px; padding:11px 14px; color:#dbe7de; background:#102d39; border:1px solid rgba(156,212,205,.3); font-size:11px; transition:opacity .4s; }
.demo-loading span { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--coral); margin-right:8px; animation:pulse 1s infinite alternate; }
.demo-loading.is-done { opacity:0; pointer-events:none; }
@keyframes pulse { to { opacity:.25; transform:scale(.65); } }
#kelvin-demo .axis text, #kelvin-demo .grid text { fill:var(--muted); font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size:11px; }
#kelvin-demo .axis path, #kelvin-demo .axis line { stroke:rgba(214,232,224,.35); }
#kelvin-demo .grid line { stroke:rgba(197,225,218,.14); }
#kelvin-demo .chart-label { fill:#dbe8df; font-size:12px; font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; }
#kelvin-demo .chart-label--muted { fill:#8fa7a8; }
#kelvin-demo .station-rule { stroke:rgba(197,225,218,.16); stroke-dasharray:2 5; }
#kelvin-demo .historic-area { opacity:.14; }
#kelvin-demo .historic-line { fill:none; stroke-width:2.5px; stroke-linecap:round; }
#kelvin-demo .historic-context-band { fill:rgba(241, 187, 98, .13); opacity:.3; transition:opacity .45s ease; }
#kelvin-demo .historic-context-label { fill:#c9b58c; font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size:10px; letter-spacing:.06em; opacity:0; transition:opacity .45s ease; }
#kelvin-demo .historic-zero-line { stroke:rgba(232,238,231,.32); stroke-width:1px; stroke-dasharray:3 4; }
#kelvin-demo .historic-sst-cell { opacity:.92; transition:opacity .45s ease; }
#kelvin-demo[data-highlight="historic-sst-context"] .historic-sst-cell { opacity:1; }
#kelvin-demo .demo-source-line { color:#aebfbc; font-size:10px; line-height:1.45; }
#kelvin-demo .demo-source-line a { color:#b9dcd6; }
#kelvin-demo .calendar-peak-window { fill:none; stroke:#f6edcf; stroke-width:1.5px; opacity:0; transition:opacity .45s ease; pointer-events:all; }
#kelvin-demo .focus-pointer { stroke:#f4d692; stroke-width:1.5; }
#kelvin-demo .focus-pointer-label { fill:#f4d692; font-size:11px; font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; }
#kelvin-demo .focus-alignment-guide { stroke:#f6edcf; stroke-width:2.2px; stroke-dasharray:3 5; opacity:0; transition:opacity .4s ease; }
#kelvin-demo .focus-alignment-dot { transition:fill .35s ease, r .35s ease; }
#kelvin-demo[data-highlight="calendar-peaks"] .calendar-peak-window { opacity:1; }
#kelvin-demo[data-highlight="focus-alignment"] .focus-alignment-guide { opacity:1; }
#kelvin-demo[data-highlight="focus-alignment"] .focus-alignment-dot { fill:#f6edcf; r:5px; }
#kelvin-demo[data-highlight="historic-context"] .historic-context-band { opacity:.8; }
#kelvin-demo[data-highlight="historic-context"] .historic-context-label { opacity:1; }
#kelvin-demo .demo-events { position:relative; z-index:2; display:grid; grid-template-columns:minmax(230px, .75fr) minmax(0, 1.25fr); gap:clamp(32px, 8vw, 130px); padding:clamp(100px, 16vh, 180px) 8vw; background:rgba(4, 17, 25, .6); border-top:1px solid rgba(185, 220, 214, .2); border-bottom:1px solid rgba(185, 220, 214, .16); }
#kelvin-demo .demo-events__intro { max-width:480px; }
#kelvin-demo .demo-events__eyebrow, #kelvin-demo .season-event__kind { margin:0 0 12px; color:var(--aqua); font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
#kelvin-demo .demo-events h3 { margin:0 0 22px; color:var(--ink); font-family:Georgia, serif; font-size:clamp(34px, 4.2vw, 62px); font-weight:600; letter-spacing:-.045em; line-height:1.02; }
#kelvin-demo .demo-events__intro > p:last-child { margin:0; color:#c3d0ca; font-size:16px; line-height:1.65; }
#kelvin-demo .demo-events__list { position:relative; padding-left:26px; border-left:1px solid rgba(143, 193, 190, .35); }
#kelvin-demo .season-event { position:relative; display:grid; grid-template-columns:150px minmax(0, 1fr); gap:26px; padding:0 0 48px; }
#kelvin-demo .season-event::before { content:""; position:absolute; left:-31px; top:5px; width:9px; height:9px; border:2px solid var(--aqua); border-radius:50%; background:var(--night); box-shadow:0 0 0 5px rgba(7,28,38,.8); }
#kelvin-demo .season-event:last-child { padding-bottom:0; }
#kelvin-demo .season-event__date { color:#cbd9d1; font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size:13px; letter-spacing:.04em; line-height:1.4; }
#kelvin-demo .season-event__date time, #kelvin-demo .season-event__date span { display:block; }
#kelvin-demo .season-event__date span { color:var(--muted); font-size:11px; }
#kelvin-demo .season-event h4 { margin:0 0 10px; color:var(--ink); font-family:Georgia, serif; font-size:clamp(22px, 2vw, 30px); font-weight:600; letter-spacing:-.025em; line-height:1.08; }
#kelvin-demo .season-event__body > p { margin:0; color:#ced8d2; font-size:15px; line-height:1.6; }
#kelvin-demo .season-event details { margin-top:16px; border-top:1px solid rgba(185, 220, 214, .18); }
#kelvin-demo .season-event summary { padding:12px 0 2px; color:var(--gold); font-size:12px; cursor:pointer; }
#kelvin-demo .season-event details p { color:#acbdb9; font-size:13px; line-height:1.55; }
#kelvin-demo .season-event__caveat { padding-left:12px; border-left:2px solid rgba(241, 187, 98, .55); }
#kelvin-demo .season-event__sources { display:flex; flex-wrap:wrap; gap:5px; }
#kelvin-demo .season-event__sources a { color:#b9dcd6; text-decoration:none; }
#kelvin-demo .demo-events__loading, #kelvin-demo .demo-events__empty { color:var(--muted); font-size:14px; }
@media (max-width:700px) {
  #kelvin-demo .demo-nav { padding:18px; font-size:10px; }
  #kelvin-demo .demo-nav span { display:none; }
  #kelvin-demo .demo-scene { min-height:150vh; }
  #kelvin-demo .demo-scene--intro { height:340vh; }
  #kelvin-demo .demo-scene--intro .demo-story-step--hero + .demo-story-step { min-height:240vh; padding-top:24vh; }
  #kelvin-demo .demo-chart-shell { padding:76px 10px 18px; }
  #kelvin-demo .demo-chart-shell--intro { padding:32px 8px 16px; }

  #kelvin-demo .demo-chart-shell--calendar svg,
  #kelvin-demo .demo-chart-shell--historic svg,
  #kelvin-demo .demo-chart-shell--historic-sst svg,
  #kelvin-demo .demo-chart-shell--focus svg,
  #kelvin-demo .demo-chart-shell--satellite svg { height:calc(100% - 78px); }
  #kelvin-demo .demo-chart-kicker { left:14px; right:14px; top:60px; font-size:12px; letter-spacing:.08em; text-align:center; }
  #kelvin-demo .demo-chart-shell--intro .demo-chart-kicker { top:70px; left:14px; right:14px; }
  #kelvin-demo h1 { font-size: 35px; line-height: 1.3; }
  #kelvin-demo h2 { left:18px; top:90px; font-size:clamp(34px, 11vw, 48px); }
  #kelvin-demo .demo-chart-shell h3 { max-width:94%; margin-left:auto; margin-right:auto; font-size:clamp(27px, 8vw, 38px); line-height:1.02; text-align:center; }
  #kelvin-demo .demo-story-card { width:calc(100% - 28px); padding:24px 20px; font-size:14px; line-height:1.6; }
  #kelvin-demo .demo-story-card--hero { padding:28px 22px; }
  #kelvin-demo .demo-deck {margin: 18px 0; font-size: 17px; line-height: 1.4;color: #aaa; }
  #kelvin-demo .demo-scroll-hint { margin-top:30px; }
  #kelvin-demo .axis text, #kelvin-demo .grid text { font-size:9px; }
  #kelvin-demo .chart-label { font-size:10px; }
  #kelvin-demo .focus-pointer-label { font-size:9px; }
  #kelvin-demo .demo-events { grid-template-columns:1fr; gap:42px; padding:88px 24px; }
  #kelvin-demo .demo-events__list { padding-left:20px; }
  #kelvin-demo .season-event { grid-template-columns:1fr; gap:12px; padding-bottom:40px; }
  #kelvin-demo .season-event::before { left:-25px; }
  #kelvin-demo .demo-events__intro > p:last-child { font-size:15px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-scroll-ready .demo-chart-shell--calendar,
  .is-scroll-ready .demo-chart-shell--historic,
  .is-scroll-ready .demo-chart-shell--historic-sst,
  .is-scroll-ready .demo-chart-shell--focus,
  .is-scroll-ready .demo-chart-shell--satellite { transition:none; transform:none; }
}
