/* =================================================================
   OmniRayn Foundry Classroom — shared deck brand system
   Palette + type from Appendix A (warm-limestone / terra-cotta / Inter)
   ================================================================= */

:root {
  /* ---- color ---- */
  --bg:        #faf9f7;   /* warm limestone — page bg            */
  --band:      #f5f2ee;   /* warm panel — section bands          */
  --surface:   #ffffff;   /* card surface                        */
  --ink:       #1d1b18;   /* headings / body                     */
  --ink-2:     #5c574f;   /* secondary text                      */
  --ink-3:     #8a847b;   /* tertiary text                       */
  --accent:    #c25d3a;   /* terra-cotta — the brand color       */
  --accent-d:  #a84e2f;   /* terra-cotta hover                   */
  --sand:      #a08560;   /* secondary accent                    */
  --success:   #3d8c4f;   /* validated / pass                    */
  --hairline:  #e6e1d8;   /* thin warm border                    */
  --hairline-2:#d8d1c4;

  /* ---- type scale (1920×1080) ---- */
  --type-display: 104px;
  --type-title:   66px;
  --type-subtitle:44px;
  --type-lead:    38px;
  --type-body:    32px;
  --type-small:   27px;
  --type-label:   24px;   /* eyebrows / chrome — floor is 24 */

  /* ---- rhythm ---- */
  --pad-top:    92px;
  --pad-bottom: 78px;
  --pad-x:      110px;
  --gap-title:  44px;
  --gap-item:   26px;

  --font: 'Inter', -apple-system, 'SF Pro Display', system-ui, sans-serif;
  --tight: -0.035em;
}

/* ---------------- slide frame ---------------- */
deck-stage:not(:defined) { visibility: hidden; }

section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: 'ss01','cv05','cv11';
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
section.s-band   { background: var(--band); }
section.s-ink    { background: var(--ink);  color: var(--bg); }
section.s-accent { background: var(--accent); color: #fff7f2; }

/* ---------------- top chrome ---------------- */
.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-title);
  flex: 0 0 auto;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: var(--type-label);
  letter-spacing: var(--tight);
}
.wordmark .om { font-weight: 800; color: var(--accent); }
section.s-ink .wordmark .om,
section.s-accent .wordmark .om { color: inherit; }
.wordmark .div { color: var(--ink-3); font-weight: 400; }
.wordmark .mod { color: var(--ink-2); font-weight: 600; }
section.s-ink .wordmark .mod,
section.s-accent .wordmark .mod { color: rgba(255,255,255,.7); }
section.s-ink .wordmark .div,
section.s-accent .wordmark .div { color: rgba(255,255,255,.4); }

