:root {
  color-scheme: light;
  --paper: #f4eee5;
  --ink: #2e3a4a;
  --muted: #52606c;
  --rule: #c6c1bd;
  --sans: "Source Sans 3", "Segoe UI", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", SimSun, "STIX Two Text", serif;
  --viewport-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --usable-height: calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom));
}
@supports (height: 100svh) {
  :root { --viewport-height: 100svh; }
}
:root[data-scene="sky"] {
  --paper: #202c40;
  --ink: #fff4de;
  --muted: #dedbd9;
  --rule: #626b78;
}
:root[data-scene="letter"] {
  --paper: #fcf2df;
  --ink: #3e3531;
  --muted: #554b42;
  --rule: #cfc0ac;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: var(--safe-top) env(safe-area-inset-right, 0px) var(--safe-bottom) env(safe-area-inset-left, 0px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  transition: background-color 550ms, color 350ms;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 88% 13%, #ebad8930, transparent 47%),
              radial-gradient(ellipse at 6% 94%, #b4bdd128, transparent 45%);
}
.keepsake { position: relative; width: min(73rem, 89%); margin: auto; }
.masthead {
  min-height: clamp(4.3rem, 11svh, 6.8rem);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.letter-label { font: italic clamp(1.15rem, 2vw, 1.5rem)/1.2 Baskervville, Georgia, serif; }
.navigation { display: none; align-items: center; gap: 1.25rem; }
.enhanced .navigation { display: flex; }
.progress, .counter { font: 0.82rem/1.5 "Courier Prime", Consolas, monospace; letter-spacing: 0.07em; }
.back, .replay { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; min-width: 2.75rem; font-size: 0.9rem; padding: 0.5rem 0.25rem; }
[data-scene="wait"] .back { display: none; }
a { color: inherit; text-decoration: none; }
button { appearance: none; border: 0; padding: 0; background: none; color: inherit; font: inherit; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.back:hover, .replay-label { text-decoration: underline; text-underline-offset: 0.25em; }
.replay { color: var(--muted); }
.replay-label { text-decoration-color: #aa9380; }
.replay [aria-hidden] { font-size: 1.25em; }
.replay:hover .replay-label { text-decoration-color: currentColor; }

:root[data-scene="portraits"] {
  --paper: #edf0e6;
  --ink: #323f38;
  --muted: #506053;
  --rule: #bec6b7;
}
[hidden] { display: none !important; }
[data-page], .letter-actions { display: none; }
[data-scene="wait"] [data-page="wait"],
[data-scene="sky"] [data-page="sky"],
[data-scene="portraits"] [data-page="portraits"],
[data-scene="letter"] [data-page="letter"] { display: block; }

.spread {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  grid-template-areas: "copy art" "copy controls";
  align-items: center;
  align-content: center;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: clamp(0.5rem, 1.6vh, 1.15rem);
  min-height: calc(var(--usable-height) - clamp(4.3rem, 11svh, 6.8rem));
  padding: clamp(1.5rem, 4vh, 3.2rem) 0;
}
[data-scene="wait"] .spread { grid-template-areas: "copy art"; }
.copy { grid-area: copy; min-width: 0; padding-inline-start: min(1.4vw, 1.4rem); }
h1 {
  margin: 0;
  font: 500 clamp(2.8rem, 4.55vw, 4.5rem)/1.2 var(--serif);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
h1 span { display: block; }
h1:focus { outline: none; }
.words { margin-top: clamp(1rem, 2.8vh, 1.9rem); color: var(--muted); font: 1.06rem/1.85 var(--sans); overflow-wrap: anywhere; }
p { margin: 0; }
.handwritten-letter p + p { margin-top: 0.75em; }
.camera-controls, .album-controls, .letter-actions { grid-area: controls; justify-self: center; }
[data-scene="sky"] .camera-controls,
.enhanced[data-scene="letter"] .letter-actions { display: flex; justify-content: center; }
[data-scene="letter"] .spread {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "art" "controls";
  width: min(100%, 39rem);
  margin-inline: auto;
  row-gap: clamp(0.65rem, 2vh, 1.5rem);
}
[data-scene="letter"] .copy { padding: 0; }

.shutter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 5.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.65rem;
  color: #f9e6ca;
  font: 500 0.95rem/1.25 var(--sans);
  cursor: pointer;
}
.shutter-dial {
  display: grid;
  width: 3.75rem;
  aspect-ratio: 1;
  padding: 0.25rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.shutter-dial::before {
  content: "";
  border-radius: inherit;
  background: #fae2c4;
  box-shadow: inset 0 -2px 2px #a8825b50;
  transition: transform 110ms, background-color 110ms;
}
.shutter:active .shutter-dial::before, [data-action="capturing"] .shutter-dial::before {
  transform: scale(0.83);
  background: #ddbfa0;
}
.shutter[aria-disabled="true"] { cursor: default; }

.stage {
  --stage-ratio: 1.22;
  --print-paper: #fff9ef;
  --print-shadow: 0 1px 3px #413e3a38, 2px 6px 13px -3px #413e3a45;
  grid-area: art;
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 39rem);
  aspect-ratio: var(--stage-ratio);
}
.photos { position: absolute; inset: 0; z-index: 2; }
.print {
  position: absolute;
  margin: 0;
  padding: clamp(2px, 0.45vw, 6px);
  background: var(--print-paper);
  box-shadow: var(--print-shadow);
}
.print img { display: block; width: 100%; height: auto; object-fit: contain; }
.print figcaption { display: none; }
.paper-corner, .paper-reverse { display: none; }
.print:nth-child(1) { --fan-x: 6%;  --fan-y: 21%; --fan-r: -14deg; --pile-x: 5%;  --pile-y: 27%; --pile-r: -15deg; }
.print:nth-child(2) { --fan-x: 22%; --fan-y: 10%; --fan-r: -6deg;  --pile-x: 29%; --pile-y: 7%;  --pile-r: -5deg; }
.print:nth-child(3) { --fan-x: 43%; --fan-y: 20%; --fan-r: 12deg;  --pile-x: 52%; --pile-y: 24%; --pile-r: 13deg; }
.print:nth-child(4) { --fan-x: 12%; --fan-y: 26%; --fan-r: -11deg; --pile-x: 13%; --pile-y: 40%; --pile-r: -12deg; }
.print:nth-child(5) { --fan-x: 35%; --fan-y: 17%; --fan-r: 1deg;   --pile-x: 37%; --pile-y: 29%; --pile-r: 2deg; }
.print:nth-child(6) { --fan-x: 59%; --fan-y: 24%; --fan-r: 9deg;   --pile-x: 66%; --pile-y: 37%; --pile-r: 11deg; }
[data-scene="wait"] .print {
  left: var(--fan-x); top: var(--fan-y); width: 49%;
  transform: rotate(var(--fan-r));
}
[data-scene="wait"] .print[data-kind="portrait"] { width: 29%; }
[data-scene="letter"] .stage { --stage-ratio: 1.64; width: min(92%, 30rem); }
[data-scene="letter"] .print {
  left: var(--pile-x); top: var(--pile-y); width: 41%;
  transform: rotate(var(--pile-r));
}
[data-scene="letter"] .print[data-kind="portrait"] { width: 25%; }

.envelope-back, .envelope-face, .cat, .camera-body, .viewfinder { display: none; }
[data-scene="wait"] :is(.envelope-back, .envelope-face, .cat-awake),
[data-scene="letter"] .cat-asleep,
[data-scene="sky"] :is(.camera-body, .viewfinder) { display: block; }
.envelope-back, .envelope-face {
  position: absolute; left: 13%; bottom: 13%; width: 79%; height: 52%;
  transform: rotate(-6deg);
  border-radius: 2px;
  pointer-events: none;
}
.envelope-back { z-index: 3; background: #acb7c9; box-shadow: 2px 8px 17px -5px #41475870; }
.envelope-face { z-index: 4; }
.pocket, .lid, .flap { position: absolute; inset: 0; }
.pocket {
  background: linear-gradient(118deg, #a7b6cb, #ccd3de);
  clip-path: polygon(0 0, 50% 43%, 100% 0, 100% 100%, 0 100%);
}
.pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,#cdd6e1,#b4c0d0 75%);
  clip-path: polygon(0 100%, 50% 28%, 100% 100%);
}
.lid { transform-origin: 50% 0; transition: transform 330ms cubic-bezier(.25,.65,.3,1); }
.flap {
  background: linear-gradient(165deg, #d8dfe6, #b8c2d1 65%);
  clip-path: polygon(0 0, 100% 0, 50% 56%);
}
.seal {
  position: absolute;
  top: 52%; left: 50%;
  width: clamp(2.95rem, 17%, 4rem);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(8deg);
  border: 1px solid #995e4c;
  border-radius: 47% 54% 44% 53% / 53% 46% 55% 45%;
  background: linear-gradient(145deg, #cc8973, #a05c4d 68%, #b5755e);
  box-shadow: inset 1px 1px 1px #f2c2a5a6, 0 2px 3px #674d4659;
  transition: scale 120ms, box-shadow 150ms;
}
.seal::before, .seal::after { content: ""; position: absolute; }
.seal::before { inset: 10%; border: 1px solid #e8b89a9c; border-radius: 50%; box-shadow: 0 1px 1px #7a45365c; }
.seal::after {
  inset: 16%;
  --paw: #f9dcc0 91%, transparent;
  background: radial-gradient(ellipse 26% 22% at 50% 68%, var(--paw)),
              radial-gradient(ellipse 9% 14% at 20% 45%, var(--paw)),
              radial-gradient(ellipse 9% 15% at 39% 28%, var(--paw)),
              radial-gradient(ellipse 9% 15% at 61% 28%, var(--paw)),
              radial-gradient(ellipse 9% 14% at 80% 45%, var(--paw));
}
.seal:active { scale: 0.94; }
.seal:focus-visible { outline: 3px solid #293d50; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .seal:hover { box-shadow: inset 1px 1px 1px #f2c2a5a6, 0 3px 6px #674d4670; }
  .shutter:hover .shutter-dial { border-color: #fffaf0; }
}
.address {
  position: absolute;
  inset: 10% 25% auto 22%;
  color: #3c5065;
  text-align: left;
  overflow-wrap: anywhere;
  font: italic clamp(1.1rem, 2.7vw, 2.45rem)/1.1 Baskervville, Georgia, serif;
}
.stamp {
  position: absolute;
  top: 7%; right: 5%;
  height: 25%; aspect-ratio: 0.84;
  transform: rotate(6deg);
  border: 3px dotted #fdf5de;
  outline: 1px solid #c7c3bb;
  background: linear-gradient(0deg, #e8ac88 27%, #fbefdb 28% 30%, transparent 31%),
              radial-gradient(circle at 50% 72%, #dc9879 28%, transparent 30%), #f1e3cf;
}
.cat {
  position: absolute;
  z-index: 5;
  aspect-ratio: 1;
  background: url("images/cat-poses.webp") left center / 200% 100% no-repeat;
  pointer-events: none;
}
.cat-awake { width: 39%; bottom: 5%; left: -4%; transition: transform 300ms; }
[data-action="opening"] .cat-awake { transform: translate(-5%, 1%); }
.cat-asleep { width: 40%; bottom: 1%; left: 35%; background-position: right center; filter: drop-shadow(0 2px 1.5px #5e4b3e42); }

[data-scene="sky"] .stage {
  /* The 16:9 viewfinder occupies 91.6% of the body width and 72.5% of its height. */
  --stage-ratio: calc(16 / 9 * 0.725 / 0.916);
}
.camera-body {
  position: absolute;
  inset: 4% 1.5%;
  border: 1px solid #67737e;
  border-radius: 0.55rem;
  background: linear-gradient(142deg, #344451, #182532 65%);
  box-shadow: inset 0 1px #e3e6e125, 2px 10px 24px -10px #070d1d9c;
}
[data-scene="sky"] .photos, .viewfinder { inset: 7.5% 4.2% 20%; border-radius: 2px; overflow: hidden; }
[data-scene="sky"] .photos { background: #14222c; }
[data-scene="sky"] .print { display: none; }
[data-scene="sky"] .print[data-kind="landscape"]:is(.is-current, .is-preview) {
  display: block; inset: 0; padding: 0; background: transparent; box-shadow: none;
}
[data-scene="sky"] .print img { height: 100%; }
[data-scene="sky"] .is-preview { filter: blur(6px); opacity: 0.52; transform: scale(1.05); }
.viewfinder { position: absolute; z-index: 3; pointer-events: none; }
.viewfinder i { position: absolute; width: 6.5%; aspect-ratio: 1; border: 0 solid #fff8eada; }
.viewfinder i:nth-child(1) { top: 6%; left: 4%; border-width: 2px 0 0 2px; }
.viewfinder i:nth-child(2) { top: 6%; right: 4%; border-width: 2px 2px 0 0; }
.viewfinder i:nth-child(3) { bottom: 6%; left: 4%; border-width: 0 0 2px 2px; }
.viewfinder i:nth-child(4) { bottom: 6%; right: 4%; border-width: 0 2px 2px 0; }
.shutter-shade { position: absolute; inset: 0; opacity: 0; background: #152232; }
[data-scene="sky"] .camera-readout {
  position: absolute; inset: 80.5% 6% 4.5%; display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; font-size: clamp(0.8rem, 1.35vw, 1rem); color: #f3e8d7;
}
.counter { white-space: nowrap; }

[data-scene="portraits"] .spread { row-gap: 0.5rem; }
[data-scene="portraits"] .stage {
  --stage-ratio: 0.80;
  --caption-band: clamp(2.1rem, 3.3vw, 2.5rem);
  width: min(100%, 26rem, max(11rem, calc((var(--usable-height) - 13rem) * var(--stage-ratio))));
}
[data-scene="portraits"] .photos {
  --curl: 0px;
  display: grid; grid-template: 100% / 100%; place-items: center;
  container-type: size; perspective: 55rem;
  touch-action: pan-y pinch-zoom; user-select: none; border-radius: 0.3rem;
}
.photos:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[data-scene="portraits"] .print[data-kind="landscape"] { display: none; }
[data-scene="portraits"] .print[data-kind="portrait"] {
  --print-edge: clamp(3px, 0.5vw, 8px);
  position: relative; grid-area: 1 / 1; width: max-content; max-width: 84%;
  padding: var(--print-edge) var(--print-edge) 0;
  background: transparent; box-shadow: none; transform-style: preserve-3d;
}
[data-scene="portraits"] .print::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--print-paper) calc(100% - var(--curl) * 0.7071), transparent 0);
  filter: drop-shadow(1px 3px 4px #473e3545);
}
[data-scene="portraits"] .print img {
  position: relative; width: auto; height: auto; max-width: 100%; max-height: 48vh;
  max-width: calc(84cqw - 2 * var(--print-edge));
  max-height: calc(87cqh - var(--print-edge) - var(--caption-band)); -webkit-user-drag: none;
}
[data-scene="portraits"] .print figcaption {
  position: relative; display: grid; place-items: center;
  width: 0; min-width: 100%; min-height: var(--caption-band);
  text-align: center; color: #51463b; font: clamp(0.9rem, 1.5vw, 1.15rem)/1.4 KaiTi, STKaiti, var(--serif);
}
[data-scene="portraits"] .print::before, [data-scene="portraits"] .print > * {
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
[data-scene="portraits"] .is-current {
  --curl: 20px;
  z-index: 4; transform: rotate(-1.5deg); cursor: grab;
}
@supports (width: 1cqw) {
  [data-scene="portraits"] .print[data-kind="portrait"] { --print-edge: clamp(3px, 1.8cqw, 8px); }
  [data-scene="portraits"] .is-current { --curl: clamp(11px, 6.2cqw, 27px); }
}
[data-scene="portraits"] .is-current:active { cursor: grabbing; }
[data-scene="portraits"] .behind-one { z-index: 2; transform: translate(6%, 1.5%) rotate(6deg) scale(0.96); }
[data-scene="portraits"] .behind-two { z-index: 1; transform: translate(-6%, 2%) rotate(-7deg) scale(0.94); }
[data-scene="portraits"] .is-uncovered { z-index: 3; transform: rotate(-1.5deg); transition: transform 220ms ease-out; }
[data-scene="portraits"] .paper-corner {
  --label-depth: 1.85rem;
  position: absolute; right: 0; bottom: calc(-1 * var(--label-depth)); z-index: 2;
  display: block; width: 5.5rem; height: max(44px, calc(var(--label-depth) + var(--curl)));
  color: #4c5b46; cursor: grab; touch-action: pan-y pinch-zoom;
}
.paper-corner::before {
  content: ""; position: absolute; right: 0; bottom: var(--label-depth);
  width: var(--curl); height: var(--curl);
  background: linear-gradient(135deg, #fffcef 4%, #e9d8af 53%, #beaa82 70%, transparent 71%);
  filter: drop-shadow(-1px -1px 1px #705c3f45);
}
.enhanced[data-scene="portraits"] .paper-corner::before {
  transform-origin: top left; animation: lift-corner 850ms 240ms both;
}
@keyframes lift-corner {
  0%, 100% { transform: none; }
  45% { transform: translate(-1px, -2px) scale(1.14); }
}
.corner-label {
  position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.3em;
  white-space: nowrap; font: 0.9rem/1.45 var(--sans); transform: rotate(1.5deg);
}
.corner-label::after {
  content: ""; width: 0.65em; height: 0.7em; border: solid currentColor; border-width: 0 1px 1px 0;
  border-bottom-right-radius: 80%; transform: translateY(-0.2em) rotate(-10deg);
}
.paper-corner[data-letter] { color: #814e37; }
.paper-corner[data-letter]::before { background: linear-gradient(135deg, #fff0d4 4%, #e7b38e 53%, #b08063 70%, transparent 71%); }
.paper-corner:focus-visible { outline: 2px dashed #526650; outline-offset: 3px; }
[data-action="turning"] .corner-label, [data-action="reading"] .corner-label { opacity: 0; }
[data-scene="portraits"] .paper-reverse {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform: rotateY(180deg); background: #fcf2df; box-shadow: var(--print-shadow);
  color: #573d30; font: clamp(1.45rem, 3.2vw, 2.6rem)/1.4 var(--serif);
  pointer-events: none;
}
.paper-reverse::before {
  content: ""; position: absolute; inset: 9% 7%; border-block: 1px solid #ccb99e;
  background: repeating-linear-gradient(transparent 0 calc(1.8rem - 1px), #c7b59b40 calc(1.8rem - 1px) 1.8rem);
}
.paper-reverse span { position: relative; padding: 0.25em 0.4em; background: #fcf2df; }
[data-scene="portraits"] .album-controls {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(100%, 17rem); min-height: 44px; color: var(--muted);
}
.turn {
  justify-self: start; display: flex; align-items: center; gap: 0.35em;
  min-height: 44px; min-width: 44px; font-size: 0.86rem; cursor: pointer;
}
.turn span { font-size: 1.25em; }
.turn:disabled { visibility: hidden; }
@media (hover: hover) {
  .turn:enabled:hover, .paper-corner:hover .corner-label { text-decoration: underline; text-underline-offset: 0.2em; }
  .paper-corner:hover::before { translate: -1px -1px; }
}
.enhanced[data-scene="portraits"] .photos { animation: album-arrives 420ms ease-out backwards; }
.enhanced[data-scene="letter"] .print { animation: album-arrives 450ms ease-out backwards; }
.enhanced[data-scene="letter"] .print:nth-child(n+4) { animation-delay: 100ms; }
.enhanced[data-scene="letter"] .cat-asleep { animation: album-arrives 500ms 220ms ease-out backwards; }
@keyframes album-arrives {
  from { opacity: 0; translate: 0 -0.55rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (orientation: portrait) and (max-width: 50rem) {
  .keepsake { display: flex; flex-direction: column; width: min(34rem, calc(100% - clamp(2rem, 9vw, 3.25rem))); min-height: var(--usable-height); }
  .masthead { min-height: clamp(3rem, calc(var(--usable-height) * 0.07), 3.65rem); }
  .spread, [data-scene="letter"] .spread {
    flex: 1 0 auto; display: flex; flex-direction: column; align-items: stretch;
    gap: clamp(0.5rem, calc(var(--usable-height) * 0.015), 0.875rem);
    width: 100%; min-height: 0;
    padding: clamp(0.8rem, calc(var(--usable-height) * 0.032), 1.6rem) 0 clamp(1rem, calc(var(--usable-height) * 0.028), 1.5rem);
  }
  .copy { padding: 0; }
  h1 { font-size: clamp(2rem, 8.6vw, 3rem); line-height: 1.22; }
  h1 span { display: inline-block; }
  .words { margin-top: clamp(0.5rem, 1.5svh, 0.875rem); font-size: 1rem; line-height: 1.65; }
  .stage { flex: none; align-self: center; margin-block: auto; width: min(100%, 28rem, max(10.5rem, calc((var(--usable-height) - 13rem) * var(--stage-ratio)))); }
  [data-scene="sky"] .stage { width: min(100%, 28rem, max(9rem, calc((var(--usable-height) - 18.75rem) * var(--stage-ratio)))); }
  [data-scene="portraits"] .stage {
    width: min(100%, 24rem, max(9rem, calc((var(--usable-height) - 15.5rem) * var(--stage-ratio))));
    margin-block: auto 0;
  }
  [data-scene="portraits"] .album-controls { margin-bottom: auto; }
  .camera-controls, .album-controls, .letter-actions { align-self: center; }
  [data-scene="letter"] .stage { width: min(94%, 26rem); }
  [data-scene="letter"] .words { font-size: 1.0625rem; line-height: 1.85; }
}
@media (orientation: landscape) and (max-height: 32rem) and (max-width: 64rem) {
  .keepsake { width: min(92%, 54rem); }
  .masthead { min-height: 2.85rem; }
  .spread { min-height: calc(var(--usable-height) - 2.85rem); gap: 0.25rem 1.2rem; padding: 0.6rem 0 0.7rem; }
  .copy { padding: 0; }
  h1 { font-size: clamp(1.7rem, 3.8vw, 2.35rem); }
  h1 span { display: inline-block; }
  .words { margin-top: 0.65rem; font-size: 1rem; line-height: 1.55; }
  .stage { width: min(100%, calc((var(--usable-height) - 4.5rem) * var(--stage-ratio))); }
  [data-scene="sky"] .stage { width: min(100%, calc((var(--usable-height) - 8.1rem) * var(--stage-ratio))); }
  [data-scene="portraits"] .stage { width: min(100%, max(9rem, calc((var(--usable-height) - 8.1rem) * var(--stage-ratio)))); }
  .shutter { flex-direction: row; gap: 0.6rem; }
  .shutter-dial { width: 2.85rem; }
  [data-scene="letter"] .spread { padding-block: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
