/* ============================================================================
   THEME — tweak the colors/fonts here. (Slide TEXT lives in js/slides.js)
   ============================================================================ */
:root {
  /* ---- Yuno brand palette (from brandbook 260112) ---- */
  --bg:            #06070d;   /* near-black page background (black→blue gradient base) */
  --bg-2:          #11131c;   /* secondary panel background (on Unity Black) */
  --unity-black:   #282A30;   /* brand Unity Black */
  --ink:           #FFFFFF;   /* primary text — white on dark */
  --ink-dim:       #BDC3F6;   /* secondary text — pale brand lavender-blue */
  --ink-faint:     #92959B;   /* faint text — brand Security Gray */
  --line:          rgba(255,255,255,0.10);

  --blue:          #3E4FE0;   /* Yuno Blue (primary, PANTONE 2726 C) */
  --blue-deep:     #1726A6;   /* deep indigo (extended) */
  --blue-mid:      #5967E4;   /* periwinkle (extended) */
  --blue-soft:     #7C89EF;   /* light periwinkle (extended) */
  --sky:           #38ADFF;   /* sky blue (only in brand blue→sky gradient) */
  --lilac:         #E8EAF5;   /* Harmony Lilac */
  --lime:          #E0ED80;   /* accent — ONLY tiny details on black, never w/ blue */

  /* Approved brand gradients (brandbook 3.3) — no violet, no rainbow */
  --grad-blue:  linear-gradient(120deg, var(--blue), var(--sky));        /* blue → sky */
  --grad-hero:  linear-gradient(135deg, #000000 0%, var(--blue) 120%);   /* black → blue */
  --grad: var(--grad-blue);   /* default accent gradient */

  --radius: 18px;
  --maxw: 1180px;
  --font: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* Apple-ish ease-out */
}

/* ============================================================================
   RESET / BASE
   ============================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Ambient glow that drifts behind the slides */
.bg-aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 10% 6%, rgba(62,79,224,0.10), transparent 55%),
    radial-gradient(55vw 55vw at 90% 94%, rgba(23,38,166,0.12), transparent 55%);
  filter: blur(8px);
  animation: aura 22s var(--ease) infinite alternate;
}
@keyframes aura {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ============================================================================
   DECK / SLIDE FRAME
   ============================================================================ */
.deck { position: relative; z-index: 1; height: 100vh; width: 100vw; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  /* top | sides | bottom — sides clear the dots-nav, bottom clears the logo/counter/hint */
  padding: clamp(44px, 6vw, 100px) clamp(64px, 7vw, 120px) clamp(76px, 6vw, 100px);
  opacity: 0; visibility: hidden;
  transform: translateY(24px) scale(0.99);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), visibility 0s 0.7s;
}
.slide.active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), visibility 0s;
}
.slide-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* Staggered reveal of children when a slide becomes active */
.reveal { opacity: 0; transform: translateY(18px); }
.slide.active .reveal {
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================================
   TYPOGRAPHY HELPERS
   ============================================================================ */
.kicker {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 600; margin-bottom: 22px;
}
.kicker::before {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: var(--grad); margin-right: 12px; vertical-align: middle;
  border-radius: 2px;
}
/* Titles stay solid white (no ombre, per brand). Class kept for markup compatibility. */
.grad-text {
  color: var(--ink); -webkit-text-fill-color: var(--ink);
}
h1.title  { font-size: clamp(2.4rem, 6vw, 5rem);  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2.title  { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.lead     { font-size: clamp(1.05rem, 1.6vw, 1.4rem); color: var(--ink-dim); margin-top: 18px; max-width: 60ch; line-height: 1.5; }
.subtitle { font-size: clamp(1.15rem, 2vw, 1.7rem); color: var(--ink-dim); margin-top: 22px; max-width: 50ch; line-height: 1.45; }

/* ============================================================================
   COVER
   ============================================================================ */
.cover .eyebrow { font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 28px; }
.cover .footnote { margin-top: 40px; font-size: 0.95rem; color: var(--ink-dim); }
.cover h1 { font-size: clamp(3rem, 9vw, 7rem); }

/* ============================================================================
   SECTION DIVIDER
   ============================================================================ */
.section .num {
  font-size: clamp(5rem, 18vw, 14rem); font-weight: 800; line-height: 0.9;
  letter-spacing: -0.04em; -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
  color: transparent; opacity: 0.9;
}
.section .num.fill { -webkit-text-stroke: 0; }
.section h1 { margin-top: 8px; }

/* ============================================================================
   BULLETS
   ============================================================================ */
.bullets ul { list-style: none; margin-top: 38px; display: grid; gap: 22px; }
.bullets li { display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: start; }
.bullets .dot {
  width: 12px; height: 12px; margin-top: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 18px rgba(62,79,224,0.65);
}
.bullets .b-title { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; }
.bullets .b-body  { color: var(--ink-dim); margin-top: 4px; line-height: 1.5; font-size: 1.02rem; }

/* ============================================================================
   GRID OF CARDS
   ============================================================================ */
.grid-wrap { margin-top: 38px; display: grid; gap: 16px; }
.grid-wrap.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-wrap.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 46px;
  background: var(--grad); border-radius: 0 0 3px 0;
}
.card:hover { transform: translateY(-4px); border-color: rgba(62,79,224,0.55); }
.card .c-title { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; }
.card .c-body  { color: var(--ink-dim); line-height: 1.5; font-size: 0.96rem; }
/* shrink text a touch when there are many cards */
.grid-wrap.dense .card { padding: 16px 16px 18px; }
.grid-wrap.dense .c-title { font-size: 1rem; }
.grid-wrap.dense .c-body { font-size: 0.88rem; }

/* ============================================================================
   PLAYBOOK (SE/AM call to action: asks + shareable resources)
   ============================================================================ */
.playbook .lead { max-width: none; }   /* keep the lead on one line — no awkward wrap */
.pb-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 46px; margin-top: 26px; align-items: start; }
.pb-ask { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.pb-ask + .pb-ask { margin-top: 16px; }
.pb-num { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.pb-ask-title { font-weight: 650; font-size: 1rem; color: var(--ink); }
.pb-ask-body { color: var(--ink-dim); font-size: 0.86rem; line-height: 1.45; margin-top: 3px; }

.pb-res-label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }

/* prominent documentation card — styled as a glowing browser window */
.pb-doc {
  display: block; text-decoration: none; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(62,79,224,0.55);
  background: linear-gradient(180deg, rgba(62,79,224,0.20), rgba(62,79,224,0.05));
  box-shadow: 0 26px 60px rgba(0,0,0,0.45), 0 0 50px rgba(62,79,224,0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pb-doc:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 70px rgba(62,79,224,0.4); }
.pb-doc-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid var(--line); }
.pb-doc-bar i { width: 10px; height: 10px; border-radius: 50%; }
.pb-doc-bar i:nth-child(1){ background:#ff5f57; } .pb-doc-bar i:nth-child(2){ background:#febc2e; } .pb-doc-bar i:nth-child(3){ background:#28c840; }
.pb-doc-host { margin-left: 10px; font-family: var(--mono); font-size: 0.76rem; color: var(--ink-dim); }
.pb-doc-inner { padding: 20px 20px 22px; }
.pb-doc-eyebrow { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.pb-doc-title { color: var(--ink); font-weight: 650; font-size: 1.12rem; margin-top: 7px; line-height: 1.35; }

.pb-res { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-top: 12px; background: rgba(255,255,255,0.03); transition: border-color 0.3s var(--ease); }
a.pb-res:hover { border-color: var(--sky); }
.pb-res-title { font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.pb-res-body { color: var(--ink-dim); font-size: 0.86rem; margin-top: 3px; }
a.pb-res .pb-res-body { color: var(--sky); }

@media (max-width: 900px) { .pb-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ============================================================================
   TWO-COLUMN PANELS (criteria list + perk cards)
   ============================================================================ */
.twocol-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px; margin-top: 30px; }
.tc-label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* criteria list */
.tc-item { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; }
.tc-item + .tc-item { margin-top: 14px; }
.tc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); margin-top: 6px; box-shadow: 0 0 14px rgba(62,79,224,0.55); }
.tc-title { font-weight: 650; font-size: 0.98rem; color: var(--ink); }
.tc-body { color: var(--ink-dim); font-size: 0.86rem; line-height: 1.45; margin-top: 3px; }

/* perk cards */
.tc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden;
}
.tc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 44px; background: var(--grad); border-radius: 0 0 3px 0; }
.tc-card + .tc-card { margin-top: 14px; }
.tc-c-title { font-weight: 650; font-size: 1rem; color: var(--ink); margin-bottom: 5px; }
.tc-c-body { color: var(--ink-dim); font-size: 0.88rem; line-height: 1.45; }

@media (max-width: 900px) { .twocol-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================================
   SPLIT (text + code)
   ============================================================================ */
.split-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 26px; }
/* two side-by-side code blocks (codepair) */
.codepair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .codepair-grid { grid-template-columns: 1fr; } }
.codepair-note { margin-top: 18px; text-align: right; font-size: 0.95rem; color: var(--ink-faint); }

