:root {
  color-scheme: light;
  --ink: #15152f;
  --muted: #706878;
  --line: #272342;
  --paper: #fff4d7;
  --paper-strong: #fff9e9;
  --sage: #00a6a6;
  --moss: #12204a;
  --clay: #ff4f8b;
  --gold: #ffbd2e;
  --sky: #59d6e7;
  --danger: #d73655;
  --violet: #6d5dfc;
  --coral: #ff7f63;
  --shadow: 0 28px 70px rgba(18, 32, 74, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(18, 32, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 74, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 86% 8%, rgba(255, 79, 139, 0.24), transparent 26%),
    linear-gradient(135deg, #fff4d7 0%, #ffe0ba 44%, #c5f2ed 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.is-presenting {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 244, 215, 0.84);
  border-bottom: 3px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(38, 63, 49, 0.25);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--moss);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--clay);
}

main {
  overflow: hidden;
}

[id] {
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 44px clamp(18px, 4vw, 52px) 40px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 5.65rem;
  line-height: 0.9;
  max-width: 900px;
  text-shadow: 5px 5px 0 rgba(89, 214, 231, 0.45);
}

h2 {
  margin-bottom: 18px;
  font-size: 4.2rem;
  line-height: 0.96;
  max-width: 900px;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.lead {
  max-width: 680px;
  color: #393453;
  font-size: 1.28rem;
}

.hero-actions,
.deck-actions,
.editor-actions,
.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-note a {
  color: var(--moss);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  padding: 0 20px;
  background: linear-gradient(135deg, var(--clay), var(--coral));
  color: #fff9e9;
  border-color: var(--line);
  box-shadow: 6px 6px 0 var(--moss);
}

.button.secondary {
  padding: 0 18px;
  background: #fff9e9;
  border-color: var(--line);
  color: var(--moss);
  box-shadow: 4px 4px 0 rgba(18, 32, 74, 0.18);
}

.button.danger {
  padding: 0 18px;
  background: #fff0ed;
  border-color: rgba(215, 54, 85, 0.45);
  color: var(--danger);
}

.button.compact {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.icon-button {
  width: 44px;
  background: #fff9e9;
  border-color: var(--line);
  color: var(--moss);
  font-size: 1.7rem;
}

.hero-media {
  position: relative;
  border: 3px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 249, 233, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 249, 233, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--moss), #281b5b);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  padding: 0;
}

.generated-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.media-caption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.media-caption span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 249, 233, 0.42);
  border-radius: 999px;
  background: rgba(18, 32, 74, 0.5);
  color: #fff9e9;
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.facts-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 3px solid var(--line);
  background: #fff9e9;
}

.facts-band article {
  min-height: 126px;
  padding: clamp(18px, 3vw, 30px);
  border-right: 3px solid var(--line);
}

.facts-band article:last-child {
  border-right: 0;
}

.facts-band span,
.speaker-notes span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts-band strong {
  font-size: 1.42rem;
  line-height: 1.1;
}

.split-section,
.visual-story,
.positioning-section,
.cards-section,
.case-section,
.tools-section,
.agenda-section,
.guardrails-section,
.hands-on-section,
.outcomes-section,
.deck-section,
.manager-section {
  padding: clamp(58px, 8vw, 118px) clamp(18px, 4vw, 52px);
}

.visual-story {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #15152f, #12204a 58%, #281b5b);
  color: #fff9e9;
}

.story-panel {
  position: relative;
  min-height: 660px;
  border: 3px solid #fff9e9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--clay);
}

.story-panel img,
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 47, 0.78), rgba(21, 21, 47, 0.18) 64%, rgba(255, 79, 139, 0.2)),
    linear-gradient(rgba(255, 249, 233, 0.1) 1px, transparent 1px);
  background-size: auto, 100% 9px;
}

.poster-overlay {
  position: absolute;
  z-index: 1;
  left: clamp(22px, 5vw, 70px);
  bottom: clamp(22px, 5vw, 70px);
  max-width: 760px;
}

