:root {
  --brand-50: #eef4ff;
  --brand-100: #dce9ff;
  --brand-300: #8fb4fa;
  --brand-500: #4d83ec;
  --brand-600: #356fd6;
  --brand-700: #295bb6;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dce4ef;
  --panel: #ffffff;
  --canvas: #f5f8fd;
  --orange: #e9722d;
  --shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
  --radius: 28px;
  font-family: "Instrument Sans", "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow: hidden; background: radial-gradient(circle at 15% 5%, #fff 0, transparent 30%), var(--canvas); }
button { font: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.topbar {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.75rem);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(220, 228, 239, .85);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 30;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .75rem; border: 0; background: transparent; color: var(--ink); padding: 0; cursor: pointer; text-align: left; }
.storyy-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--brand-500), var(--brand-700)); font-weight: 800; box-shadow: 0 7px 20px rgba(53, 111, 214, .25); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: -.03em; }
.brand-copy span { color: var(--muted-foreground); font-size: .78rem; margin-top: .2rem; }
.client-lockup { text-align: center; display: grid; gap: .15rem; font-size: .95rem; font-weight: 700; }
.client-kicker { color: var(--muted-foreground); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.report-date { color: var(--brand-600); font-size: .72rem; font-weight: 750; margin-top: .08rem; }
.top-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.export-button { height: 42px; display: inline-flex; align-items: center; gap: .5rem; border: 0; border-radius: 13px; padding: 0 .9rem; color: #fff; background: var(--brand-600); cursor: pointer; font-weight: 750; box-shadow: 0 8px 22px rgba(53, 111, 214, .2); transition: transform .2s ease, background .2s ease; }
.export-button:hover { transform: translateY(-1px); background: var(--brand-700); }
.export-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.icon-button:hover { transform: translateY(-1px); border-color: var(--brand-300); box-shadow: 0 8px 22px rgba(53, 111, 214, .12); }
.icon-button svg, .nav-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.progress-track { height: 4px; background: var(--brand-100); position: relative; z-index: 31; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); transition: width .35s ease; }
.report-rail { position: fixed; z-index: 29; left: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: .42rem; width: 54px; padding: .85rem .4rem; border: 1px solid var(--line); border-left: 0; border-radius: 0 17px 17px 0; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 10px 10px 30px rgba(15,23,42,.1); cursor: pointer; }
.report-rail:hover { color: var(--brand-700); }
.report-rail svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.report-rail span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-rail b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 999px; color: #fff; background: var(--brand-600); font-size: .68rem; }

.stage { height: calc(100vh - 152px); min-height: 520px; padding: clamp(.8rem, 2vw, 1.6rem) clamp(.8rem, 3vw, 3rem); display: grid; place-items: center; }
#slideMount { width: min(100%, 1180px); height: 100%; max-height: 760px; }
.slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(220, 228, 239, .9);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: slideIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
.slide-inner { min-height: 100%; padding: clamp(1.5rem, 4vw, 4.25rem); display: flex; flex-direction: column; }
.slide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.4rem, 3vw, 2.7rem); }
.eyebrow { display: block; color: var(--brand-600); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .55rem; }
.slide h1, .slide h2, .slide h3, .slide p { margin: 0; }
.slide h2 { font-size: clamp(2rem, 4.5vw, 4.6rem); line-height: .96; letter-spacing: -.055em; max-width: 900px; }
.slide-number { color: var(--brand-600); font-weight: 800; font-size: .86rem; padding-top: .35rem; white-space: nowrap; }
.lead { color: var(--muted-foreground); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; max-width: 820px; }

