/* Un-Mission Mission Workshop — Deck v1.0
 * Brand: NBC v1.2 (white-led, ink for emphasis, red full-bleed for crescendo)
 * Tokens source: ../../tokens/css-variables.css and design-system.json
 */

/* ---------- Local fonts (zero-internet bundle) ---------- */

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/Inter-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./assets/fonts/JetBrainsMono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('./assets/fonts/Caveat.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --nbc-white: #FFFFFF;
  --nbc-ink: #0E0E0F;
  --nbc-off-white: #F5F1E8;

  --nbc-text-primary-light: #0A0A0A;
  --nbc-text-body-light: #1C1B19;
  --nbc-text-muted-light: #5C5A53;

  --nbc-text-primary-dark: #F2F1ED;
  --nbc-text-secondary-dark: #B8B5AB;

  --nbc-text-on-red: #FCEEEC;

  --nbc-red: #D9352A;
  --nbc-red-recede-on-light: rgba(217, 53, 42, 0.35);
  --nbc-red-recede-on-dark: rgba(217, 53, 42, 0.25);

  --nbc-hairline-dark: #2A2A2A;
  --nbc-hairline-light: #BDB8AC;
  --nbc-hairline-on-red: rgba(255, 255, 255, 0.3);

  --nbc-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --nbc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --nbc-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
  --nbc-font-handwritten: 'Caveat', 'Comic Sans MS', cursive;
  --nbc-font-jp: 'Yu Gothic', 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', sans-serif;

  --nbc-tracking-display: -0.04em;
  --nbc-tracking-display-tight: -0.05em;
  --nbc-tracking-eyebrow: 0.18em;
  --nbc-tracking-mono: 0.04em;

  --reveal-duration: 400ms;
  --reveal-easing: cubic-bezier(0.2, 0.6, 0.2, 1);
  --photo-fade-duration: 600ms;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--nbc-white);
  overflow: hidden;
  font-family: var(--nbc-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 250ms var(--reveal-easing);
}

body[data-active-surface="ink"] { background: var(--nbc-ink); }
body[data-active-surface="white"] { background: var(--nbc-white); }
body[data-active-surface="red"] { background: var(--nbc-red); }

img, svg {
  display: block;
  max-width: 100%;
}

p { margin: 0; }

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--nbc-red);
  color: var(--nbc-text-on-red);
}

/* ---------- Stage and deck ---------- */

.deck {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  position: relative;
  background: var(--nbc-white);
  overflow: hidden;
  container-type: size;
  container-name: stage;
}

/* ---------- Slide framework ---------- */

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 5cqw 6cqw 8cqw;
  font-size: 1.4cqw;
  line-height: 1.5;
  background: var(--nbc-white);
  color: var(--nbc-text-body-light);
  overflow: hidden;
}

.slide.is-active { display: flex; }

.slide[data-skip="true"] { display: none !important; }

.slide[data-surface="ink"] {
  background: var(--nbc-ink);
  color: var(--nbc-text-primary-dark);
}

.slide[data-surface="red"] {
  background: var(--nbc-red);
  color: var(--nbc-text-on-red);
}

/* Stateful slides (14-17): white in state 1, ink in state 2 */
.slide[data-state-2-surface="ink"][data-state="2"] {
  background: var(--nbc-ink);
  color: var(--nbc-text-primary-dark);
}

/* ---------- Motifs ---------- */

.eyebrow {
  font-family: var(--nbc-font-body);
  font-weight: 500;
  font-size: 0.95cqw;
  letter-spacing: var(--nbc-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--nbc-text-body-light);
  display: inline-flex;
  align-items: center;
  gap: 0.85cqw;
  flex-shrink: 0;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.65cqw;
  height: 0.65cqw;
  min-width: 6px;
  min-height: 6px;
  background: var(--nbc-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.slide[data-surface="ink"] .eyebrow,
.slide[data-state="2"][data-state-2-surface="ink"] .eyebrow {
  color: var(--nbc-text-primary-dark);
}

.slide[data-surface="red"] .eyebrow {
  color: var(--nbc-text-on-red);
}

.slide[data-surface="red"] .eyebrow::before {
  background: var(--nbc-text-on-red);
}

.mono,
.mono-caption {
  font-family: var(--nbc-font-mono);
  font-weight: 400;
  font-size: 1cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-text-muted-light);
}

.slide[data-surface="ink"] .mono,
.slide[data-surface="ink"] .mono-caption,
.slide[data-state="2"][data-state-2-surface="ink"] .mono,
.slide[data-state="2"][data-state-2-surface="ink"] .mono-caption {
  color: var(--nbc-text-secondary-dark);
}

.slide[data-surface="red"] .mono,
.slide[data-surface="red"] .mono-caption {
  color: var(--nbc-text-on-red);
  opacity: 0.85;
}

.mono-label {
  font-family: var(--nbc-font-mono);
  font-weight: 400;
  font-size: 1cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-red);
}

