/* Layout: a studio shell (ivory, orange) that holds one release at a time. The release brings its own world.
   Inside the Lounge nothing casts a shadow. Outside, in the rain, everything does. */
:root {
  /* the studio */
  --ivory: #FCF3E8;
  --orange: #CA450D;
  --ink: #30423C;
  /* the Lounge: the film's own colours (tools/endcard.py) */
  --peach: #F7BEAA;
  --peach-light: #FBD6C7;
  --peach-deep: #F0A894;
  --coral: #EE7660;
  --coral-text: #C9482F;
  --cream: #FCF3E8;
  --mint: #B0E0CC;
  --white: #FFFCF7;
  /* outside */
  --dusk: #232D36;
  --dusk-deep: #171F26;
  --wet: #E6ECEF;

  /* what the page is drawn with; the second block below swaps these when you walk out */
  --ground: var(--peach);
  --text: var(--ink);
  --title: var(--cream);
  --label: var(--ink);
  --bar: var(--ivory);
  --bar-text: var(--ink);
  --card: var(--white);
  --card-text: var(--ink);
  --edge: var(--cream);
  --shade: none;
  --cap-a: var(--coral);
  --cap-b: var(--cream);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='176' height='236'%3E%3Cg transform='translate(44 59) rotate(28)'%3E%3Crect x='-33' y='-13.5' width='66' height='27' rx='13.5' fill='%23F0A894'/%3E%3Cpath d='M0-13.5h-19.5a13.5 13.5 0 0 0 0 27H0z' fill='%23FBD6C7'/%3E%3C/g%3E%3Cg transform='translate(132 177) rotate(28)'%3E%3Crect x='-33' y='-13.5' width='66' height='27' rx='13.5' fill='%23F0A894'/%3E%3Cpath d='M0-13.5h-19.5a13.5 13.5 0 0 0 0 27H0z' fill='%23FBD6C7'/%3E%3C/g%3E%3C/svg%3E");

  --display: "Alfa Slab One", "Superclarendon", Rockwell, Georgia, serif;
  --app: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --caps: "Jost", Futura, "Century Gothic", sans-serif;
  --voice: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
  --head: var(--display);
  --head-weight: 400;
  --head-track: 0em;
  --copy: var(--app);

  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1120px;
  --r: 24px;
  color-scheme: light;
}

html[data-world="outside"] {
  --ground: var(--dusk);
  --text: var(--wet);
  --title: #F8F9F7;
  --label: #AFBDC6;
  --bar: var(--dusk-deep);
  --bar-text: var(--wet);
  --card: #2E3A45;
  --card-text: var(--wet);
  --edge: #3D4A56;
  --shade: 0 26px 50px rgba(0, 0, 0, .55);
  --cap-a: #D2705F;
  --cap-b: #EDE5DA;
  --pattern: none;
  --head: var(--voice);
  --head-weight: 500;
  --head-track: -.015em;
  --copy: var(--voice);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.125rem/1.55 var(--copy);
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 99; padding: .6rem 1rem; background: var(--ink); color: var(--cream); border-radius: 99px; }
.skip:focus { top: .6rem; }

/* two voices: .in is the app talking, .out is hers */
.out { display: none; }
html[data-world="outside"] .in { display: none; }
html[data-world="outside"] .out { display: revert; }

section { scroll-margin-top: 84px; }
h2 {
  font: var(--head-weight) clamp(2.1rem, 4.7vw, 4rem)/1.04 var(--head);
  letter-spacing: var(--head-track);
  color: var(--title);
  text-wrap: balance;
}
.tag {
  font: 600 .75rem/1 var(--caps);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
  background: var(--ground);          /* keeps the capsule pattern clear of the words, as on the end card */
  padding: .6em .2em .55em .9em;
  margin-left: -.9em;
  border-radius: 99px;
}
.tag--bare { background: none; padding: 0; margin: 0; }
.card {
  display: grid;
  gap: .8em;
  background: var(--card);
  color: var(--card-text);
  border-radius: var(--r);
  padding: 1.35rem 1.6rem;
  box-shadow: var(--shade);
}
.frame {
  position: relative;
  border: 6px solid var(--edge);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shade);
  background: var(--edge);
}
.frame img { width: 100%; }

