/* Studio page. Loaded after talks.css, which provides the tokens (--bg, --ink, --accent, --display, --mono),
   the menu and the halftone photographs. The footer has its own stylesheet, footer.css.
   Layout: chapters with a large word on the left and the text on the right, one visual moment per chapter. */
.sb-hero { min-height: min(100svh, 62rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4vw; align-items: center; padding-block: 8rem 4rem; }
.sb-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(4.4rem, 1rem + 11vw, 11.5rem); line-height: 0.86; letter-spacing: -0.03em; }
.sb-hero .lede { max-width: 26rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }
.sb-hero-media { margin: 0; aspect-ratio: 4 / 5; max-height: min(78svh, 46rem); width: 100%; justify-self: end; outline: 1px solid var(--rule); }
.sb-hero-media picture { display: contents; }
@media (max-width: 760px) {
  .sb-hero { grid-template-columns: minmax(0, 1fr); padding-top: 6.5rem; min-height: auto; }
  .sb-hero-media { aspect-ratio: 4 / 3; justify-self: stretch; }
}

.sb-chapter { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1.5rem 5vw; padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--rule); }
.sb-label { position: sticky; top: 7rem; align-self: start; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4.4rem); line-height: 0.95; letter-spacing: -0.015em; }
.sb-label::before { content: ""; display: block; width: 2.2rem; height: 2px; margin-bottom: 1.2rem; background: var(--accent); }
.sb-body { min-width: 0; display: grid; gap: 1.6rem; align-content: start; }
.sb-body > p { margin: 0; max-width: 40rem; color: var(--ink-2); font-size: 1.08rem; }
.sb-lead { margin: 0; max-width: 34ch; font-family: var(--display); font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.2rem); line-height: 1.28; color: var(--ink); }
.sb-small { margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) {
  .sb-chapter { grid-template-columns: minmax(0, 1fr); }
  .sb-label { position: static; }
}

/* Founder: the photograph develops from dots, like the stage photos on Talks. */
.sb-photo { margin: 0; aspect-ratio: 3 / 2; max-width: 46rem; }
.sb-portrait { margin: 0; aspect-ratio: 4 / 5; width: min(100%, 22rem); }
/* Founder: the portrait on the left, the title and text beside it, mirroring the hero image on the right. */
.sb-founder { align-items: center; }
.sb-founder .sb-portrait { width: min(100%, 26rem); }
.sb-founder .sb-label { position: static; }
.sb-founder-text { gap: 1.4rem; }
@media (max-width: 860px) {
  .sb-founder-text { order: -1; }
}

/* Manifesto: two paragraphs set large, ending on the accent. */
.sb-manifesto { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--rule); }
.sb-manifesto .sb-small { margin-bottom: 2rem; }
.sb-manifesto blockquote { margin: 0; max-width: 30ch; font-family: var(--display); font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.6rem); line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); }
.sb-manifesto blockquote { display: grid; gap: 1.2rem; }
.sb-manifesto blockquote p { margin: 0; }
.sb-manifesto em { font-style: italic; color: var(--accent); }
/* A light wall to play with: every dot is an LED, a touch sends a ripple of colour (and a note, if sound is on). */
.sb-play { --s: 14px; position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); height: clamp(17rem, 44vh, 27rem); cursor: crosshair; touch-action: pan-y; }
.sb-play::before { content: ""; position: absolute; inset: 0 0 44px 0; background-image: radial-gradient(circle, rgba(250, 250, 250, 0.08) 0.8px, transparent 1.2px); background-size: var(--s) var(--s); background-position: 0 0; pointer-events: none; }
@media (pointer: coarse), (max-width: 760px) { .sb-play { --s: 16px; } }
.sb-play canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sb-play-ui { position: absolute; left: 0; right: 0; bottom: 0.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.sb-sound { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; color: var(--ink-2); background: rgba(8, 8, 8, 0.7); border: 1px solid var(--rule); border-radius: 50%; cursor: pointer; transition: color 200ms ease, border-color 200ms ease; }
.sb-sound:hover { color: var(--ink); }
.sb-sound svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sb-sound .spk { fill: currentColor; stroke: none; }
.sb-sound .on, .sb-sound[aria-pressed="true"] .off { display: none; }
.sb-sound[aria-pressed="true"] .on { display: inline; }
.sb-sound[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }

/* Recognition: the awards as a ledger. */
.sb-awards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sb-awards li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.sb-awards strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.1; color: var(--ink); }
.sb-awards strong a { text-decoration: none; }
.sb-awards strong a:hover, .sb-awards strong a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.sb-awards em { font-style: normal; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; align-self: center; }
.sb-awards span { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 520px) { .sb-awards em { white-space: normal; } }

/* Speaking: every place from the talks archive, lit on a dot map of the world. */
.sb-map { position: relative; width: 100%; aspect-ratio: 2.1 / 1; }
.sb-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Browse the practice */
.sb-practice { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--rule); }
.sb-practice .sb-small { margin-bottom: 2rem; }
.sb-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.sb-links a { display: grid; gap: 0.6rem; align-content: start; text-decoration: none; }
.sb-links a::before { content: ""; display: block; width: 2.2rem; height: 2px; margin-bottom: 0.6rem; background: var(--accent); transition: width 300ms ease; }
.sb-links a:hover::before, .sb-links a:focus-visible::before { width: 100%; }
.sb-links strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1; color: var(--ink); }
.sb-links span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .sb-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sb-links { grid-template-columns: minmax(0, 1fr); } }
