:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  color: #f8ecdc;
  background: #14161a;
  --padding: clamp(18px, 3.2vw, 58px);
  --serif: Georgia, "Times New Roman", serif;
  --faint: #c8bfb3;
  --gold: #edc189;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #ffe3b8; outline-offset: 4px; }
.shell { padding-inline: var(--padding); }
.intro { padding-block: 22px 24px; }
.intro-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.wordmark { font-size: clamp(1.1rem, 2vw, 1.65rem); font-weight: 750; letter-spacing: -.035em; }
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8c3a864;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}
.account-link:hover { background: #ffe5ba14; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 {
  margin: 14px 0 8px;
  font-size: clamp(2.4rem, 5.2vw, 5.75rem);
  line-height: 1.06;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.intro p { color: var(--faint); margin: 0; font-size: clamp(.83rem, 1.25vw, 1rem); }
.scenes {
  --scene-count: 6;
  --open-weight: 3.65;
  --divider: 1px;
  --closed-count: calc(var(--scene-count) - 1);
  --expanded-width: calc((100cqw - var(--closed-count) * var(--divider)) * var(--open-weight) / (var(--closed-count) + var(--open-weight)));
  display: flex;
  container-type: inline-size;
  height: clamp(480px, 72svh, 850px);
  border-block: 1px solid #f6ecdc2c;
}
.scene {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--scene-color);
  transition: flex-grow 620ms cubic-bezier(.22,.73,.24,1);
}
.scene + .scene { border-inline-start: var(--divider) solid #f6ecdc38; }
.scene[data-open] { flex-grow: var(--open-weight); }
.scene::before, .scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.scene::before {
  z-index: -2;
  background: var(--backdrop) center / cover no-repeat;
  transition: filter 240ms ease;
  filter: brightness(.76);
}
.scene[data-open]::before, .scene:hover::before { filter: brightness(1); }
.scene::after { z-index: -1; background: linear-gradient(0deg, #0d0f14f5, #1111179e 19%, transparent 56%); }
.scene-toggle {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 8px;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 18px clamp(9px, 1.55vw, 29px) 30px;
}
.scene-toggle:focus-visible { outline-offset: -5px; }
.toggle-icon {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #f8eddb7c;
  border-radius: 50%;
  background: #13161c65;
}
.toggle-icon::before { content: "+"; font-size: 1.2rem; line-height: 1; }
.tab-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(.84rem, 1.7vw, 1.85rem);
  line-height: 1.12;
  min-height: 2.24em;
  text-wrap: balance;
}
.scene[data-open] .scene-toggle {
  inset: 14px 15px auto auto;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
}
.scene[data-open] .toggle-icon { width: 36px; height: 36px; }
.scene[data-open] .toggle-icon::before { content: "−"; }
.scene[data-open] .tab-name { display: none; }
/* The expanding panel reveals a full-size stage without rescaling its contents. */
.scene-stage { position: absolute; inset: 0 auto auto 0; width: var(--expanded-width); height: 100%; }
.scene-canvas { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.scene-copy {
  position: absolute;
  z-index: 1;
  inset: auto clamp(14px, 2vw, 36px) clamp(18px, 3.4vw, 54px);
  animation: reveal-copy 390ms 125ms both;
}
@keyframes reveal-copy { from { opacity: 0; } to { opacity: 1; } }
.scene-title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.95rem, 4.3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-shadow: 0 1px 18px #0009;
}
.scene-copy p { margin: 9px 0 0; font-size: clamp(.85rem, 1.25vw, 1.1rem); color: #f4ede4; line-height: 1.45; text-wrap: pretty; }
.title-snow { z-index: 2; }
.title-word { display: inline-block; white-space: nowrap; }
.title-letter { display: inline-block; position: relative; touch-action: none; user-select: none; cursor: grab; }
.title-letter.is-dragging { z-index: 2; cursor: grabbing; }
.title-letter:focus-visible { outline-offset: 1px; border-radius: 3px; z-index: 2; }
.snow-controls { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.snow-controls button {
  border: 1px solid #f4e3cb5c;
  border-radius: 4px;
  background: #151921ba;
  padding: 5px 9px;
  font-size: .78rem;
}
.snow-controls button[aria-pressed="true"] { background: #e9dfd3; color: #20232b; }
.demo-controls { display: flex; gap: 12px 24px; flex-wrap: wrap; padding-block: 11px; }
.text-button { border: 0; background: transparent; padding: 2px 0; color: var(--faint); font-size: .8rem; text-decoration: underline; text-underline-offset: .24em; }
.text-button:hover { color: #fff5e9; }
.purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 220px;
  padding-block: clamp(30px, 4.5vw, 76px);
  border-top: 1px solid #f6ecdc22;
}
.purchase h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 4.2rem); letter-spacing: -.04em; line-height: 1; }
.purchase .price { margin: 12px 0 0; font-size: clamp(1rem, 1.6vw, 1.45rem); }
.release { margin: 12px 0 0; color: var(--faint); font-size: .8rem; }
.purchase-actions { display: grid; min-width: min(100%, 245px); gap: 12px; justify-items: stretch; text-align: center; }
.buy { display: block; border-radius: 5px; padding: 15px 22px; background: var(--gold); color: #211710; font-weight: 750; }
.buy:hover { background: #ffdaa4; }
.download { font-size: .92rem; text-decoration: underline; text-underline-offset: .22em; padding-block: 4px; }
@media (max-width: 760px) {
  .intro { padding-block: 14px 18px; }
  h1 { text-wrap: wrap; }
  .scenes { --expanded-height: clamp(340px, 55svh, 490px); display: block; height: auto; }
  .scene { height: 64px; transition: height 550ms cubic-bezier(.22,.73,.24,1); }
  .scene + .scene { border-inline-start: 0; border-top: var(--divider) solid #f6ecdc38; }
  .scene[data-open] { height: var(--expanded-height); }
  .scene-stage { width: 100%; height: var(--expanded-height); }
  .scene + .scene .scene-stage { height: calc(var(--expanded-height) - var(--divider)); }
  .scene::after { background: linear-gradient(0deg, #0d0f14f5, #111117b9 24%, transparent 62%); }
  .scene:not([data-open])::after { background: linear-gradient(90deg, #0d0f14dc, #11111748); }
  .scene-toggle { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 0 var(--padding); }
  .tab-name { font-size: 1.16rem; min-height: 0; text-wrap: wrap; }
  .scene-title { font-size: clamp(2.1rem, 8vw, 4.5rem); }
  .purchase { flex-wrap: wrap; }
}
@media (max-width: 410px) {
  .account-link { font-size: .76rem; padding-inline: 9px; }
  .purchase-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
