/* Slides kit (draft, slides). Designed on a 1920 × 1080 artboard; every size is in
   --u, one artboard pixel, set by deck.js from the shorter side of the stage, so a slide fills
   any window without type falling below the floors.
   Theme values (faces, grounds, red) come from the SoR design system's tokens.css.
   Sizes are set for video: anything meant to be read is 48 units or more
   (about 16px in a 640 × 360 Zoom window); body weight 400 or more. */

/* Tokens live on .s, so --u (inherited from the deck or view) resolves per slide. */
.s {
  --pad-x: calc(128 * var(--u)); --pad-top: calc(96 * var(--u)); --pad-bottom: calc(128 * var(--u));

  --s-cover: calc(188 * var(--u));    /* Polyamine: cover title */
  --s-card: calc(150 * var(--u));     /* Polyamine: section card */
  --s-claim: calc(100 * var(--u));     /* the headline sentence, 15 words or fewer */
  --s-prompt: calc(104 * var(--u));    /* a question to the room */
  --s-big: calc(136 * var(--u));      /* a short statement on its own, or a big number */
  --s-ev: calc(60 * var(--u));        /* evidence, body lines */
  --s-quote: calc(60 * var(--u));     /* a long quote (Restora) */
  --s-tile: calc(50 * var(--u));      /* tiles, columns, diagram boxes */
  --s-label: calc(36 * var(--u));     /* eyebrow, tags, diagram row labels */
  --s-foot: calc(28 * var(--u));      /* footer and slide number: exempt from the floor */

  --claim-face: var(--font-quote); --claim-weight: 500; --claim-track: 0;
  --tint: #fbdbdb;     /* diagram red tint (diagrams.md) */
  --body-ink: #2b2824;
}

.s, .s *, .s *::before, .s *::after { box-sizing: border-box }

/* ── Artboard ─────────────────────────────────────────── */
.s {
  position: relative; width: var(--sw); height: var(--sh); overflow: hidden;
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-weight: 400;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); gap: 0;
}
.s--paper { background: var(--paper) }
.s--sun { background: var(--sunlight) }
.s--night { background: var(--night); color: #f4f1ea; --body-ink: #e9e5dc; --muted: var(--night-muted) }
.s > .body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: calc(48 * var(--u)); padding-bottom: calc(40 * var(--u)); min-height: 0 }