/* ---------- the studio shell ---------- */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px var(--gutter);
  background: var(--bar);
  color: var(--bar-text);
}
.bar__mark { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.bar__emblem { height: 50px; width: auto; }
.bar__words { display: flex; align-items: center; gap: 8px; }
.bar__word { height: 22px; width: auto; }
.bar__tag { margin-left: 12px; font: 600 .6rem/1 var(--caps); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; opacity: .8; }
.jump { display: none; }
.bar__links { display: flex; gap: clamp(14px, 2.4vw, 30px); font: 600 .72rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.bar__links a { text-decoration: none; padding-block: .7em; display: block; }
.bar__links a:hover { color: var(--orange); }
html[data-world="outside"] .bar__links a:hover { color: var(--peach); }

/* ---------- the film ---------- */
.hero {
  padding: clamp(26px, 4.5vw, 52px) var(--gutter) clamp(44px, 7vw, 88px);
  background-image: var(--pattern);
  background-size: 176px 236px;
  background-position: center 20px;
}
.hero__inner { display: grid; gap: 20px; max-width: var(--wide); margin-inline: auto; }
.hero__row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-inline: .9em 0; }
.hero__row .tag:last-child { margin-left: 0; padding-inline: .9em .7em; }
.hero__row--foot { align-items: flex-start; flex-wrap: wrap; padding: 0; }
.hero__line {
  font: var(--head-weight) clamp(1.35rem, 2.6vw, 2rem)/1.14 var(--head);
  letter-spacing: var(--head-track);
  color: var(--title);
  background: var(--ground);
  padding: .3em .7em .4em;
  margin-left: -.1em;
  border-radius: 18px;
}
html[data-world="outside"] .hero__line { font-style: italic; }

.capsule {
  position: relative;
  width: 100%;
  aspect-ratio: 25 / 9;                 /* a 16:9 window with a half circle of the same height on each end */
  container-type: inline-size;          /* the film is sized from the capsule: 1cqw is 1% of its width, and its height is 36cqw */
  border-radius: 9999px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shade);

  /* How the film sits between the halves once they part. The halves slide right out to the ends and nothing of the
     shell is left across the middle; the film is a sleeve they slid off, a little slimmer than the shell, with its
     own edge along the top and bottom. */
  --inset: clamp(5px, .8cqw, 10px);     /* how much slimmer than the shell the sleeve is, each side */
  --rail: clamp(4px, .62cqw, 7px);      /* the sleeve's edge along its long sides */
  --side: 0px;                          /* its edge on the ends that face the halves */
  --gap: 0px;                           /* clear space between each half and the film */
  --tuck: 1px;                          /* the halves overlap the film by this much, so no hairline shows */
  --film-edge: var(--white);
  --film-radius: 0px;
  --long: calc(var(--inset) + var(--rail));
  --body: calc(1.7778 * var(--long) - var(--side) - var(--gap) + var(--tuck));   /* what each half keeps beyond a bare half circle */
}
.capsule[data-frame="plain"] { --inset: 0px; --rail: 0px; }
.capsule[data-frame="mint"] { --film-edge: var(--mint); }
.capsule[data-frame="apart"] { --side: var(--rail); --gap: clamp(8px, 1.1cqw, 14px); --tuck: 0px; --film-edge: var(--cream); --film-radius: clamp(12px, 1.8cqw, 22px); }
.capsule__film {
  --w: calc((36cqw - 2 * var(--long)) * 16 / 9 + 2 * var(--side));
  position: absolute;
  box-sizing: border-box;
  top: var(--inset);
  height: calc(36cqw - 2 * var(--inset));
  left: calc(50cqw - var(--w) / 2);
  width: var(--w);
  border: solid var(--film-edge);
  border-width: var(--rail) var(--side);
  border-radius: var(--film-radius);
  overflow: hidden;
  background: #000;
}
.capsule__film video, .capsule__film iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.capsule__half {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 1.05s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
}
/* the first half is 1px over the join, so the film never shows through a closed capsule */
.capsule__half--a { left: 0; width: calc(50% + 1px); background: var(--cap-a); --tease: translateX(-2.4%); --away: translateX(calc(-32cqw + var(--body) - 1px)); }
.capsule__half--b { right: 0; background: var(--cap-b); --tease: translateX(2.4%); --away: translateX(calc(32cqw - var(--body))); }
.lockup {
  position: absolute;
  top: 50%;
  height: 56%;
  aspect-ratio: 1373 / 1041;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat;
}
/* two plain pictures, one per half: these load even when the page is opened straight from disk */
.capsule__half--a .lockup { left: calc(100% - 1px); background-image: url("assets/lockup-cream.png"); }
.capsule__half--b .lockup { left: 0; background-image: url("assets/lockup-coral.png"); }
.capsule__cover { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.capsule__cover:focus-visible { outline-offset: -8px; outline-color: var(--ink); }

.capsule[data-state="open"] .capsule__half { transform: var(--away); }
@media (hover: hover) {
  .capsule[data-state="closed"]:hover .capsule__half { transform: var(--tease); transition-duration: .5s; }
}
@media (hover: none) {
  .capsule[data-state="closed"] .capsule__half { animation: breathe 6s cubic-bezier(.6, 0, .3, 1) 2.5s infinite; }
}
@keyframes breathe { 0%, 78%, 100% { transform: none; } 86%, 92% { transform: var(--tease); } }

.pillbtn { display: inline-flex; align-items: stretch; border-radius: 99px; overflow: hidden; font: 700 .78rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; box-shadow: var(--shade); flex: none; }
.pillbtn__a { display: grid; place-items: center; padding: 0 12px 0 19px; background: var(--coral); }
.pillbtn__a svg { fill: var(--cream); }
.pillbtn__b { padding: 1.25em 1.6em 1.15em 1.2em; background: var(--cream); color: var(--ink); }
.pillbtn--plain .pillbtn__b { padding-left: 1.6em; }
.pillbtn:hover .pillbtn__b { background: var(--white); }
.pillbtn:focus-visible { outline-offset: 4px; }
.icon-stop { display: none; }
[aria-expanded="true"] .icon-play { display: none; }
[aria-expanded="true"] .icon-stop { display: block; }

/* ---------- the idea ---------- */
.idea {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter);
}
.idea__words { display: grid; gap: 1.2rem; }
.idea .card { max-width: 34rem; }

