/* ============================================================
   TORII — soul-register slide layouts
   The threshold between speaker and audience.
   Default register: warm bone paper, sumi ink, champagne accent.

   All type / color / spacing comes from tokens. Decks should use
   these classes — inline style is reserved for one-off layout
   overrides that genuinely don't repeat. Editing tokens.css must
   propagate to every slide without touching the HTML.
   ============================================================ */

@import url('base.css');

deck-stage { background: #0A0907; }

deck-stage section.slide {
  width: 1920px;
  height: 1080px;
  background: var(--bone);
  color: var(--sumi);
  padding: 96px 128px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

/* Subtle paper grain */
deck-stage section.slide::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 155, 110, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 90, 44, 0.03) 0%, transparent 50%);
}

.slide__chrome {
  position: absolute;
  bottom: 56px;
  left: 128px;
  right: 128px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--sumi-3);
  z-index: 2;
}
.slide__chrome--inv { color: rgba(232, 228, 218, 0.5); }

.slide__rule {
  position: absolute;
  top: 96px; left: 128px; right: 128px;
  height: 1px;
  background: var(--sumi);
  z-index: 1;
}

/* — Torii crossbar mark (top-left) — */
.torii-mark {
  position: absolute;
  top: 56px; left: 128px;
  width: 32px; height: 14px;
  z-index: 2;
}
.torii-mark::before {
  content: ""; position: absolute;
  top: 0; left: -4px; right: -4px;
  height: 2px; background: var(--copper);
}
.torii-mark::after {
  content: ""; position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px; background: var(--copper);
}
.torii-mark__legs {
  position: absolute;
  top: 8px; bottom: 0;
  width: 1.5px; background: var(--copper);
}
.torii-mark__legs:first-of-type { left: 4px; }
.torii-mark__legs:last-of-type  { right: 4px; }

/* ────────── TITLE ────────── */
.slide--title {
  justify-content: flex-end;
  padding-bottom: 152px;
}
.slide--title .eyebrow { font-size: 16px; margin-bottom: 40px; color: var(--copper); }
.slide--title .display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 192px;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--sumi);
  max-width: 1500px;
}
.slide--title .display .accent { color: var(--champagne-deep); font-style: italic; }
.slide--title .deck-meta {
  margin-top: 56px;
  display: flex;
  gap: 56px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--sumi-3);
}
.slide--title .deck-meta strong { color: var(--sumi); font-weight: 400; }

/* ────────── SECTION (shou-sugi-ban) ────────── */
.slide--section {
  background: var(--shou);
  color: var(--bone);
  justify-content: center;
  position: relative;
}
.slide--section::before {
  content: "";
  position: absolute; inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 3px,
      rgba(232, 228, 218, 0.012) 3px, rgba(232, 228, 218, 0.012) 4px
    );
  pointer-events: none;
}
.slide--section .eyebrow {
  color: var(--champagne);
  font-size: 16px;
  margin-bottom: 40px;
}
.slide--section .h1 {
  font-family: var(--font-display);
  font-size: 144px;
  line-height: 0.98;
  font-weight: 300;
  font-style: italic;
  color: var(--bone);
  letter-spacing: -0.02em;
  max-width: 1500px;
  position: relative;
  z-index: 1;
}
.slide--section .lead {
  margin-top: 40px;
  color: rgba(232, 228, 218, 0.65);
  max-width: 1100px;
  font-size: 26px;
  font-style: normal;
  font-family: var(--font-body);
  line-height: 1.5;
  font-weight: 300;
  position: relative; z-index: 1;
}
.slide--section .slide__rule { background: var(--champagne); }

/* ────────── HEADING + BODY ────────── */
.slide__heading { margin-top: 48px; margin-bottom: 72px; position: relative; z-index: 1; }
.slide__heading .eyebrow { font-size: 14px; margin-bottom: 20px; }
.slide__heading .h1 {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 1500px;
}
.slide__heading .h1 .italic { font-style: italic; font-weight: 300; }

.slide__body { flex: 1; min-height: 0; position: relative; z-index: 1; }

/* ────────── BIG STAT ────────── */
.slide--stat { justify-content: center; }
.slide--stat .eyebrow { font-size: 16px; margin-bottom: 32px; color: var(--copper); }
.slide--stat .stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 384px;
  line-height: 0.88;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--sumi);
}
.slide--stat .stat-value .unit {
  font-size: 0.28em;
  font-style: normal;
  color: var(--copper);
  margin-left: 16px;
  letter-spacing: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.slide--stat .stat-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.3;
  margin-top: 40px;
  color: var(--sumi-2);
  max-width: 1100px;
}

