/* Vestling. Tokens first, then the wall, the scenes, the copy panels, the calculator. */

@font-face { font-family: "Crimson Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/crimson-text-400.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/crimson-text-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/crimson-text-600.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/crimson-text-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-style: normal; font-display: swap; src: url("fonts/nunito-latin.woff2") format("woff2"); }

:root {
  --paper: #F6F2EA;
  --paper2: #FBF9F4;
  --ink: #1F2A36;
  --ink2: #56616E;
  --ink-soft: #44525F;
  --far: #DCE1E6;
  --far2: #C8D0D8;
  --mid: #AEB8C3;
  --mid2: #95A1AE;
  --accent: #E0533D;
  --accent-btn: #B93A25;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gut: clamp(16px, 4vw, 48px);
  --display: "Crimson Text", Georgia, serif;
  --text: "Nunito", system-ui, sans-serif;
  --ww: 1600;
  --wh: 1000;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font: 400 18px/1.6 var(--text); color: var(--ink); background: var(--paper); overflow-x: clip; }
h1, h2 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent-btn); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 2px;
  background: var(--accent-btn); color: #fff; font: 700 18px/1 var(--text); text-decoration: none;
  cursor: pointer; transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--ink { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #9E2F1C; } .btn--ink:hover { background: #0F1821; } }

/* ------------------------------------------------------------ stage, world -- */
.stage { position: relative; background: var(--paper); z-index: 0; }
.world {
  position: absolute; left: 0; top: 0; width: calc(var(--ww) * 1px); height: calc(var(--wh) * 1px);
  transform-origin: 0 0;
}
html.cam .stage { position: fixed; inset: 0; overflow: hidden; }
html:not(.cam) .stage { overflow: hidden; height: var(--stage-h, 0); }
html:not(.js) .stage { height: auto; }
html:not(.js) .world { position: static; width: auto; height: auto; padding: 48px var(--gut) 24px; }
html:not(.js) .frame, html:not(.js) .popout { display: none; }
html:not(.js) .hero { position: static; width: auto; max-width: 720px; }

/* wall frames: position comes from custom properties in world units */
.frame { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); margin: 0; }
.frame::before { content: ""; position: absolute; inset: -14px; background: var(--paper2); border: 3px solid var(--ink); box-shadow: 10px 12px 0 rgba(31, 42, 54, 0.1); }
.d-back::before { border-color: var(--ink2); box-shadow: 6px 8px 0 rgba(31, 42, 54, 0.06); }
.d-back { z-index: 1; }
.d-mid { z-index: 2; }
.d-near { z-index: 4; }
.win { position: absolute; inset: 0; overflow: hidden; background: var(--paper2); outline: 2px solid var(--ink); }
.layer { position: absolute; inset: 0; }

/* desktop wall, world 1600 x 1000 */
.frame--f2 { --x: 1040; --y: 56; --w: 420; --h: 262; }
.frame--f1 { --x: 860; --y: 370; --w: 500; --h: 312; }
.frame--f3 { --x: 90; --y: 716; --w: 432; --h: 270; }
.frame--d1 { --x: 590; --y: 700; --w: 300; --h: 200; }
.frame--d2 { --x: 30; --y: 24; --w: 200; --h: 90; }
.frame--d4 { --x: 820; --y: 28; --w: 184; --h: 114; }
.frame--d5 { --x: 940; --y: 742; --w: 380; --h: 210; }

.hero { position: absolute; z-index: 3; left: 90px; top: 140px; width: 880px; }
.hero h1 { font-size: 100px; line-height: 1.02; letter-spacing: -0.012em; }
.hero .sub { margin: 16px 0 0; font: italic 400 52px/1.15 var(--display); color: var(--ink-soft); }
.hero p:not(.sub) { margin: 20px 0 32px; max-width: 640px; font-size: 28px; line-height: 1.45; color: var(--ink); }
.hero .btn { min-height: 64px; padding: 0 40px; font-size: 26px; }
.popout { pointer-events: none; position: absolute; z-index: 5; left: 730px; top: 150px; width: 340px; }
.popout .red, .who .red { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; color: var(--accent); clip-path: inset(0 calc((1 - var(--pw, 0)) * 100%) 0 0); opacity: var(--po, 1); }


html:not(.cam) { --pw: 1; --po: 1; }