/* ---------- the chorus ---------- */
.chorus { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(32px, 6vw, 80px) var(--gutter); display: grid; gap: 1.1rem; }
.chorus__lines p, .chorus__mine {
  font: var(--head-weight) clamp(2.1rem, 5.9vw, 5.1rem)/1.02 var(--head);
  letter-spacing: var(--head-track);
  color: var(--title);
  text-wrap: balance;
}
.chorus__lines { display: grid; gap: .12em; }
.chorus__lines p:nth-child(even) { color: var(--coral); }
html[data-world="outside"] .chorus__lines p {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--label);
  width: fit-content;
  background: linear-gradient(currentColor, currentColor) left 56% / 0% .07em no-repeat;
  animation: strike .7s cubic-bezier(.6, 0, .2, 1) forwards;
}
html[data-world="outside"] .chorus__lines p:nth-child(2) { animation-delay: .25s; }
html[data-world="outside"] .chorus__lines p:nth-child(3) { animation-delay: .5s; }
html[data-world="outside"] .chorus__lines p:nth-child(4) { animation-delay: .75s; }
@keyframes strike { to { background-size: 100% .07em; } }
.chorus__mine { font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: .98; margin-top: .15em; }

/* ---------- how it was made ---------- */
.making { padding-block: clamp(40px, 7vw, 96px); display: grid; gap: 28px; }
.making__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.making__head > div { display: grid; gap: 1.1rem; }
.tally { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 18px; font: 600 .68rem/1.3 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.tally strong { display: block; font: var(--head-weight) clamp(2rem, 3.6vw, 3rem)/1 var(--head); letter-spacing: 0; color: var(--title); font-variant-numeric: tabular-nums; margin-bottom: .2em; }
.reel__nav { display: flex; gap: 10px; justify-content: flex-end; width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--card-text); box-shadow: var(--shade); }
.round:hover { background: var(--cream); color: var(--ink); }
.reel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2));
  padding: 6px max(var(--gutter), calc((100vw - var(--wide)) / 2)) 40px;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel li { flex: none; width: min(76vw, 340px); scroll-snap-align: start; border: 5px solid var(--edge); border-radius: 26px; overflow: hidden; box-shadow: var(--shade); }