/* Eyebrow: section name, top left. Top right stays empty (Zoom's speaker thumbnail). */
.s:not(.s--cover) > .eyebrow { visibility: hidden }
.s--photo > .eyebrow { display: none }
.eyebrow { font-family: var(--font-label); font-weight: 500; font-size: var(--s-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1 }
.s .foot { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: calc(52 * var(--u)); display: flex; align-items: center; gap: calc(18 * var(--u)); font-family: var(--font-label); font-size: var(--s-foot); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.foot img { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; background: #fff }
.foot .n { margin-left: auto; letter-spacing: .04em }
.foot .sec::before { content: "·"; margin-right: calc(18 * var(--u)) }

/* ── Type ─────────────────────────────────────────────── */
.claim { margin: 0; font-family: var(--claim-face); font-weight: var(--claim-weight); letter-spacing: var(--claim-track); font-size: var(--s-claim); line-height: 1.1; max-width: 25ch; text-wrap: balance }
.big { font-size: var(--s-big); line-height: 1.04; max-width: 18ch }
.ev { margin: 0; font-size: var(--s-ev); line-height: 1.3; color: var(--body-ink); max-width: 38ch; text-wrap: pretty }
.ev.muted, .muted { color: var(--muted) }
.ev + .ev { margin-top: -20px }
.lines { margin: 0; padding: 0; list-style: none; display: grid; gap: calc(22 * var(--u)); font-size: var(--s-ev); line-height: 1.25; color: var(--body-ink) }
.lines li { position: relative; padding-left: calc(64 * var(--u)) }
.lines li::before { content: ""; position: absolute; left: 0; top: .42em; width: calc(20 * var(--u)); height: calc(20 * var(--u)); background: currentColor }
ol.lines { counter-reset: n }
ol.lines li::before { counter-increment: n; content: counter(n); background: none; top: 0; font-family: var(--font-label); font-weight: 500; width: auto; height: auto; color: var(--muted) }
em { font-style: italic }
.q { font-style: italic }
/* Emphasis: a sunlight highlighter, not red (red is for the logo, seeds and diagrams). */
.hl { background: linear-gradient(transparent 12%, var(--sunlight) 12%, var(--sunlight) 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .12em; font-weight: 500 }
.s--sun .hl { background: linear-gradient(transparent 12%, #fff 12%, #fff 92%, transparent 92%) }
.gap { height: calc(24 * var(--u)) }

/* ── Cover ────────────────────────────────────────────── */
.s--cover { grid-template-rows: auto 1fr auto; align-content: stretch; background: var(--paper) }
.s--cover > div:nth-of-type(1) { align-self: center }
.s--cover .title { font-family: var(--font-display); font-size: var(--s-cover); line-height: .96; margin: 0; max-width: 12ch }
.s--cover .sub { font-size: calc(60 * var(--u)); line-height: 1.2; margin: calc(34 * var(--u)) 0 0; max-width: 26ch; color: var(--body-ink) }
.s--cover .by { display: flex; align-items: center; gap: calc(28 * var(--u)); font-family: var(--font-label); font-size: calc(36 * var(--u)); letter-spacing: .06em }
.s--cover .by img { width: calc(120 * var(--u)); height: calc(120 * var(--u)) }
.s--cover .art { position: absolute; right: calc(60 * var(--u)); bottom: calc(40 * var(--u)); width: calc(720 * var(--u)); height: calc(720 * var(--u)); color: var(--ink) }

/* ── Card: a section break ────────────────────────────── */
.s--card { background: var(--sunlight) }
.s--card .body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(80 * var(--u)) }
.s--card h2 { font-family: var(--font-display); font-size: var(--s-card); line-height: 1; margin: 0; max-width: 12ch }
.s--card h2.q { font-family: var(--font-display); font-style: normal; font-size: calc(120 * var(--u)) }
.s--card svg { width: calc(220 * var(--u)); height: calc(220 * var(--u)); color: var(--ink) }

/* ── Prompt: the room's turn (chat, ask, poll, breakout, clip) ── */
.s--prompt { background: var(--sunlight) }
.tag { justify-self: start; display: inline-flex; gap: calc(18 * var(--u)); align-items: center; background: var(--ink); color: #fff; padding: calc(14 * var(--u)) calc(24 * var(--u)) calc(12 * var(--u)); font-family: var(--font-label); font-weight: 500; font-size: var(--s-label); letter-spacing: .12em; text-transform: uppercase; line-height: 1 }
.tag span { opacity: .7; letter-spacing: .06em; text-transform: none }
.prompt { margin: 0; font-family: var(--claim-face); font-weight: var(--claim-weight); letter-spacing: var(--claim-track); font-size: var(--s-prompt); line-height: 1.08; max-width: 22ch; text-wrap: balance }
.options { display: flex; flex-wrap: wrap; gap: calc(20 * var(--u)) }
.options span { border: calc(3 * var(--u)) solid var(--ink); padding: calc(14 * var(--u)) calc(28 * var(--u)); font-size: calc(46 * var(--u)); font-weight: 500 }
.link { color: var(--ink); font-family: var(--font-label); font-size: calc(38 * var(--u)); text-decoration: underline; text-underline-offset: calc(8 * var(--u)); text-decoration-thickness: calc(2 * var(--u)) }

/* ── Picture beside a claim (flat, bleeds off the right) ── */
.s--split { grid-template-columns: 1fr 50%; grid-template-rows: auto 1fr; column-gap: calc(96 * var(--u)); padding-right: 0 }
.s--split .eyebrow { grid-column: 1 }
.s--split .body { grid-column: 1; grid-row: 2 }
.s--split .pic { grid-column: 2; grid-row: 1 / 3; margin: calc(-1 * var(--pad-top)) 0 0; position: relative }
.s--split .pic img { width: 100%; height: 100%; object-fit: cover; display: block }

.cap { font-family: var(--font-label); font-size: calc(30 * var(--u)); color: var(--muted); letter-spacing: .02em; line-height: 1.3 }

/* ── Full-bleed picture, claim on a band ──────────────── */
.s--photo { padding: 0; display: block; background: var(--night) }
.s--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.s--photo .band { position: absolute; left: 0; right: 0; bottom: 0; background: var(--white); padding: calc(48 * var(--u)) var(--pad-x) calc(124 * var(--u)); display: grid; gap: calc(14 * var(--u)) }
.s--photo .band .claim { max-width: 32ch }
.s--photo .eyebrow { position: absolute; left: var(--pad-x); top: calc(64 * var(--u)); background: var(--white); padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)); color: var(--ink) }


/* ── Plate: a picture on its own, centred, with its caption; a gallery is two or three in a row ── */
.s--plate > .body { justify-items: center; text-align: center }
.s--plate figure { margin: 0; display: grid; gap: calc(22 * var(--u)); justify-items: center; max-width: 100% }
.s--plate figure img { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(680 * var(--u)) }
.gallery { display: flex; gap: calc(28 * var(--u)); align-items: center; justify-content: center; max-width: 100% }
.gallery img { display: block; height: calc(600 * var(--u)); width: auto; max-width: 100% }

/* ── Quote ────────────────────────────────────────────── */
.quote { margin: 0; font-family: var(--font-quote); font-style: italic; font-weight: 400; font-size: var(--s-quote); line-height: 1.32; max-width: 46ch; display: grid; gap: calc(22 * var(--u)) }
.quote p { margin: 0 }
.quote .last { font-size: calc(var(--s-quote) * 1.25); line-height: 1.2; margin-top: calc(18 * var(--u)) }
.who { font-family: var(--font-label); font-size: var(--s-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }

/* ── Sum: a row of numbers that builds to one big one ── */
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(10 * var(--u)) calc(30 * var(--u)); font-size: var(--s-ev); color: var(--body-ink) }
.sum b { font-weight: 600; font-size: calc(116 * var(--u)); letter-spacing: -.02em; color: var(--ink); line-height: 1 }
.sum .op { color: var(--muted) }

/* ── Names: a loose cluster ───────────────────────────── */
.names { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)) calc(44 * var(--u)); align-items: baseline; max-width: calc(1560 * var(--u)); color: var(--muted) }
.names span:nth-child(3n+1) { font-size: calc(62 * var(--u)) } .names span:nth-child(3n+2) { font-size: calc(50 * var(--u)) } .names span:nth-child(3n) { font-size: calc(56 * var(--u)) }

/* ── Columns and tiles ────────────────────────────────── */
.cols { display: grid; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); gap: calc(40 * var(--u)) calc(72 * var(--u)) }
.cols > div { border-top: calc(4 * var(--u)) solid var(--ink); padding-top: calc(26 * var(--u)); display: grid; gap: calc(14 * var(--u)); align-content: start; font-size: var(--s-tile); line-height: 1.25; color: var(--body-ink) }
.cols h3 { margin: 0 0 calc(6 * var(--u)); font-family: var(--font-label); font-weight: 500; font-size: var(--s-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink) }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(28 * var(--u)) }
.tiles span { background: var(--chalk); padding: calc(34 * var(--u)) calc(36 * var(--u)); font-size: calc(54 * var(--u)); font-weight: 500; line-height: 1.1 }