.hr-hairline {
  border: 0;
  border-top: 0.5px solid var(--nbc-hairline-light);
  margin: 0;
}

.slide[data-surface="ink"] .hr-hairline,
.slide[data-state="2"][data-state-2-surface="ink"] .hr-hairline {
  border-top-color: var(--nbc-hairline-dark);
}

/* ---------- Headlines ---------- */

.h-display,
.h-hero,
.h-section,
.h-large,
.h-mid {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  letter-spacing: var(--nbc-tracking-display);
  line-height: 0.95;
  color: var(--nbc-text-primary-light);
  margin: 0;
}

.slide[data-surface="ink"] .h-display,
.slide[data-surface="ink"] .h-hero,
.slide[data-surface="ink"] .h-section,
.slide[data-surface="ink"] .h-large,
.slide[data-surface="ink"] .h-mid,
.slide[data-state="2"][data-state-2-surface="ink"] .h-display,
.slide[data-state="2"][data-state-2-surface="ink"] .h-large,
.slide[data-state="2"][data-state-2-surface="ink"] .h-mid {
  color: var(--nbc-text-primary-dark);
}

.slide[data-surface="red"] .h-display,
.slide[data-surface="red"] .h-hero,
.slide[data-surface="red"] .h-large {
  color: var(--nbc-text-on-red);
}

.h-hero { font-size: 6.2cqw; letter-spacing: var(--nbc-tracking-display-tight); }
.h-display { font-size: 9.5cqw; letter-spacing: var(--nbc-tracking-display-tight); line-height: 0.92; }
.h-section { font-size: 11cqw; letter-spacing: var(--nbc-tracking-display-tight); line-height: 0.9; }
.h-large { font-size: 4.4cqw; }
.h-mid { font-size: 3cqw; }

.subtitle {
  font-size: 1.5cqw;
  line-height: 1.4;
  color: var(--nbc-text-body-light);
  font-weight: 400;
  max-width: 38ch;
}

.slide[data-surface="ink"] .subtitle,
.slide[data-state="2"][data-state-2-surface="ink"] .subtitle {
  color: var(--nbc-text-primary-dark);
}

.slide[data-surface="red"] .subtitle {
  color: var(--nbc-text-on-red);
}

.body-text {
  font-size: 1.3cqw;
  line-height: 1.5;
  max-width: 50ch;
  color: var(--nbc-text-body-light);
}

.slide[data-surface="ink"] .body-text,
.slide[data-state="2"][data-state-2-surface="ink"] .body-text {
  color: var(--nbc-text-primary-dark);
}

.slide[data-surface="red"] .body-text {
  color: var(--nbc-text-on-red);
}

/* ---------- Reveals (default: hidden, slide-up + fade in) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.2cqw);
  transition: opacity var(--reveal-duration) var(--reveal-easing),
              transform var(--reveal-duration) var(--reveal-easing);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Photo crossfade reveal (state-2 photos on slides 14-17) */
.photo-fade {
  opacity: 0;
  transition: opacity var(--photo-fade-duration) var(--reveal-easing);
}

.photo-fade.is-visible {
  opacity: 1;
}

/* ---------- Standard slide footer ---------- */

.slide-footer {
  position: absolute;
  left: 6cqw;
  right: 6cqw;
  bottom: 2.5cqw;
  padding-top: 1cqw;
  border-top: 0.5px solid var(--nbc-hairline-light);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2cqw;
  font-family: var(--nbc-font-mono);
  font-size: 0.82cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-text-muted-light);
  z-index: 10;
  pointer-events: none;
}