/* shared inline link style */
a.deck-link { color: var(--sky); text-decoration: none; border-bottom: 1px solid rgba(56,173,255,0.45); padding-bottom: 1px; transition: border-color 0.3s var(--ease); }
a.deck-link:hover { border-bottom-color: var(--sky); }

/* ============================================================================
   SEMVER (semantic versioning visualization)
   ============================================================================ */
/* Hero version number + connectors fanning to three labelled columns */
.semver-stage { margin-top: 22px; }
.semver-num {
  font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; text-align: center; color: var(--ink);
}
.semver-num .dot { color: var(--ink-faint); margin: 0 2px; }

.semver-connectors { display: block; width: 100%; height: 56px; margin: 8px 0 4px; }
.semver-connectors path { fill: none; stroke: var(--blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.85; }

.semver-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sv-col { text-align: center; }
.sv-label { font-size: 1rem; font-weight: 700; color: var(--blue); }
.sv-name { font-size: 1.02rem; font-weight: 650; margin-top: 6px; color: var(--ink); }
.sv-desc { color: var(--ink-dim); margin: 8px auto 0; line-height: 1.5; font-size: 0.92rem; max-width: 34ch; }
.sv-example { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }
.sv-ex-label { color: var(--ink-faint); font-size: 0.85rem; }
.sv-example code {
  font-family: var(--mono); font-size: 0.95rem; color: var(--ink);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 8px;
}
.sv-example code strong { color: var(--blue); font-weight: 700; }
.sv-example .arrow { color: var(--ink-faint); }
.code-card, .code-full {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  max-height: 74vh;
}
.code-card .dots, .code-full .dots { display: flex; gap: 7px; margin-bottom: 16px; }
.code-card .dots i, .code-full .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2b3050; display: block; }
.code-card .dots i:nth-child(1){ background:#ff5f57; } .code-card .dots i:nth-child(2){ background:#febc2e; } .code-card .dots i:nth-child(3){ background:#28c840; }
.code-full .dots i:nth-child(1){ background:#ff5f57; } .code-full .dots i:nth-child(2){ background:#febc2e; } .code-full .dots i:nth-child(3){ background:#28c840; }
pre { font-family: var(--mono); font-size: clamp(0.68rem, 1.05vw, 0.82rem); line-height: 1.5; color: #cfd6ff; white-space: pre; tab-size: 2; }
.code-full pre { font-size: 0.9rem; }
.tok-key { color: var(--blue-soft); } .tok-str { color: var(--sky); } .tok-com { color: #6f7390; font-style: italic; } .tok-fn { color: var(--blue); }

/* ============================================================================
   ROADMAP (month timeline with cards above/below + period banners)
   ============================================================================ */
.roadmap {
  margin-top: 56px;            /* breathing room below the title */
  display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: auto 60px 2px 36px 56px auto; column-gap: 0;
}
.rm-axis { align-self: center; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.32) 60%, rgba(255,255,255,0.12)); border-radius: 2px; }
.rm-month { text-align: center; font-weight: 650; color: var(--ink); font-size: 0.9rem; align-self: center; background: var(--bg); position: relative; z-index: 2; padding: 0 2px; }

.rm-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; margin: 0 8px; text-align: center;
}
.rm-card.above { align-self: end; }
.rm-card.below { align-self: start; }
.rm-card-title { font-weight: 650; color: var(--ink); font-size: 0.86rem; line-height: 1.3; }
.rm-card-body { color: var(--ink-dim); font-size: 0.75rem; margin-top: 6px; line-height: 1.45; }

/* vertical connector — always spans from a card to the axis line */
.rm-conn { width: 2px; background: rgba(255,255,255,0.3); justify-self: center; align-self: stretch; z-index: 1; }

/* lime period banners — sit close to the axis with breathing room, fade out on the right (open-ended) */
.rm-band {
  color: #14150c; font-weight: 700;
  text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; text-align: left;
  padding: 7px 14px; border-radius: 999px 0 0 999px; margin-left: 6px; z-index: 3;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 50%, rgba(224,237,128,0) 100%);
}
.rm-band.above { align-self: end; margin-bottom: 9px; }   /* just above the axis */
.rm-band.below { align-self: start; margin-top: 9px; }     /* just below the months */

