/* Straight Stick
   Palette follows dwellsecure.com: paper, navy, water blue, fire orange.
   Bevan for headlines, Overpass for reading, VT323 only on the radio display. */

@font-face { font-family: "Bevan"; src: url("../fonts/bevan.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "VT323"; src: url("../fonts/vt323.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --night: #0d2a45;
  --night-2: #143758;
  --on-night: #eaf1f6;
  --on-night-2: #a9bbca;
  --navy: #12486b;
  --water: #1d8fd1;
  --fire: #f2511b;
  --fire-btn: #d4410e;
  --fire-btn-hover: #b9370a;

  --bg: #f5f2ec;
  --bg-2: #ece7de;
  --surface: #ffffff;
  --ink: #0c1d2b;
  --muted: #3a4a58;
  --line: rgb(12 29 43 / .16);
  --brand: #12486b;
  --brand-ink: #ffffff;
  --accent: #c73c0d;
  --rail: rgb(12 29 43 / .24);
  --grid: rgb(18 72 107 / .08);
  --shadow: 0 1px 2px rgb(12 29 43 / .06), 0 10px 30px -12px rgb(12 29 43 / .18);

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --crease: 44px;
  --display: "Bevan", "Rockwell", Georgia, serif;
  --text: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --dock-h: 0px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c2238;
  --bg-2: #102a44;
  --surface: #15324f;
  --ink: #e9f0f5;
  --muted: #b3c2ce;
  --line: rgb(220 235 245 / .16);
  --brand: #4fa9de;
  --brand-ink: #06182a;
  --accent: #ff8d63;
  --rail: rgb(220 235 245 / .22);
  --grid: rgb(140 200 235 / .07);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.58 var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--fire-btn); color: #fff; font-weight: 700; border-radius: 4px; }
.skip:focus { top: calc(10px + env(safe-area-inset-top)); }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

h2 {
  font: 400 clamp(2rem, 1.4rem + 2.6vw, 3.2rem)/1.08 var(--display);
  letter-spacing: -.005em;
  text-wrap: balance;
}
h3 { font: 400 clamp(1.35rem, 1.2rem + .7vw, 1.7rem)/1.16 var(--display); text-wrap: balance; }
.lede { font-size: clamp(1.08rem, 1.02rem + .3vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.section { padding-block: clamp(56px, 7vw, 100px); }

/* The two-page spread. On the iPhone Duo's inner display the gutter
   sits over the fold, so nothing you read or tap lands on the crease. */
.spread { display: grid; gap: 36px; }
@media (min-width: 580px) {
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--crease); }
}
@media (min-width: 900px) { :root { --crease: 64px; } }
@media (horizontal-viewport-segments: 2) {
  .spread {
    grid-template-columns:
      calc(env(viewport-segment-right 0 0, 50vw) - var(--gutter))
      minmax(0, 1fr);
    column-gap: calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw) + 24px);
  }
}

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  color: var(--ink);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.bar-in { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 28px); min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.12rem/1 var(--display); white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.bar nav { margin-left: auto; }
.bar nav ul { display: flex; gap: clamp(0px, 1.2vw, 14px); }
.bar nav a { display: block; padding: 10px 7px 8px; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 4px; }
.bar nav a:hover { color: var(--accent); }
@media (max-width: 500px) { .bar .brand span { display: none; } .bar nav a { font-size: .93rem; padding-inline: 5px; } }