/* mobile wall: portrait world 800 x 2460, pans top to bottom as the page scrolls */
@media (max-width: 760px), (max-aspect-ratio: 5/6) {
  :root { --ww: 800; --wh: 2460; }
  .hero { left: 56px; top: 120px; width: 690px; }
  .hero h1 { font-size: 100px; }
  .hero p:not(.sub) { margin: 22px 0 40px; font-size: 34px; }
  .hero .sub { font-size: 60px; margin-top: 20px; }
  .hero .btn { min-height: 120px; padding: 0 64px; font-size: 48px; }
  .frame--f2 { --x: 70; --y: 1090; --w: 270; --h: 585; }
  .frame--f1 { --x: 410; --y: 1010; --w: 300; --h: 650; }
  .frame--f3 { --x: 180; --y: 1790; --w: 300; --h: 650; }
  .frame--d1 { --x: 540; --y: 1760; --w: 200; --h: 280; }
  .frame--d2 { --x: 30; --y: 1830; --w: 120; --h: 200; }
  .frame--d4 { --x: 40; --y: 900; --w: 220; --h: 130; }
  .frame--d5 { display: none; }
  .popout { left: 450px; top: 792px; width: 330px; }
  .frame::before { inset: -18px; border-width: 4px; }
}

/* ------------------------------------------------------------------ track -- */
html.cam .track { position: relative; z-index: 2; pointer-events: none; }
html:not(.cam) .track { position: relative; z-index: 2; }
html:not(.cam) .seg--spacer { display: none; }
.seg--spacer { display: block; }
.seg[data-seg="hero"] { height: 120svh; }
.seg[data-seg^="in:"] { height: 120svh; }
.seg[data-seg^="swap"] { height: 240svh; }
.seg[data-seg^="out"] { height: 150svh; }

.hold { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 18svh max(var(--gut), calc((100% - 1280px) / 2)) 24svh; }
.hold--final { padding-bottom: 12svh; min-height: 100svh; justify-content: center; }
.sbg { display: none; }
html:not(.cam) .hold { background: linear-gradient(180deg, var(--far), var(--far2)); padding-block: 64px; }
html:not(.cam) .hold--final { background: var(--paper); }
html:not(.cam) .sbg { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; }
html:not(.cam) .sbg svg { position: absolute; right: 6%; bottom: 4%; height: min(60%, 420px); width: auto; aspect-ratio: 1; fill: var(--accent); }

.panel {
  pointer-events: auto; width: 100%; max-width: 560px; padding: 32px;
  background: var(--paper2); border: 2px solid var(--ink); border-radius: 2px;
  box-shadow: 8px 10px 0 rgba(31, 42, 54, 0.12);
}
.panel--left { align-self: flex-start; }
.panel--right { align-self: flex-end; }
.panel--gap { margin-top: 34svh; }
.panel--gap2 { margin-top: 64svh; }
.panel--gap3 { margin-top: 84svh; }
html:not(.cam) .panel--gap, html:not(.cam) .panel--gap2, html:not(.cam) .panel--gap3 { margin-top: 32px; }
.panel h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; margin-bottom: 24px; letter-spacing: -0.005em; }
.panel p { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
.steps li::before { content: counter(s); font: 700 40px/1 var(--display); color: var(--accent-btn); }
.nums, .offers, .people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nums li, .offers li, .people li { padding: 16px 0; border-top: 1px solid rgba(31, 42, 54, 0.25); }
.nums li:first-child, .offers li:first-child, .people li:first-child { border-top: 0; padding-top: 0; }
.nums strong { font: 700 1.25em/1 var(--display); color: var(--accent-btn); }
.price { display: block; font: 700 28px/1.2 var(--display); color: var(--accent-btn); margin-top: 4px; }

/* ---------------------------------------------------------------- calculator -- */
.panel--calc { align-self: center; max-width: 1120px; padding: 32px; }
.calc__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.calc__head h2 { margin: 0; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; }
.tog input { width: 24px; height: 24px; accent-color: var(--ink); }
.calc { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 40px; align-items: start; }
.f { display: grid; gap: 4px; margin: 0 0 16px; }
.f span { font-size: 15px; font-weight: 700; }
.f--wide { grid-column: 1 / -1; }
select, input[type="text"], input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 12px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 2px; font: 400 18px/1.2 var(--text);
}
select { padding-right: 8px; }
.kidrows { display: grid; gap: 0; }
.kr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 0; }
.kr .f span { white-space: nowrap; }