.footer-mark {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 1.05cqw;
  letter-spacing: -0.02em;
  color: var(--nbc-text-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4cqw;
}

.footer-mark::after {
  content: "";
  width: 0.5cqw;
  height: 0.5cqw;
  min-width: 5px;
  min-height: 5px;
  background: var(--nbc-red);
  border-radius: 50%;
  display: inline-block;
}

.footer-tag {
  text-align: center;
}

.footer-num {
  text-align: right;
}

/* Ink surface variant */
.slide[data-surface="ink"] .slide-footer,
.slide[data-state="2"][data-state-2-surface="ink"] .slide-footer {
  border-top-color: var(--nbc-hairline-dark);
  color: var(--nbc-text-secondary-dark);
}

.slide[data-surface="ink"] .footer-mark,
.slide[data-state="2"][data-state-2-surface="ink"] .footer-mark {
  color: var(--nbc-text-primary-dark);
}

/* ---------- Common slide layouts ---------- */

.slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  flex-shrink: 0;
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2cqw;
  padding: 3cqw 0;
}

.slide-bottom {
  flex-shrink: 0;
}

/* ---------- 01. Cover ---------- */

.cover .h-hero {
  margin-top: 1cqw;
  max-width: 16ch;
}

.cover .subtitle {
  margin-top: 1.5cqw;
}

/* ---------- 02. Agenda ---------- */

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.5px solid var(--nbc-hairline-light);
  width: 70%;
  max-width: 800px;
}

.agenda-list li {
  display: grid;
  grid-template-columns: 5cqw 1fr;
  align-items: baseline;
  gap: 1.5cqw;
  padding: 0.95cqw 0.6cqw;
  border-bottom: 0.5px solid var(--nbc-hairline-light);
}

.agenda-list .agenda-num {
  font-family: var(--nbc-font-mono);
  font-size: 0.95cqw;
  color: var(--nbc-red);
  letter-spacing: var(--nbc-tracking-mono);
}

.agenda-list .agenda-title {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 1.45cqw;
  letter-spacing: -0.02em;
  color: var(--nbc-text-primary-light);
}

/* ---------- Agenda as cards (slide 02) ---------- */

.agenda-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1cqw;
  width: 100%;
  max-width: 1500px;
  margin-top: 1cqw;
}

.agenda-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7cqw;
  padding: 1.4cqw 1.4cqw 1.6cqw;
  border-top: 1.2px solid var(--nbc-red);
  border-left: 0.5px solid var(--nbc-hairline-light);
  border-right: 0.5px solid var(--nbc-hairline-light);
  border-bottom: 0.5px solid var(--nbc-hairline-light);
  background: var(--nbc-white);
  cursor: pointer;
  transition: transform 200ms var(--reveal-easing),
              box-shadow 200ms var(--reveal-easing),
              border-color 200ms var(--reveal-easing);
  min-height: 7.5cqw;
}

.agenda-card:hover {
  transform: translateY(-0.3cqw);
  box-shadow: 0 0.6cqw 1.5cqw rgba(0, 0, 0, 0.08);
  border-left-color: #8a8578;
  border-right-color: #8a8578;
  border-bottom-color: #8a8578;
}

.agenda-card .agenda-num {
  font-family: var(--nbc-font-mono);
  font-size: 0.85cqw;
  color: var(--nbc-red);
  letter-spacing: var(--nbc-tracking-mono);
}

.agenda-card .agenda-title {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 1.35cqw;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--nbc-text-primary-light);
  transition: color 200ms var(--reveal-easing);
}

.agenda-card:hover .agenda-title {
  color: var(--nbc-red);
}

/* ---------- 03 / 05 Two-column with photo ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  flex: 1;
  align-items: center;
}

.two-col .col-text {
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
  justify-content: center;
}

.two-col .col-photo {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

/* ---------- 04. Why-listen with background photo ---------- */

.bg-photo-layout {
  position: absolute;
  inset: 0;
}

.bg-photo-layout .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.bg-photo-layout .bg-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 5cqw 6cqw 8cqw;
  gap: 2cqw;
}

.numbered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.5px solid var(--nbc-hairline-dark);
  width: 75%;
  max-width: 1200px;
}

.slide[data-surface="white"] .numbered-list,
.slide:not([data-surface]) .numbered-list {
  border-top-color: var(--nbc-hairline-light);
}

.numbered-list li {
  display: grid;
  grid-template-columns: 5cqw 1fr;
  align-items: baseline;
  gap: 1.5cqw;
  padding: 1.3cqw 0;
  border-bottom: 0.5px solid var(--nbc-hairline-dark);
}

.slide[data-surface="white"] .numbered-list li,
.slide:not([data-surface]) .numbered-list li {
  border-bottom-color: var(--nbc-hairline-light);
}

.numbered-list .num {
  font-family: var(--nbc-font-mono);
  font-size: 1.05cqw;
  color: var(--nbc-red);
  letter-spacing: var(--nbc-tracking-mono);
}