/* door tags row */
.doors { display: flex; gap: 12px; }
.door {
  font-size: var(--type-label);
  letter-spacing: .02em;
  padding: 8px 20px;
  border-radius: 980px;
  border: 1.5px solid var(--hairline-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.door.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
section.s-ink .door, section.s-accent .door { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); }
section.s-ink .door.on { border-color: #fff; color: #fff; font-weight: 600; }

/* ---------------- content area ---------------- */
.body-area { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.body-area.center { justify-content: center; }
.body-area.end    { justify-content: flex-end; }

.eyebrow {
  font-size: var(--type-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 22px;
}
section.s-ink .eyebrow, section.s-accent .eyebrow { color: inherit; opacity: .85; }

h1.title {
  font-size: var(--type-title);
  line-height: 1.04;
  letter-spacing: var(--tight);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
h1.display {
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.subtitle {
  font-size: var(--type-subtitle);
  line-height: 1.18;
  letter-spacing: var(--tight);
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
}
.lead {
  font-size: var(--type-lead);
  line-height: 1.34;
  font-weight: 400;
  color: var(--ink-2);
  margin: 0;
  max-width: 24ch;
}
.body { font-size: var(--type-body); line-height: 1.45; color: var(--ink-2); margin: 0; }
.small { font-size: var(--type-small); line-height: 1.4; color: var(--ink-3); }
strong, .accent { color: var(--accent); font-weight: 700; }
section.s-ink strong, section.s-ink .accent { color: #f0a888; }

/* ---------------- badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: .01em;
  padding: 9px 20px;
  border-radius: 980px;
  border: 1.5px solid currentColor;
  white-space: nowrap;
}
.badge .dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.b-hyp   { color: var(--sand); }
.b-comm  { color: var(--accent); }
.b-vitro { color: var(--success); }
.b-lead  { color: var(--ink); }
.b-grounded { color: var(--success); }
.b-class    { color: var(--sand); }
.b-novel    { color: var(--accent); }

/* ---------------- cards ---------------- */
.card {
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 26px;
  padding: 40px 42px;
  box-shadow: 0 2px 0 rgba(29,27,24,.02);
}
.card h3 { font-size: var(--type-subtitle); font-weight: 700; letter-spacing: var(--tight); margin: 0 0 16px; }
.card p  { font-size: var(--type-body); line-height: 1.4; color: var(--ink-2); margin: 0; }
.card .kicker {
  font-size: var(--type-label); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--accent); margin-bottom: 18px;
}

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------- validation ladder ---------------- */
.ladder { display: flex; align-items: stretch; gap: 0; width: 100%; }
.rung {
  flex: 1 1 0;
  position: relative;
  padding: 30px 30px 30px 44px;
  border: 1.5px solid var(--hairline-2);
  border-right: none;
  background: var(--surface);
}
.rung:first-child { border-radius: 20px 0 0 20px; }
.rung:last-child { border-right: 1.5px solid var(--hairline-2); border-radius: 0 20px 20px 0; }
.rung .n { font-size: var(--type-small); font-weight: 800; color: var(--ink-3); }
.rung .lab { font-size: var(--type-body); font-weight: 700; letter-spacing: var(--tight); margin-top: 8px; }
.rung .sub { font-size: var(--type-small); color: var(--ink-3); margin-top: 8px; line-height: 1.3; }
.rung.active { background: #f4ece4; border-color: var(--accent); }
.rung.active .lab { color: var(--accent); }
.rung .arrow {
  position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; z-index: 2;
  background: var(--bg); border: 1.5px solid var(--hairline-2);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; color: var(--ink-3);
}
.rung:last-child .arrow { display: none; }

/* ---------------- big figure ---------------- */
.figure { font-size: 200px; line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; }
.figure.accent { color: var(--accent); }
.figure-label { font-size: var(--type-subtitle); font-weight: 600; color: var(--ink-2); letter-spacing: var(--tight); }

/* ---------------- table ---------------- */
table.map { width: 100%; border-collapse: collapse; font-size: var(--type-body); }
table.map th, table.map td { text-align: left; padding: 22px 26px; vertical-align: top; }
table.map thead th {
  font-size: var(--type-small); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); font-weight: 700; border-bottom: 2px solid var(--hairline-2);
}
table.map tbody td { border-bottom: 1.5px solid var(--hairline); color: var(--ink-2); }
table.map tbody td:first-child { color: var(--ink); font-weight: 600; }

/* ---------------- numbered list ---------------- */
ol.steps, ul.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--gap-item); }
ol.steps li { display: flex; gap: 26px; align-items: flex-start; font-size: var(--type-body); line-height: 1.34; color: var(--ink-2); }
ol.steps li .idx {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: var(--type-small);
  display: grid; place-items: center; letter-spacing: 0;
}
ul.ticks li { display: flex; gap: 22px; align-items: flex-start; font-size: var(--type-body); line-height: 1.36; color: var(--ink-2); }
ul.ticks li::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 14px; border-radius: 50%; background: var(--accent); }
.body-strong { color: var(--ink); font-weight: 600; }

/* ---------------- pill button (visual only) ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--type-body); font-weight: 600;
  padding: 18px 38px; border-radius: 980px;
}
.pill.solid { background: var(--accent); color: #fff; }
.pill.ghost { border: 1.5px solid var(--hairline-2); color: var(--ink); }

/* ---------------- disclaimer slide ---------------- */
.disclaimer {
  font-size: var(--type-lead); line-height: 1.4; color: var(--bg);
  max-width: 30ch; font-weight: 500;
}
.disclaimer .q { color: #f0a888; }

/* ---------------- entrance ---------------- */
/* entrance is transform-only so content stays visible even when the
   animation is paused at frame 0 (hidden iframe, print, reduced-motion). */
@media (prefers-reduced-motion: no-preference) {
  [data-deck-active] .anim { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
  [data-deck-active] .anim:nth-child(2) { animation-delay: .06s; }
  [data-deck-active] .anim:nth-child(3) { animation-delay: .12s; }
  [data-deck-active] .anim:nth-child(4) { animation-delay: .18s; }
  [data-deck-active] .anim:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(20px); } to { transform: none; } }
}

/* slide number stamp */
.stamp {
  position: absolute; right: var(--pad-x); bottom: 38px;
  font-size: var(--type-label); color: var(--ink-3); letter-spacing: .04em;
}
section.s-ink .stamp, section.s-accent .stamp { color: rgba(255,255,255,.45); }