.headline { display: grid; gap: 0; margin-bottom: 16px; }
.headline__l { font-weight: 700; font-size: 16px; }
.headline__n { font: 700 clamp(64px, 9vw, 96px)/1 var(--display); color: var(--accent-btn); letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.flags { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.flags li { padding: 12px 16px; background: rgba(224, 83, 61, 0.12); font-size: 16px; line-height: 1.45; }
.flags:empty { display: none; margin: 0; }

.gate { position: relative; min-height: 200px; }
.gate__body { transition: filter 420ms var(--ease); }
.gate.is-locked .gate__body { filter: blur(7px); user-select: none; pointer-events: none; }
.gate__form { display: none; }
.gate.is-locked .gate__form {
  display: block; position: absolute; left: 50%; top: 48px; transform: translateX(-50%);
  width: min(460px, 100%); padding: 24px; background: var(--paper2); border: 2px solid var(--ink);
  box-shadow: 8px 10px 0 rgba(31, 42, 54, 0.18); z-index: 2;
}
.gate__form p { margin: 0 0 16px; font-weight: 600; }
.gate__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.err { color: #9E2F1C; font-weight: 700; font-size: 15px; margin: 8px 0 0; }
.gate__form .err { margin-top: 12px; }

.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 24px; font-size: 16px; }
.tbl th, .tbl td { padding: 8px 8px; text-align: right; border-bottom: 1px solid rgba(31, 42, 54, 0.2); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl tbody th { font-weight: 600; font-size: 16px; }
.tbl th { font-size: 14px; font-weight: 700; }
.tbl tr.tot th, .tbl tr.tot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; font-size: 18px; }
.tbl--kids td:first-child { font-weight: 700; }
[data-tip] { cursor: help; }
th[data-tip] { text-decoration: underline dotted; text-underline-offset: 4px; }
.state { margin: 0; display: grid; gap: 12px; font-size: 16px; }
.state dt { font-weight: 800; font-size: 15px; }
.state dd { margin: 2px 0 0; color: var(--ink-soft); line-height: 1.5; }

/* ----------------------------------------------------------------- waitlist -- */
.panel--form { align-self: center; max-width: 720px; }
.wl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wl .btn { margin-top: 8px; width: 100%; }
.done { font: 600 28px/1.25 var(--display); margin: 16px 0 0; }
.small { margin: 24px 0 0; font-size: 15px; color: var(--ink-soft); }


/* ------------------------------------------------------ slide scene: trail -- */
/* color returns to the wall at the end */
.win::after { content: ""; position: absolute; inset: 0; z-index: 9; background: #E0533D; mix-blend-mode: multiply; opacity: calc(var(--tint, 0) * 0.24); pointer-events: none; }
.run { display: none; }
html.cam .run { display: block; height: 110svh; }

/* ------------------------------------------------------------ education cards -- */
.deck { display: grid; gap: 16px; margin-top: 16px; }
.deck[data-side="left"] { justify-items: start; }
.deck[data-side="right"] { justify-items: end; }
.deck__pin { display: contents; }
.card {
  pointer-events: auto; width: min(520px, 100%); padding: 32px;
  background: var(--paper2); border: 2px solid var(--ink); border-radius: 2px;
  box-shadow: 8px 10px 0 rgba(31, 42, 54, 0.12);
}
.card h3 { margin: 0 0 8px; font: 600 clamp(26px, 3.4vw, 32px)/1.15 var(--display); }
.big { position: relative; display: inline-block; margin: 0 0 8px; font: 700 clamp(72px, 10vw, 112px)/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: lining-nums; }
.big__ink { color: var(--ink); }
.big__red { position: absolute; left: 0; top: 0; color: var(--accent); clip-path: inset(0 calc((1 - var(--pw, 0)) * 100%) 0 0); opacity: var(--po, 1); }
.card__t { margin: 0; font-size: 17px; line-height: 1.5; }

html.cam.sc-ready .deck { display: block; height: calc(var(--n) * 70svh + 30svh); margin-top: 8svh; }
html.cam.sc-ready .deck, html.cam.sc-ready .deck[data-side] { justify-items: stretch; }
html.cam.sc-ready .deck__pin { display: block; position: sticky; top: 0; width: 100%; height: 100svh; }
html.cam.sc-ready .card { position: absolute; top: 50%; visibility: hidden; transform: translate3d(var(--cx, 0px), -50%, 0); }
html.cam.sc-ready .deck[data-side="left"] .card { left: 0; }
html.cam.sc-ready .deck[data-side="right"] .card { right: 0; }

.small a { display: inline-block; padding: 12px 0; color: var(--ink); text-underline-offset: 3px; font-weight: 700; }
@media (max-width: 760px), (max-aspect-ratio: 5/6) {
  .card { padding: 24px 20px; }
  .big { font-size: clamp(64px, 20vw, 96px); }
  html.cam.sc-ready .deck[data-side] .card { left: 0; right: 0; width: 100%; }
}

/* ------------------------------------------------------------------ tooltip -- */
.tip { position: fixed; z-index: 100; left: 0; top: 0; max-width: 300px; padding: 10px 14px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.4; border-radius: 2px; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(31, 42, 54, 0.5); }

/* ------------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .hold { padding-top: 14svh; padding-bottom: 20svh; }
  .panel { max-width: none; padding: 24px 20px; }
  .panel--calc { padding: 24px 16px; }
  .panel--gap { margin-top: 30svh; }
  .panel--gap2 { margin-top: 64svh; }
  .panel--gap3 { margin-top: 84svh; }
  .hold--3 { padding-bottom: 56svh; }
  .wl { grid-template-columns: 1fr; }
  .gate.is-locked .gate__form { top: 24px; padding: 16px; }
  .gate__row { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 8px 4px; }
  .tbl { font-size: 15px; }
  .tbl--kids th, .tbl--kids td { font-size: 14px; }
}

/* ------------------------------------------------ slide scene: the cabin -- */
.frame--f3 .who .red { clip-path: inset(0 calc((1 - var(--pwk, 0)) * 100%) 0 0); }
html:not(.cam) { --pwk: 1; --pwc: 1; }
@media (max-width: 760px), (max-aspect-ratio: 5/6) {
}

/* ================================================================ compact layout ==
   The scene is the main thing. Copy sits in a small sticky panel in the lower third, on the
   side away from the subject of each frame. */

.hold { padding-top: 10svh; padding-bottom: 16svh; }
.slot { position: relative; min-height: 100svh; }
.panel {
  width: min(34vw, 480px); min-width: 320px; padding: 20px 24px;
  background: rgba(251, 249, 244, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 rgba(31, 42, 54, 0.1);
}
.slot > .panel { position: sticky; bottom: clamp(16px, 5svh, 48px); }
.panel--left { margin-right: auto; }
.panel h2 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.12; margin-bottom: 12px; }
.panel, .panel li, .panel p { font-size: 16px; line-height: 1.45; }
.steps { gap: 10px; }
.steps li { grid-template-columns: 32px 1fr; }
.steps li::before { font-size: 26px; }
.offers li, .people li { padding: 10px 0; }
.price { font-size: 22px; }
html:not(.cam) .slot { min-height: 0; margin-top: 24px; }
html:not(.cam) .slot > .panel { position: static; }
html:not(.cam) .panel { width: min(100%, 560px); }

.card {
  width: min(340px, 34vw); min-width: 280px; padding: 20px;
  background: rgba(251, 249, 244, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 rgba(31, 42, 54, 0.1);
}
.card h3 { font-size: clamp(20px, 1.7vw, 24px); margin: 0 0 4px; }
.big { font-size: clamp(56px, 5vw, 72px); margin: 0 0 4px; }
.card__t { font-size: 15px; line-height: 1.45; }
html.cam.sc-ready .card { top: auto; bottom: clamp(16px, 5svh, 48px); transform: translate3d(var(--cx, 0px), 0, 0); }
html:not(.cam) .card { width: min(100%, 420px); }

/* calculator: right-hand panel, the dog chase stays visible on the left */
.panel--calc { width: min(48vw, 680px); min-width: 0; margin-left: auto; padding: 20px 24px; position: relative; }
.panel--calc h2 { font-size: clamp(26px, 2.4vw, 32px); }
.calc { display: block; }
.calc__in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 8px; }
.calc__in .kidrows { grid-column: 1 / -1; }
.calc__in .f { margin-bottom: 10px; }
.calc__head { margin-bottom: 12px; }
.headline__n { font-size: clamp(56px, 6vw, 80px); }
.tbl { margin-bottom: 16px; }

.panel--form { width: min(100%, 560px); min-width: 0; margin-left: auto; margin-right: auto; }

@media (max-width: 760px), (max-aspect-ratio: 5/6) {
  .hold { padding-top: 6svh; }
  .slot { min-height: 90svh; }
  .panel { width: 100%; min-width: 0; padding: 14px 16px; }
  .slot > .panel { bottom: 12px; }
  .panel h2 { font-size: 22px; margin-bottom: 8px; }
  .panel, .panel li, .panel p { font-size: 15px; line-height: 1.4; }
  .steps { gap: 6px; }
  .steps li { grid-template-columns: 24px 1fr; }
  .steps li::before { font-size: 20px; }
  .offers li, .people li { padding: 8px 0; }
  .price { font-size: 19px; }
  .card { width: 100%; min-width: 0; padding: 14px 16px; }
  .card h3 { font-size: 20px; }
  .big { font-size: clamp(44px, 13vw, 54px); }
  .card__t { font-size: 14px; }
  html.cam.sc-ready .card { bottom: 12px; }
  .panel--calc { width: 100%; margin-top: 40svh; padding: 16px; }
  .calc__in { grid-template-columns: 1fr; }
  .panel--form { padding: 16px; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .panel h2 { font-size: 20px; margin-bottom: 6px; }
  .panel, .panel li, .panel p { font-size: 14px; line-height: 1.35; }
  .steps { gap: 4px; }
  .steps li::before { font-size: 18px; }
  .card__t { font-size: 13.5px; }
  .big { font-size: 42px; }
}

/* panels sit at the bottom of their slot and stay pinned to the lower edge while the slot is on screen */
html.cam .slot { display: flex; flex-direction: column; justify-content: flex-end; }
html.cam .slot > .panel { margin-top: auto; }


/* ============================================================== art layers ==
   Each scene is hand-drawn layers: far plate, (cabin), middle, kid, near. Images are placed by
   percentages of the window so they scale with the frame; phones use art-directed crops. */
.frame--f1 { --kl: 30; --kt: 8; --kw: 62.5; }
.frame--f2 { --kl: 0; --kt: 28; --kw: 58; }
.frame--f3 { --kl: -4; --kt: 24; --kw: 82; }
.art { position: absolute; display: block; max-width: none; height: auto; left: calc(var(--l, 0) * 1%); top: calc(var(--t, 0) * 1%); width: calc(var(--w, 100) * 1%); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.art.a-back { --l: -12; --t: -12; --w: 136; }
.art.a-mid { --l: -8; --t: -6; --w: 120; }
.art.a-cabin { --l: -8; --t: -16; --w: 120; }
.art.a-near { --l: -10; --w: 120; top: auto; bottom: -12%; }
.frame--f2 .art.a-near { --l: -34; --w: 146; }
.decor .layer { overflow: hidden; }
.decor .art { top: -9%; left: 50%; height: 118%; width: auto; transform: translateX(-50%); }
.who { position: absolute; display: block; left: calc(var(--kl) * 1%); top: calc(var(--kt) * 1%); width: calc(var(--kw) * 1%); }
.who img, .popout img { display: block; width: 100%; height: auto; max-width: none; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.who .ink, .popout .ink { filter: grayscale(1) contrast(1.04); }
.cab-red { clip-path: inset(0 calc((1 - var(--pwc, 0)) * 100%) 0 0); opacity: var(--po, 1); }
.frame--f3 .who .red { clip-path: inset(0 calc((1 - var(--pwk, 0)) * 100%) 0 0); }
.trail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail path { fill: none; stroke: var(--accent); stroke-width: 130; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--trail, 0)); mix-blend-mode: multiply; opacity: 0.92; }
html:not(.cam) { --trail: 1; }
.sbg img { position: absolute; right: 4%; bottom: 4%; height: auto; width: min(62%, 560px); }
html:not(.cam) .sbg svg { display: none; }
.stage { background: var(--paper) url("art/web/wall-bg.webp") center / cover no-repeat; }

@media (max-width: 760px), (max-aspect-ratio: 5/6) {
  /* phones: center crops of the 16:9 plates, each kid kept in view above the bottom card */
  .frame--f1 { --kl: -8; --kt: 14; --kw: 104; }
  .frame--f2 { --kl: -15; --kt: 26; --kw: 130; }
  .frame--f3 { --kl: -24; --kt: 15; --kw: 200; }
  .art.a-back { --l: -162; --t: -6; --w: 424; }
  .art.a-mid { --l: -162; --t: -2; --w: 424; }
  .art.a-near { --l: -201; --w: 300; bottom: -8%; }
  .frame--f3 .art.a-cabin { --l: -125; --t: 3; --w: 240; }
  .frame--f2 .art.a-near { --l: -8; --w: 300; }
  .frame--f1 .art.a-near { --l: -201; --w: 300; }
}

/* honeypot: present for bots, never for people */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