.cover { background: var(--ink); color: #fff; border-color: transparent; }
.cover-grid { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100%; }
.cover-copy { padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.cover .eyebrow { color: #91b6ff; }
.cover h1 { font-size: clamp(3rem, 7vw, 6.7rem); line-height: .9; letter-spacing: -.065em; max-width: 760px; margin: 1.3rem 0 1.8rem; }
.cover p { color: #cad4e6; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.5; max-width: 610px; }
.cover-meta { margin-top: auto; padding-top: 2rem; color: #8ea0ba; font-size: .84rem; }
.cover-visual { position: relative; min-height: 350px; overflow: hidden; }
.cover-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.cover-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 32%); }
.cover-orbit { position: absolute; inset: 9% 10%; border: 1px solid rgba(255,255,255,.25); border-radius: 42% 58% 55% 45% / 48% 35% 65% 52%; z-index: 2; animation: orbit 16s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

.section-cover { background: linear-gradient(140deg, var(--brand-700), #1d4c9f 58%, #183c7c); color: #fff; border-color: transparent; }
.section-cover .slide-inner { justify-content: flex-end; position: relative; overflow: hidden; }
.section-cover .section-index { position: absolute; right: clamp(1.5rem, 5vw, 5rem); top: clamp(1rem, 3vw, 2.5rem); font-size: clamp(7rem, 24vw, 20rem); line-height: .8; font-weight: 800; letter-spacing: -.08em; color: rgba(255,255,255,.075); }
.section-cover .eyebrow { color: #bcd2ff; }
.section-cover h2 { max-width: 820px; }
.section-cover .lead { color: #d9e5fb; margin-top: 1.4rem; }
.section-cover .accent-line { width: 84px; height: 8px; background: var(--orange); border-radius: 999px; margin-bottom: 1.4rem; }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: auto; margin-bottom: auto; }
.insight { padding: 1.55rem 0 0; border-top: 2px solid var(--line); }
.insight:hover { border-top-color: var(--brand-500); }
.insight .index { font-size: 2.5rem; line-height: 1; font-weight: 800; color: var(--brand-100); margin-bottom: 1.15rem; }
.insight h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.035em; margin-bottom: .8rem; }
.insight p { color: var(--muted-foreground); font-size: 1rem; line-height: 1.56; }

.profile-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; margin: auto 0; }
.bio-card { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.7rem); box-shadow: 0 20px 45px rgba(15,23,42,.16); }
.bio-card .label, .detail-row .label { color: #91b6ff; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bio-copy { margin: 1.5rem 0 2rem; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.42; letter-spacing: -.025em; }
.bio-edge { color: #bdc9da; line-height: 1.55; }
.details { display: grid; }
.detail-row { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.detail-row p { margin-top: .45rem; color: var(--ink); line-height: 1.5; }

.platform-list, .schedule-list, .calendar-list, .action-list, .updates-list { display: grid; margin-top: auto; margin-bottom: auto; }
.platform-row, .schedule-row, .calendar-row, .action-row, .update-row { display: grid; align-items: start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.platform-row { grid-template-columns: 180px 180px 1fr; }
.platform-row h3, .action-row h3, .update-row h3 { font-size: 1.35rem; letter-spacing: -.03em; }
.platform-row .role, .schedule-row .type, .calendar-row .goal { color: var(--brand-600); font-weight: 800; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; padding-top: .35rem; }
.platform-row p, .action-row p, .update-row p { color: var(--muted-foreground); line-height: 1.5; }

.topic-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted-foreground); margin-top: -1rem; margin-bottom: 1.5rem; }
.topic-intro p { max-width: 850px; }
.pillar-pill { flex: none; padding: .55rem .85rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .76rem; font-weight: 800; }
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: auto 0; }
.idea-card { position: relative; min-height: 285px; border: 1px solid var(--line); border-radius: 22px; padding: 1.35rem; background: linear-gradient(180deg, #fff, #fbfdff); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; cursor: pointer; }
.idea-card:hover, .idea-card.is-open { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: 0 16px 34px rgba(53,111,214,.12); }
.idea-card .index { color: var(--brand-500); font-weight: 800; font-size: .82rem; }
.idea-card .hook-label, .idea-card .idea-label { color: var(--muted-foreground); font-size: .7rem; letter-spacing: .11em; font-weight: 800; text-transform: uppercase; }
.idea-card .hook-label { display: block; margin-top: 1.25rem; }
.idea-card h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.22; letter-spacing: -.035em; margin: .55rem 0 1.4rem; }
.idea-card .idea-label { display: block; margin-bottom: .45rem; }
.idea-card p { color: var(--muted-foreground); line-height: 1.5; font-size: .96rem; }
.idea-card::after { content: "+"; position: absolute; right: 1.1rem; top: 1rem; color: var(--brand-500); font-size: 1.35rem; font-weight: 500; }
.idea-card.is-open::after { content: "−"; }
.idea-card .idea-body { display: block; }

.neighbor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: auto 0; }
.neighbor { border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; }
.neighbor h3 { font-size: 1.3rem; letter-spacing: -.03em; }
.handle { color: var(--brand-600); font-size: .84rem; font-weight: 700; margin: .2rem 0 1rem !important; }
.neighbor strong { display: block; margin: .9rem 0 .4rem; font-size: .72rem; letter-spacing: .1em; color: var(--muted-foreground); text-transform: uppercase; }
.neighbor ul { margin: 0; padding-left: 1.05rem; color: var(--muted-foreground); line-height: 1.45; }
.neighbor .cadence { color: var(--brand-700); font-size: .84rem; font-weight: 800; margin-top: 1rem; }
.application-strip { margin-top: 1.2rem; border-radius: 16px; background: var(--ink); color: #fff; padding: 1rem 1.25rem; text-align: center; font-weight: 700; }

.schedule-row { grid-template-columns: 84px 150px 130px 1fr; }
.schedule-row .day { font-size: 1.25rem; font-weight: 800; color: var(--brand-600); }
.schedule-row .time { font-weight: 700; }
.schedule-note { color: var(--muted-foreground); margin-top: 1rem !important; line-height: 1.5; }
.calendar-row { grid-template-columns: 72px 1fr 190px; }
.calendar-row .day { color: var(--brand-600); font-weight: 800; }
.calendar-row .hook { font-size: 1.08rem; font-weight: 700; }

.updates-list { gap: .85rem; }
.update-row { grid-template-columns: 160px 250px 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; padding: 1.15rem; }
.update-row .type { color: var(--brand-600); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.update-row strong { font-size: .72rem; display: block; color: var(--muted-foreground); margin-bottom: .4rem; letter-spacing: .08em; text-transform: uppercase; }
.update-row p { font-size: .94rem; }

.action-row { grid-template-columns: 76px 290px 1fr; padding: 1.25rem 0; }
.action-row .num { font-size: 2.4rem; font-weight: 800; color: var(--brand-100); line-height: 1; }

.image-slide { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 100%; }
.image-slide .slide-inner { justify-content: center; }
.image-pane { position: relative; overflow: hidden; }
.image-pane img { width: 100%; height: 100%; object-fit: cover; }
.proof-chip { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; padding: .65rem .85rem; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .82rem; font-weight: 800; margin-top: 1.5rem; }
.proof-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }

.controls { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 28; display: flex; align-items: center; gap: .55rem; padding: .45rem; border: 1px solid var(--line); background: rgba(255,255,255,.93); border-radius: 18px; box-shadow: 0 12px 34px rgba(15,23,42,.14); backdrop-filter: blur(16px); }
.nav-button, .slide-count { height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.nav-button { padding: 0 1rem; display: inline-flex; align-items: center; gap: .45rem; }
.nav-button.primary { color: #fff; background: var(--brand-600); }
.nav-button:disabled { opacity: .35; cursor: not-allowed; }
.slide-count { color: var(--muted-foreground); padding: 0 .8rem; font-variant-numeric: tabular-nums; }

.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.42); opacity: 0; transition: opacity .25s ease; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(92vw, 460px); background: #fff; padding: 1.5rem; transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(15,23,42,.18); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }
.drawer-list { height: calc(100% - 92px); overflow: auto; padding: .9rem 0; }
.toc-section { margin: 1rem 0 .45rem; color: var(--brand-600); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.toc-button { display: grid; grid-template-columns: 34px 1fr; gap: .65rem; width: 100%; border: 0; border-radius: 11px; background: transparent; padding: .65rem .7rem; color: var(--ink); text-align: left; cursor: pointer; }
.toc-button:hover, .toc-button.active { background: var(--brand-50); color: var(--brand-700); }
.toc-button .toc-num { color: var(--muted-foreground); font-size: .78rem; font-weight: 700; padding-top: .1rem; }
.toc-button .toc-title { font-size: .94rem; font-weight: 700; }
.report-drawer, .export-popover { position: fixed; inset: 0; z-index: 70; pointer-events: none; visibility: hidden; }
.report-drawer.is-open, .export-popover.is-open { pointer-events: auto; visibility: visible; }
.report-backdrop, .export-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); opacity: 0; transition: opacity .25s ease; }
.report-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(92vw, 440px); padding: 1.5rem; background: #fff; box-shadow: 20px 0 60px rgba(15,23,42,.18); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.report-drawer.is-open .report-backdrop, .export-popover.is-open .export-backdrop { opacity: 1; }
.report-drawer.is-open .report-panel { transform: translateX(0); }
.report-intro { color: var(--muted-foreground); line-height: 1.5; margin: 1.2rem 0 1rem; }
.report-list { display: grid; gap: .8rem; }
.report-card { width: 100%; padding: 1.15rem; display: grid; grid-template-columns: 44px 1fr auto; gap: .9rem; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.report-card:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: 0 12px 26px rgba(53,111,214,.1); }
.report-card.active { border-color: var(--brand-500); background: var(--brand-50); }
.report-month { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; line-height: 1; font-weight: 800; }
.report-month small { font-size: .58rem; color: #aebbd0; letter-spacing: .08em; }
.report-card strong { display: block; font-size: 1rem; }
.report-card p { margin: .28rem 0 0; color: var(--muted-foreground); font-size: .82rem; line-height: 1.35; }
.report-status { align-self: start; padding: .35rem .55rem; border-radius: 999px; color: var(--brand-700); background: var(--brand-100); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.report-card:not(.active) .report-status { color: var(--muted-foreground); background: #eef2f7; }
.archive-ribbon { position: absolute; z-index: 4; left: 50%; top: 1rem; transform: translateX(-50%); padding: .48rem .8rem; border-radius: 999px; color: #fff; background: rgba(15,23,42,.88); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(10px); }
.export-panel { position: absolute; left: 50%; top: 50%; width: min(92vw, 540px); padding: 1.5rem; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(15,23,42,.24); opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(.98); transition: opacity .22s ease, transform .22s ease; }
.export-popover.is-open .export-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.export-options { display: grid; gap: .8rem; margin: 1.25rem 0 1rem; }
.export-option { display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.export-option:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: 0 12px 28px rgba(53,111,214,.11); }
.export-option svg { width: 22px; fill: none; stroke: var(--muted-foreground); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.export-option strong, .export-option small { display: block; }
.export-option small { color: #475569; margin-top: .2rem; font-size: .82rem; line-height: 1.4; }
.file-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: #d24726; font-weight: 850; }
.file-icon.google { background: #f9ab00; }
.export-note { color: #475569; font-size: .85rem; line-height: 1.5; }
.shortcut-hint { position: fixed; left: 50%; top: 92px; transform: translate(-50%, -10px); z-index: 50; background: var(--ink); color: #fff; padding: .55rem .8rem; border-radius: 10px; font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.shortcut-hint.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  body { overflow: auto; }
  .topbar { grid-template-columns: 1fr auto; }
  .client-lockup { display: none; }
  .stage { min-height: calc(100vh - 132px); height: auto; padding-bottom: 6rem; }
  #slideMount { min-height: 650px; height: auto; }
  .slide { min-height: 650px; overflow: visible; }
  .cover-grid, .image-slide, .profile-grid { grid-template-columns: 1fr; }
  .cover-visual, .image-pane { min-height: 300px; max-height: 42vh; }
  .cover-copy { min-height: 500px; }
  .three-col, .idea-grid, .neighbor-grid { grid-template-columns: 1fr; }
  .idea-card { min-height: auto; }
  .platform-row { grid-template-columns: 1fr; gap: .35rem; }
  .schedule-row { grid-template-columns: 62px 120px 1fr; }
  .schedule-row p { grid-column: 2 / -1; }
  .calendar-row { grid-template-columns: 55px 1fr; }
  .calendar-row .goal { grid-column: 2; }
  .update-row { grid-template-columns: 1fr 1fr; }
  .action-row { grid-template-columns: 62px 1fr; }
  .action-row p { grid-column: 2; }
  .slide h2 { line-height: 1; }
}

@media (max-width: 560px) {
  .brand-copy span, .nav-button span, .export-button span { display: none; }
  .topbar { height: 66px; padding: 0 .85rem; }
  .progress-track { height: 3px; }
  .stage { padding: .65rem .65rem 5.5rem; min-height: calc(100vh - 69px); }
  #slideMount, .slide { min-height: 620px; }
  .slide-inner { padding: 1.35rem; }
  .cover-copy { min-height: 440px; padding: 1.6rem; }
  .cover h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .cover-visual { min-height: 235px; }
  .slide-head { margin-bottom: 1.25rem; }
  .slide h2 { font-size: 2.15rem; }
  .topic-intro { align-items: flex-start; flex-direction: column; }
  .schedule-row { grid-template-columns: 54px 1fr; }
  .schedule-row .type, .schedule-row p { grid-column: 2; }
  .update-row { grid-template-columns: 1fr; }
  .controls { bottom: 9px; }
  .report-rail { top: auto; bottom: 76px; transform: none; width: 46px; padding: .65rem .3rem; }
  .report-rail span { display: none; }
  .export-button { width: 42px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Storyy presentation system */
:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #020817;
  --card: #ffffff;
  --card-foreground: #020817;
  --popover: #ffffff;
  --popover-foreground: #020817;
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #020817;
  --brand-purple: #7957c2;
  --brand-gradient: linear-gradient(135deg, #662d91 6.28%, #623194 20.75%, #583d9c 36.07%, #4852ab 51.4%, #316fc0 66.72%, #1494db 82.04%, #00aeee 91.41%);
  --home-wash: linear-gradient(135deg, rgb(251 191 36 / 15%) 0%, rgb(147 197 253 / 15%) 80%, rgb(196 181 253 / 15%) 90%);
  --quiet-wash: linear-gradient(135deg, rgb(251 191 36 / 7%) 0%, rgb(125 211 252 / 7%) 50%, rgb(196 181 253 / 7%) 100%);
  --wave: rgb(183 215 249 / 23.5%);
  --radius: 12px;
  --radius-card: 14px;
  --shadow-storyy: 0 10px 12px rgb(121 87 194 / 18%);
  --font-heading: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-50: #f5f3ff;
  --brand-100: #ede9fe;
  --brand-300: #c4b5fd;
  --brand-500: #8b5cf6;
  --brand-600: #7957c2;
  --brand-700: #6d28d9;
  --ink: var(--foreground);
  --line: var(--border);
  --panel: var(--card);
  --canvas: var(--background);
  --shadow: var(--shadow-storyy);
}

html { background: var(--background); }
body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: #fff var(--home-wash);
  background-attachment: fixed;
}
h1, h2, h3, .brand, button, .eyebrow, .client-lockup, .pillar-pill { font-family: var(--font-heading); }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgb(121 87 194 / 35%); outline-offset: 3px; }

.topbar {
  height: 72px;
  max-width: 1248px;
  margin: 12px auto 0;
  border: 1px solid rgb(226 232 240 / 88%);
  border-radius: 16px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 6px 24px rgb(15 23 42 / 6%);
  padding: 0 18px;
}
.storyy-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-gradient); box-shadow: var(--shadow-storyy); font-family: var(--font-heading); }
.storyy-wordmark { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: -.045em; color: var(--primary); }
.brand-copy strong { font-size: 1rem; font-weight: 700; }
.brand-copy span, .client-kicker { color: var(--muted-foreground); }
.report-date { color: var(--brand-purple); }
.top-actions { align-items: center; }
.icon-button { border-radius: 12px; border-color: var(--border); box-shadow: none; }
.icon-button:hover { transform: none; border-color: #cbd5e1; background: var(--secondary); box-shadow: none; }
.export-button { height: 42px; border-radius: 12px; background: var(--primary); color: var(--primary-foreground); box-shadow: none; font-weight: 600; }
.export-button:hover { transform: none; background: #1e293b; }
.motion-button .play-icon { display: none; }
.motion-button[aria-pressed="true"] .pause-icon { display: none; }
.motion-button[aria-pressed="true"] .play-icon { display: block; }

.progress-track { height: 3px; max-width: 1220px; margin: 0 auto; background: rgb(226 232 240 / 72%); border-radius: 0 0 999px 999px; overflow: hidden; }
.progress-track span { background: var(--brand-gradient); }
.stage { height: calc(100vh - 160px); min-height: 540px; padding: 20px 24px 28px; }
#slideMount { width: min(100%, 1248px); max-height: 760px; }
.slide { border-color: var(--border); border-radius: var(--radius-card); box-shadow: 0 14px 42px rgb(15 23 42 / 9%); background: var(--card); }
.slide-inner { padding: clamp(1.5rem, 3.5vw, 3.25rem); }
.slide-head { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.eyebrow { color: var(--brand-purple); font-size: .78rem; letter-spacing: .08em; font-weight: 600; }
.slide h2 { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.4vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.slide-number { color: var(--muted-foreground); font-family: var(--font-heading); font-weight: 500; }
.lead, .topic-intro, .insight p, .platform-row p, .action-row p, .update-row p { color: var(--muted-foreground); }

.cover { position: relative; overflow: hidden; color: var(--foreground); background: #fff var(--home-wash); border-color: var(--border); }
.cover-grid { position: relative; z-index: 2; grid-template-columns: 1.04fr .96fr; }
.cover-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.cover .eyebrow { color: var(--brand-purple); }
.cover h1 { color: var(--foreground); font-size: clamp(2.75rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; margin: 1rem 0 1.35rem; font-weight: 700; }
.cover p { color: #475569; font-size: clamp(1.05rem, 1.65vw, 1.25rem); max-width: 580px; }
.cover-meta { color: var(--muted-foreground); }
.cover-visual { margin: 24px 24px 24px 0; border-radius: 18px; min-height: 360px; box-shadow: var(--shadow-storyy); }
.cover-visual img { filter: saturate(.9) contrast(1.02); }
.cover-visual::after { background: linear-gradient(90deg, rgb(255 255 255 / 18%), transparent 35%); }
.cover-orbit { border-color: rgb(255 255 255 / 70%); animation-duration: 30s; }
.ambient-waves { position: absolute; inset: auto 0 0; height: 42%; z-index: 1; overflow: hidden; pointer-events: none; }
.wave { position: absolute; left: -35%; bottom: -2px; width: 170%; height: 100%; fill: var(--wave); transform-origin: center bottom; }
.wave-one { animation: waveDrift 30s ease-in-out infinite alternate; }
.wave-two { opacity: .72; animation: waveDrift 20s ease-in-out -5s infinite alternate-reverse; }
.wave-three { opacity: .58; animation: waveDrift 17s ease-in-out -9s infinite alternate; }
@keyframes waveDrift { from { transform: translateX(-3%) scaleY(.88); } to { transform: translateX(3%) scaleY(1.05); } }
body.motion-paused .wave, body.motion-paused .cover-orbit, body.document-hidden .wave, body.document-hidden .cover-orbit, body:not(.cover-active) .wave { animation-play-state: paused; }

.section-cover { color: var(--foreground); background: #fff var(--quiet-wash); border-color: var(--border); }
.section-cover .section-index { color: rgb(121 87 194 / 8%); }
.section-cover .eyebrow { color: var(--brand-purple); }
.section-cover .lead { color: var(--muted-foreground); max-width: 766px; }
.section-cover .accent-line { height: 6px; background: var(--brand-gradient); }

.three-col, .idea-grid, .neighbor-grid { gap: 18px; }
.insight, .neighbor, .update-row, .bio-card, .detail-row { border-color: var(--border); }
.insight { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); }
.insight:hover { border-color: var(--border); }
.insight .index, .action-row .num { color: #c4b5fd; }
.insight h3, .neighbor h3, .platform-row h3, .action-row h3, .update-row h3 { font-family: var(--font-heading); font-weight: 600; }

.bio-card { background: var(--primary); border-radius: var(--radius-card); box-shadow: var(--shadow-storyy); }
.bio-card .label { color: #c4b5fd; }
.details { gap: 10px; }
.detail-row { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.detail-row .label { color: var(--brand-purple); }

.pillar-pill, .proof-chip { background: #f5f3ff; color: #6d28d9; border: 1px solid #ede9fe; }
.idea-card { min-height: 240px; padding: 22px; border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-storyy); transform: translateY(-2px); transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out; }
.idea-card:hover, .idea-card:focus-visible, .idea-card.is-open { transform: translateY(0); box-shadow: 0 3px 3px rgb(121 87 194 / 12%); border-color: #c4b5fd; }
.idea-card:active { transform: translateY(2px); box-shadow: 0 1px 2px rgb(121 87 194 / 12%); }
.idea-card .index { display: grid; place-items: center; width: 56px; height: 56px; margin: -34px 0 6px auto; border-radius: 16px; color: #6d28d9; background: linear-gradient(135deg, #a78bfa, #ede9fe); font-size: .72rem; box-shadow: 0 8px 18px rgb(121 87 194 / 15%); transition: transform 200ms ease; }
.idea-card:nth-child(2) .index { color: #1d4ed8; background: linear-gradient(135deg, #60a5fa, #dbeafe); }
.idea-card:nth-child(3) .index { color: #047857; background: linear-gradient(135deg, #34d399, #d1fae5); }
.idea-card:hover .index, .idea-card:focus-visible .index { transform: rotate(8deg); }
.idea-card h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.idea-card .idea-body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 220ms ease, opacity 180ms ease; }
.idea-card.is-open .idea-body { max-height: 160px; opacity: 1; }
.idea-card::after { color: var(--brand-purple); }

.neighbor, .update-row { background: #fff; border-radius: var(--radius-card); }
.application-strip { background: var(--primary); border-radius: 12px; }
.handle, .neighbor .cadence, .platform-row .role, .schedule-row .type, .calendar-row .goal, .schedule-row .day, .calendar-row .day { color: var(--brand-purple); }
.report-rail { left: max(0px, calc((100vw - 1340px) / 2)); border-color: var(--border); border-radius: 0 14px 14px 0; box-shadow: var(--shadow-storyy); background: #fff; }
.report-rail b { background: var(--primary); }

.controls { border-color: var(--border); border-radius: 14px; box-shadow: 0 10px 30px rgb(15 23 42 / 10%); background: rgb(255 255 255 / 94%); }
.nav-button, .slide-count { font-family: var(--font-heading); font-weight: 500; border-radius: 10px; }
.nav-button.primary { background: var(--primary); color: var(--primary-foreground); }
.drawer-panel, .report-panel, .export-panel { background: var(--popover); }
.drawer-panel, .report-panel { box-shadow: 18px 0 55px rgb(15 23 42 / 14%); }
.drawer-head h2 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.025em; }
.toc-button:hover, .toc-button.active { background: var(--secondary); color: var(--secondary-foreground); }
.report-card { border-radius: var(--radius-card); }
.report-card:hover { border-color: #c4b5fd; box-shadow: var(--shadow-storyy); }
.report-card.active { border-color: #c4b5fd; background: #faf8ff; }
.report-month { background: var(--primary); border-radius: 10px; }
.report-status { color: #6d28d9; background: #ede9fe; }
.export-panel { border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 24px 64px rgb(15 23 42 / 18%); }
.export-option { border-radius: 12px; }
.export-option:hover { transform: translateY(-2px); border-color: #c4b5fd; box-shadow: var(--shadow-storyy); }
.archive-ribbon, .shortcut-hint { background: var(--primary); }

@media (max-width: 900px) {
  .topbar { margin: 8px 8px 0; }
  .stage { padding: 14px 12px 96px; }
  .cover-visual { margin: 0 18px 18px; }
  .idea-card .index { margin: 0 0 12px; }
}
@media (max-width: 560px) {
  .topbar { height: 64px; border-radius: 14px; }
  .motion-button { display: none; }
  .stage { min-height: calc(100vh - 75px); }
  .slide { border-radius: 12px; }
  .slide h2 { font-size: 2rem; }
  .cover h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .cover-copy { min-height: 400px; padding: 1.5rem; }
  .cover-visual { min-height: 225px; }
  .report-card { grid-template-columns: 44px 1fr; }
  .report-status { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .wave, .cover-orbit { animation: none !important; }
  .idea-card, .idea-card .index { transform: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  body { overflow: visible; background: #fff; }
  .topbar, .progress-track, .report-rail, .controls, .drawer, .report-drawer, .export-popover, .shortcut-hint, .ambient-waves { display: none !important; }
  .stage, #slideMount, .slide { height: auto; min-height: 0; max-height: none; overflow: visible; box-shadow: none; }
  .idea-card .idea-body { max-height: none; opacity: 1; }
}

/* Live niche-neighbor profiles */
.embed-grid { align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.profile-neighbor { min-width: 0; padding: 12px; background: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 7%); }
.profile-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; }
.profile-label h3 { margin: 0; font-size: 1rem; }
.profile-label .handle { margin: 3px 0 0 !important; }
.instagram-badge { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: #a21caf; background: linear-gradient(135deg, #e879f9, #fae8ff); }
.instagram-badge svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-embed-shell { width: 100%; min-height: 430px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.profile-embed-shell .instagram-media { min-width: 0 !important; max-width: none !important; width: 100% !important; margin: 0 !important; }
.profile-embed-shell iframe { width: 100% !important; min-width: 0 !important; }
.embed-fallback { min-height: 430px; display: grid; place-items: center; padding: 24px; background: var(--quiet-wash); }
.embed-fallback a { display: flex; align-items: center; gap: 12px; color: var(--foreground); text-decoration: none; }
.embed-fallback strong, .embed-fallback small { display: block; }
.embed-fallback small { margin-top: 4px; color: var(--muted-foreground); }
.fallback-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--brand-gradient); font-family: var(--font-heading); font-weight: 700; }
.profile-notes { display: grid; gap: 10px; padding: 14px 4px 4px; }
.profile-notes strong { margin: 0 0 3px; font-size: .7rem; }
.profile-notes p { margin: 0; color: var(--muted-foreground); font-size: .86rem; line-height: 1.45; }
.profile-notes .cadence { width: fit-content; padding: 5px 8px; border-radius: 999px; color: #6d28d9; background: #f5f3ff; font-size: .72rem; font-weight: 700; }

/* Platform metadata */
.platform-meta { display: inline-flex; align-items: center; gap: 5px; vertical-align: -.18em; margin: 0 2px; padding: 2px 7px 2px 4px; border: 1px solid var(--border); border-radius: 999px; color: #334155; background: #fff; font-family: var(--font-heading); font-size: .875rem; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.platform-meta svg { flex: 0 0 auto; width: 18px; height: 18px; padding: 3px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.platform-instagram svg { color: #a21caf; background: #fae8ff; }
.platform-facebook svg { color: #1d4ed8; background: #dbeafe; fill: currentColor; stroke: none; }
.platform-tiktok svg { color: #0f172a; background: #f1f5f9; fill: currentColor; stroke: none; }
.platform-meta-title { margin: 0; padding: 5px 10px 5px 5px; font-size: 1rem; }
.platform-meta-title svg { width: 26px; height: 26px; padding: 5px; }
.platform-row h3 { display: flex; align-items: center; }
.schedule-note, .cover-meta, .profile-notes p { color: #475569; }

@media (max-width: 1000px) {
  .embed-grid { grid-template-columns: 1fr; }
  .profile-embed-shell { min-height: 520px; }
  .embed-fallback { min-height: 520px; }
}

@media print {
  .profile-embed-shell { min-height: 0; }
  .embed-fallback { min-height: 240px; }
}