/* Scene lights: a rocker with real travel */
.rocker { display: flex; align-items: center; gap: 9px; flex: none; min-height: 44px; }
.rocker-label { font-size: .84rem; font-weight: 700; line-height: 1.08; text-align: right; color: var(--muted); }
.rocker-state::after { content: "off"; }
[aria-checked="true"] .rocker-state::after { content: "on"; }
.rocker-body {
  position: relative; display: block; width: 32px; height: 46px; border-radius: 7px; flex: none;
  background: #151b22;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12), inset 0 2px 4px #000;
}
.rocker-paddle {
  position: absolute; left: 4px; right: 4px; top: 4px; height: 24px; border-radius: 4px;
  background: linear-gradient(180deg, #4a5663, #2c353f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 2px 3px rgb(0 0 0 / .6);
  transform: translateY(14px);
  transition: transform .22s cubic-bezier(.34, 1.5, .64, 1);
}
[aria-checked="true"] .rocker-paddle { transform: translateY(0); }
.rocker-paddle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 4px; margin: -2px 0 0 -6px; border-radius: 2px;
  background: #5a6776; transition: background .18s ease, box-shadow .18s ease;
}
[aria-checked="true"] .rocker-paddle::after { background: #fff; box-shadow: 0 0 9px 3px rgb(255 255 255 / .8); }
@media (max-width: 800px) { .rocker-label { display: none; } }

.flood { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: #fff; opacity: 0; }
.flood.go { animation: flood .45s ease-out; }
.flood.night { background: #000; }
@keyframes flood { 0% { opacity: .5; } 100% { opacity: 0; } }

/* Hero: a compact band */
.hero {
  background-color: var(--bg-2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  transition: background-color .3s ease;
}
.hero-in {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "mark art" "line line" "who who" "cta cta";
  column-gap: 18px;
  padding-block: clamp(26px, 4vw, 48px);
}
.mark {
  grid-area: mark;
  font: 400 clamp(2.9rem, 1.3rem + 7.2vw, 6rem)/.98 var(--display);
  letter-spacing: -.01em;
  color: var(--ink);
  text-shadow: .045em .045em 0 var(--fire);
}
.hero-art { grid-area: art; width: clamp(92px, 24vw, 132px); height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.hero-line { grid-area: line; font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); line-height: 1.34; font-weight: 500; max-width: 32em; margin-top: 14px; text-wrap: balance; }
.hero-who { grid-area: who; display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.hero-faces { display: flex; flex: none; }
.hero-faces img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid var(--bg-2); }
.hero-faces img + img { margin-left: -10px; }
.hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (min-width: 760px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "mark art" "line art" "who art" "cta art";
    column-gap: 48px;
  }
  .hero-art { width: clamp(210px, 23vw, 280px); }
}
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--fire) 0 14px, var(--night) 14px 28px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px 9px; border-radius: 8px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.1; text-decoration: none; text-align: center;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; margin-top: -3px; }
.btn-fire { background: var(--fire-btn); color: #fff; }
.btn-fire:hover { background: var(--fire-btn-hover); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Name band */
.name-band { background: var(--surface); border-bottom: 1px solid var(--line); transition: background-color .3s ease; }
.name-in { display: grid; gap: 16px; padding-block: clamp(30px, 4vw, 48px); align-items: center; }
.name-in h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
.name-in p { max-width: 42em; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
@media (min-width: 760px) { .name-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 56px; } }

/* Episodes */
.ep-head { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.ep-head h2 { margin-bottom: 12px; }

/* The radio */
.radio {
  --r-bg: #1a2026;
  position: relative;
  border-radius: 22px;
  padding: clamp(14px, 2.2vw, 26px);
  color: #e6edf3;
  background:
    radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1.4px) 0 0 / 4px 4px,
    linear-gradient(180deg, #2b343d, #171c22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 -3px 0 rgb(0 0 0 / .55), 0 26px 46px -24px rgb(12 29 43 / .75);
  margin-bottom: clamp(36px, 5vw, 60px);
}
.radio-top { display: grid; gap: 14px; }
.radio-left { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); min-width: 0; }
.radio-right { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
@media (min-width: 580px) {
  .radio-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--crease); align-items: center; }
}

.knob-wrap { position: relative; width: 112px; height: 112px; flex: none; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.tick {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  display: grid; place-items: center;
  font: 400 1rem/1 "VT323", monospace; color: #8b99a7;
  transform: rotate(var(--t)) translateY(-48px) rotate(calc(var(--t) * -1));
  transition: color .15s ease;
}
.tick.on { color: #fff; }
.knob {
  position: absolute; inset: 20px; border-radius: 50%;
  background: repeating-conic-gradient(#0c1014 0 6deg, #3c4752 6deg 12deg);
  box-shadow: 0 5px 9px rgb(0 0 0 / .6), 0 0 0 2px #0c1014;
  transform: rotate(var(--knob, 0deg));
  transition: transform .24s cubic-bezier(.34, 1.4, .64, 1);
}
.knob::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #4a5663, #1d242c 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2);
}
.knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 5px; height: 24px; margin-left: -2.5px; border-radius: 3px; background: var(--fire); }

.lcd {
  position: relative; flex: 1; min-width: 0; container-type: inline-size;
  border-radius: 8px; padding: 9px 12px 7px;
  font-family: "VT323", monospace; color: #06202f;
  background: linear-gradient(180deg, #c3e8f8, #8fd0ee);
  box-shadow: inset 0 0 0 2px #0a0e12, inset 0 3px 7px rgb(6 32 47 / .35), 0 0 22px -4px rgb(120 200 240 / .55);
  overflow: hidden;
}
.lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(6 32 47 / .06) 0 1px, transparent 1px 3px); }
.lcd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.25rem; line-height: 1; }
.lcd-name { font-size: min(14.5cqw, 3rem); line-height: 1; margin: 2px 0 1px; white-space: nowrap; text-transform: uppercase; }
.lcd-name.dim { color: rgb(6 32 47 / .22); }
.lcd.alert {
  color: #2a0d00;
  background: linear-gradient(180deg, #ffc49e, #ff9358);
  box-shadow: inset 0 0 0 2px #0a0e12, inset 0 3px 7px rgb(80 25 0 / .35), 0 0 26px -2px rgb(255 120 50 / .75);
}
.lcd.alert .bars i { background: #2a0d00; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { display: block; width: 4px; background: #06202f; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; } .bars i:nth-child(4) { height: 14px; }

.follow {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 14px 18px 11px; border-radius: 10px;
  font-weight: 800; font-size: 1.1rem; line-height: 1.1; text-decoration: none; color: #fff;
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / .08) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #236fa3, #185582);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 4px 0 #0e3a5a, 0 8px 14px rgb(0 0 0 / .45);
  transition: transform .1s ease, box-shadow .1s ease;
}
.follow:hover { filter: brightness(1.08); }
.follow:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 1px 0 #0e3a5a; }
.radio-actions { display: flex; gap: 10px; }
.radio-actions .follow { flex: 1; min-width: 0; }
.emer {
  flex: none; display: grid; place-items: center; width: 86px; min-height: 60px; border-radius: 10px;
  font: 400 1.7rem/1 "VT323", monospace; letter-spacing: .03em; text-decoration: none; color: #2a0d00;
  background:
    repeating-linear-gradient(0deg, rgb(0 0 0 / .1) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #ff7d33, #f2511b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 2px #0c1014, 0 4px 0 #7f2606, 0 8px 14px rgb(0 0 0 / .45);
  transition: transform .1s ease, box-shadow .1s ease, filter .1s ease;
}
.emer:hover { filter: brightness(1.1); }
.emer:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 2px #0c1014, 0 1px 0 #7f2606; }
.radio-hint { font-size: .92rem; color: #aab6c2; text-align: center; }

.keys { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.keys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 580px) and (max-width: 899px) {
  .keys-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) calc(var(--crease) - 16px) repeat(3, minmax(0, 1fr)); }
  .key:nth-child(4) { grid-column: 5; }
}
@media (min-width: 900px) { .keys-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.key { position: relative; display: block; cursor: pointer; }
.key input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.key-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 74px; padding: 9px 4px 6px; border-radius: 10px; text-align: center;
  font-weight: 700; font-size: .84rem; line-height: 1.1; color: #d6dfe7;
  background: linear-gradient(180deg, #3a454f, #232b33);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 3px 0 #0b0f13;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease, color .15s ease;
}
.key-face svg { width: 24px; height: 24px; fill: currentColor; }
.key:hover .key-face { color: #fff; background: linear-gradient(180deg, #444f5b, #29323b); }
.key input:checked + .key-face {
  background: var(--key); color: var(--key-ink, #fff);
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 1px 0 #0b0f13, 0 0 16px -1px var(--key);
}
.key input:focus-visible + .key-face { outline: 3px solid var(--water); outline-offset: 2px; }

/* The ladder */
.ladder { position: relative; padding-left: 74px; }
.rails, .rails-lit { position: absolute; left: 12px; top: 0; bottom: 0; width: 44px; pointer-events: none; }
.rails {
  background:
    linear-gradient(90deg, var(--rail) 0 6px, transparent 6px calc(100% - 6px), var(--rail) calc(100% - 6px)),
    repeating-linear-gradient(180deg, var(--rail) 0 5px, transparent 5px 34px);
  border-radius: 3px;
}
.rails-lit {
  background:
    linear-gradient(90deg, var(--fire) 0 6px, transparent 6px calc(100% - 6px), var(--fire) calc(100% - 6px)),
    repeating-linear-gradient(180deg, var(--fire) 0 5px, transparent 5px 34px);
  clip-path: inset(0 0 calc(100% - var(--climb, 0%)) 0);
}
.rung { position: relative; padding-bottom: clamp(18px, 2.4vw, 28px); }
.rung:last-child { padding-bottom: 0; }
.rung-no {
  position: absolute; left: -70px; top: 6px; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; padding-top: 3px;
  font: 400 1.5rem/1 var(--display); color: #fff;
  background: var(--night);
  box-shadow: 0 0 0 4px var(--bg);
}
:root[data-theme="dark"] .rung-no { background: var(--brand); color: var(--brand-ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2.2vw, 26px); box-shadow: var(--shadow); transition: background-color .3s ease; }
.rung .card { display: grid; gap: 14px; }
@media (min-width: 860px) {
  .rung .card { grid-template-columns: minmax(0, 1fr) 210px; column-gap: 32px; align-items: start; }
}
.rung-top { display: flex; flex-wrap: wrap; gap: 3px 14px; color: var(--muted); font-size: .94rem; font-weight: 600; margin-bottom: 5px; }
.rung-new { color: var(--accent); }
.rung .guest { color: var(--brand); font-weight: 700; margin-top: 5px; line-height: 1.3; }
.rung .blurb { margin-top: 8px; text-wrap: pretty; }
.rung-act { display: flex; flex-wrap: wrap; gap: 8px; }
.rung-act .btn { min-height: 46px; padding: 11px 14px 8px; font-size: .97rem; flex: 1 1 150px; }
@media (min-width: 860px) { .rung-act { flex-direction: column; } .rung-act .btn { flex: none; width: 100%; } }
.btn-play { background: var(--fire-btn); color: #fff; }
.btn-play:hover { background: var(--fire-btn-hover); }
.btn-play[aria-pressed="true"] { background: var(--night); }
:root[data-theme="dark"] .btn-play[aria-pressed="true"] { background: #2a5a84; }
.btn-open { border: 1.5px solid var(--line); color: var(--ink); }
.btn-open:hover { border-color: var(--ink); }
.notes { margin-top: 8px; }
.notes summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 7px 0; width: fit-content; }
.notes summary:hover { color: var(--ink); }
.notes p { font-size: 1rem; margin-top: 7px; color: var(--muted); text-wrap: pretty; }
.notes a { color: var(--accent); }

/* Quotes */
.quotes { background: var(--bg-2); transition: background-color .3s ease; }
.quotes h2 { margin-bottom: clamp(24px, 3.5vw, 40px); }
.quote-list { display: grid; gap: 22px; }
@media (min-width: 580px) { .quote-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--crease); } }
@media (min-width: 1000px) { .quote-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }
.quote { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; border-top: 3px solid var(--fire); }
.quote blockquote { font: 400 clamp(1.08rem, 1rem + .35vw, 1.28rem)/1.34 var(--display); text-wrap: pretty; }
.quote-by { color: var(--muted); font-size: .96rem; line-height: 1.35; }
.quote-by b { color: var(--ink); font-weight: 700; }
.quote-hear { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--accent); margin-top: auto; }
.quote-hear:hover { color: var(--ink); }
.quote-hear svg { width: 15px; height: 15px; fill: currentColor; margin-top: -3px; }

/* Hosts */
.hosts-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.hosts-head h2 { margin-bottom: 12px; }
.host-grid { align-items: stretch; }

/* Host flip cards, after the project cards on sprylylabs.net/geller.
   Both faces share one grid cell, so the card is as tall as its longest face. */
.flip {
  position: relative; display: grid; cursor: pointer; border-radius: 16px;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d; will-change: transform;
  transform: perspective(1400px) rotateY(0deg);
  transition: transform .7s cubic-bezier(.2, .8, .3, 1);
}
.flip.flipped { transform: perspective(1400px) rotateY(180deg); z-index: 2; }
@media (max-width: 579px) {
  /* a tall card through a strong perspective looms at the viewer on a phone */
  .flip { transform: perspective(2400px) rotateY(0deg); transition-duration: .55s; }
  .flip.flipped { transform: perspective(2400px) rotateY(180deg); }
}
.flip .host-head img { width: clamp(96px, 13vw, 164px); height: clamp(96px, 13vw, 164px); }
.flip:focus-visible { outline: none; }
.flip:focus-visible .flip-face { outline: 3px solid var(--water); outline-offset: 3px; }
.flip-face {
  grid-area: 1 / 1; min-width: 0; border-radius: 16px; overflow: hidden; position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow);
}
.flip-front {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  padding-top: calc(clamp(18px, 2.4vw, 28px) + 8px);
  transition: background-color .3s ease;
}
.flip-front::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--fire) 0 12px, var(--night) 12px 24px);
}
.flip-front .patches { margin-top: auto; padding-top: 18px; }
@media (max-width: 767px) {
  .flip-back .record { gap: 10px; }
  .flip-back .record p { font-size: .95rem; line-height: 1.42; }
}
.flip-back { transform: rotateY(180deg); color: #fff; display: flex; flex-direction: column; }
.flip-david .flip-back { background: var(--navy); }
.flip-andrew .flip-back { background: #ad380b; }
:root[data-theme="dark"] .flip-david .flip-back { background: #1b5d88; }
.flip-title { font: 400 clamp(1.3rem, 1.15rem + .6vw, 1.6rem)/1.1 var(--display); padding-right: 40px; }
.flip-back .record { margin-top: 12px; }
.flip-back .record h4 { color: #fff; }
.flip-back .record p { color: rgb(255 255 255 / .92); }
.flip-back .host-links { margin-top: auto; padding-top: 10px; }
.flip-back .host-links a { color: #fff; }
.flip-close {
  position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.flip-close:hover { background: rgb(255 255 255 / .16); }
.flip-close svg { width: 20px; height: 20px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .flip-close { display: none; } }
.flip-hint {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-end;
  margin-top: 0; padding-top: 16px;
  font-size: .92rem; font-weight: 700; line-height: 1.1; color: var(--accent);
}
.flip-hint svg { width: 17px; height: 17px; margin-top: -3px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.flip:hover .flip-hint svg { transform: rotate(180deg); }
.host-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.host-head img { width: clamp(96px, 11vw, 132px); height: clamp(96px, 11vw, 132px); object-fit: cover; border-radius: 14px; flex: none; }
.host-name { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); line-height: 1.05; }
.host-role { color: var(--brand); font-weight: 700; line-height: 1.25; margin-top: 4px; }
.host-sum { font-size: 1.1rem; line-height: 1.48; text-wrap: pretty; }
.record { margin-top: 16px; display: grid; gap: 13px; }
.record h4 { font-weight: 800; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.record p { color: var(--muted); text-wrap: pretty; }
.patches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.patches li { font-size: .88rem; font-weight: 700; line-height: 1.1; padding: 7px 10px 4px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); }
.host-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.host-links a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; display: inline-block; padding-block: 8px; }

/* Guests */
.guest-sec { background: var(--night); color: var(--on-night); }
.guest-sec h2 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem); margin-bottom: 14px; color: #fff; text-shadow: .045em .045em 0 var(--fire); }
.guest-sec .lede { color: var(--on-night); }
.guest-sec .btn { margin-top: 22px; }
.guest-note { margin-top: 14px; font-size: 1rem; color: var(--on-night-2); max-width: 32em; }
.guest-side { display: grid; gap: 24px; align-content: start; }
.guest-side h3 { font-size: 1.28rem; color: #fff; margin-bottom: 10px; }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.steps li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; padding-top: 2px;
  font: 400 1rem/1 var(--display); color: #fff; background: var(--fire-btn);
}
.rode { display: grid; gap: 2px; }
.rode button { display: block; width: 100%; text-align: left; padding: 10px 0 7px; border-bottom: 1px solid rgb(234 241 246 / .22); line-height: 1.3; }
.rode button:hover b { color: #ffb394; }
.rode b { font-weight: 700; }
.rode span { display: block; color: var(--on-night-2); font-size: .97rem; }

/* Contact */
.contact-grid { align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); } }
.contact-head { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 36px); }
.contact-head h2 { margin-bottom: 12px; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 6px; padding: 0; width: 100%; }
.optional { font-weight: 400; color: var(--muted); }
.count { font-weight: 400; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.field input[type="text"], .field input[type="email"], .field textarea {
  display: block; width: 100%; padding: 12px 13px 9px; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 1.0625rem; line-height: 1.4;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--water); outline-offset: 0; border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: block; padding: 10px 14px 7px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .97rem; line-height: 1.2; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pill input:focus-visible + span { outline: 3px solid var(--water); outline-offset: 2px; }
.field-pair { display: grid; gap: 0 16px; }
@media (min-width: 900px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 1rem; line-height: 1.35; }
.form-status.err { color: var(--accent); font-weight: 600; }
.form-status.ok { color: var(--brand); font-weight: 700; }
.form-status a { color: inherit; }
.contact-side { display: grid; gap: 22px; align-content: start; }
.contact-side h3 { font: 800 1.02rem/1.3 var(--text); margin-bottom: 4px; }
.contact-side p { color: var(--muted); font-size: 1rem; text-wrap: pretty; }
.contact-side a { color: var(--accent); }

/* Footer */
.foot { background: var(--night); color: var(--on-night); padding-block: 40px calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 26px; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .brand { font-size: 1.45rem; margin-bottom: 12px; color: #fff; }
.foot .brand svg { width: 38px; height: 38px; }
.foot h3 { font: 700 1rem/1.3 var(--text); color: #fff; margin-bottom: 8px; }
.foot li a { display: inline-block; padding-block: 5px; text-decoration: none; color: var(--on-night-2); }
.foot li a:hover { color: #fff; text-decoration: underline; }
.fine { font-size: .92rem; color: var(--on-night-2); max-width: 42em; }
.fine + .fine { margin-top: 8px; }

/* Player dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--night); color: #fff;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 0 var(--fire), 0 -14px 30px -18px rgb(0 0 0 / .8);
  transform: translateY(110%); transition: transform .28s cubic-bezier(.2, .8, .3, 1);
  visibility: hidden;
}
.dock.on { transform: none; visibility: visible; }
.dock-in { width: min(1200px, 100%); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 4px; }
.dock img { width: 48px; height: 48px; border-radius: 6px; }
.dock-title { font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-ctl { display: flex; align-items: center; gap: 4px; }
.dock-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; font-weight: 800; color: #dfe6f1; }
.dock-btn:hover { color: #fff; background: rgb(255 255 255 / .1); }
.dock-btn svg { width: 22px; height: 22px; fill: currentColor; }
.dock-main { background: var(--fire-btn); color: #fff; }
.dock-main:hover { background: var(--fire-btn-hover); }
.dock-track { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.dock-track input { flex: 1; min-width: 0; accent-color: var(--fire); height: 24px; margin: 0; }
.dock-err { color: #ffc2b0; font-size: .9rem; }
@media (max-width: 520px) { .dock-skip { display: none; } .dock img { width: 42px; height: 42px; } }

/* Narrow pages on the Duo's inner display */
@media (min-width: 580px) and (max-width: 767px) {
  .knob-wrap { transform: scale(.86); margin: -8px -8px; }
  .ladder { padding-left: 62px; }
  .rails, .rails-lit { left: 7px; width: 36px; }
  .rung-no { left: -60px; width: 50px; height: 50px; font-size: 1.25rem; }
}
@media (max-width: 400px) {
  .ladder { padding-left: 60px; }
  .rails, .rails-lit { left: 6px; width: 36px; }
  .rung-no { left: -60px; width: 50px; height: 50px; font-size: 1.25rem; }
  .knob-wrap { transform: scale(.86); margin: -8px -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