/* ────────── QUOTE (kozo paper) ────────── */
.slide--quote {
  justify-content: center;
  background: var(--kozo);
}
.slide--quote .quote-mark {
  font-family: var(--font-display);
  font-size: 280px;
  line-height: 0.55;
  color: var(--copper);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 32px;
}
.slide--quote blockquote {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1.12;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--sumi);
  max-width: 1500px;
}
.slide--quote cite {
  display: block;
  margin-top: 56px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--sumi-3);
}

/* ────────── SPLIT ────────── */
.slide--split .slide__body { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.slide--split-image .slide__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: stretch; }
.slide--split-image .slide__body .placeholder-img { width: 100%; height: 100%; aspect-ratio: auto; }

/* ────────── STATS ROW ────────── */
.slide__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; }
.slide__stats .stat { border-top: 1px solid var(--sumi); padding-top: 24px; }
.slide__stats .stat__value { font-size: 104px; }
.slide__stats .stat__label { font-size: 13px; margin-top: 16px; }
.slide__stats .stat__desc {
  font-size: 19px;
  line-height: 1.5;
  margin-top: 20px;
  color: var(--sumi-2);
  max-width: 320px;
  font-family: var(--font-body);
}

/* ────────── NUMBERED LIST ────────── */
.slide__list { display: flex; flex-direction: column; }
.slide__list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.slide__list-item:first-child { border-top: 1px solid var(--rule); }
.slide__list-num {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--copper);
  letter-spacing: var(--tracking-caps);
  padding-top: 10px;
}
.slide__list-h {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
  color: var(--sumi);
}
.slide__list-d {
  font-size: 21px;
  line-height: 1.5;
  color: var(--sumi-2);
  max-width: 1100px;
  font-family: var(--font-body);
}

/* ────────── COMPARISON ────────── */
.slide__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; height: 100%; }
.slide__compare-col {
  padding: 48px 40px;
  background: var(--bone-2);
  border-top: 2px solid var(--sumi);
  display: flex; flex-direction: column;
}
.slide__compare-col--accent { border-top-color: var(--copper); background: var(--champagne-soft); }
.slide__compare-col h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 28px;
  color: var(--sumi);
}
.slide__compare-col ul li {
  font-size: 20px;
  line-height: 1.5;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--sumi);
  font-family: var(--font-body);
}
.slide__compare-col ul li:last-child { border-bottom: 0; }

/* ────────── END (shou-sugi-ban) ────────── */
.slide--end {
  background: var(--shou);
  color: var(--bone);
  justify-content: center;
}
.slide--end .end-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 280px;
  color: var(--champagne);
  line-height: 0.9;
}
.slide--end .end-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.2;
  margin-top: 56px;
  max-width: 1100px;
  color: var(--bone);
}
.slide--end .end-meta {
  margin-top: 80px;
  display: flex;
  gap: 80px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--champagne);
}

/* ────────── SHARED slide-body utilities ────────── */

/* Lead paragraph used on premise / practice / closing slides. */
.slide__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.4;
  color: var(--sumi);
  max-width: 1200px;
  margin-bottom: 56px;
}
.slide__lead--tight { margin-bottom: 32px; }

/* Body paragraph variant for slides (larger than .body). */
.slide__body-text {
  font-size: 21px;
  line-height: 1.6;
  color: var(--sumi-2);
  font-family: var(--font-body);
}

/* Bulleted list variant for the slide canvas (larger type, copper rule). */
.slide__bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.slide__bullets li {
  font-size: 24px;
  padding: 8px 0 8px 32px;
  position: relative;
  line-height: 1.5;
  color: var(--sumi);
  font-family: var(--font-body);
}
.slide__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 16px; height: 1px;
  background: var(--copper);
}

/* Compare-column eyebrow spacing override. */
.slide__compare-col .eyebrow { margin-bottom: 16px; }

/* H3 used in split / closing layouts. */
.slide__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--sumi);
}

/* Type-scale reference table on slide 10. */
.slide__table { font-size: 21px; }
.slide__table th { font-size: 13px; }
.slide__table .right.serif { font-style: italic; }

