/* The studio frames the slides. The paper sections hold the instructions. */
.learn-hero, .guide-intro, .worked-layout, .more-scenes {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(36px, 5vw, 86px);
}
.learn-hero { padding-block: clamp(60px, 6.5vw, 108px); }
.learn-intro h1, .guide-intro h1 {
  font-size: clamp(55px, 5.4vw, 84px);
  line-height: 1.025;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.learn-intro h1 em, .guide-intro h1 em { display: block; color: var(--cue); }
.learn-intro > p, .guide-intro > div > p:not(.work-label) {
  margin-top: 24px;
  max-width: 37ch;
  color: #c7cbd2;
  font-size: clamp(16px, 1.32vw, 20px);
  line-height: 1.6;
}
.path-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.path-links .button { min-height: 46px; padding: 12px 15px; gap: 13px; }
.frame-player {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color-scheme: dark;
}
.slide-screen { overflow: hidden; aspect-ratio: 16 / 9; background: #f4f0de; }
.slide-screen img { width: 100%; height: 100%; object-fit: contain; }
.frame-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 57px; gap: 12px; padding: 6px 12px 6px 19px;
}
.frame-status { font: 500 12px/1.5 var(--sans); }
.frame-arrows, .frame-options { display: flex; flex-wrap: wrap; gap: 4px; }
.frame-bar button {
  border: 1px solid transparent; border-radius: 4px; background: var(--ink-3);
  color: var(--text); min-height: 44px; padding: 5px 12px;
}
.frame-arrows { flex: none; }
.frame-arrows button { min-width: 44px; font-size: 20px; line-height: 1; }
.frame-bar button[aria-disabled="true"] { color: #858996; cursor: default; background: transparent; }
.frame-bar button:hover:not([aria-disabled="true"]) { border-color: var(--agent); }
.frame-options button { font-size: 12px; font-weight: 600; }
.frame-options button[aria-pressed="true"] { color: var(--ink-1); background: var(--agent-strong); }
.frame-bar button:focus-visible { outline-offset: -3px; outline-color: var(--cue); }
.compare .frame-bar { flex-wrap: wrap; }
.guide-cover figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 5px 15px; max-width: none; color: var(--muted); font-size: 12px;
}
.guide-cover figcaption a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--text); }
.guide-cover figcaption a span { color: var(--cue); }
.worked-section, .guide-paper {
  --reading-ink: #26302c; --reading-muted: #4c5652; --reading-accent: #98421f;
  color-scheme: light; background: #f3f2ea; color: var(--reading-ink);
}
.worked-section { padding-block: clamp(60px, 6vw, 100px); }
.worked-section :focus-visible, .guide-paper :focus-visible { outline-color: #60549a; }
.work-label {
  margin-bottom: 16px; font: 550 11px/1.5 var(--mono);
  text-transform: uppercase; letter-spacing: .09em;
}
.worked-copy .work-label, .guide-body .work-label { color: var(--reading-accent); }
.worked-copy h2, .more-scenes h2 { font-size: clamp(38px, 3.8vw, 60px); }
.worked-copy > p:not(.work-label), .more-scenes > div > p { margin-top: 18px; max-width: 40ch; font-size: 16px; }
.learn-link { display: inline-block; padding-block: 12px; font-weight: 650; font-size: 14px; }
.learn-link span { margin-left: 5px; }
.more-scenes { padding-block: 70px; }
.more-scenes > div > p { color: var(--muted); }
.scene-examples { min-width: 0; }
.scene-request { margin-top: 20px; max-width: 39ch; padding-left: 16px; border-left: 2px solid var(--agent); }
.scene-request blockquote { margin: 0; color: var(--text); font: 450 clamp(21px,1.8vw,27px)/1.32 var(--serif); }
.scene-examples .playground { width: 100%; }
.scene-examples .demo-caption { padding-top: 8px; }
.scene-examples .demo-tabs { border-top: 0; border-bottom: 1px solid var(--line); }
.scene-examples .demo-tabs button[aria-selected="true"]::before { top: auto; bottom: -1px; }
.scene-examples .demo-tabs button { font-size: clamp(11px, 1vw, 14px); }

/* The reveal grows with its heading. Only the line behind the circles is positioned. */
.reveal-panel {
  container-type: inline-size;
  display: grid; grid-template-rows: auto auto 1fr auto;
  height: auto; min-height: clamp(19rem, 33vw, 26.25rem);
  background: var(--ink-3);
}
.reveal-panel h2 { font-size: clamp(1.625rem, 8cqi, 3.5rem); }
.reveal-panel h2 em { color: var(--agent-strong); }
.idea-diagram {
  position: relative; isolation: isolate; align-self: center;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 3cqi, 1.5rem);
  margin-block: clamp(1.5rem, 5cqi, 2.5rem);
}
.idea-diagram::before {
  content: ''; position: absolute; inset-inline: min(13%, 4rem); top: 50%; z-index: -1;
  border-top: 1px dashed #3c4250;
}
.idea-diagram > div {
  display: grid; place-content: center; justify-items: center; gap: clamp(.25rem, 1.5cqi, .625rem);
  width: min(100%, 8rem); min-width: 0; aspect-ratio: 1; padding: .3rem;
  border: 1px solid var(--agent); border-radius: 50%; background: var(--ink-3);
  text-align: center; transition: opacity .45s, transform .45s;
}
.idea-diagram span { font: 400 clamp(.75rem, 2.3cqi, .9375rem)/1 var(--serif); color: var(--agent); }
.idea-diagram strong { font-size: clamp(.6875rem, 2.1cqi, .8125rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
.idea-orbit { opacity: .1; transform: scale(.9); }
.orbit-one { justify-self: center; }
.idea-diagram .orbit-two { justify-self: end; border-color: var(--cue); }
.orbit-two span { color: var(--cue); }
.idea-diagram[data-reveal="1"] .orbit-one, .idea-diagram[data-reveal="2"] .idea-orbit { opacity: 1; transform: none; }
.reveal-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.reveal-controls .button, .reveal-controls .text-button { min-height: 44px; font-size: .8125rem; }
.reveal-controls .button { padding: .625rem .875rem; gap: .75rem; }
.reveal-controls p { flex: 1 1 10rem; font-size: .75rem; line-height: 1.5; color: var(--muted); }

.flight-panel.demo-panel { height: auto; padding: 0; background: var(--ink-2); }
.flight-heading, .flight-transport {
  display: flex; align-items: center; gap: 15px; padding: 12px clamp(12px, 2vw, 23px);
}
.flight-heading { justify-content: space-between; flex-wrap: wrap; gap: 3px 14px; }
.flight-heading h3 { font: 550 clamp(19px, 1.85vw, 27px)/1.22 var(--serif); color: var(--text); }
.flight-heading p { color: var(--muted); font-size: 12px; }
.flight-map { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #091a32; }
.flight-place { font: 700 34px var(--sans); fill: #fff8e9; stroke: #0a1731; stroke-width: 5px; paint-order: stroke; }
.flight-state { font-size: 25px; font-weight: 550; }
.flight-transport { min-height: 64px; border-top: 1px solid var(--line); }
.flight-toggle {
  flex: none; display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px;
  min-width: 107px; min-height: 44px; padding: 6px 11px;
  color: var(--text); background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 4px; font: 650 13px/1.25 var(--sans); cursor: pointer;
}
.flight-toggle:hover { border-color: var(--agent-strong); }
.flight-symbol { width: 1.1em; text-align: center; color: var(--agent-strong); }
.flight-transport input { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--agent-strong); cursor: pointer; }
.flight-time { flex: none; color: var(--muted); font: 500 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.flight-panel .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 600px) {
  .flight-place { font-size: 50px; }
  .flight-state { font-size: 39px; }
  .flight-heading p { font-size: 11px; }
  .flight-transport { gap: 9px; padding: 7px 12px; }
  .flight-toggle { min-width: 98px; font-size: 12px; padding-inline: 7px; }
  .flight-time { font-size: 10px; }
}
.start-closing { padding-block: 65px; border-top: 1px solid var(--line); }
.start-closing .wrap { display: flex; flex-wrap: wrap; gap: 15px 24px; align-items: center; }
.start-closing h2 { flex: 1 1 300px; font-size: clamp(42px, 4.5vw, 65px); }

/* The first-deck guide is readable and linkable without JavaScript. */
.guide-intro { padding-block: clamp(48px, 5vw, 80px); grid-template-columns: 1.15fr .85fr; }
.guide-intro .work-label { color: var(--agent-strong); }
.guide-intro .path-links { margin-top: 24px; }
.guide-cover img { width: 100%; border-radius: 4px; }
.guide-cover figcaption { justify-content: flex-end; }
.guide-layout { display: grid; grid-template-columns: minmax(155px, .32fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); align-items: start; padding-block: 65px 80px; }
.guide-index { position: sticky; top: 28px; display: grid; justify-items: start; }
.guide-index strong { margin-bottom: 14px; font-size: 15px; }
.guide-index a { display: flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration-color: #abaea4; }
.guide-body { max-width: 800px; min-width: 0; font-size: 16px; }
.guide-body h2 { font-size: clamp(38px, 4.3vw, 64px); max-width: 20ch; }
.guide-body h2 em { color: #53664f; }
.guide-chapter { scroll-margin-top: 26px; }
.guide-chapter + .guide-chapter { margin-top: 54px; padding-top: 48px; border-top: 1px solid #babeb3; }
.guide-chapter > p:not(.work-label) { margin-top: 18px; }
.guide-chapter .chapter-intro { font-size: 19px; line-height: 1.6; max-width: 55ch; color: var(--reading-muted); }
.instructions { list-style: decimal; padding-left: 1.65em; margin: 35px 0 0; }
.instructions > li { padding-left: 7px; }
.instructions > li + li { margin-top: 36px; }
.instructions > li::marker { font: 600 17px var(--mono); color: var(--reading-accent); }
.instructions h3 { margin-bottom: 9px; font-size: clamp(23px, 2vw, 31px); font-weight: 650; line-height: 1.2; }
.instructions p + p, .instructions figure + p { margin-top: 15px; }
.deck-sequence { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 12px; list-style: none; padding: 0; margin: 20px 0; }
.deck-sequence li { font-size: 13px; line-height: 1.4; font-weight: 600; }
.deck-sequence img { display: block; width: 100%; height: auto; margin-bottom: 6px; border: 1px solid #cbcec1; border-radius: 3px; }
.guide-body a:not(.button) { text-decoration-thickness: 1px; }
.source-card, .note-card, .prompt-box {
  padding: clamp(17px, 2.5vw, 28px);
  margin-top: 17px; border: 1px solid #cbcec1; border-radius: 6px; background: #fafaf5;
}
.source-card > p:first-child, .note-card blockquote { font: 450 24px/1.38 var(--serif); }
.reading-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; }
.reading-links a { padding-block: 8px; }
.prompt-box { background: #ecebf3; border-color: #ccc9d6; }
.prompt-box label { font-size: 15px; font-weight: 750; }
.prompt-box > p { margin: 5px 0 11px; font-size: 14px; }
.prompt-box textarea {
  display: block; width: 100%; min-height: 100px; resize: vertical; margin: 10px 0;
  padding: 12px 14px; line-height: 1.6; font-size: 16px;
  background: #fcfbff; color: #252235; border: 1px solid #aba7b6; border-radius: 4px;
}
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.copy-prompt { min-height: 44px; padding: 9px 15px; font-size: 13px; font-weight: 650; background: #333045; border: 1px solid #333045; border-radius: 4px; color: #fff; }
.copy-prompt:hover { background: #48425d; }
.copy-feedback { font-size: 13px; }
.copy-line .manual-copy { width: 100%; min-height: 6em; padding: 9px; font: inherit; }
.note-card blockquote { margin: 8px 0 16px; }
.capture { margin: 20px 0; background: #fff; border: 1px solid #d3d4cc; border-radius: 7px; }
.capture > a { display: block; padding: clamp(12px, 2vw, 24px); }
.capture img { width: 100%; height: auto; }
.booth-capture { max-width: 410px; }
.setup-capture { max-width: 540px; }
.booth-capture img { max-width: 320px; margin-inline: auto; }
.capture figcaption, .file-help { padding: 10px 16px; color: var(--reading-muted); font-size: 13px; line-height: 1.5; }
.capture figcaption { border-top: 1px solid #e1e1da; }
.guide-chapter .frame-player { margin-top: 20px; }
.story-film { margin: 22px 0; }
.story-film video { display: block; width: 100%; height: auto; aspect-ratio: 1240 / 800; background: #171a21; border-radius: 5px; }
.story-film figcaption { padding-top: 8px; color: var(--reading-muted); font-size: 13px; }
.compact-steps { padding-left: 23px; margin: 22px 0; }
.compact-steps li { padding-left: 5px; }
.guide-chapter > .button { margin-top: 22px; }
.guide-chapter > .file-help { padding: 0; margin-top: 10px; }

/* The public excerpt reflows the original slide's painted arch and dialogue. */
.workshop-hero {
  grid-template-areas: "intro slide" "notes slide";
  row-gap: 26px;
}
.workshop-hero .learn-intro { grid-area: intro; align-self: end; }
.workshop-authorship { grid-area: notes; align-self: start; max-width: 41ch; }
.workshop-authorship .work-label { color: var(--agent-strong); margin-bottom: 8px; }
.workshop-authorship blockquote {
  margin: 0; font: 400 clamp(20px, 1.65vw, 27px)/1.3 var(--serif); color: var(--text);
}
.workshop-request { margin-top: 14px; border-top: 1px solid var(--line-2); }
.workshop-request summary { min-height: 44px; font-size: 14px; font-weight: 650; }
.workshop-request summary span, .workshop-question summary span { font-size: 21px; color: var(--cue); }
.workshop-request[open] summary span, .workshop-question[open] summary span { transform: rotate(45deg); }
.workshop-request label, .workshop-request > p { color: var(--muted); font-size: 13px; }
.workshop-request textarea {
  display: block; width: 100%; margin: 7px 0 10px; padding: 10px 12px;
  resize: vertical; font: 400 16px/1.5 var(--sans); color: var(--text);
  background: var(--ink-2); border: 1px solid #646a79; border-radius: 4px;
}
.workshop-request .copy-prompt { border-color: var(--agent-strong); }
.workshop-request > p { margin: 8px 0 0; }
.workshop-feature { grid-area: slide; align-self: center; min-width: 0; margin: 0; container-type: inline-size; }
.workshop-player { overflow: hidden; border: 1px solid var(--line-2); border-radius: 7px; background: var(--ink-2); }
.workshop-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: start; gap: 4%; padding: 5.2%;
  background: #f3eddf; color: #183e32; color-scheme: light;
}
.workshop-words h2 { font: 450 clamp(34px, 7.8cqw, 72px)/1 var(--serif); letter-spacing: -.055em; }
.workshop-words h2 em {
  display: block; margin-top: .1em; color: #795334;
  font-size: .5em; font-weight: 400; letter-spacing: -.03em;
}
.workshop-opening { margin-top: 4.8cqw; }
.workshop-opening + .workshop-opening { margin-top: 2.8cqw; }
.workshop-opening .phrase-label {
  margin-bottom: .5em; color: #6d533b; text-transform: uppercase;
  font: 650 clamp(9px, 1.35cqw, 12px)/1.45 var(--sans); letter-spacing: .12em;
}
.workshop-opening .workshop-quote {
  font: 450 clamp(18px, 3.8cqw, 32px)/1.13 var(--serif); color: #904b31; letter-spacing: -.025em;
}
.invitation .workshop-quote { color: #183e32; opacity: var(--quote-opacity, 1); }
.invitation-cue { margin-left: .25em; opacity: calc(1 - var(--quote-opacity, 1)); }
.workshop-portrait {
  position: relative; isolation: isolate; aspect-ratio: 554 / 508; overflow: hidden;
  border-radius: 50% 50% 3px 3px / 55% 55% 3px 3px; background: #334939;
}
.workshop-portrait img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.listening-painting { clip-path: inset(0 calc(100% - var(--reveal, 0%)) 0 0); }
.workshop-feature:has(.workshop-controls:not([hidden])) .workshop-portrait { cursor: ew-resize; touch-action: pan-y; user-select: none; }
.workshop-controls, .workshop-question, .painting-link { padding: 0 clamp(14px, 3cqw, 26px); }
.workshop-controls { padding-top: 15px; }
.workshop-controls label { color: var(--text); font-size: 14px; font-weight: 650; }
.conversation-range { display: flex; align-items: center; gap: 12px; }
.conversation-range button {
  min-height: 44px; padding: 0; border: 0; background: transparent;
  color: #b8bdc8; font: 550 12px/1.4 var(--sans);
}
.conversation-range button[aria-pressed="true"] { color: #ffaf83; }
.conversation-range button:hover { text-decoration: underline; }
.conversation-range input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; }
.conversation-range input::-webkit-slider-runnable-track {
  height: 4px; background: linear-gradient(to right, #ffaf83 var(--reveal), #676e79 var(--reveal));
}
.conversation-range input::-webkit-slider-thumb {
  width: 20px; height: 20px; margin-top: -8px; border: 3px solid var(--ink-2);
  border-radius: 50%; background: #ffaf83; box-shadow: 0 0 0 1px #ffaf83;
}
.conversation-range input::-moz-range-progress { height: 4px; background: #ffaf83; }
.conversation-range input::-moz-range-thumb { background: #ffaf83; border-color: var(--ink-2); }
.workshop-question { border-top: 1px solid var(--line-2); }
.workshop-question summary { min-height: 44px; font-size: 13px; }
.workshop-question p { padding: 0 0 16px; color: var(--text); font: 400 23px/1.25 var(--serif); }
.painting-link { padding-block: 12px; font-size: 14px; }
.guide-invitation { padding-block: clamp(40px, 4.6vw, 72px); }
.guide-doors { border-top: 1px solid #babeb3; }
.guide-doors a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 20px; align-items: baseline;
  padding: 17px 2px; border-bottom: 1px solid #babeb3; text-decoration: none;
}
.guide-doors a:hover strong { text-decoration: underline; }
.guide-doors strong { font: 500 clamp(24px, 2.3vw, 34px)/1.18 var(--serif); }
.guide-doors span:first-of-type { grid-column: 1; font-size: 14px; color: var(--reading-muted); }
.guide-doors span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--reading-accent); font-size: 23px; }
@container (max-width: 430px) {
  .workshop-stage { gap: 15px 12px; padding: 18px 15px; align-items: center; }
  .workshop-words { display: contents; }
  .workshop-words h2 { grid-area: 1 / 1; }
  .workshop-words h2 em { font-size: .55em; }
  .workshop-opening, .workshop-opening + .workshop-opening { grid-row: 2; margin: 0; align-self: start; }
  .workshop-opening.invitation { grid-column: 2; }
  .workshop-portrait { grid-area: 1 / 2; }
}

@media (max-width: 1000px) {
  .learn-hero, .worked-layout { gap: 34px; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .learn-intro h1 { font-size: clamp(45px, 5.6vw, 60px); }
}
@media (max-width: 760px) {
  .learn-hero, .guide-intro, .worked-layout, .more-scenes { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .workshop-hero { grid-template-areas: "intro" "slide" "notes"; }
  .workshop-authorship { max-width: 58ch; }
  .learn-hero, .guide-intro, .worked-section, .more-scenes { padding-block: 40px; }
  .learn-intro h1, .guide-intro h1 { font-size: clamp(48px, 8vw, 66px); }
  .learn-intro > p, .guide-intro > div > p:not(.work-label) { margin-top: 16px; max-width: 52ch; }
  .path-links .button { gap: 10px; }
  .guide-cover { max-width: 500px; }
  .guide-layout { grid-template-columns: minmax(0,1fr); gap: 36px; padding-block: 30px 55px; }
  .guide-index { position: static; display: flex; align-items: center; gap: 0 16px; flex-wrap: wrap; border-bottom: 1px solid #cbcec1; padding-bottom: 12px; }
  .guide-index strong { flex-basis: 100%; margin: 0; }
  .frame-bar { padding-inline: 11px; }
  .frame-options button { padding-inline: 10px; }
  .compare .frame-status { flex-basis: 100%; }
}
@media (max-width: 430px) {
  .deck-sequence { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .path-links .button { flex-grow: 1; font-size: 12px; }
  .learn-intro h1, .guide-intro h1 { font-size: clamp(42px, 11vw, 49px); }
  .instructions { padding-left: 22px; }
  .instructions > li { padding-left: 2px; }
  .guide-body { font-size: 15px; }
  .source-card, .note-card, .prompt-box { padding: 14px; }
  .frame-status { font-size: 11px; }
  .compare .frame-bar { gap: 5px; padding-block: 9px; }
}
@media print {
  .guide-index, .frame-arrows, .frame-options, .copy-line { display: none; }
  .guide-layout { display: block; }
  .guide-paper { background: white; }
}