.numbered-list .title {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 1.7cqw;
  letter-spacing: -0.02em;
}

.slide[data-surface="ink"] .numbered-list .title {
  color: var(--nbc-text-primary-dark);
}

/* ---------- 06. Where I am now ---------- */

.where-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5cqw;
  flex: 1;
  align-items: center;
}

.where-now .col-text {
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
}

.where-now .col-photo img {
  width: 100%;
  height: 80%;
  max-height: 70cqh;
  object-fit: cover;
  border-radius: 2px;
}

.where-now .col-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ---------- 07 / 09 / 19 / 25 / 28 / 31 Section break ---------- */

.section-break {
  overflow: hidden;
  padding: 6cqw;
}

.section-break .racing-number {
  position: absolute;
  top: -2cqw;
  right: -3cqw;
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 38cqw;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--nbc-red-recede-on-light);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.slide[data-surface="ink"] .section-break .racing-number {
  color: var(--nbc-red-recede-on-dark);
}

.section-break .h-section {
  position: relative;
  z-index: 2;
  margin-top: 6cqw;
}

.section-break .eyebrow,
.section-break .mono-caption {
  position: relative;
  z-index: 3;
}

.section-break .mono-caption {
  margin-top: 1.5cqw;
}

/* ---------- 08. Three Foundations - Ferrari ---------- */

.ferrari-layout {
  position: absolute;
  inset: 0;
}

.ferrari-layout .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.ferrari-layout .ferrari-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5cqw 6cqw 8cqw;
  gap: 2cqw;
}

.ferrari-foundations {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.5px solid var(--nbc-hairline-dark);
  margin-top: 2cqw;
}

.ferrari-foundations li {
  display: grid;
  grid-template-columns: 8cqw 1fr;
  gap: 2cqw;
  align-items: baseline;
  padding: 1.4cqw 0;
  border-bottom: 0.5px solid var(--nbc-hairline-dark);
}

.ferrari-foundations .num {
  font-family: var(--nbc-font-mono);
  color: var(--nbc-red);
  font-size: 1.1cqw;
  letter-spacing: var(--nbc-tracking-mono);
}

.ferrari-foundations .body {
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
}

.ferrari-foundations .name {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 2.2cqw;
  letter-spacing: -0.02em;
  color: var(--nbc-text-primary-dark);
}

/* ---------- 10. 使命 character reveal ---------- */

.shimei {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  align-items: stretch;
}

.shimei-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4cqw;
  padding: 2cqw 0;
}

.shimei-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqw;
}

.shimei-char {
  font-family: var(--nbc-font-jp);
  font-weight: 400;
  font-size: 18cqw;
  line-height: 1;
  color: var(--nbc-text-primary-light);
}

.shimei-gloss {
  font-family: var(--nbc-font-mono);
  font-size: 1.1cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-red);
}

.shimei-equation {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 2.6cqw;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--nbc-text-primary-light);
}

/* ---------- 11. Mission - my definition ---------- */

.definition {
  display: flex;
  flex-direction: column;
  gap: 2.5cqw;
  flex: 1;
  justify-content: center;
}

.definition-statement .h-large {
  max-width: 26ch;
}

.definition-secondary {
  border-top: 0.5px solid var(--nbc-hairline-dark);
  padding-top: 2cqw;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  max-width: 60ch;
}

/* ---------- 12. Built to Last - setup ---------- */

.btl-setup {
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  flex: 1;
  justify-content: center;
  max-width: 70%;
}

.btl-setup .h-mid { max-width: 28ch; }

/* ---------- 13. Built to Last - graph ---------- */

.btl-graph-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.5cqw;
  padding-top: 1.5cqw;
  min-height: 0;
}

.btl-graph {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.btl-graph svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

.handwritten {
  font-family: var(--nbc-font-handwritten);
  fill: #E8B842;
  font-size: 28px;
  font-weight: 700;
}

/* SVG path animation */
.btl-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}

.btl-line.draw { animation-fill-mode: forwards; }

/* "Most companies" — quiet, dark, thin, jagged data-like line */
.btl-flat {
  stroke: #2A2A2A;
  stroke-width: 2;
  opacity: 0.85;
  stroke-linejoin: miter;
  stroke-miterlimit: 8;
}

.btl-flat.draw {
  animation: btl-draw 900ms var(--reveal-easing) forwards;
}

/* "Built to Last" — brand red, owns the moment */
.btl-rising {
  stroke: var(--nbc-red);
  stroke-width: 4;
}