/* ============================================================================
   TIMELINE
   ============================================================================ */
.timeline { margin-top: 50px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.phase { padding-right: 22px; position: relative; }
.phase .node { width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 20px rgba(62,79,224,0.7); position: relative; z-index: 1; }
.phase .p-label { margin-top: 18px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.phase .p-title { margin-top: 6px; font-size: 1.2rem; font-weight: 650; }
.phase .p-body  { margin-top: 6px; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5; }

/* ============================================================================
   VIDEO
   ============================================================================ */
.video-stage { margin-top: 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,0.5); aspect-ratio: 16/9; background: var(--bg-2); display: grid; place-items: center; }
.video-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* before/after comparison slide (two looping clips) */
.cmp-grid { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 22px; align-items: center; margin-top: 22px; }
.cmp-panel { text-align: center; }
.cmp-arrow { color: var(--ink-faint); font-size: 1.8rem; text-align: center; }
.cmp-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; margin-bottom: 12px; }
.cmp-tag.on { color: #fff; background: var(--blue); border-color: var(--blue); }
.cmp-grid.no-arrow { grid-template-columns: 1fr 1fr; gap: 32px; }
.cmp-stage { position: relative; height: 46vh; max-height: 440px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.cmp-stage video, .cmp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.cmp-label { font-weight: 650; font-size: 1.05rem; margin-top: 14px; color: var(--ink); }
.cmp-note { color: var(--ink-dim); font-size: 0.88rem; margin-top: 5px; line-height: 1.45; max-width: 34ch; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: 1fr; } .cmp-arrow { transform: rotate(90deg); } }

/* video slide: a slightly smaller, centred window (logo is already in the video) */
.video-slide { text-align: center; }
.video-slide .video-stage { max-width: min(900px, 78vw); margin: 28px auto 0; }
body[data-type="video"] .brand { opacity: 0; pointer-events: none; }
.video-placeholder { text-align: center; color: var(--ink-dim); padding: 30px; }
.video-placeholder .play { width: 78px; height: 78px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 40px rgba(62,79,224,0.55); }
.video-placeholder .play::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.caption { margin-top: 16px; color: var(--ink-dim); font-size: 0.95rem; text-align: center; }

/* ============================================================================
   QUOTE
   ============================================================================ */
.quote .q { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }

/* ============================================================================
   CLOSING
   ============================================================================ */
/* Closing — everything centered both axes; block children centered with auto margins */
.slide.closing { justify-content: center; align-items: center; text-align: center; }
.closing { text-align: center; }
.closing h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.closing .subtitle { margin-left: auto; margin-right: auto; }
.closing .cta { margin: 36px auto 0; font-size: 1.1rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ============================================================================
   CHROME — progress bar, counter, nav hint
   ============================================================================ */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad); width: 0; z-index: 50; transition: width 0.5s var(--ease); }