.reel img { width: 100%; }
.reel__card { display: block; width: 100%; cursor: zoom-in; }
.reel__card:focus-visible { outline-offset: -6px; outline-color: var(--ink); }

/* a slide, opened large */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: none; color: var(--ink); overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; justify-items: center; align-items: center; }
.viewer::backdrop { background: rgba(48, 66, 60, .8); }
html[data-world="outside"] .viewer::backdrop { background: rgba(10, 14, 18, .86); }
.viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; border: 6px solid var(--cream); border-radius: 30px; cursor: default; }
.viewer__bar { display: flex; align-items: center; gap: 14px; font-family: var(--app); }
.viewer .round { background: var(--cream); color: var(--ink); }
.viewer .round:hover { background: var(--white); }
.viewer :focus-visible { outline-color: var(--cream); }
.viewer__count { min-width: 5.5em; text-align: center; font: 600 .75rem/1 var(--caps); letter-spacing: .22em; color: var(--cream); font-variant-numeric: tabular-nums; }
.viewer__close { position: absolute; top: 16px; right: 16px; }

/* ---------- the way out ---------- */
.exit {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 9vw, 120px);
}
.exit__words { display: grid; gap: 1.2rem; justify-items: start; }
.exit__door { position: absolute; left: 44.2%; top: 3.5%; width: 11.8%; height: 42.5%; border-radius: 999px 999px 0 0; }
html[data-world="outside"] .exit__door { left: 31.6%; top: 21%; width: 7.4%; height: 34.5%; }
.exit__door::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--white); transition: box-shadow .3s; }
.exit__door:hover::after, .exit__door:focus-visible::after { box-shadow: inset 0 0 0 4px var(--white); }
.away { gap: 1rem; justify-items: start; }
html[data-world="outside"] .away { display: grid; }
.away__say { font-size: 1.2rem; max-width: 26rem; }
.away[data-state="running"] .away__say, .away[data-state="done"] .away__say { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; font-style: italic; color: var(--title); }
.away[data-state="running"] .pillbtn { visibility: hidden; }
.away__best { font: 600 .72rem/1.3 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--label); }

/* ---------- the studio, again ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  background: var(--ivory);
  color: #2B2A27;
  padding: clamp(48px, 8vw, 104px) max(var(--gutter), calc((100vw - var(--wide)) / 2));
  font-family: var(--app);
}
.studio .tag { color: #2B2A27; }
.studio__emblem { width: 100%; max-width: 220px; justify-self: center; }
.studio__words { display: grid; gap: 1.2rem; max-width: 38rem; }
.studio__name { display: grid; gap: 8px; justify-items: start; }
.studio__name img { height: clamp(40px, 8vw, 84px); width: auto; }   /* "Washington" is a long word: it has to fit a phone's width */
.follow { display: flex; flex-wrap: wrap; gap: 10px; font: 600 .72rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; }
.follow a, .follow span { display: inline-flex; align-items: center; gap: .7em; padding: 1em 1.3em .95em; border-radius: 99px; border: 2px solid currentColor; text-decoration: none; }
.follow a:hover { background: var(--orange); border-color: var(--orange); color: var(--ivory); }
.follow span { opacity: .5; border-style: dashed; }
.follow small { font-size: .85em; letter-spacing: .16em; }

