/* Carnival: the last show of summer. Everything on this page HANGS: panels
   swing in on cables under bunting, the scroll is wind that leans them, a
   blank ticket counts the attractions, and the night ends at last call
   with fireworks. Bulb gold on midnight blue, poster slab type. */

header { position: relative; z-index: 12; }

body[data-room="carnival"] {
  background: #0f1a3a;
  overflow-x: hidden;
}

/* ---------- the barker's gate ---------- */
.bark { position: fixed; inset: 0; z-index: 60; background: #080d20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bark-dark { position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 46%, rgba(255, 210, 63, .07), transparent 70%); }
.bark-marquee { position: relative; width: min(880px, 86vw); }
.bk-frame { width: 100%; height: auto; display: block;
  filter: brightness(.25);
  animation: bk-flicker 2.2s steps(1) .3s forwards; }
@keyframes bk-flicker {
  0% { filter: brightness(.25); } 14% { filter: brightness(.9); }
  20% { filter: brightness(.3); } 32% { filter: brightness(1); }
  38% { filter: brightness(.45); } 52% { filter: brightness(1.05); }
  60% { filter: brightness(.85); } 100% { filter: brightness(1.05); } }
/* the painted hole measures left 25% top 30.3% w 50.8% h 49.4% */
.bk-hole { position: absolute; left: 25%; top: 30.3%; width: 50.8%; height: 49.4%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; }
.bk-bare { position: relative; inset: auto; width: auto; height: auto; }
.bk-plate { font-family: var(--font-ui); font-size: 10px; letter-spacing: .4em;
  text-transform: uppercase; color: #a8a890; opacity: 0;
  animation: bkw 1s ease 1.5s forwards; }
.bk-title { font-family: "Alfa Slab One", serif; font-weight: 400;
  font-size: clamp(28px, 4.4vw, 68px); line-height: 1; color: #f6f0dc; margin: 0;
  white-space: nowrap; text-shadow: 0 0 40px rgba(255, 210, 63, .45); }
.bk-title .gold { color: #ffd23f; }
.bw { display: inline-block; opacity: 0; transform: scale(1.5);
  animation: bk-stamp .55s cubic-bezier(.2, .9, .3, 1.2) var(--bd, 0s) forwards; }
@keyframes bk-stamp { to { opacity: 1; transform: scale(1); } }
@keyframes bkw { to { opacity: 1; } }
.bk-line { font-family: "Josefin Sans", sans-serif; font-weight: 300; font-style: italic;
  font-size: clamp(13px, 1.2vw, 18px); color: #cfc8ae; margin: 0; opacity: 0;
  animation: bkw 1s ease var(--bd, 3.2s) forwards; }
.bk-invite { font-family: "Alfa Slab One", serif; font-size: clamp(15px, 1.4vw, 22px);
  color: #ffd23f; margin: 26px 0 0; opacity: 0; letter-spacing: .04em;
  animation: bkw 1s ease var(--bd, 3.9s) forwards; position: relative; }
.bark.gone { opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.bark-skip { position: absolute; right: 28px; bottom: 24px;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: #a8a890; background: none;
  border: 1px solid rgba(255, 210, 63, .35); padding: 11px 18px; cursor: pointer;
  opacity: 0; animation: bkw 1s ease var(--bd, 1.4s) forwards; }
.bark-skip:hover { color: #f2edda; border-color: rgba(255, 210, 63, .8); }

/* ---------- the midway sky ---------- */
.fair { position: relative; }
.cv-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: #0f1a3a; overflow: hidden; }
.cv-sky-art { position: absolute; inset: -2%; width: 104%; height: 104%;
  object-fit: cover; opacity: .5; }
.cv-bulbwash { position: absolute; inset: 0; mix-blend-mode: screen; opacity: .6;
  background:
    radial-gradient(60% 44% at 30% 88%, rgba(255, 210, 63, .18), transparent 70%),
    radial-gradient(50% 40% at 76% 84%, rgba(255, 138, 92, .12), transparent 70%),
    radial-gradient(80% 50% at 50% 0%, rgba(16, 20, 40, .8), transparent 70%);
  animation: bulb-hum 7s ease-in-out infinite alternate; }
@keyframes bulb-hum { from { filter: brightness(.92); } to { filter: brightness(1.1); } }
.cv-dim { position: absolute; inset: 0; background: #080d20; opacity: 0;
  transition: opacity 1.4s ease; }
body.lastcall-near .cv-dim { opacity: .55; }
.cv-bursts { position: absolute; inset: 0; }
.cvfw { position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fc, #ffd23f);
  box-shadow: 0 0 14px 3px var(--fc, #ffd23f);
  animation: cvfw-bloom var(--fd, 1.6s) ease-out forwards; }
@keyframes cvfw-bloom {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  70% { opacity: .9; }
  100% { transform: translate(var(--fx, 0px), var(--fy, -60px)) scale(.2); opacity: 0; } }

/* ---------- the ticket ---------- */
.cv-ticket { position: fixed; top: 88px; right: clamp(14px, 2vw, 44px); z-index: 11;
  width: clamp(120px, 9.5vw, 180px); pointer-events: none;
  transform: rotate(6deg);
  filter: drop-shadow(0 10px 24px rgba(4, 8, 20, .7)); }
.cv-ticket img { width: 100%; height: auto; display: block; }
/* the blank face measures left 9.6% top 24% w 76.2% h 51% */
.tk-no { position: absolute; left: 9.6%; top: 24%; width: 76.2%; height: 51%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Alfa Slab One", serif; font-size: clamp(30px, 2.6vw, 52px);
  color: #a33327; opacity: .92; }
.tk-word { position: absolute; left: 9.6%; top: 62%; width: 76.2%;
  text-align: center; font-family: var(--font-ui); font-size: 8px;
  letter-spacing: .3em; text-transform: uppercase; color: #a33327; opacity: .7; }
.cv-ticket.punched::after { content: ""; position: absolute; right: 14%; top: 30%;
  width: 12%; aspect-ratio: 1; border-radius: 50%; background: #0f1a3a;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }

/* ---------- cast layer ---------- */
.cv-cast { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.cv-mg { position: absolute; will-change: transform; }
.cv-mg img { width: 100%; height: auto; display: block; }
.cv-balloon { animation: cv-rise var(--dur, 30s) linear forwards; }
.cv-moth { animation: cv-orbit var(--dur, 12s) ease-in-out infinite; }
.cv-pigeon { animation: cv-strut var(--dur, 26s) linear forwards; }
@keyframes cv-rise { 0% { transform: translateY(110vh) translateX(0) rotate(-3deg); }
  100% { transform: translateY(-40vh) translateX(var(--dx, 6vw)) rotate(4deg); } }
@keyframes cv-orbit { 0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(34px, -22px) rotate(6deg); }
  50% { transform: translate(-6px, -40px) rotate(-4deg); }
  75% { transform: translate(-30px, -14px) rotate(8deg); } }
@keyframes cv-strut { 0% { transform: translateX(-16vw); } 100% { transform: translateX(116vw); } }

/* ---------- flow shell ---------- */
.cv-flow { position: relative; z-index: 3; }
.rv { opacity: 0; }
.rv.on { opacity: 1; transition: opacity 1s ease; }

/* ---------- the big top hero ---------- */
.bigtop { min-height: 96vh; display: flex; align-items: center;
  position: relative; padding: 16vh 6vw 10vh; overflow: hidden; }
.bt-bunting { position: absolute; width: clamp(420px, 44vw, 900px); opacity: .95;
  pointer-events: none; transform-origin: 50% 0; }
.bt-b1 { left: -4%; top: 3.5%; animation: bunt-sway 6.5s ease-in-out infinite alternate; }
.bt-b2 { right: -5%; top: 5%; transform: scaleX(-1);
  animation: bunt-sway 7.8s ease-in-out .8s infinite alternate; }
@keyframes bunt-sway { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }
.bt-wheel { position: absolute; right: -6%; bottom: -14%; width: clamp(460px, 46vw, 980px);
  opacity: .95; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 52%, #000 52%, transparent 78%);
  mask-image: radial-gradient(72% 72% at 50% 52%, #000 52%, transparent 78%);
  animation: wheel-glow 9s ease-in-out infinite alternate; }
@keyframes wheel-glow { from { filter: brightness(.94); } to { filter: brightness(1.12); } }
.bt-copy { position: relative; z-index: 2; max-width: 780px; }
.bt-plate { font-family: var(--font-ui); font-size: 12px; letter-spacing: .44em;
  text-transform: uppercase; color: #ffd23f; }
.bt-title { font-family: "Alfa Slab One", serif; font-weight: 400;
  font-size: clamp(64px, 9vw, 168px); line-height: .98; color: #f6f0dc;
  margin: 14px 0 16px; text-shadow: 0 0 60px rgba(255, 210, 63, .35); }
.bt-tag { font-family: "Josefin Sans", sans-serif; font-weight: 300;
  font-size: clamp(16px, 1.35vw, 20px); line-height: 1.75; color: #cfc8ae;
  max-width: 56ch; }
.bt-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.bt-cta { font-family: var(--font-ui); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; text-decoration: none; color: #0f1a3a;
  background: #ffd23f; padding: 15px 28px; transition: transform .2s, box-shadow .2s; }
.bt-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255, 210, 63, .6); }
.bt-cta-2 { background: none; color: #ffd23f; border: 1px solid rgba(255, 210, 63, .5); }
.bt-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-ui); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: #a8a890; animation: cue-bob 3s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.cv-wsp { position: absolute; font-family: "Josefin Sans", sans-serif; font-style: italic;
  font-weight: 300; font-size: clamp(13px, 1vw, 17px); color: rgba(255, 210, 63, .4);
  pointer-events: none; }
.wsp-a { right: 6%; top: 20%; transform: rotate(5deg); }
.wsp-b { left: 6%; bottom: 10%; transform: rotate(-4deg); }

/* ---------- the hanging shows ---------- */
.show { min-height: 96vh; display: flex; align-items: center;
  padding: 10vh 5vw 12vh; position: relative; }
.show .sh-stack { margin-left: 4vw; }
.show.sh-flip { justify-content: flex-end; }
.show.sh-flip .sh-stack { margin-left: 0; margin-right: 4vw; }
.sh-stack { position: relative; width: min(1120px, 88vw);
  transform: rotate(var(--lean, 0deg)); transition: transform .7s cubic-bezier(.2,.7,.2,1);
  transform-origin: 50% -60vh; }
.sh-cable { position: absolute; left: 50%; bottom: 100%; width: 2px; height: 70vh;
  background: linear-gradient(180deg, transparent, rgba(242, 237, 218, .28) 30%, rgba(242, 237, 218, .4));
  transform: translateX(-50%); }
.sh-bunting { position: absolute; left: 50%; bottom: calc(100% - 26px); width: 84%;
  transform: translateX(-50%); pointer-events: none; opacity: .95; z-index: 2; }
.sh-gondola { position: absolute; width: clamp(140px, 13vw, 240px); top: -12%;
  pointer-events: none; z-index: 0; opacity: .95;
  animation: gond-sway 5.5s ease-in-out infinite alternate; transform-origin: 50% 0; }
.show:not(.sh-flip) .sh-gondola { right: -20%; }
.sh-flip .sh-gondola { left: -20%; }
@keyframes gond-sway { from { rotate: -2.4deg; } to { rotate: 2.4deg; } }
.sh-panel { position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(22px, 2.6vw, 44px); align-items: center;
  background: rgba(16, 22, 48, .88);
  border: 1px solid rgba(255, 210, 63, .3);
  box-shadow: 0 40px 90px -30px rgba(4, 8, 20, .9), 0 0 90px -40px var(--ca, #ffd23f);
  padding: clamp(20px, 2.4vw, 40px) clamp(20px, 2.4vw, 40px) clamp(24px, 2.6vw, 44px);
  transform-origin: 50% -8%; transform: rotate(calc(var(--tilt, 0deg) * 3)) translateY(-26px);
  opacity: 0; }
.sh-panel.on { opacity: 1; transform: rotate(var(--tilt, 0deg)) translateY(0);
  transition: opacity .9s ease, transform 1.6s cubic-bezier(.2, .9, .25, 1.15);
  animation: show-sway 7.5s ease-in-out var(--sd, 0s) 1.7s infinite alternate; }
@keyframes show-sway { from { transform: rotate(calc(var(--tilt, 0deg) * 1)) translateY(0); }
  to { transform: rotate(calc(var(--tilt, 0deg) * -0.55)) translateY(-4px); } }
.sh-awning { position: absolute; left: -1px; right: -1px; top: -14px; height: 34px; z-index: 3;
  background: repeating-linear-gradient(90deg, #e63946 0 34px, #f0ead8 34px 68px);
  border: 1px solid rgba(255, 210, 63, .3); border-bottom: none;
  box-shadow: 0 6px 14px -6px rgba(4, 8, 20, .8); }
.sh-flip .sh-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.sh-flip .sh-art-wrap { order: 2; }
.sh-art { width: 100%; height: auto; display: block; border-radius: 8px;
  border: 1px solid rgba(255, 210, 63, .35);
  box-shadow: 0 18px 50px -16px rgba(4, 8, 20, .9); }
.ph.sh-art { aspect-ratio: 3 / 2; background:
  radial-gradient(80% 80% at 30% 20%, #1c2a52, #101428); }
.sh-no { font-family: var(--font-ui); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--ca, #ffd23f); }
.sh-title { font-family: "Alfa Slab One", serif; font-weight: 400;
  font-size: clamp(26px, 2.5vw, 44px); line-height: 1.1; color: #f6f0dc;
  margin: 8px 0 14px; }
.sh-tale { display: flex; flex-direction: column; gap: 9px; }
.sh-tale .tl { font-family: "Josefin Sans", sans-serif; font-weight: 300;
  font-size: clamp(13.5px, 1.02vw, 16px); line-height: 1.65; color: #cfc8ae; margin: 0; }
.sh-tale .tl b { display: block; font-family: var(--font-ui); font-weight: 400;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ca, #ffd23f); margin-bottom: 2px; }
.sh-crew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sh-crew form { margin: 0; }
.crew-chip { font-family: var(--font-ui); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: #f2edda; background: rgba(255, 210, 63, .1);
  border: 1px solid rgba(255, 210, 63, .45); padding: 10px 16px; cursor: pointer;
  text-decoration: none; transition: background .25s, color .25s, transform .2s; }
.crew-chip:hover { background: var(--ca, #ffd23f); color: #0f1a3a; transform: translateY(-2px); }
.crew-wait { font-family: "Josefin Sans", sans-serif; font-style: italic;
  font-weight: 300; color: #a8a890; font-size: 15px; }
.show-tag { font-family: var(--font-ui); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ca, #ffd23f); opacity: .8; }

/* ---------- fair marks ---------- */
.fairmark { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 5vh 8vw; }
.fairmark img { width: clamp(280px, 30vw, 560px); opacity: .8; }
.fairmark span { font-family: var(--font-ui); font-size: 11px; letter-spacing: .4em;
  text-transform: uppercase; color: #a8a890; }

/* ---------- looms and the poster wall ---------- */
.looms, .chronicle { position: relative; padding: 12vh 6vw; }
.loom-head { text-align: center; margin-bottom: 40px; }
.loom-plate { font-family: var(--font-ui); font-size: 12px; letter-spacing: .4em;
  text-transform: uppercase; color: #ffd23f; }
.loom-note { font-family: "Josefin Sans", sans-serif; font-weight: 300; font-style: italic;
  font-size: clamp(16px, 1.4vw, 22px); color: #a8a890; margin: 10px 0 0; }
.loom-row, .chron-row { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.loom, .chron { display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; width: clamp(220px, 21vw, 320px);
  transform: rotate(var(--lr, 0deg)); transform-origin: 50% -20px;
  transition: transform .5s ease; transition-delay: var(--ld, 0ms); }
.loom:hover, .chron:hover { transform: rotate(0deg); }
.loom-cloth { display: block; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 210, 63, .3);
  background: #101428; box-shadow: 0 24px 60px -22px rgba(4, 8, 20, .9); }
.loom-cloth::before, .chron-img { position: relative; }
.loom-cloth::before { content: ""; position: absolute; left: 50%; top: -1px;
  width: 12px; height: 12px; background: #ffd23f; border-radius: 0 0 4px 4px;
  transform: translateX(-50%); z-index: 2; opacity: .85; }
.loom-cloth img, .chron-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.chron-img { border: 1px solid rgba(255, 210, 63, .3); }
.loom-dark { display: block; aspect-ratio: 3 / 2; background:
  radial-gradient(70% 70% at 40% 30%, #1c2a52, #0f1a3a); }
.loom-plate2 { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.loom-plate2 b { font-family: "Alfa Slab One", serif; font-weight: 400;
  font-size: 15px; color: #f2edda; }
.loom-plate2 i, .chron-title { font-family: var(--font-ui); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: #a8a890;
  font-style: normal; text-align: center; }
.empty { text-align: center; font-family: "Josefin Sans", sans-serif; font-weight: 300;
  font-style: italic; color: #a8a890; font-size: clamp(16px, 1.4vw, 22px); }
.loom:hover .loom-cloth, .chron:hover .chron-img { border-color: rgba(255, 210, 63, .8); }

/* ---------- last call ---------- */
.lastcall { min-height: 82vh; display: flex; align-items: center;
  justify-content: center; text-align: center; position: relative;
  padding: 14vh 6vw 16vh; overflow: hidden; }
.lc-tent { position: absolute; left: 50%; bottom: -4%; width: clamp(320px, 34vw, 640px);
  transform: translateX(-50%); opacity: .5; pointer-events: none;
  filter: brightness(.7); }
.lc-copy { position: relative; z-index: 2; }
.lc-line { font-family: "Alfa Slab One", serif; font-size: clamp(44px, 5.5vw, 96px);
  color: #f6f0dc; margin: 0 0 10px; text-shadow: 0 0 60px rgba(255, 210, 63, .4); }
.lc-sub { font-family: "Josefin Sans", sans-serif; font-weight: 300;
  font-size: clamp(15px, 1.25vw, 19px); color: #cfc8ae; margin: 0; }
.lc-hall { font-family: "Josefin Sans", sans-serif; font-style: italic; font-weight: 300;
  color: #cfc8ae; font-size: 16px; align-self: center; text-decoration: none;
  border-bottom: 1px dashed rgba(207, 200, 174, .5); }
.lc-hall:hover { color: #f6f0dc; }
.bt-ctas { justify-content: center; }
.bigtop .bt-ctas { justify-content: flex-start; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sh-panel, .sh-flip .sh-panel { grid-template-columns: 1fr; }
  .sh-flip .sh-art-wrap { order: 0; }
  .bt-wheel { right: -30%; opacity: .5; }
  .cv-ticket { top: 74px; width: clamp(90px, 15vw, 120px); }
  .sh-gondola, .cv-wsp { display: none; }
}

/* ---------- reduced motion: the show stands still ---------- */
@media (prefers-reduced-motion: reduce) {
  .bark { display: none; }
  .rv, .sh-panel { opacity: 1; transform: rotate(var(--tilt, 0deg)); animation: none; }
  .sh-panel.on { animation: none; }
  .sh-stack { transform: none; }
  .bt-bunting, .bt-wheel, .sh-gondola, .cv-bulbwash, .bt-cue, .bk-frame { animation: none; }
  .cv-cast, .cvfw { display: none; }
}

/* ================= THE TENT WALK: 3d mode =================
   JS promotes the page into a fixed perspective stage: you walk the midway
   toward each tent, it swallows the screen, the attraction lunges out at
   you inside, then you leave through the back. The hanging-panel layout
   above remains the reduced-motion and no-JS page. */
body.tents .show, body.tents .fairmark { display: none; }
body.tents .cv-sky-art { opacity: .62; }
.tw-spacer { position: relative; }
.tw-stage { position: fixed; inset: 0; z-index: 4; pointer-events: none;
  perspective: 1150px; perspective-origin: 50% 46%; overflow: hidden;
  visibility: hidden; }
.tw-stage.live { visibility: visible; }
.tw-seg { position: absolute; inset: 0; display: none;
  transform-style: preserve-3d; }
.tw-seg.on { display: block; }
.tw-tent { position: absolute; left: 50%; top: 54%; width: clamp(380px, 40vw, 860px);
  transform: translate(-50%, -50%); will-change: transform, opacity;
  filter: drop-shadow(0 30px 60px rgba(4, 8, 20, .8)); }
.tw-tent img { width: 100%; height: auto; display: block; }
.tw-glow { position: absolute; left: 50%; top: 62%; width: 12%; aspect-ratio: 1.4;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 63, .8), rgba(255, 138, 92, .3) 55%, transparent 75%);
  will-change: transform, opacity; filter: blur(6px); }
.tw-swallow { position: absolute; inset: -20%; opacity: 0; will-change: opacity;
  background: radial-gradient(58% 52% at 50% 52%, transparent 30%, #06091a 68%); }
.tw-inside { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform;
  pointer-events: none; display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 2.5vw, 52px); padding: 90px clamp(20px, 4vw, 70px) 30px; }
.tw-seg.inside-on .tw-inside { pointer-events: auto; }
.tw-canvaswash { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(230, 57, 70, .12), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, rgba(255, 210, 63, .1), transparent 70%),
    linear-gradient(180deg, rgba(6, 9, 26, .92), rgba(12, 16, 38, .96));
}
.tw-ribs { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: repeating-conic-gradient(from 262deg at 50% -34%, rgba(230, 57, 70, .16) 0deg 7deg, rgba(240, 234, 216, .05) 7deg 14deg); }
.tw-art { position: relative; z-index: 2; width: min(52vw, 980px); flex-shrink: 0;
  will-change: transform; transform-origin: 50% 60%; }
.tw-art img { width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid rgba(255, 210, 63, .4);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 120px -30px var(--ca, #ffd23f); }
.tw-seg.lunge .tw-art { animation: tw-lunge 1.1s cubic-bezier(.16, 1.2, .3, 1) forwards; }
@keyframes tw-lunge {
  0% { transform: translateZ(-900px) rotateX(10deg); filter: blur(5px); }
  62% { transform: translateZ(150px) rotateX(-2.5deg); filter: blur(0); }
  82% { transform: translateZ(30px) rotateX(1deg); }
  100% { transform: translateZ(70px) rotateX(0); } }
.tw-seg.lunge .tw-flash { animation: tw-flashpop .5s ease-out forwards; }
.tw-flash { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none;
  background: radial-gradient(60% 55% at var(--lgx, 50%) var(--lgy, 50%), rgba(255, 240, 200, .5), transparent 70%); }
@keyframes tw-flashpop { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
.tw-side { position: relative; z-index: 2; width: min(34vw, 560px);
  max-height: 78vh; overflow-y: auto; scrollbar-width: thin;
  background: rgba(10, 14, 34, .78); border: 1px solid rgba(255, 210, 63, .32);
  padding: clamp(18px, 1.8vw, 34px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  will-change: transform, opacity; }
.tw-side .sh-panel { display: flex; flex-direction: column; background: none;
  border: none; box-shadow: none; padding: 0; transform: none; opacity: 1;
  animation: none; grid-template-columns: none; }
.tw-side .sh-awning { display: none; }
.tw-side .sh-art-wrap { display: none; }
.tw-exitcue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--font-ui); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: #a8a890; animation: cue-bob 3s ease-in-out infinite; }
.tw-flyby { position: absolute; left: 50%; top: 50%; width: clamp(120px, 12vw, 220px);
  will-change: transform, opacity; opacity: 0; z-index: 4; }
.tw-flyby img { width: 100%; height: auto; display: block; }
@media (max-width: 980px) {
  .tw-inside { flex-direction: column; padding-top: 70px; }
  .tw-art, .tw-artpar .tw-art { width: min(92vw, 640px); }
  .tw-side { width: min(92vw, 640px); max-height: 44vh; }
  .tw-lungerpar { width: clamp(150px, 40vw, 260px); }
  .tw-tent { width: clamp(300px, 62vw, 860px); }
}

/* tent walk: parallax wrappers, lungers, shake, punches, fly-bys */
.tw-inside, .tw-artpar, .tw-lungerpar { transform-style: preserve-3d; }
.tw-artpar { position: relative; z-index: 2; flex-shrink: 0;
  transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0); }
.tw-artpar .tw-art { width: min(50vw, 940px); }
.tw-insideart { position: absolute; inset: -4%; width: 108%; height: 108%;
  object-fit: cover; z-index: 0; opacity: .85;
  transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px), 0) scale(1.06); }
.tw-lungerpar { position: absolute; left: var(--lgx, 50%); top: var(--lgy, 54%); z-index: 3; pointer-events: none;
  width: clamp(260px, 30vw, 580px);
  transform: translate(-50%, -50%) translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 18px), 40px); }
.tw-lunger { opacity: 0; transform-origin: 50% 60%; will-change: transform, opacity;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .85)); }
.tw-lunger img { width: 100%; height: auto; display: block; }
.tw-seg.lunge.has-lunger .tw-lunger { animation: tw-lungechar 1.2s cubic-bezier(.14, 1.28, .3, 1) forwards; }
@keyframes tw-lungechar {
  0% { opacity: 0; transform: translateZ(-1100px) rotate(-6deg); filter: blur(6px) drop-shadow(0 30px 70px rgba(0,0,0,.85)); }
  12% { opacity: 1; }
  58% { transform: translateZ(360px) rotate(calc(var(--lgr, 0deg) + 2.5deg)); filter: blur(0) drop-shadow(0 40px 80px rgba(0,0,0,.9)); }
  78% { transform: translateZ(220px) rotate(calc(var(--lgr, 0deg) - 1deg)); }
  100% { opacity: 1; transform: translateZ(280px) rotate(var(--lgr, 0deg)); } }
.tw-seg.lunge.has-lunger .tw-art { animation: tw-artsettle 1s ease .25s both; }
@keyframes tw-artsettle { from { opacity: 0; transform: translateY(70px) translateZ(-200px); }
  to { opacity: 1; transform: translateY(0) translateZ(0); } }
.tw-seg.has-lunger .tw-lunger { animation-fill-mode: forwards; }
.tw-seg.lunge:not(.has-lunger) .tw-art { animation: tw-lunge 1.1s cubic-bezier(.16, 1.2, .3, 1) forwards; }
.tw-stage.shake { animation: tw-shake .5s linear; }
@keyframes tw-shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(-8px, 5px) rotate(-.35deg); }
  36% { transform: translate(7px, -6px) rotate(.3deg); }
  54% { transform: translate(-5px, 3px) rotate(-.2deg); }
  76% { transform: translate(3px, -2px) rotate(.12deg); } }
.tk-p { position: absolute; width: 8%; aspect-ratio: 1; border-radius: 50%;
  background: #0f1a3a; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
.tw-flyby.fly-a { animation: tw-flya 1.7s cubic-bezier(.3, .1, .6, 1) forwards; }
.tw-flyby.fly-b { animation: tw-flyb 2s cubic-bezier(.3, .1, .6, 1) forwards; }
@keyframes tw-flya {
  0% { opacity: 0; transform: translate3d(46vw, -14vh, -900px) rotate(8deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-70vw, 8vh, 420px) rotate(-14deg); } }
@keyframes tw-flyb {
  0% { opacity: 0; transform: translate3d(-50vw, 10vh, -900px) rotate(-10deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(64vw, -6vh, 380px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .tw-stage, .tw-spacer { display: none; } }