.btl-rising.draw {
  animation: btl-draw 1300ms cubic-bezier(0.55, 0, 0.95, 0.45) forwards;
}

@keyframes btl-draw {
  to { stroke-dashoffset: 0; }
}

/* Endpoint dot on rising line — fades + scales in with the line draw */
.btl-endpoint {
  opacity: 0;
  transform-origin: 1175px 15px;
  transform: scale(0);
  transition: opacity 350ms var(--reveal-easing) 1000ms,
              transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 1000ms;
}

.btl-endpoint.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- 14 / 15 / 17 Brand-guess (morph state-1 → state-2) ---------- */

.brand-guess {
  padding: 0 !important;
}

.brand-guess-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms var(--reveal-easing);
  z-index: 1;
}

.brand-guess[data-state="2"] .brand-guess-bg {
  opacity: 1;
}

/* Subtle dark gradient on the photo for legibility */
.brand-guess[data-state="2"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--reveal-easing);
}

.brand-guess[data-state="2"]::after { opacity: 1; }

.brand-guess-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5cqw 6cqw 8cqw;
  gap: 2cqw;
}

.brand-guess-stage {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.brand-guess-quote {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 7cqw;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--nbc-text-primary-light);
  max-width: 14ch;
  margin: 0 0 3cqw 0;
  transition: font-size 700ms var(--reveal-easing),
              max-width 700ms var(--reveal-easing),
              color 700ms var(--reveal-easing),
              text-shadow 700ms var(--reveal-easing),
              margin-bottom 700ms var(--reveal-easing),
              line-height 700ms var(--reveal-easing);
}

/* Long-quote variant (slide 15) — start smaller */
.brand-guess--long .brand-guess-quote {
  font-size: 4.4cqw;
  max-width: 22ch;
  line-height: 1.05;
}

.brand-guess[data-state="2"] .brand-guess-quote {
  font-size: 1.7cqw;
  max-width: 38ch;
  line-height: 1.4;
  color: var(--nbc-text-primary-dark);
  text-shadow: 0 0.15cqw 0.5cqw rgba(0,0,0,0.65), 0 0 1.2cqw rgba(0,0,0,0.4);
  margin-bottom: 1.2cqw;
}

.brand-guess--long[data-state="2"] .brand-guess-quote {
  font-size: 1.6cqw;
  max-width: 42ch;
}

/* Inline second-sentence reveal on slide 17 — fades in at step 1 (still state 1) */
.brand-guess-quote-2 {
  display: inline-block;
}

.brand-guess-name {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 0;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--nbc-text-primary-dark);
  text-shadow: 0 0.3cqw 0.9cqw rgba(0,0,0,0.7), 0 0 1.6cqw rgba(0,0,0,0.4);
  opacity: 0;
  transition: font-size 700ms var(--reveal-easing) 100ms,
              opacity 700ms var(--reveal-easing) 100ms;
}

.brand-guess[data-state="2"] .brand-guess-name {
  font-size: 9.5cqw;
  opacity: 1;
}

/* Slightly smaller for the long Cirque name */
.brand-guess--long[data-state="2"] .brand-guess-name {
  font-size: 6.4cqw;
}

/* ---------- (legacy) 14 / 15 / 17 Guess and reveal ---------- */

.guess-reveal .state-1 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 5cqw 6cqw 8cqw;
  gap: 2cqw;
  transition: opacity 600ms var(--reveal-easing);
  z-index: 2;
}

.guess-reveal[data-state="2"] .state-1 {
  opacity: 0;
  pointer-events: none;
}

.guess-reveal .state-2 {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--reveal-easing);
  z-index: 1;
}

.guess-reveal[data-state="2"] .state-2 {
  opacity: 1;
  z-index: 3;
}

.guess-reveal .state-2 .full-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guess-reveal .state-2 .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5cqw 6cqw 8cqw;
  color: var(--nbc-text-primary-dark);
}

.guess-reveal .state-2 .small-headline {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 3cqw;
  letter-spacing: -0.025em;
  color: var(--nbc-text-primary-dark);
  max-width: 40ch;
}

.guess-reveal .big-headline {
  font-size: 7cqw;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-top: auto;
  margin-bottom: 3cqw;
}

.guess-reveal .state-2 .photo-overlay .mono {
  color: var(--nbc-text-secondary-dark);
}

/* ---------- 16. Coke vs Pepsi (layered) ---------- */

.cokepepsi {
  padding: 0 !important;
}