.poster-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 2px solid #fff9e9;
  border-radius: 999px;
  background: var(--clay);
  color: #fff9e9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poster-overlay h2 {
  color: #fff9e9;
  text-shadow: 5px 5px 0 rgba(255, 79, 139, 0.62);
}

.poster-overlay p:not(.poster-kicker) {
  max-width: 620px;
  color: rgba(255, 249, 233, 0.88);
  font-size: 1.2rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-cloud span {
  padding: 8px 12px;
  border: 2px solid #fff9e9;
  border-radius: 999px;
  background: rgba(89, 214, 231, 0.28);
  color: #fff9e9;
  font-weight: 900;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 18px;
}

.story-card {
  display: grid;
  grid-template-rows: 360px auto;
  border: 3px solid #fff9e9;
  border-radius: 22px;
  overflow: hidden;
  background: #fff9e9;
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--sky);
}

.story-card > div {
  padding: 24px;
}

.story-card h3 {
  font-size: 2.3rem;
}

.story-card p:last-child {
  color: #40395b;
}

.positioning-section {
  background: linear-gradient(135deg, #12204a, #281b5b);
  color: #fffef8;
}

.positioning-section blockquote {
  max-width: 1100px;
  margin: 0 0 28px;
  font-size: 2.1rem;
  font-weight: 850;
  line-height: 1.08;
}

.positioning-section blockquote p {
  margin-bottom: 0;
}

.definition-grid,
.case-grid,
.guardrails-grid,
.stations {
  display: grid;
  gap: 16px;
}

.definition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.definition-grid article {
  min-height: 220px;
  padding: 24px;
  border: 2px solid rgba(255, 249, 233, 0.42);
  border-radius: 18px;
  background: rgba(255, 249, 233, 0.1);
}

.definition-grid span,
.case-type,
.stations span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.positioning-section .definition-grid span {
  color: var(--gold);
}

.definition-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 2.3rem;
  line-height: 1;
}

.definition-grid p {
  color: rgba(255, 254, 248, 0.78);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.copy-stack {
  max-width: 650px;
  color: #40395b;
  font-size: 1.08rem;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 256px;
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff9e9;
  box-shadow: 7px 7px 0 rgba(255, 79, 139, 0.25);
}

.card p {
  color: #40395b;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--gold));
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 900;
}

.section-heading {
  margin-bottom: 30px;
}

.case-section,
.hands-on-section {
  background: #fff9e9;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 520px;
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(89, 214, 231, 0.3);
}

.case-card p,
.case-card li,
.tool-table p,
.guardrails-grid p,
.stations p {
  color: #4c574f;
}

.case-card ul {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding-left: 18px;
}

.tools-section,
.guardrails-section {
  background: #ffe9bd;
}

.tool-table {
  display: grid;
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
}

.tool-table > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) 1fr;
  gap: 1px;
  background: var(--line);
}

.tool-table strong,
.tool-table p {
  margin: 0;
  padding: 22px;
  background: #fff9e9;
}

.guardrails-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guardrails-grid article,
.stations article {
  min-height: 190px;
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff9e9;
}

.guardrails-grid strong,
.stations strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.stations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stations article {
  background: var(--paper);
}

.agenda {
  display: grid;
  gap: 12px;
  max-width: 980px;
  padding: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff9e9;
  box-shadow: 5px 5px 0 rgba(255, 79, 139, 0.2);
}

.agenda time {
  color: var(--clay);
  font-weight: 900;
}

.agenda p,
.outcomes-grid p {
  margin-bottom: 0;
  color: #40395b;
}

.outcomes-section,
.manager-section {
  background: linear-gradient(135deg, #c5f2ed, #ffe9bd);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 3px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.outcomes-grid article {
  min-height: 190px;
  padding: 24px;
  background: #fff9e9;
}

.outcome-link {
  margin-top: 18px;
}

.deck-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.protected-section.is-locked .protected-content,
.protected-section.is-unlocked .protected-gate {
  display: none;
}

.protected-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  padding: 28px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(rgba(21, 21, 47, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 47, 0.06) 1px, transparent 1px),
    #fff9e9;
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: 8px 8px 0 rgba(255, 79, 139, 0.28);
}