.counter { position: fixed; bottom: 26px; right: 32px; z-index: 50; font-size: 0.85rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.counter b { color: var(--ink); }
/* Corner brand mark — the real yuno logo (hidden on the cover, which shows it big) */
.brand { position: fixed; bottom: 24px; left: 32px; z-index: 50; }
.brand img { height: 22px; width: auto; display: block; opacity: 0.92; }
/* on the cover & closing slides, the mark moves to the top-left (small) */
body[data-type="cover"] .brand,
body[data-type="closing"] .brand { top: 30px; bottom: auto; }

/* ---- Floating brand orbs (blue spheres) for cover & section slides ---- */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* Dark, backlit "moon" spheres: mostly black, a deep MUTED-blue glow on the side
   facing the light, fading to black — with a photographic grain over each sphere. */
.orb { position: absolute; border-radius: 50%; overflow: hidden; will-change: transform; }
/* grain over each sphere — the Hubble/moon texture */
.orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 150px 150px; mix-blend-mode: overlay; opacity: 0.45; pointer-events: none;
}
/* top-right sphere — deep muted-blue glow toward centre (lower-left), fading to black */
.orb.o1 {
  width: 50vw; height: 50vw; right: -5vw; top: -9vw;
  background: radial-gradient(circle at 16% 84%,
      #444eae 0%, #313a8c 12%, #232a66 24%, #161c42 35%, #0c1126 44%, rgba(8,11,30,0) 54%);
  animation: drift1 34s ease-in-out infinite alternate;
}
/* bottom-left sphere — deep muted-blue glow toward centre (upper-right), fading to black */
.orb.o2 {
  width: 47vw; height: 47vw; left: -5vw; bottom: -11vw;
  background: radial-gradient(circle at 84% 16%,
      #444eae 0%, #313a8c 12%, #232a66 24%, #161c42 35%, #0c1126 44%, rgba(8,11,30,0) 54%);
  animation: drift2 40s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 4vh, 0) scale(1.05); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3vw, -4vh, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}
/* keep slide content above the orbs */
.slide-inner { position: relative; z-index: 1; }

/* Film grain over the whole stage (premium texture, like the merchant deck) */
.bg-grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.hint { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 50; font-size: 0.8rem; color: var(--ink-dim); opacity: 0.6; transition: opacity 0.4s; }
.hint.hide { opacity: 0; }
.dots-nav { position: fixed; top: 50%; right: 22px; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.dots-nav button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.22); cursor: pointer; padding: 0; transition: all 0.3s var(--ease); }
.dots-nav button.on { background: var(--grad); transform: scale(1.5); }

/* ============================================================================
   RESPONSIVE — collapse grids on small screens
   ============================================================================ */
@media (max-width: 900px) {
  .grid-wrap.cols-2, .grid-wrap.cols-3 { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; gap: 26px; }
  .timeline::before { display: none; }
}

/* Print / PDF export: one slide per page (use browser "Print" → Save as PDF) */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { background: #06070d !important; overflow: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .deck { height: auto !important; }
  .bg-aura, .progress, .counter, .brand, .hint, .dots-nav { display: none !important; }
  .slide {
    position: relative; opacity: 1 !important; visibility: visible !important; transform: none !important;
    page-break-after: always; break-after: page; width: 1280px; height: 720px; overflow: hidden;
    background: #06070d; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .slide:last-child { page-break-after: auto; break-after: auto; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