/* ---------- the small print ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 40px;
  align-items: end;
  padding: 36px max(var(--gutter), calc((100vw - var(--wide)) / 2)) calc(40px + env(safe-area-inset-bottom, 0px));
  background-image: var(--pattern);
  background-size: 176px 236px;
}
.terms { grid-row: span 2; display: grid; gap: 10px; max-width: 30rem; background: var(--card); color: var(--card-text); border-radius: var(--r); padding: 1.1rem 1.3rem; box-shadow: var(--shade); }
.terms__tick { display: flex; align-items: center; gap: .7em; font: 700 1rem/1.2 var(--app); cursor: pointer; }
.terms__tick input { appearance: none; -webkit-appearance: none; flex: none; width: 1.5em; height: 1.5em; margin: 0; border-radius: .42em; border: 2px solid var(--ink); background: var(--white) center / 78% no-repeat; cursor: pointer; }
.terms__tick input:checked { background-color: var(--mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.6' fill='none' stroke='%2330423C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.terms__print { font: 400 .5rem/1.35 var(--app); letter-spacing: .01em; opacity: .62; }
.terms__print b { font-weight: 800; font-size: 1.5em; opacity: 1; }
.foot__credit, .foot__small { font: 600 .68rem/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--label); text-align: right; background: var(--ground); padding: .5em .9em; border-radius: 99px; justify-self: end; }

/* ---------- the app's surfaces ---------- */
.notes {
  position: absolute;
  left: max(12px, env(safe-area-inset-left, 0px));
  top: calc(100% + 10px);
  width: min(330px, calc(100vw - 24px));
  pointer-events: none;
  font-family: var(--app);
}
html[data-world="outside"] .notes { display: none; }
.note {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 12px;
  align-items: center;
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 12px 16px 12px 12px;
  outline: 1.5px solid rgba(48, 66, 60, .09);     /* an edge, so the card still reads over the ivory studio band */
  transform-origin: 20px 0;
  animation: note-in .55s cubic-bezier(.2, .9, .25, 1.15) both;
}
.note.is-going { animation: note-out .28s ease-in both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-14px) scale(.94); } }
@keyframes note-out { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
.note__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; }
.note__icon::before { content: ""; width: 22px; height: 10px; border-radius: 9px; background: linear-gradient(90deg, var(--coral) 50%, var(--white) 50%); transform: rotate(-28deg); }
.note__label { font: 700 .6rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--coral-text); margin-bottom: .45em; }
.note__label i { font-style: normal; opacity: .55; margin-left: .7em; color: var(--ink); }
.note__text { font: 700 .98rem/1.28 var(--app); }
.note__actions { grid-column: 2; display: flex; gap: 6px; align-items: center; }
.note__btn { font: 800 .86rem/1 var(--app); padding: .7em 1.1em; border-radius: 99px; background: var(--mint); }
.note__btn { transition: transform .2s, background-color .2s; }
.note__btn:hover { background: #9BD6BE; }
.note__btn.is-pressed { background: #86CBB0; transform: scale(.93); }
.note__btn--quiet { background: none; text-decoration: underline; text-underline-offset: 3px; }
.note__btn--quiet:hover { background: var(--peach-light); }
.note :focus-visible { outline-color: var(--ink); }

.arch {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 46px;
  height: 66px;
  border: 5px solid var(--cream);
  border-bottom: 0;
  border-radius: 23px 23px 0 0;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0) 0 5px, rgba(255, 255, 255, .28) 5px 6px) 0 0 / 200% 200%,
    linear-gradient(#93A5B5, #4C5A68);
  animation: arch-rain 1.1s linear infinite;
}
@keyframes arch-rain { to { background-position: -12px 68px, 0 0; } }
html[data-world="outside"] .arch {
  border-color: #46535F;
  background: radial-gradient(120% 80% at 50% 100%, #FDE3D8, var(--peach) 55%, var(--peach-deep));
  box-shadow: 0 0 34px 6px rgba(247, 190, 170, .5);
  animation: none;
}
.arch__say {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 8px;
  white-space: nowrap;
  font: 700 .9rem/1 var(--app);
  background: var(--white);
  color: var(--ink);
  padding: .75em 1.1em;
  border-radius: 99px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.arch:hover .arch__say, .arch:focus-visible .arch__say { opacity: 1; transform: none; }

.rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; opacity: 0; }
html[data-world="outside"] .rain { opacity: 1; }

/* walking through the archway: the new world grows out of the arch */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

@media (max-width: 1020px) { .bar__tag { display: none; } }

/* ---------- narrow screens: the capsule stands up ---------- */
@media (max-width: 760px) {
  .bar { gap: 10px; }
  .bar__emblem { height: 40px; }
  .bar__word { height: 17px; }
  .bar__words { gap: 6px; }
  .bar__nav { display: none; }
  .jump { display: block; background: var(--bar); color: var(--bar-text); padding: 0 var(--gutter) 8px; }
  .jump .bar__links { justify-content: space-between; gap: 10px; }
  .notes { top: calc(100% + 48px); }
  .arch { position: relative; right: auto; bottom: auto; flex: none; width: 28px; height: 38px; border-width: 3px; border-radius: 14px 14px 0 0; }
  .hero { background-size: 132px 177px; }
  .capsule {
    aspect-ratio: 16 / 25;              /* stood up: 100cqw wide, 156.25cqw tall */
    max-width: 430px;
    margin-inline: auto;
    --inset: 8px;
    --rail: 6px;
    --body: calc(.5625 * var(--long) - var(--side) - var(--gap) + var(--tuck));
  }
  .capsule[data-frame="apart"] { --gap: 10px; --film-radius: 16px; }
  .capsule__film {
    --h: calc((100cqw - 2 * var(--long)) * 9 / 16 + 2 * var(--side));
    left: var(--inset);
    width: calc(100cqw - 2 * var(--inset));
    top: calc(78.125cqw - var(--h) / 2);
    height: var(--h);
    border-width: var(--side) var(--rail);
  }
  .capsule__half { left: 0; right: auto; width: 100%; height: 50%; }
  .capsule__half--a { top: 0; height: calc(50% + 1px); --tease: translateY(-2.4%); --away: translateY(calc(-28.125cqw + var(--body) - 1px)); }
  .capsule__half--b { top: 50%; --tease: translateY(2.4%); --away: translateY(calc(28.125cqw - var(--body))); }
  .lockup { left: 50%; width: 66%; height: auto; }
  .capsule__half--a .lockup { left: 50%; top: calc(100% - 1px); }
  .capsule__half--b .lockup { left: 50%; top: 0; }
  .idea, .exit, .making__head, .studio { grid-template-columns: minmax(0, 1fr); }
  .idea .frame { order: -1; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio__emblem { max-width: 150px; justify-self: start; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot__credit, .foot__small { justify-self: start; text-align: left; }
  .arch__say { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html[data-world="outside"] .chorus__lines p { background-size: 100% .07em; }
}

/* Review: preserve existing geometry while exposing focus and supporting short viewports. */
.studio :focus-visible { outline-color: var(--ink); }
.note__label i { opacity: .8; }
.follow span { opacity: .75; }
.terms__print { opacity: 1; }
.exit__door { min-width: 24px; min-height: 24px; }
@media (prefers-reduced-motion: reduce) {
  .hero { background-position: 50% 20px !important; }
}

/* Added 10 Oct 2026: a quiet link to the film on YouTube beside the capsule's button. The capsule still plays the
   site's own film, so the play-along is untouched; this is for people who want to like, comment or subscribe. */
.hero__acts { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ytlink { font: 700 .72rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--text); text-decoration: none;
  background: var(--ground); padding: .7em 1em .6em; border-radius: 99px; margin-right: .2em; }
.ytlink span { display: inline-block; margin-left: .3em; transition: transform .2s ease; }
.ytlink:hover span { transform: translate(2px, -2px); }
@media (max-width: 640px) { .hero__acts { align-items: flex-start; } }