.protected-gate h2 {
  margin-bottom: 12px;
}

.protected-gate p {
  max-width: 680px;
  color: #40395b;
  font-size: 1.08rem;
}

.password-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #ffe9bd;
}

.password-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 900;
}

.deck-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  min-height: 720px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: #fff9e9;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide-list {
  max-height: 720px;
  overflow: auto;
  padding: 12px;
  border-right: 3px solid var(--line);
  background: #fff0c9;
}

.slide-thumb {
  width: 100%;
  margin: 0 0 8px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.slide-thumb:hover,
.slide-thumb.is-active {
  background: #fff9e9;
  border-color: var(--line);
}

.slide-thumb span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slide-thumb strong {
  display: block;
  margin-top: 4px;
  line-height: 1.12;
}

.slide-stage {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(21, 21, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 47, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, rgba(255, 79, 139, 0.25), transparent 28%),
    linear-gradient(135deg, #fff9e9 0%, #ffe0ba 48%, #c5f2ed 100%);
  background-size: 30px 30px, 30px 30px, auto, auto;
}

.slide-stage::before,
.slide-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.slide-stage::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -130px;
  background: rgba(255, 79, 139, 0.28);
}

.slide-stage::after {
  width: 310px;
  height: 310px;
  left: -130px;
  bottom: -130px;
  background: rgba(89, 214, 231, 0.28);
}

.slide-stage[data-theme="street"],
.slide-stage[data-theme="cases"] {
  background:
    linear-gradient(rgba(255, 249, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 249, 233, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #15152f 0%, #281b5b 52%, #ff4f8b 140%);
  background-size: 30px 30px, 30px 30px, auto;
  color: #fff9e9;
}

.slide-stage[data-theme="stress"] {
  background:
    linear-gradient(rgba(21, 21, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 47, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #ffe0ba, #fff9e9 44%, #c5f2ed);
  background-size: 30px 30px, 30px 30px, auto;
}

.slide-stage[data-theme="challenge"],
.slide-stage[data-theme="security"] {
  background:
    linear-gradient(rgba(255, 249, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 249, 233, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #12204a, #15152f 54%, #2f6680);
  background-size: 30px 30px, 30px 30px, auto;
  color: #fff9e9;
}

.slide-stage[data-theme="interaction"] {
  background:
    linear-gradient(rgba(21, 21, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 47, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #e2f1cb 0%, #fff9e9 48%, #ffd6c5 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

.slide-stage[data-theme="interaction"]::before {
  background: rgba(89, 214, 231, 0.24);
}

.slide-stage[data-theme="interaction"]::after {
  background: rgba(255, 79, 139, 0.2);
}

.slide-stage[data-photo-mode="cover"] {
  background:
    linear-gradient(90deg, rgba(21, 21, 47, 0.88) 0%, rgba(21, 21, 47, 0.64) 44%, rgba(21, 21, 47, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 79, 139, 0.24), rgba(89, 214, 231, 0.2)),
    var(--slide-photo) center / cover no-repeat;
  color: #fff9e9;
}

.slide-stage[data-photo-mode="cover"]::before,
.slide-stage[data-photo-mode="cover"]::after {
  display: none;
}

.slide-progress {
  position: absolute;
  inset: 0 auto auto 0;
  height: 5px;
  width: 0;
  background: var(--clay);
  transition: width 0.18s ease;
}

.slide-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(28px, 5vw, 66px);
}

.slide-copy {
  min-width: 0;
}

.slide-stage[data-photo-mode="cover"] .slide-content {
  grid-template-columns: minmax(0, 0.88fr);
  align-self: end;
  min-height: 100%;
}

.slide-stage[data-photo-mode="cover"] .slide-copy {
  max-width: 880px;
  padding: clamp(20px, 3vw, 34px);
  border: 3px solid rgba(255, 249, 233, 0.86);
  border-radius: 22px;
  background: rgba(21, 21, 47, 0.64);
  box-shadow: 10px 10px 0 rgba(255, 79, 139, 0.35);
  backdrop-filter: blur(10px);
}

.slide-kicker {
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide-title {
  margin: 12px 0 22px;
  font-size: 4.7rem;
  line-height: 0.9;
  max-width: 980px;
  text-shadow: 4px 4px 0 rgba(89, 214, 231, 0.35);
}

.slide-stage[data-theme="street"] .slide-title,
.slide-stage[data-theme="cases"] .slide-title,
.slide-stage[data-theme="challenge"] .slide-title,
.slide-stage[data-theme="security"] .slide-title,
.slide-stage[data-photo-mode="cover"] .slide-title {
  color: #fff9e9;
  text-shadow: 5px 5px 0 rgba(255, 79, 139, 0.58);
}

.slide-body {
  max-width: 780px;
  color: #40395b;
  font-size: 1.32rem;
}

.slide-stage[data-theme="street"] .slide-body,
.slide-stage[data-theme="cases"] .slide-body,
.slide-stage[data-theme="challenge"] .slide-body,
.slide-stage[data-theme="security"] .slide-body,
.slide-stage[data-photo-mode="cover"] .slide-body {
  color: rgba(255, 249, 233, 0.88);
}

.slide-bullets {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.slide-bullets li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border: 3px solid var(--line);
  border-left: 8px solid var(--clay);
  border-radius: 16px;
  background: rgba(255, 249, 233, 0.82);
  box-shadow: 5px 5px 0 rgba(21, 21, 47, 0.14);
  font-size: 1.18rem;
  font-weight: 700;
}

.slide-bullets li span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff9e9;
  font-size: 0.78rem;
  font-weight: 900;
}

.slide-stage[data-theme="street"] .slide-bullets li,
.slide-stage[data-theme="cases"] .slide-bullets li,
.slide-stage[data-theme="challenge"] .slide-bullets li,
.slide-stage[data-theme="security"] .slide-bullets li,
.slide-stage[data-photo-mode="cover"] .slide-bullets li {
  border-color: #fff9e9;
  background: rgba(255, 249, 233, 0.14);
  color: #fff9e9;
  box-shadow: 5px 5px 0 rgba(255, 79, 139, 0.36);
}

.slide-stage[data-photo-mode="cover"] .slide-bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slide-visual {
  position: relative;
  margin: 0;
  border: 4px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--moss);
  box-shadow: 10px 10px 0 rgba(255, 79, 139, 0.38);
  transform: rotate(1.4deg);
}

.slide-stage[data-theme="challenge"] .slide-visual,
.slide-stage[data-theme="security"] .slide-visual {
  box-shadow: 10px 10px 0 rgba(89, 214, 231, 0.42);
}

.slide-stage[data-theme="interaction"] .slide-visual {
  max-width: 360px;
  justify-self: center;
  border-radius: 18px;
  background: #e2f1cb;
  box-shadow: 10px 10px 0 rgba(89, 214, 231, 0.36);
  transform: rotate(-1deg);
}

.slide-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.slide-stage[data-theme="companion"] .slide-visual img,
.slide-stage[data-theme="next"] .slide-visual img {
  object-fit: contain;
  background: #15152f;
}

.slide-stage[data-theme="interaction"] .slide-visual img {
  height: 560px;
  object-fit: contain;
  background: #e2f1cb;
}

.slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(21, 21, 47, 0.48)),
    linear-gradient(rgba(255, 249, 233, 0.08) 1px, transparent 1px);
  background-size: auto, 100% 8px;
}

.slide-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 2px solid #fff9e9;
  border-radius: 999px;
  background: var(--clay);
  color: #fff9e9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.slide-photo-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 9px 13px;
  border: 2px solid #fff9e9;
  border-radius: 999px;
  background: var(--clay);
  color: #fff9e9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow);
}

.speaker-notes {
  padding: 18px;
  border-left: 3px solid var(--line);
  background: #fff0c9;
  color: #40395b;
}

.speaker-notes p {
  white-space: pre-wrap;
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

.editor,
.library-panel,
.attendance-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff9e9;
}

.attendance-panel {
  margin-bottom: clamp(58px, 8vw, 118px);
}

.attendance-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}

.attendance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.attendance-stats article {
  min-height: 82px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.attendance-stats span {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.attendance-stats small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attendance-search-row {
  max-width: 520px;
  margin-bottom: 14px;
}

.attendance-table-wrap {
  overflow: auto;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff9e9;
}

.attendance-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.attendance-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attendance-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.present {
  background: #dbead8;
  color: #1e4b2b;
}

.status-pill.expected {
  background: #f1e7ca;
  color: #6b4b0f;
}

.status-pill.walk-in {
  background: #e7eef3;
  color: #25495c;
}

.table-action {
  min-height: 32px;
  padding-inline: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: #3f4b44;
  font-size: 0.82rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff9e9;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

#deckJson {
  min-height: 430px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 52px);
  border-top: 3px solid var(--line);
  background: var(--moss);
  color: #fff9e9;
}

.site-footer a {
  color: #fff9e9;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--moss);
  color: #fff9e9;
  box-shadow: var(--shadow);
}

body.is-presenting .site-header,
body.is-presenting main > section:not(.deck-section),
body.is-presenting .deck-heading,
body.is-presenting .slide-list,
body.is-presenting .speaker-notes,
body.is-presenting .site-footer {
  display: none;
}

body.is-presenting .deck-section {
  padding: 0;
}

body.is-presenting .deck-shell {
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

body.is-presenting .slide-stage {
  width: 100vw;
  height: 100vh;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero,
  .split-section,
  .story-grid,
  .definition-grid,
  .case-grid,
  .guardrails-grid,
  .stations,
  .attendance-grid,
  .manager-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    transform: none;
  }

  .story-panel {
    min-height: 560px;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .slide-title {
    font-size: 4rem;
  }

  .slide-content {
    grid-template-columns: 1fr;
  }

  .slide-stage[data-photo-mode="cover"] .slide-content {
    grid-template-columns: 1fr;
  }

  .slide-stage[data-photo-mode="cover"] .slide-bullets {
    grid-template-columns: 1fr;
  }

  .slide-visual img {
    height: 320px;
  }

  .facts-band,
  .cards.three,
  .outcomes-grid,
  .deck-shell {
    grid-template-columns: 1fr;
  }

  .tool-table > div {
    grid-template-columns: 1fr;
  }

  .facts-band article,
  .slide-list,
  .speaker-notes {
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  .slide-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .slide-thumb {
    min-width: 210px;
  }

  .deck-shell {
    min-height: auto;
  }

  .slide-stage {
    min-height: 540px;
  }

  .protected-gate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 3rem;
    line-height: 0.94;
    text-shadow: 3px 3px 0 rgba(89, 214, 231, 0.45);
  }

  h2 {
    font-size: 2.48rem;
  }

  .lead {
    font-size: 1.06rem;
  }

  .positioning-section blockquote {
    font-size: 1.55rem;
  }

  .definition-grid strong {
    font-size: 1.8rem;
  }

  .hero {
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .story-panel {
    min-height: 520px;
  }

  .poster-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .poster-overlay p:not(.poster-kicker) {
    font-size: 1rem;
  }

  .story-card {
    grid-template-rows: 260px auto;
  }

  .story-card h3 {
    font-size: 1.85rem;
  }

  .slide-title {
    font-size: 2.85rem;
  }

  .slide-content {
    padding: 24px;
  }

  .slide-stage[data-photo-mode="cover"] .slide-copy {
    padding: 18px;
    border-radius: 18px;
  }

  .slide-body,
  .slide-bullets li {
    font-size: 1rem;
  }

  .slide-visual {
    transform: none;
  }

  .slide-visual img {
    height: 240px;
  }

  .media-caption {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .deck-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .attendance-stats {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .hero,
  main > section:not(.deck-section),
  .deck-heading,
  .slide-list,
  .speaker-notes,
  .site-footer {
    display: none !important;
  }

  .deck-section {
    padding: 0;
  }

  .deck-shell {
    display: block;
    border: 0;
    box-shadow: none;
  }

  .slide-stage {
    min-height: 100vh;
    page-break-after: always;
  }
}