.cokepepsi-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--nbc-white);
  opacity: 0;
  transition: opacity 600ms var(--reveal-easing);
  z-index: 1;
}

.cokepepsi[data-state="2"] .cokepepsi-bg {
  opacity: 1;
}

.cokepepsi-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5cqw 6cqw 8cqw;
  gap: 2cqw;
}

.cokepepsi-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.5fr 1fr;
  gap: 1cqw;
  flex: 1;
  align-items: center;
  padding: 2cqw 0;
}

.cokepepsi-coke,
.cokepepsi-pepsi {
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  padding: 1.5cqw 1.8cqw;
  border-radius: 3px;
  transition: background 400ms var(--reveal-easing), box-shadow 400ms var(--reveal-easing);
}

/* In state 2, give text panels a translucent backdrop so they stay legible over the cans image */
.cokepepsi[data-state="2"] .cokepepsi-coke,
.cokepepsi[data-state="2"] .cokepepsi-pepsi {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cokepepsi-coke .h-hero {
  font-size: 4.6cqw;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 12ch;
}

.cokepepsi-pepsi .pepsi-text {
  font-size: 1.15cqw;
  line-height: 1.5;
  color: var(--nbc-text-body-light);
  max-width: 38ch;
}

.cokepepsi-vs {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 6cqw;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--nbc-text-muted-light);
  align-self: center;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 400ms var(--reveal-easing);
}

.cokepepsi[data-state="2"] .cokepepsi-vs {
  opacity: 0;
}

/* State 1 / state 2 mono caption toggle */
.cokepepsi-mono--s2 { display: none; }
.cokepepsi[data-state="2"] .cokepepsi-mono--s1 { display: none; }
.cokepepsi[data-state="2"] .cokepepsi-mono--s2 { display: inline-flex; }

/* ---------- 18. More examples list ---------- */

.examples-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4cqw;
  border-top: 0.5px solid var(--nbc-hairline-light);
  padding-top: 1.2cqw;
}

.examples-list li {
  display: flex;
  align-items: baseline;
  gap: 2cqw;
  padding-bottom: 0.45cqw;
  border-bottom: 0.5px solid var(--nbc-hairline-light);
}

.examples-list .item {
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 1.65cqw;
  letter-spacing: -0.025em;
  color: var(--nbc-text-primary-light);
}

.examples-list .attr {
  font-family: var(--nbc-font-mono);
  font-size: 0.85cqw;
  color: var(--nbc-text-muted-light);
  letter-spacing: var(--nbc-tracking-mono);
}

/* ---------- 20. Alignment tool (full-image variant) ---------- */

.alignment-slide {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.5cqw;
  flex: 1;
  min-height: 0;
}

.alignment-header {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
}

.alignment-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.alignment-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}

.alignment-slide .footnote {
  font-family: var(--nbc-font-mono);
  font-size: 0.95cqw;
  color: var(--nbc-text-muted-light);
  letter-spacing: var(--nbc-tracking-mono);
}

/* ---------- 21-24, 26, 27 Tool / What-isnt cards ---------- */

.tool-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5cqw;
  flex: 1;
  align-items: stretch;
  padding-top: 1.5cqw;
}

.tool-card .col-text {
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  justify-content: center;
}

.tool-num {
  font-family: var(--nbc-font-mono);
  color: var(--nbc-red);
  font-size: 1.1cqw;
  letter-spacing: var(--nbc-tracking-mono);
}

.tool-card .h-large {
  max-width: 22ch;
  font-size: 3.6cqw;
}

.tool-card .body-text {
  font-size: 1.2cqw;
  max-width: 44ch;
}

.tool-card .quote {
  font-family: var(--nbc-font-body);
  font-style: italic;
  font-size: 1.35cqw;
  line-height: 1.5;
  color: var(--nbc-text-body-light);
  max-width: 48ch;
}

.tool-card .col-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card .col-photo img {
  width: 100%;
  height: 100%;
  max-height: 65cqh;
  object-fit: cover;
  border-radius: 2px;
}

.tool-card .col-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--nbc-hairline-light);
  background: #FAFAF7;
  color: var(--nbc-text-muted-light);
  font-family: var(--nbc-font-mono);
  font-size: 1cqw;
}

.tool-card .footnote {
  font-family: var(--nbc-font-mono);
  font-size: 0.95cqw;
  color: var(--nbc-text-muted-light);
  letter-spacing: var(--nbc-tracking-mono);
  margin-top: 1cqw;
}