/* ── Figures (diagrams.md: Apfel, red tint panels, the key thing in red) ── */
.fig { font-family: var(--font-label); color: var(--ink) }
.levels { display: grid; grid-template-columns: calc(220 * var(--u)) 1fr; gap: calc(30 * var(--u)) calc(32 * var(--u)); align-items: center }
.levels > .lab { font-size: calc(32 * var(--u)); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.levels .row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(20 * var(--u)) }
.levels .row span { background: var(--tint); padding: calc(22 * var(--u)) calc(22 * var(--u)); font-size: calc(48 * var(--u)); line-height: 1.08; min-height: calc(100 * var(--u)); display: flex; align-items: center; justify-content: center; text-align: center }
.levels .row.one { grid-auto-columns: minmax(0, calc(560 * var(--u))); justify-content: center }
.levels .row span.key { background: var(--red); color: #fff }
.levels.empty .row span { color: transparent }
.levels.small { grid-template-columns: calc(150 * var(--u)) 1fr; gap: calc(14 * var(--u)) calc(16 * var(--u)) }
.levels.small > .lab { font-size: calc(26 * var(--u)) }
.levels.small .row { gap: calc(10 * var(--u)) }
.levels.small .row span { min-height: calc(52 * var(--u)); padding: 0 }
.levels .row.dim span { background: var(--chalk) }

.climb { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(14 * var(--u)); align-items: end; height: calc(400 * var(--u)) }
.climb div { background: var(--tint); padding: calc(22 * var(--u)) calc(22 * var(--u)); display: grid; align-content: start; gap: calc(8 * var(--u)); font-size: calc(44 * var(--u)); line-height: 1.08 }
.climb div small { font-size: calc(36 * var(--u)); color: var(--muted) }
.climb div:nth-child(1) { height: 44% } .climb div:nth-child(2) { height: 58% } .climb div:nth-child(3) { height: 72% } .climb div:nth-child(4) { height: 86% } .climb div:nth-child(5) { height: 100%; background: var(--red); color: #fff }
.climb div:nth-child(5) small { color: #fff; opacity: .85 }

/* ── Closing ──────────────────────────────────────────── */
.s--close { background: var(--night); color: #f4f1ea; --muted: var(--night-muted); --body-ink: #e9e5dc }
.s--close h2 { font-family: var(--font-display); font-size: calc(130 * var(--u)); line-height: 1; margin: 0 }
.s--close .foot img { background: #fff }

/* Notes: speaker cues, hidden on the slide */
.s aside.notes { display: none }

/* ── Picture faint behind the claim: sets the mood, doesn't compete ── */
.s--bg > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1) contrast(1.1) }
.s--bg > .body, .s--bg > .eyebrow { position: relative; z-index: 1 }

/* ── Split with an illustration panel (a quote, a case) instead of a picture ── */
.s--split .pic.panel { background: var(--night); color: #f4f1ea; display: grid; align-content: center; gap: calc(28 * var(--u)); padding: calc(72 * var(--u)) calc(80 * var(--u)) calc(48 * var(--u)) }
.s--split .pic.panel .quote { --s-quote: calc(44 * var(--u)); gap: calc(14 * var(--u)); line-height: 1.22 }
.s--split .pic.panel .quote .last { font-size: calc(50 * var(--u)); margin-top: calc(8 * var(--u)) }
.s--split .pic.panel .who { color: var(--night-muted) }
.s--split .pic.dark { background: #000 }
.s--split .pic.dark img { object-fit: contain }
.portrait { display: grid; grid-template-columns: auto 1fr; gap: calc(28 * var(--u)); align-items: end }
.portrait img { height: calc(300 * var(--u)); width: auto; filter: grayscale(1) }

/* ── Look: calm (trial, ?look=calm or L) ─────────────────────────────
   After the frontend-slides decks: warm grounds instead of white, a centred
   column with wide margins, modest headlines with a short rule, quiet chrome. */
.look-calm .s { --s-claim: calc(84 * var(--u)); --s-big: calc(112 * var(--u)); --s-prompt: calc(88 * var(--u)); --s-ev: calc(48 * var(--u)); --s-tile: calc(44 * var(--u)); --s-quote: calc(52 * var(--u)) }
.look-calm .s:not(.s--sun):not(.s--night):not(.s--close):not(.s--photo):not(.s--prompt):not(.s--card) { background: var(--paper) }
.look-calm .s:not(.s--split):not(.s--photo) > .body { width: min(100%, calc(1400 * var(--u))); justify-self: center }
.look-calm .s > .body > .claim:last-of-type::after, .look-calm .s--photo .band .claim::after { content: ""; display: block; width: calc(72 * var(--u)); height: calc(3 * var(--u)); background: currentColor; opacity: .35; margin-top: calc(34 * var(--u)) }
.look-calm .s > .body:has(> .claim.big:only-child), .look-calm .s--card > .body { text-align: center; justify-items: center }
.look-calm .s > .body:has(> .claim.big:only-child) > .claim::after { margin-inline: auto }
.look-calm .s--card > .body { grid-template-columns: minmax(0, 1fr) }
.look-calm .s--card h2 { max-width: none }
.look-calm .s--card svg { display: none }
.look-calm .ev { color: var(--muted) }
.look-calm .ev.q, .look-calm .s--split .ev { font-family: var(--font-quote); font-style: italic; color: var(--body-ink) }
.look-calm .foot img, .look-calm .foot > span:not(.n) { display: none }
.look-calm .foot .n { opacity: .55 }
.look-calm .s--split .pic { margin-bottom: calc(-1 * var(--pad-bottom)) }
.look-calm .s--split .foot { right: calc(50% + calc(48 * var(--u))) }