/* ---------- 29 / 30 / 36 Full-bleed photo on ink ---------- */

.full-photo-slide .full-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.full-photo-slide .full-photo-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5cqw 6cqw;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.05) 65%, rgba(0,0,0,0.65) 100%);
}

.full-photo-slide .full-photo-overlay .eyebrow {
  color: var(--nbc-text-primary-dark);
}

.full-photo-slide .full-photo-overlay .mono {
  color: var(--nbc-text-secondary-dark);
}

.full-photo-slide .h-large.realization {
  font-size: 5.2cqw;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 14ch;
  margin-top: auto;
  margin-bottom: 2cqw;
  color: var(--nbc-text-primary-dark);
}

.full-photo-slide .photo-bottom {
  margin-top: auto;
}

/* ---------- 29. Somer intro (monochrome soaring) ---------- */

.full-photo-slide[id="slide-29"] .full-photo-bg {
  filter: grayscale(1) saturate(0) brightness(0.85);
}

/* ---------- 36. Notebook (2-col: photo left, headline right) ---------- */

.notebook-slide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4cqw;
  flex: 1;
  align-items: center;
  min-height: 0;
}

.notebook-photo {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.notebook-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 1cqw 2.5cqw rgba(0, 0, 0, 0.12);
}

.notebook-text {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
}

.notebook-text .h-mid {
  max-width: 12ch;
}

@media (max-width: 720px) {
  .notebook-slide {
    grid-template-columns: 1fr;
    gap: 2cqw;
  }
}

/* ---------- 30. Somer layered (play structure centered, full-height, monochrome, slides up over soaring) ---------- */

.somer-layered {
  padding: 0 !important;
}

.somer-layered .somer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  z-index: 1;
  transition: filter 600ms var(--reveal-easing);
}

.somer-layered[data-state="2"] .somer-bg {
  filter: brightness(1);
}

.somer-layered .somer-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 4cqw 6cqw 6cqw;
  gap: 1cqw;
}

.somer-layered .slide-top .eyebrow {
  color: var(--nbc-text-primary-dark);
}

.somer-floating-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) saturate(0);
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.6);
  z-index: 2;
  /* default reveal state — hidden, slid down */
  opacity: 0;
  transform: translate(-50%, 4cqw);
  transition: opacity 600ms var(--reveal-easing), transform 600ms var(--reveal-easing);
}

.somer-floating-photo.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* On state 2 the play structure (scary memory) lifts away to reveal the bright soaring photo */
.somer-layered[data-state="2"] .somer-floating-photo {
  opacity: 0;
  transform: translate(-50%, -2cqw);
  pointer-events: none;
}

/* Eyebrow & realization sit on top of the photo via overlay z-index 3 */
.somer-layered .somer-overlay {
  z-index: 3;
}

.somer-layered .slide-top .eyebrow {
  text-shadow: 0 0.2cqw 0.6cqw rgba(0, 0, 0, 0.55);
}

.somer-realization-band {
  position: absolute;
  left: 6cqw;
  bottom: 8cqw;
  max-width: 32cqw;
  z-index: 3;
}

.somer-realization-band .realization {
  font-size: 3.4cqw;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--nbc-text-primary-dark);
  text-shadow: 0 0.25cqw 0.6cqw rgba(0, 0, 0, 0.75), 0 0 1.6cqw rgba(0, 0, 0, 0.55);
}

/* ---------- 32-35 Your turn prompt slides ---------- */

.prompts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.5px solid var(--nbc-hairline-light);
  width: 90%;
  max-width: 1500px;
}

.prompts-list li {
  display: grid;
  grid-template-columns: 4cqw 1fr;
  gap: 2cqw;
  padding: 1.6cqw 0;
  border-bottom: 0.5px solid var(--nbc-hairline-light);
  align-items: baseline;
}

.prompts-list .num {
  font-family: var(--nbc-font-mono);
  font-size: 1.1cqw;
  color: var(--nbc-red);
  letter-spacing: var(--nbc-tracking-mono);
}

.prompts-list .text {
  font-family: var(--nbc-font-body);
  font-size: 1.4cqw;
  line-height: 1.5;
  color: var(--nbc-text-body-light);
  max-width: 60ch;
}

.lived-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.5px solid var(--nbc-hairline-light);
  width: 80%;
  max-width: 1300px;
}

.lived-list li {
  padding: 1.5cqw 0;
  border-bottom: 0.5px solid var(--nbc-hairline-light);
  font-family: var(--nbc-font-display);
  font-weight: 900;
  font-size: 2.4cqw;
  letter-spacing: -0.025em;
  color: var(--nbc-text-primary-light);
}

/* ---------- 37. Now what - close ---------- */

.close-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
}

.close-list li {
  font-size: 1.4cqw;
  line-height: 1.55;
  color: var(--nbc-text-body-light);
  max-width: 50ch;
  position: relative;
  padding-left: 1.6cqw;
}

.close-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65cqw;
  width: 0.55cqw;
  height: 0.55cqw;
  background: var(--nbc-red);
  border-radius: 50%;
}

/* ---------- 38. Closing - red full-bleed ---------- */

.closing-slide {
  padding: 6cqw;
}

.closing-slide .h-display {
  margin-top: 3cqw;
  margin-bottom: 2cqw;
  max-width: 14ch;
}

.closing-slide .subtitle {
  color: var(--nbc-text-on-red);
  font-size: 1.5cqw;
  margin-bottom: auto;
  max-width: 36ch;
}

.closing-brandline {
  font-family: var(--nbc-font-mono);
  font-size: 1.1cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-text-on-red);
  opacity: 0.85;
  margin-bottom: 1.5cqw;
}

.closing-contact {
  border-top: 0.5px solid var(--nbc-hairline-on-red);
  padding-top: 1.5cqw;
  font-family: var(--nbc-font-mono);
  font-size: 1.1cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-text-on-red);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5cqw 1.5cqw;
}

.closing-contact span { opacity: 0.9; }

.closing-restart {
  display: inline-flex;
  align-items: center;
  margin-top: 2cqw;
  padding: 0.7cqw 1.1cqw;
  font-family: var(--nbc-font-mono);
  font-size: 0.95cqw;
  letter-spacing: var(--nbc-tracking-mono);
  color: var(--nbc-text-on-red);
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms var(--reveal-easing), border-color 200ms var(--reveal-easing);
  align-self: flex-start;
}

.closing-restart:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

/* ---------- Slide-to-slide view transitions (Chrome/Edge/Safari) ---------- */

/* Root crossfade: subtle 280ms */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Footer continuity — only the active slide's footer elements get a transition
   name, so the API can morph the same logical element across slides. */
.slide.is-active .footer-mark { view-transition-name: nbc-footer-mark; }
.slide.is-active .footer-tag  { view-transition-name: nbc-footer-tag; }
.slide.is-active .footer-num  { view-transition-name: nbc-footer-num; }

/* Named transitions get a slightly snappier morph */
::view-transition-old(nbc-footer-mark),
::view-transition-new(nbc-footer-mark),
::view-transition-old(nbc-footer-tag),
::view-transition-new(nbc-footer-tag),
::view-transition-old(nbc-footer-num),
::view-transition-new(nbc-footer-num) {
  animation-duration: 240ms;
}

/* Disable transitions in print mode */
@media print {
  ::view-transition-group(*) { animation: none !important; }
}

/* ---------- Print mode ---------- */

body.print-mode {
  overflow: visible;
  background: var(--nbc-white);
}

body.print-mode .deck {
  width: 100%;
  height: auto;
  display: block;
}

body.print-mode .stage {
  width: 100%;
  height: auto;
  position: static;
  display: block;
}

body.print-mode .slide {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  page-break-after: always;
  break-after: page;
  margin: 0;
}

body.print-mode .slide[data-skip="true"] { display: none !important; }


body.print-mode .reveal {
  opacity: 1;
  transform: none;
}

body.print-mode .photo-fade {
  opacity: 1;
}

body.print-mode .guess-reveal .state-1 {
  display: none;
}

body.print-mode .guess-reveal .state-2 {
  opacity: 1;
  position: relative;
}

body.print-mode .btl-line {
  stroke-dashoffset: 0 !important;
}

body.print-mode .stage,
body.print-mode .slide[data-state-2-surface="ink"] {
  background: var(--nbc-white);
}

@page {
  size: 1920px 1080px;
  margin: 0;
}

@media print {
  html, body { background: var(--nbc-white); overflow: visible; }
  .stage { width: 100%; height: auto; }
  .slide {
    position: relative;
    display: flex;
    aspect-ratio: 16 / 9;
    page-break-after: always;
    break-after: page;
  }
  .slide[data-skip="true"] { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .guess-reveal .state-1 { display: none; }
  .guess-reveal .state-2 { opacity: 1; position: relative; }
  .btl-line { stroke-dashoffset: 0 !important; }
}
