/* experience.css */
@import url("assets/fonts/fonts.css");
:root {
  --ink: #0b201b;
  --green: #173c30;
  --cream: #f6edd9;
  --gold: #e0be80;
  --muted: #c6c9b9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --gutter: clamp(24px, 7vw, 130px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 16px/1.7 var(--sans);
}
body:has(dialog[open]) {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(62px, 6.5vw, 112px);
}
h2 {
  font-size: clamp(58px, 6.2vw, 104px);
}
em {
  font-weight: 400;
  color: var(--gold);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 15px;
  left: 20px;
  transform: translateY(-180%);
  z-index: 100;
  padding: 12px 20px;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus {
  transform: none;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 460px;
}
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
  background: linear-gradient(#06160b60, transparent);
}
.wordmark {
  width: 91px;
  flex-shrink: 0;
}
.wordmark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px #0008);
}
.header-date {
  font-size: 12px;
  letter-spacing: 0.17em;
}
.header-date span {
  color: var(--gold);
  padding: 0 15px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.soundtrack-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 10px;
  background: #0b281fdd;
  border: 1px solid #dfbd7866;
  border-radius: 50%;
  color: var(--gold);
}
.soundtrack-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soundtrack-slash { display: none; }
.soundtrack-toggle[aria-pressed="false"] .soundtrack-waves { display: none; }
.soundtrack-toggle[aria-pressed="false"] .soundtrack-slash { display: block; }
@media (max-width: 650px) {
  .masthead .header-actions { flex-direction: row; align-items: center; gap: 8px; }
}
.header-link {
  font-size: 13px;
  background: transparent;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid #e0be8060;
}
.header-link span {
  padding-left: 16px;
}
/* The complete document is readable first. Only a healthy motion controller pins it. */
.journey {
  position: relative;
}
.journey-stage {
  position: relative;
  background: var(--ink);
}
.scene {
  position: relative;
  isolation: isolate;
  min-height: 850px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px var(--gutter) 120px;
  background: var(--ink);
}
.scene-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.scene-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.scene-copy {
  position: relative;
  z-index: 2;
  width: 52%;
  max-width: 760px;
}
.scene-copy .eyebrow {
  color: #d7c69e;
  margin-bottom: 27px;
}
.scene-copy h1,
.scene-copy h2 {
  margin-left: -0.035em;
}
.paper-field {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 74% 49%, #46715c40, transparent 52%),
    linear-gradient(100deg, #0b241d, #173e30);
}
.paper-field:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/green-texture.webp) center/cover;
  opacity: 0.15;
}
.hamper-area {
  position: absolute;
  width: 45%;
  left: 51%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.hamper {
  position: relative;
  isolation: isolate;
  width: min(32vw, 440px, 55svh);
  aspect-ratio: 1058/1300;
  perspective: 1400px;
  filter: drop-shadow(0 35px 40px #0008);
}
.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: url(assets/hamper-doors.webp) no-repeat;
  background-size: 200% 100%;
  z-index: 3;
  backface-visibility: hidden;
}
.door-left {
  left: 0;
  background-position: left;
  transform-origin: left center;
  transform: rotateY(calc(var(--open, 0) * -112deg));
}
.door-right {
  right: 0;
  background-position: right;
  transform-origin: right center;
  transform: rotateY(calc(var(--open, 0) * 112deg));
}
.hamper-seal {
  position: absolute;
  width: 26%;
  left: 37%;
  top: 36%;
  height: 21%;
  z-index: 4;
  display: grid;
  place-items: center;
  opacity: var(--seal, 1);
  transform: translateY(calc(var(--open, 0) * -35px));
  pointer-events: none;
}
.hamper-seal img {
  width: 84%;
}
.hamper-interior {
  position: absolute;
  inset: 1.5% 2%;
  background: #123c32 url(assets/green-texture.webp) center/cover;
  color: #f0dcab;
  text-align: center;
  padding: 12% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px double #b99862;
  overflow: hidden;
  box-shadow: inset 0 0 35px #19070970;
}
.hamper-interior p {
  font: italic clamp(13px, 1.3vw, 19px)/1.35 var(--serif);
}
.hamper-interior strong {
  font: 400 clamp(26px, 3.4vw, 47px)/1 var(--serif);
  margin: 6% 0;
}
.hamper-interior span {
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 2.1;
}
.hamper-interior small {
  font-size: 10px;
}
.original-invitation {
  position: absolute;
  width: min(30vw, 370px, 47svh);
  left: 61%;
  top: 50%;
  transform: translateY(-50%) rotate(3deg);
}
.original-invitation img {
  box-shadow: 0 25px 80px #10020ab3;
  border: 5px solid #be945a80;
}
.original-invitation figcaption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 18px;
  color: #e9cda3;
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  border: 1px solid #e2c5848c;
  padding: 12px 22px;
  background: #102b2240;
  margin-top: 28px;
  font-size: 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.outline-button:hover {
  background: #cda86623;
  border-color: var(--gold);
}
.outline-button:active {
  transform: translateY(1px);
}
/* One sticky stage, continuous progress, reversible dissolves. No scroll snapping or wheel interception. */
.cinematic .journey {
  height: var(--journey-height, 1280svh);
}
.cinematic .journey-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  /* Claim vertical swipes before Safari chooses native panning; keep pinch zoom. */
  touch-action: pan-x pinch-zoom;
}
.cinematic .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding-top: 105px;
  padding-bottom: 100px;
}
.cinematic .scene.is-visible {
  visibility: visible;
  opacity: var(--scene-opacity, 1);
}
.cinematic .scene.is-active {
  pointer-events: auto;
}
.cinematic .scene-copy {
  opacity: var(--copy-opacity, 1);
  transform: translate3d(0, var(--copy-y, 0px), 0);
}
.cinematic .scene-art img {
  transform: scale(var(--zoom, 1.035)) translate3d(var(--pan, 0px), 0, 0);
}
.cinematic .scene.is-visible .scene-art img {
  will-change: transform;
}
.journey-caption {
  display: none;
}
.cinematic .journey-caption {
  position: absolute;
  inset: auto var(--gutter) 32px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0be8033;
  padding-top: 17px;
  pointer-events: none;
  color: #dfd8c4;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.13em;
}
.scroll-cue > span {
  font-size: 20px;
}
.ambient-dust {
  display: none;
}
.cinematic .ambient-dust {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: block;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 15% 34%, #f0d8a0aa 40%, transparent),
    radial-gradient(1.5px 1.5px at 73% 22%, #f0d8a085 40%, transparent),
    radial-gradient(1px 1px at 84% 68%, #f0d8a065 40%, transparent),
    radial-gradient(1px 1px at 57% 84%, #f0d8a045 40%, transparent);
  transform: translate3d(0, var(--dust-y, 0px), 0);
  opacity: 0.6;
}
.progress-line {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  z-index: 50;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.finale {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  padding: 150px var(--gutter) 120px;
  background:
    radial-gradient(ellipse at 20% 40%, #305e422b, transparent 65%), var(--ink);
}
.event-facts {
  margin: 26px 0;
}
.event-facts > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  margin: 20px 0;
}
.event-facts dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 4px;
}
.event-facts dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.event-facts dd small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.book-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--gold);
  color: #183225;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 600;
  min-height: 54px;
  transition: background 0.2s;
}
.book-button:hover {
  background: #efd49d;
}
.booking-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 18px;
}
.event-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #c9aa6b40;
  padding-bottom: 18px;
}
.event-links a,
.event-links button {
  font-size: 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: none;
  padding: 5px 0;
}
.entry-note {
  display: flex;
  gap: 13px;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 22px;
  color: #c6c9b9;
}
.entry-note > span {
  color: var(--gold);
  font-size: 20px;
}
.entry-note small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}
footer {
  padding: 35px var(--gutter) 105px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  border-top: 1px solid #e0be8022;
  background: var(--ink);
  color: #c4c7b4;
  font-size: 12px;
}
footer > a:first-child {
  font: 26px var(--serif);
  color: var(--gold);
}
footer > p {
  text-align: right;
}
footer > a:nth-of-type(2) {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.close-button {
  background: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.sound-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translate(-50%, 10px);
  max-width: calc(100% - 40px);
  width: max-content;
  padding: 13px 20px;
  background: var(--cream);
  color: var(--ink);
  z-index: 70;
  box-shadow: 0 4px 30px #0005;
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid #baa16e;
  padding: 30px;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: 0 30px 100px #0007;
}
dialog::backdrop {
  background: #061812d9;
  backdrop-filter: blur(8px);
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 40px;
  letter-spacing: -0.03em;
  margin-top: 9px;
}
.dialog-head .eyebrow {
  font-size: 12px;
}
.memory-dialog > p {
  font-size: 14px;
}
.photo-input {
  display: block;
  cursor: pointer;
  border: 1px dashed #d8bc7770;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
}
.photo-input input {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  font-size: 13px;
  min-height: 44px;
}
.memory-dialog canvas {
  display: none;
  max-height: 45svh;
  width: auto;
  max-width: 100%;
  margin: 20px auto;
}
.memory-dialog canvas.has-photo {
  display: block;
}
.memory-dialog .book-button {
  justify-content: center;
}
.noscript-note {
  padding: 25px var(--gutter);
  font-size: 14px;
}
@media (min-width: 1700px) {
  .scene-copy {
    max-width: 760px;
  }
  .scene {
    padding-left: max(var(--gutter), calc((100vw - 1550px) / 2));
  }
  .original-invitation {
    left: 62%;
  }
  .hamper-area {
    left: 49%;
  }
}
@media (max-width: 1000px) {
  :root {
    --gutter: 38px;
  }
  .header-date {
    display: none;
  }
  .scene-copy {
    width: 56%;
  }
  h1,
h2 {
    font-size: 70px;
  }
  .scene-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 0.13em;
  }
  .original-invitation {
    left: 65%;
    width: 29%;
  }
  .hamper-area {
    left: 54%;
    width: 43%;
  }
  .finale {
    gap: 6%;
  }
}
@media (max-width: 650px) {
  :root {
    --gutter: 24px;
  }
  .masthead {
    padding: 16px 24px;
    gap: 15px;
    align-items: flex-start;
  }
  .wordmark {
    width: 69px;
  }
  .header-actions {
    gap: 10px;
    flex-direction: column-reverse;
    align-items: flex-end;
  }
  .header-link {
    font-size: 12px;
    padding: 3px 0;
    min-height: 35px;
  }
  .header-link span {
    padding-left: 10px;
  }
  .scene {
    min-height: 890px;
    min-height: 110svh;
    align-items: flex-start;
    padding: 130px 24px 110px;
  }
  .scene-copy {
    width: 100%;
    max-width: 440px;
  }
  .scene-copy .eyebrow {
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.14em;
    max-width: 280px;
    margin-bottom: 22px;
  }
  h1,
h2 {
    font-size: clamp(47px, 12vw, 72px);
    line-height: 1.04;
  }
  h1 {
    font-size: clamp(51px, 12.4vw, 74px);
  }
  .scene-art img {
    object-position: 72% center;
  }
  .cinematic .scene {
    padding: 124px 24px 110px;
  }
  .cinematic .journey-caption {
    inset: auto 24px 87px;
    padding-top: 13px;
    font-size: 11px;
    letter-spacing: 0;
    gap: 15px;
  }
  .scroll-cue {
    font-size: 9px;
    letter-spacing: 0.08em;
    gap: 10px;
    flex-shrink: 0;
  }
  .scroll-cue > span {
    font-size: 16px;
  }
  .hamper-area {
    width: 100%;
    left: 0;
    top: auto;
    bottom: 145px;
    transform: none;
  }
  .hamper {
    width: min(53vw, 255px, 31svh);
  }
  .hamper-interior strong {
    font-size: 28px;
  }
  .hamper-interior span {
    font-size: 9px;
  }
  .hamper-interior small {
    font-size: 8px;
  }
  .original-invitation {
    width: min(39vw, 23svh);
    left: 50%;
    top: auto;
    bottom: 140px;
    transform: translateX(-50%) rotate(3deg);
  }
  .original-invitation figcaption {
    font-size: 10px;
    margin-top: 10px;
    white-space: nowrap;
    gap: 10px;
  }
  .outline-button {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 16px;
    margin-top: 22px;
    max-width: 100%;
  }
  .finale {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 95px 24px 65px;
  }
  .event-facts > div {
    grid-template-columns: 65px 1fr;
    gap: 12px;
  }
  .event-facts dd {
    font-size: 15px;
  }
  .event-facts dt {
    font-size: 10px;
  }
  .event-facts dd small {
    font-size: 12px;
  }
  .event-links a,
.event-links button {
    font-size: 12px;
  }
  .entry-note {
    font-size: 12px;
  }
  .entry-note small {
    font-size: 11px;
  }
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 24px 110px;
    gap: 14px;
  }
  footer > p {
    text-align: center;
  }
  .toast {
    bottom: 86px;
    font-size: 13px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 34px;
  }
  .dialog-head .eyebrow {
    font-size: 10px;
  }
  .memory-dialog > p {
    font-size: 13px;
  }
}
@media (max-height: 760px) and (min-width: 651px) {
  .cinematic .scene {
    padding-top: 95px;
    padding-bottom: 85px;
  }
  h1,
h2 {
    font-size: clamp(52px, 5.5vw, 82px);
  }
  .scene-copy .eyebrow {
    margin-bottom: 18px;
  }
  .outline-button {
    margin-top: 20px;
  }
}
@media (max-height: 760px) and (max-width: 650px) {
  .cinematic .scene {
    padding-top: 110px;
  }
  .cinematic .scene-copy .eyebrow {
    margin-bottom: 15px;
  }
  .cinematic h1,
.cinematic h2 {
    font-size: clamp(41px, 10.7vw, 56px);
  }
  .cinematic .hamper-area {
    bottom: 130px;
  }
  .cinematic .hamper {
    width: min(46vw, 29svh);
  }
  .cinematic .original-invitation {
    width: 19svh;
    bottom: 132px;
  }
  .cinematic .outline-button {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
*:before,
*:after {
    animation: none !important;
    transition: none !important;
  }
  .door {
    transform: none !important;
  }
  .hamper-seal {
    opacity: 1 !important;
  }
  .scene-art img {
    transform: none !important;
  }
}

/* View the printed invitation without leaving the story or losing scroll position. */
.original-invitation-dialog {
  width: min(720px, calc(100% - 24px));
  max-width: 720px;
  max-height: calc(100svh - 24px);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}
.invitation-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 6px 8px 6px 18px;
  background: #123d32;
  color: #fff3d5;
  font-size: 14px;
}
.invitation-viewer-bar button {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #d8b86c;
  border-radius: 50%;
  background: #fff3d5;
  color: #123d32;
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}
.original-invitation-dialog > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 84px);
  object-fit: contain;
  background: #09271f;
}

/* storybook.css */
/* The original illustrated friends lead the story; one conversation at a time. */
.illustrated-scene {
  display: block;
  background: #1b372d;
  padding: 0;
  min-height: 900px;
  min-height: 100svh;
}
.illustrated-scene .scene-art {
  z-index: -4;
}
.illustrated-scene .scene-art img {
  object-position: center;
  filter: saturate(1.08);
}
.story-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #0b211acf,
    transparent 36%,
    transparent 67%,
    #0b211a
  );
}
.illustrated-scene .story-title {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  max-width: none;
  padding: 132px var(--gutter) 0;
  z-index: 5;
  pointer-events: none;
  text-align: center;
}
.illustrated-scene .story-title h1 {
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.illustrated-scene .story-title h2 {
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.dialogue-track {
  position: relative;
  z-index: 7;
  margin: 30px auto 0;
  width: min(560px, 82%);
  display: grid;
  gap: 18px;
}
.dialogue-beat {
  position: relative;
  border: 1px solid #dfc397;
  background: #fff3d9;
  color: #253d30;
  padding: 20px 29px 24px;
  border-radius: 22px 22px 22px 5px;
  box-shadow: 0 12px 32px #24150d35;
  font: 500 29px/1.26 var(--serif);
}
.dialogue-beat .speaker {
  font: 600 10px/1.5 var(--sans);
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7354;
  margin-bottom: 6px;
}
.dialogue-beat q {
  quotes: none;
}
.dialogue-beat q:before,
.dialogue-beat q:after {
  content: none;
}
.dialogue-beat:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 24%;
  width: 24px;
  height: 25px;
  background: #fff3d9;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.dialogue-beat[data-speaker="her"] {
  border-radius: 22px 22px 5px 22px;
  background: #ffe5df;
  border-color: #dab1a4;
}
.dialogue-beat[data-speaker="her"]:after {
  left: auto;
  right: 24%;
  background: #ffe5df;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.dialogue-beat[data-speaker="her"] .speaker {
  color: #8a554f;
}
.story-cast {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.story-person {
  position: absolute;
  bottom: 17%;
  width: min(32vw, 355px, 43svh);
  aspect-ratio: 1;
  left: 34%;
  transform: translateX(-50%)
    translate3d(var(--person-x, 0px), var(--person-y, 0px), 0)
    scale(var(--person-scale, 1)) rotate(var(--person-tilt, 0deg));
  transform-origin: 50% 85%;
  opacity: var(--person-opacity, 1);
  filter: drop-shadow(0 15px 10px #25140550);
}
.story-person.woman {
  left: 65%;
}
.story-person i {
  display: block;
  width: 100%;
  height: 100%;
  background: url(assets/story/character.webp) left top/200% 200% no-repeat;
}
.story-person.woman i {
  background-image: url(assets/story/scroll/woman.webp);
}
.story-person[data-pose="walk"] i {
  background-position: 100% 0;
}
.story-person[data-pose="pray"] i {
  background-position: 0 100%;
}
.story-person[data-pose="dance"] i {
  background-position: 100% 100%;
}
/* The opening's silk descent lives only in the first animated scene. */
.dupatta-descent { display: none; }
.cinematic .story-meet .story-person > i { opacity: var(--landed, 0); }
.cinematic .story-meet .dupatta-descent {
  display: block;
  position: absolute;
  inset: auto 0 0;
  aspect-ratio: 3 / 4;
  opacity: calc(1 - var(--landed, 0));
  transform: translateY(var(--descent-y, -125svh)) rotate(var(--descent-turn, 0deg));
  transform-origin: 54% 0;
  pointer-events: none;
}
.dupatta-descent img { display: block; width: 100%; height: 100%; }
.dupatta-silk {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 54%;
  width: 7.5%;
  height: 150svh;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #520c22, #a91537 22%, #d44357 30%, #6b0924 48%, #991131 76%, #e2b962 80%, #fff0ab 83%, #8b5624 88%, #d6aa54 94%, #631024);
  border-radius: 40% 10% 0 0;
}
.woman .dupatta-silk { left: 46%; }
.cinematic #beginning .story-title,
.cinematic #beginning .dialogue-track {
  opacity: calc(var(--copy-opacity, 1) * var(--arrival-copy, 0));
}
@media (prefers-reduced-motion: reduce) {
  .cinematic .story-meet .dupatta-descent { display: none; }
  .cinematic .story-meet .story-person > i { opacity: 1; }
}
.story-invite {
  background: #102f28;
}
.story-invite .story-shade {
  background: linear-gradient(
    180deg,
    #061e1acc,
    #061e1a20 35%,
    #061e1a12 65%,
    #061e1ae6
  );
}
.story-boarding .story-person {
  left: 27%;
  bottom: 22%;
  --person-scale: 0.9;
}
.story-boarding .woman {
  left: 48%;
}
/* The road approaches the windscreen along its vanishing point. */
.cinematic .story-drive .scene-art img {
  transform: scale(var(--road-zoom, 1));
  transform-origin: 50% 53%;
}
.story-drive .story-title {
  z-index: 5;
}
.story-drive .story-shade {
  z-index: 4;
  background: linear-gradient(
    #0b211abb,
    transparent 30%,
    transparent 70%,
    #0b211a
  );
}
.story-arrival .scene-art img {
  object-position: center;
}
.story-arrival .story-person {
  bottom: 20%;
  left: 42%;
  width: min(22vw, 260px, 32svh);
  z-index: 3;
}
.story-arrival .woman {
  left: 57%;
}
.together-art {
  position: absolute;
  bottom: 14%;
  left: 50%;
  height: min(40svh, 380px);
  width: auto;
  z-index: 4;
  transform: translateX(-50%) translate3d(0, var(--together-y, 0px), 0)
    scale(var(--together-scale, 1));
  transform-origin: 50% 95%;
  opacity: var(--together-opacity, 1);
  filter: drop-shadow(0 12px 12px #0005);
}
.story-arrival .together-art {
  bottom: 18%;
}
.story-stage .together-art {
  height: min(45svh, 400px);
  bottom: 12%;
}
.story-stage .scene-art img {
  object-position: 60% center;
}
.scene-actions {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: max-content;
  max-width: calc(100% - 40px);
}
.scene-actions .outline-button {
  margin: 0;
  background: #17372be6;
  font-size: 13px;
  white-space: nowrap;
}
.text-button {
  min-height: 44px;
  padding: 8px 0;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.story-selfie .story-person {
  bottom: 21%;
  left: 42%;
  width: min(29vw, 320px, 37svh);
}
.story-selfie .woman {
  left: 60%;
}
.selfie-print {
  position: absolute;
  z-index: 6;
  bottom: 19%;
  left: 50%;
  width: min(34vw, 360px, 41svh);
  padding: 12px 12px 18px;
  background: #fff2d8;
  color: #5a392c;
  box-shadow: 0 18px 65px #0007;
  transform: translateX(-50%) rotate(-5deg) scale(var(--photo-scale, 0.8));
  opacity: var(--photo-opacity, 0);
  pointer-events: none;
}
.selfie-print img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.selfie-print figcaption {
  font: italic 23px/1.3 var(--serif);
  text-align: center;
  padding-top: 13px;
}
.story-selfie[data-photo="true"] .selfie-print {
  --photo-opacity: 1 !important;
  --photo-scale: 1 !important;
}
.story-selfie[data-photo="true"] .story-cast {
  opacity: 0;
}
.cinematic .story-selfie[data-photo="true"] .dialogue-track {
  opacity: 0;
}
.story-prayer {
  background: #242820;
}
.story-prayer .story-shade {
  background: linear-gradient(
    #0b211ac9,
    transparent 34%,
    transparent 65%,
    #0b211a
  );
}
.aarti-art {
  position: absolute;
  bottom: 15%;
  left: 66%;
  height: min(37svh, 320px);
  width: auto;
  z-index: 4;
  transform: translateX(-50%) rotate(var(--prayer-tilt, 0deg));
  transform-origin: 50% 85%;
  filter: drop-shadow(0 10px 12px #0007);
}
.story-prayer .dialogue-track {
  margin-left: 9%;
  max-width: 430px;
  width: 38%;
}
.story-dance .story-person {
  bottom: 20%;
  left: 40%;
  width: min(27vw, 310px, 36svh);
}
.story-dance .woman {
  left: 62%;
}
.story-dance .scene-art img {
  object-position: center;
}
.story-dance .story-title {
  color: #fff3d8;
}
/* The same cinematic controller now directs the cast as well as the scene dissolves. */
.cinematic .illustrated-scene {
  padding: 0;
}
.cinematic .illustrated-scene .story-title {
  position: absolute;
  inset: 115px 0 auto;
  padding: 0 24px;
  opacity: var(--copy-opacity, 1);
  transform: none;
}
.cinematic .illustrated-scene .dialogue-track {
  position: absolute;
  top: 26%;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  width: min(520px, 74%);
  opacity: var(--copy-opacity, 1);
}
.cinematic .dialogue-beat:not(.is-speaking) {
  display: none;
}
.cinematic .dialogue-beat {
  min-height: 100px;
}
.cinematic .story-invite .dialogue-track {
  top: 22%;
  width: min(430px, 70%);
}
.cinematic .story-prayer .dialogue-track {
  left: 24%;
  top: 27%;
  width: 35%;
  max-width: 420px;
}
.cinematic .story-selfie[data-photo="true"] .dialogue-track {
  opacity: 0;
}
.cinematic .scene-actions {
  opacity: var(--copy-opacity, 1);
}
.cinematic .story-selfie.is-active .selfie-print {
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.cinematic .story-arrival .story-person {
  opacity: var(--person-opacity, 0);
}
.cinematic .illustrated-scene.is-visible .story-person {
  will-change: transform;
}
.cinematic .story-dance.is-active .story-person i {
  animation: garba-sway 1.5s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.cinematic .story-dance.is-active .woman i {
  animation-delay: -0.3s;
}
@keyframes garba-sway {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-5px);
  }
}
/* Reading/no-JavaScript layouts show the complete conversation, not hidden beats. */
html:not(.cinematic) .illustrated-scene {
  min-height: 1050px;
  padding-bottom: 570px;
}
html:not(.cinematic) .illustrated-scene .story-title {
  padding-top: 125px;
}
html:not(.cinematic) .dialogue-track {
  width: min(540px, 82%);
}
html:not(.cinematic) .dialogue-beat {
  font-size: 24px;
  padding: 16px 24px;
}
html:not(.cinematic) .story-person {
  bottom: 13%;
  width: 290px;
  max-width: 40vw;
}
html:not(.cinematic) .story-boarding .story-cast {
  z-index: 6;
}
html:not(.cinematic) .story-boarding .story-person {
  bottom: 20%;
  left: 25%;
}
html:not(.cinematic) .story-boarding .woman {
  left: 48%;
}
html:not(.cinematic) .story-arrival .story-cast {
  display: none;
}
html:not(.cinematic) .story-arrival .together-art {
  height: 350px;
  max-height: 35%;
  bottom: 12%;
}
html:not(.cinematic) .story-selfie .selfie-print {
  --photo-opacity: 1;
  --photo-scale: 1;
  bottom: 15%;
  width: 300px;
  max-width: 65vw;
}
html:not(.cinematic) .story-selfie .story-cast {
  display: none;
}
html:not(.cinematic) .story-prayer .dialogue-track {
  margin: 30px auto 0;
  max-width: 540px;
  width: 82%;
}
html:not(.cinematic) .scene-actions {
  bottom: 6%;
}
@media (max-width: 650px) {
  .illustrated-scene .story-title h1 {
    font-size: 37px;
  }
  .illustrated-scene .story-title h2 {
    font-size: 30px;
  }
  .cinematic .illustrated-scene .story-title {
    inset: 121px 12px auto;
  }
  .cinematic .illustrated-scene .dialogue-track {
    top: 26%;
    width: calc(100% - 48px);
    max-width: 370px;
    left: 50%;
  }
  .dialogue-beat {
    font-size: 25px;
    padding: 18px 23px 21px;
    line-height: 1.3;
  }
  .dialogue-beat .speaker {
    font-size: 10px;
  }
  .cinematic .dialogue-beat {
    min-height: 112px;
  }
  .story-person {
    width: min(56vw, 270px, 35svh);
    left: 28%;
    bottom: 23%;
  }
  .story-person.woman {
    left: 71%;
  }
  .story-shade {
    background: linear-gradient(
      #0b211add,
      transparent 40%,
      transparent 65%,
      #0b211a
    );
  }
  .cinematic .story-invite .dialogue-track {
    top: 23%;
  }
  .story-boarding .story-person {
    width: 45vw;
    left: 23%;
    bottom: 24%;
  }
  .story-boarding .woman {
    left: 50%;
  }
  .story-arrival .story-person {
    width: 40vw;
    bottom: 25%;
    left: 37%;
  }
  .story-arrival .woman {
    left: 59%;
  }
  .story-arrival .together-art {
    height: 31svh;
    bottom: 23%;
  }
  .story-stage .together-art {
    height: 34svh;
    bottom: 22%;
  }
  .scene-actions {
    bottom: 15%;
    gap: 8px;
    flex-direction: column;
    width: calc(100% - 48px);
  }
  .scene-actions .outline-button {
    font-size: 12px;
    min-height: 44px;
    padding: 9px 18px;
  }
  .text-button {
    font-size: 11px;
    min-height: 38px;
  }
  .story-stage .scene-actions,
.story-prayer .scene-actions {
    bottom: 15%;
  }
  .story-selfie .story-person {
    width: 50vw;
    left: 35%;
    bottom: 28%;
  }
  .story-selfie .woman {
    left: 64%;
  }
  .selfie-print {
    width: min(56vw, 30svh);
    bottom: 27%;
    padding: 9px 9px 14px;
  }
  .selfie-print figcaption {
    font-size: 19px;
    padding-top: 9px;
  }
  .story-selfie .scene-actions {
    bottom: 14%;
    gap: 0;
  }
  .cinematic .story-prayer .dialogue-track {
    top: 21%;
    left: 50%;
    width: calc(100% - 48px);
    max-width: 370px;
  }
  .aarti-art {
    left: 65%;
    height: 30svh;
    bottom: 22%;
  }
  .story-prayer .story-shade {
    background: linear-gradient(
      #0b211ae6,
      transparent 38%,
      transparent 62%,
      #0b211a
    );
  }
  .story-dance .story-person {
    width: 51vw;
    left: 32%;
    bottom: 28%;
  }
  .story-dance .woman {
    left: 69%;
  }
  .story-dance .scene-actions {
    bottom: 14%;
    gap: 0;
  }
  html:not(.cinematic) .illustrated-scene {
    min-height: 1000px;
    padding-bottom: 470px;
  }
  html:not(.cinematic) .dialogue-beat {
    font-size: 23px;
    padding: 16px 20px;
  }
  html:not(.cinematic) .story-person {
    width: 55vw;
    max-width: 55vw;
    bottom: 12%;
  }
  html:not(.cinematic) .aarti-art {
    height: 29%;
    bottom: 15%;
  }
  html:not(.cinematic) .story-selfie .selfie-print {
    bottom: 16%;
    max-width: 60vw;
  }
}
@media (max-height: 760px) and (max-width: 650px) {
  .cinematic .illustrated-scene .story-title {
    top: 108px;
  }
  .illustrated-scene .story-title h1 {
    font-size: 32px;
  }
  .illustrated-scene .story-title h2 {
    font-size: 26px;
  }
  .cinematic .illustrated-scene .dialogue-track {
    top: 25%;
    width: calc(100% - 48px);
  }
  .cinematic .story-prayer .dialogue-track {
    top: 21%;
  }
  .dialogue-beat {
    font-size: 23px;
    padding: 14px 20px 18px;
  }
  .cinematic .dialogue-beat {
    min-height: 98px;
  }
  .story-person {
    width: 47vw;
    bottom: 23%;
  }
  .story-selfie .selfie-print {
    width: 26svh;
    bottom: 28%;
  }
  .story-arrival .together-art {
    height: 27svh;
  }
  .story-stage .together-art {
    height: 29svh;
    bottom: 23%;
  }
  .aarti-art {
    height: 25svh;
  }
  .story-dance .story-person {
    width: 43vw;
    bottom: 28%;
  }
  .cinematic .journey-caption {
    bottom: 79px;
  }
  .scene-actions .outline-button {
    min-height: 44px;
  }
  .text-button {
    min-height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-person,
.together-art,
.aarti-art {
    transform: none;
  }
  .story-person {
    translate: -50% 0;
  }
  .together-art,
.aarti-art {
    translate: -50% 0;
  }
  .dialogue-beat {
    transition: none;
  }
  .selfie-print {
    transition: none;
  }
  .story-dance .story-person i {
    animation: none !important;
  }
}
.cinematic .illustrated-scene .dialogue-track {
  opacity: calc(var(--copy-opacity, 1) * var(--dialogue-opacity, 1));
}
html:not(.cinematic) .story-selfie[data-photo="false"] .selfie-print {
  --photo-opacity: 0;
  --photo-scale: 0.85;
}
html:not(.cinematic) .story-selfie[data-photo="false"] .story-cast {
  display: block;
}

/* The physical box is the opening scene, before the illustrated friends. */
.opening-scene {
  padding: 0;
  min-height: 700px;
  min-height: 100svh;
}
.opening-layout {
  position: absolute;
  inset: 104px 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.opening-title {
  position: relative;
  text-align: center;
  max-width: none;
  padding: 0 24px;
}
.opening-title h1 {
  font-size: clamp(30px, 3.2vw, 46px);
}
.opening-scene .hamper-area {
  position: relative;
  inset: auto;
  width: 100%;
  transform: none;
  flex: 1;
  align-items: center;
  min-height: 0;
}
.opening-scene .hamper {
  width: min(88vw, calc((100svh - 350px) * 0.8138), 570px);
  flex: none;
}
.opening-scene .hamper-interior {
  inset: 0;
  padding: 0;
  border: 2px solid #b99862;
}
.opening-scene .hamper-interior > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}
.opening-scene .hamper-seal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.opening-scene .hamper-seal small {
  font: 600 clamp(7px, 0.7vw, 10px)/1.5 var(--sans);
  color: #e6c274;
}
.opening-scene .box-hit-area {
  z-index: 6;
  pointer-events: auto;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  overflow: visible;
}
.opening-scene .box-hit-area[hidden] {
  display: none;
}
.box-hit-area:focus-visible {
  outline: 2px solid #ffe3a5;
  outline-offset: 6px;
}
.seal-prompt {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: #ffe8b8;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px #071f19;
}
.seal-prompt > span {
  padding: 7px 12px;
  border: 1px solid #dfbd7866;
  border-radius: 20px;
  background: #0b281fee;
}
.seal-hand {
  width: 26px;
  height: 33px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px #0008);
}
@media (hover: hover) and (pointer: fine) {
  .box-hit-area:hover .seal-prompt > span {
    background: #244b37;
    border-color: #ffe3a5;
  }
}
.opening-actions {
  text-align: center;
  z-index: 7;
}
.opening-actions .outline-button {
  margin: 0;
  min-height: 48px;
  background: #173c30cc;
  padding: 10px 24px;
}
.opening-hint {
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cinematic .opening-fallback,
.read-mode .opening-fallback {
  display: none;
}
.cinematic .opening-title,
.cinematic .opening-actions {
  opacity: var(--copy-opacity, 1);
  transform: none;
}
html:not(.cinematic) .opening-scene {
  height: max(100svh, 700px);
}
html:not(.cinematic) .opening-scene .door {
  transition: transform 0.85s ease;
}
html:not(.cinematic) .opening-scene .hamper-seal {
  transition: opacity 0.3s ease;
}
@media (max-width: 650px) {
  .opening-layout {
    inset: 108px 0 142px;
    gap: 16px;
  }
  .opening-scene .hamper {
    width: min(88vw, calc((100svh - 350px) * 0.8138));
  }
  .opening-title h1 {
    font-size: 30px;
  }
}
@media (max-height: 760px) and (max-width: 650px) {
  .opening-layout {
    inset: 104px 0 125px;
    gap: 12px;
  }
  .opening-scene .hamper {
    width: min(86vw, calc((100svh - 350px) * 0.8138));
  }
  .opening-title h1 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.cinematic) .opening-scene .door,
html:not(.cinematic) .opening-scene .hamper-seal {
    transition: none;
  }
}

/* Gujarati applies only to the characters' spoken dialogue. */
@font-face {
  font-family: "Noto Serif Gujarati";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/noto-serif-gujarati.woff2") format("woff2");
}
.dialogue-beat q[lang="gu"] {
  font-family: "Noto Serif Gujarati", serif;
  font-size: 0.9em;
}

/* Invitation typography: clear navigation and quiet gold chapter ornaments. */
.masthead {
  padding: 14px var(--gutter);
  align-items: center;
  background: linear-gradient(180deg, #0a241df5, #0a241de0);
  border-bottom: 1px solid #d4b67b30;
}
.wordmark {
  width: 80px;
}
.header-date {
  color: #dbc69d;
  font-size: 10px;
  letter-spacing: 0.22em;
}
.header-actions {
  gap: 22px;
}
.header-link {
  padding: 9px 17px;
  border: 1px solid #d4b67b70;
  font-size: 12px;
  background: #d4b67b0a;
}
.header-link:hover,
.header-link:focus-visible {
  background: #d4b67b20;
}
.opening-title h1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 13px;
  font-size: clamp(50px, 5vw, 64px);
  line-height: 1;
}
.heading-lead {
  font: 500 12px/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #eee2cb;
}
.opening-title h1 em,
.illustrated-scene .story-title h2 em {
  color: #edd09a;
  font-weight: 400;
}
.opening-title:after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 13px auto 0;
  background: linear-gradient(90deg, transparent, #d4b67b, transparent);
}
.illustrated-scene .story-title h2 {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 7px 26px 14px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff5e2;
  text-wrap: balance;
  text-shadow: 0 2px 14px #061711;
  background: linear-gradient(
    90deg,
    transparent,
    #0a241dc9 20%,
    #0a241dc9 80%,
    transparent
  );
}
.illustrated-scene .story-title h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4b67bb3, transparent);
}
.illustrated-scene .story-title h2:before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: calc(50% - 2px);
  width: 5px;
  height: 5px;
  background: #d4b67b;
  transform: rotate(45deg);
}
@media (max-width: 650px) {
  .masthead {
    padding: 8px 20px;
    gap: 12px;
  }
  .wordmark {
    width: 64px;
  }
  .header-actions {
    gap: 0;
  }
  .header-link {
    min-height: 40px;
    padding: 5px 12px;
    font-size: 11px;
  }
  .opening-title h1 {
    font-size: 52px;
    gap: 10px;
  }
  .heading-lead {
    font-size: 10px;
  }
  .illustrated-scene .story-title h2 {
    padding: 5px 12px 10px;
    font-size: 29px;
    line-height: 1.12;
  }
}
@media (max-height: 760px) and (max-width: 650px) {
  .opening-title h1 {
    font-size: 44px;
  }
  .cinematic .illustrated-scene .story-title {
    top: 102px;
  }
  .illustrated-scene .story-title h2 {
    font-size: 24px;
    padding-top: 3px;
    padding-bottom: 8px;
  }
}
/* Scroll opens the doors, then carries the visitor through the courtyard. */
.cinematic .opening-scene .hamper {
  transform: scale(calc(1 + var(--enter, 0) * 3.5));
  transform-origin: center;
}
.cinematic .opening-scene.is-visible .hamper {
  will-change: transform;
}
.cinematic .opening-title,
.cinematic .opening-actions {
  opacity: calc(var(--copy-opacity, 1) * var(--entry-copy, 1));
}
.cinematic .opening-scene .hamper-interior {
  box-shadow: inset 0 0 30px #071f1966;
}
.cinematic .opening-scene .hamper-interior > img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100svh;
  max-width: none;
  transform: translate(-50%, -50%) scale(var(--portal-inverse, 1.08));
}
html:not(.cinematic) .opening-scene .hamper {
  width: min(86vw, 420px);
}
@media (max-height: 760px) and (min-width: 651px) {
  .cinematic .illustrated-scene .story-title {
    top: 96px;
  }
  .illustrated-scene .story-title h2 {
    font-size: 32px;
    padding: 4px 18px 9px;
  }
  .opening-title h1 {
    font-size: 48px;
  }
}
@media (max-height: 680px) and (max-width: 650px) {
  .cinematic .illustrated-scene .story-title {
    top: 94px;
  }
  .cinematic .illustrated-scene .story-title h2 {
    font-size: 22px;
    padding: 2px 12px 6px;
  }
}

/* A quiet, separate choice for the one-shot box-opening effect. */
#opening-sound {
  padding: 8px 12px;
  min-height: 36px;
  margin-top: 2px;
  background: #0b281fdd;
  border: 1px solid #dfbd7844;
  border-radius: 20px;
  color: #e6d2aa;
  font: 500 10px/1.4 var(--sans);
}
#opening-sound {
  position: absolute;
  bottom: 100px;
  right: var(--gutter);
  z-index: 8;
  white-space: nowrap;
}
@media (max-width: 650px) {
  #opening-sound { bottom: 24px; right: 16px; }
}

/* The elephant itself is the two-person invitation, shared between the friends. */
.story-invite .invitation-handoff {
  position: relative;
  width: min(92%, 680px);
  margin: 42px auto 90px;
  z-index: 4;
  text-align: center;
}
.invitation-handoff img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 12px #18291d66);
}
.invitation-handoff figcaption {
  font: 400 14px/1.5 "Noto Serif Gujarati", serif;
  color: #fff1ce;
  margin-top: 12px;
  text-shadow: 0 2px 8px #10251f;
}
.cinematic .story-invite .invitation-handoff {
  position: absolute;
  width: min(79vw, 650px, 54svh);
  left: 50%;
  bottom: 12%;
  margin: 0;
  transform: translateX(-50%);
}
@media (max-width: 650px) {
  .cinematic .story-invite .invitation-handoff {
    width: min(90vw, 52svh);
    bottom: 13%;
  }
  .invitation-handoff figcaption { font-size: 12px; }
  .cinematic .journey-stage:has(#the-invitation.is-active) .journey-caption,
.cinematic .journey-stage:has(#a-memory.is-active) .journey-caption {
    opacity: 0;
  }
}

/* Separate arms and pass keep the reveal and transfer physically connected. */
.handoff-rig { display: none; }
.cinematic .handoff-still { display: none; }
.cinematic .handoff-rig {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 917;
  isolation: isolate;
}
.handoff-rig img {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  filter: none;
  pointer-events: none;
}
.handoff-rear,
.handoff-front { position: absolute; inset: 0; }
.handoff-rear { opacity: var(--rear, 1); }
.handoff-front { opacity: var(--front, 0); }
.handoff-rig .handoff-man { width: 35%; left: 1.8182%; top: 1.0905%; }
.handoff-rig .handoff-woman { width: 49.6364%; left: 49.0909%; top: 6.5431%; }
.handoff-rig .handoff-man-arm {
  width: 19.0909%; left: 25.1364%; top: 31.4613%;
  transform-origin: 14.0476% 22.9167%;
  transform: rotate(var(--his-arm, 48deg));
}
.handoff-rig .handoff-woman-arm {
  width: 19.5455%; left: 50.3636%; top: 32.8244%;
  transform-origin: 83.7209% 25%;
  transform: rotate(var(--her-arm, -80deg));
}
.handoff-rig .handoff-pass {
  width: 24.5455%;
  left: 0;
  top: 0;
  transform-origin: 80% 97%;
  transform: translate(var(--pass-x, 240%), var(--pass-y, 110%)) rotate(var(--pass-turn, 18deg));
  opacity: var(--pass-visible, 0);
}
.handoff-shoulder { clip-path: inset(0 0 0 57%); }
.dialogue-beat q [lang="en"] { white-space: normal; }
@media (max-width: 650px) and (max-height: 700px) {
  .cinematic .story-invite .invitation-handoff { width: min(80vw, 40svh); }
}

/* Falling flowers sit behind the friends and all readable/interactive content. */
.flower-shower {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.cinematic .flower-shower { display: block; }
.flower-petal {
  position: absolute;
  left: var(--petal-left);
  top: -25px;
  width: var(--petal-size);
  height: calc(var(--petal-size) * 1.35);
  border-radius: 80% 25% 70% 35%;
  background: radial-gradient(ellipse at 30% 25%, #ffd86d, #ec982a 65%, #c9631e);
  box-shadow: inset 1px 1px 2px #fff5, 0 1px 2px #7d391a33;
  animation: aarti-flower-fall var(--petal-duration) linear var(--petal-delay) infinite paused;
}
.flower-petal.petal-1 {
  background: radial-gradient(ellipse at 30% 25%, #ffc1be, #d66f86 65%, #a84061);
  border-radius: 65% 80% 20% 80%;
}
.flower-petal.petal-2 {
  background: radial-gradient(ellipse at 30% 25%, #fffde8, #eadbb2 75%, #c5b583);
  width: calc(var(--petal-size) * .7);
}
.cinematic .story-prayer.is-visible .flower-petal { animation-play-state: running; }
.cinematic .flower-shower[data-paused="true"] .flower-petal { animation-play-state: paused; }
@keyframes aarti-flower-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) rotateY(0deg); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translate3d(var(--petal-drift), 55svh, 0) rotate(calc(var(--petal-turn) * .5)) rotateY(110deg); opacity: .75; }
  90% { opacity: .65; }
  100% { transform: translate3d(0, 110svh, 0) rotate(var(--petal-turn)) rotateY(230deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flower-shower { display: none !important; }
  .flower-petal { animation: none; }
}

/* Opening is an explicit invitation: prompt motion runs only while waiting for a click. */
html.invitation-locked,
html.invitation-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}
.invitation-locked .scroll-cue { visibility: hidden; }
.cinematic.invitation-locked .seal-prompt {
  animation: invitation-click-hint 1.8s ease-in-out infinite;
}
@keyframes invitation-click-hint {
  0%, 100% { opacity: 1; transform: translate(-50%, 0); }
  50% { opacity: .45; transform: translate(-50%, -9px); }
}
@media (prefers-reduced-motion: reduce) {
  .seal-prompt { animation: none !important; }
}

/* button-motion.css */
/* Interaction feedback is limited to buttons and button-like links. */
.button-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: none;
  transition:
    translate 180ms ease,
    scale 120ms ease,
    rotate 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}
.button-motion::before,
.button-motion::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
.button-motion::before {
  inset: -100% -50%;
  background: linear-gradient(
    110deg,
    transparent 38%,
    #ffe6af45 50%,
    transparent 62%
  );
  translate: -80% 0;
}
.button-motion::after {
  inset: 0;
  background: radial-gradient(
    circle at var(--press-x, 50%) var(--press-y, 50%),
    #ffe0a685,
    transparent 65%
  );
  transform-origin: var(--press-x, 50%) var(--press-y, 50%);
}
.button-motion[aria-pressed="true"],
.button-motion[aria-expanded="true"] {
  border-color: #edcf98;
  box-shadow: inset 0 0 0 1px #edcf9838;
}
.button-motion:disabled,
.button-motion[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
}
html:not(.read-mode) .button-motion:focus-visible {
  box-shadow: 0 0 0 4px #dfbc7926;
}
html:not(.read-mode)
  .button-motion:active:not(:disabled):not([aria-disabled="true"]) {
  translate: 0 1px;
  scale: 0.97;
}
html:not(.read-mode) .button-motion.button-pressed::after {
  animation: control-ripple 520ms ease-out both;
}
@media (hover: hover) and (pointer: fine) {
  html:not(.read-mode)
    .button-motion:hover:not(:disabled):not([aria-disabled="true"]) {
    translate: 0 -2px;
    border-color: #edcf98;
    box-shadow:
      0 6px 18px #0004,
      0 0 16px #e4bd7912;
  }
  html:not(.read-mode)
    .button-motion:hover:not(:disabled):not([aria-disabled="true"])::before {
    animation: control-sheen 580ms ease-out both;
  }
  html:not(.read-mode)
    .button-motion:active:not(:disabled):not([aria-disabled="true"]) {
    translate: 0 1px;
    scale: 0.97;
  }
  html:not(.read-mode) :is(.close-button).button-motion:hover {
    rotate: 90deg;
  }
}
@keyframes control-sheen {
  0% {
    translate: -80% 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    translate: 80% 0;
    opacity: 0;
  }
}
@keyframes control-ripple {
  0% {
    scale: 0.35;
    opacity: 0.8;
  }
  100% {
    scale: 2.2;
    opacity: 0;
  }
}
.read-mode .button-motion,
.read-mode .button-motion::before,
.read-mode .button-motion::after {
  transition: none;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .button-motion,
.button-motion:hover,
.button-motion:active,
.button-motion::before,
.button-motion::after {
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* partner-road.css */
/* One complete stationary market. Only the friends move along its street. */
.scene.partner-road {
  display: block;
  padding: 0;
  min-height: 0;
  isolation: isolate;
  background: #253a2b;
  color: #fff4d8;
}
.partner-road-stage {
  position: relative;
  overflow: hidden;
  padding: 70px 18px 110px;
}
.partner-road-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(#102c28bb,transparent 30%),url('assets/partners/market-courtyard.webp') center/cover;
}
.partner-road [lang="gu"] {
  font-family: "Noto Serif Gujarati",serif;
}
.partner-road-heading {
  position: relative;
  z-index: 5;
  text-align: center;
  margin: 0 auto 35px;
  padding: 0 15px;
  text-shadow: 0 2px 10px #152b21;
}
.partner-road-heading p {
  font-size: 10px;
  letter-spacing: .24em;
  margin: 0 0 6px;
}
.partner-road-heading h2 {
  font-size: clamp(26px,3vw,38px);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 3px;
  color: #fff4d8;
}
.partner-road-heading>span {
  font-size: 12px;
}
.road-world {
  position: relative;
  max-width: 1360px;
  margin: auto;
}
.street-route {
  display: none;
}
.partner-shops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 30px 20px;
  max-width: 940px;
  margin: auto;
}
.partner-shop {
  position: relative;
  min-width: 0;
  height: 240px;
  filter: drop-shadow(0 8px 4px #291e1c77);
}
.shop-front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  background: url('assets/partners/painted-shop.webp') center bottom/100% 165% no-repeat;
}
.shop-sign {
  position: absolute;
  z-index: 1;
  left: 6%;
  right: 6%;
  top: 0;
  height: 49%;
  padding: 5px 6px;
  background: #fff3d5;
  color: #21392f;
  border: 5px solid #6e4024;
  box-shadow: 0 0 0 1px #bf9552,inset 0 0 0 1px #d8b675;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.shop-role {
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 3px;
}
.shop-logo {
  display: block;
  width: 100%;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: normal;
  margin: 0 0 4px;
}
.shop-name {
  font: 600 16px/1.12 Georgia,serif;
  color: #233b31;
  margin: 0;
  overflow-wrap: anywhere;
}
.shop-open {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  cursor: pointer;
}
.shop-open:disabled {
  cursor: default;
}
.shop-open:focus-visible {
  outline: 3px solid #fff2b8;
  outline-offset: 3px;
}
.shop-open:hover {
  box-shadow: inset 0 0 0 2px #ffe9ad88;
}
.road-friends {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 80px;
  z-index: 40;
  pointer-events: none;
  transform: translate(-50%,-80%);
}
.road-friends::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 12%;
  width: 76%;
  height: 12%;
  border-radius: 50%;
  background: #241b13a6;
  filter: blur(4px);
}
.road-friends img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 4px 2px #33281c55);
}
.cinematic .scene.partner-road {
  position: absolute;
  padding: 0;
}
.cinematic .partner-road .partner-road-stage {
  height: 100%;
  padding: 0;
}
.cinematic .partner-road .partner-road-heading {
  position: absolute;
  left: 0;
  right: 0;
  top: 101px;
  margin: 0;
  opacity: var(--copy-opacity,1);
}
.cinematic .partner-road .partner-road-heading::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -105px -20px -22px;
  background: linear-gradient(#0c2826e6,#112f2677,transparent);
}
.cinematic .partner-road .road-world {
  position: absolute;
  inset: 210px 40px 28px;
}
.cinematic .partner-road .street-route {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.street-route polyline {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.street-edge {
  stroke: #5b463388;
  stroke-width: 46;
}
.street-paving {
  stroke: #d6ad718c;
  stroke-width: 35;
}
.cinematic .partner-road .partner-shops {
  position: absolute;
  inset: 0 7%;
  max-width: none;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-template-rows: repeat(4,19%);
  column-gap: 2%;
  row-gap: 6%;
}
.cinematic .partner-road .partner-shop {
  height: auto;
}
.cinematic .partner-road .shop-sign {
  border-width: 4px;
  height: 51%;
  padding: 3px 5px;
}
.cinematic .partner-road .shop-role {
  font-size: clamp(7px,.7vw,10px);
  margin-bottom: 2px;
}
.cinematic .partner-road .shop-logo {
  height: clamp(14px,2.4vh,26px);
  margin-bottom: 2px;
}
.cinematic .partner-road .shop-name {
  font-size: clamp(11px,1vw,15px);
}
.cinematic .partner-road .road-friends {
  width: clamp(58px,5.5vw,84px);
  left: 5%;
  top: 23%;
  transform: translate(-50%,-100%);
}
.cinematic .partner-road .road-friends img {
  transform: translateY(var(--walk-bob,0px)) rotate(var(--walk-sway,0deg)) scaleX(var(--walk-facing,1));
  transform-origin: 50% 100%;
}
.cinematic .journey-stage:has(.partner-road.is-active) .journey-caption {
  opacity: 0;
}
.cinematic .journey-stage:has(.partner-road.is-active) .ambient-dust {
  display: none;
}
.partner-dialog {
  width: min(420px,calc(100% - 36px));
  border: 7px solid #77502e;
  padding: 48px 28px 32px;
  background: #fff5de;
  color: #20382c;
  text-align: center;
  box-shadow: 0 20px 70px #0009;
}
.partner-dialog::backdrop {
  background: #071e1bd9;
}
.partner-dialog-close {
  position: absolute;
  right: 8px;
  top: 5px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #244133;
  font-size: 30px;
  cursor: pointer;
}
#partner-dialog-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 20px;
}
#partner-dialog-logo {
  width: 100%;
  height: 140px;
  object-fit: contain;
  mix-blend-mode: normal;
  margin-bottom: 20px;
}
#partner-dialog-name {
  font: 600 28px/1.2 Georgia,serif;
  margin: 0;
  color: #213a2e;
}
@media(max-width:650px) {
  .partner-road-stage {
    padding-inline: 10px;
  }
  .partner-shops {
    gap: 25px 10px;
  }
  .partner-shop {
    height: 200px;
  }
  .shop-sign {
    padding: 4px;
    border-width: 4px;
  }
  .shop-name {
    font-size: 13px;
  }
  .shop-logo {
    height: 30px;
  }
  .cinematic .partner-road .partner-road-heading {
    top: 99px;
  }
  .cinematic .partner-road .partner-road-heading h2 {
    font-size: 27px;
  }
  .cinematic .partner-road .road-world {
    inset: 197px 16px 23px;
  }
  .cinematic .partner-road .partner-shops {
    column-gap: 1%;
  }
  .cinematic .partner-road .shop-sign {
    left: 2%;
    right: 2%;
    border-width: 2px;
    padding: 2px;
    height: 54%;
  }
  .cinematic .partner-road .shop-role {
    display: none;
  }
  .cinematic .partner-road .shop-logo {
    height: clamp(12px,2vh,19px);
    margin-bottom: 2px;
  }
  .cinematic .partner-road .shop-name {
    font-size: 9px;
    line-height: 1.05;
  }
  .cinematic .partner-road .road-friends {
    width: 54px;
  }
}
@media(max-width:360px) {
  .cinematic .partner-road .shop-name {
    font-size: 8px;
  }
  .cinematic .partner-road .road-friends {
    width: 46px;
  }
}
@media(max-width:650px) {
  .shop-name .name-detail {
    display: block;
    font-size: .78em;
    white-space: nowrap;
  }
  .cinematic .partner-road .shop-name {
    overflow-wrap: normal;
  }
}
html:not(.cinematic):not(.read-mode) .partner-road-heading>span {
  display: none;
}

/* A nearby shop introduces itself without a modal, focus change or scroll lock. */
.road-walk-hint { display: none; }
.cinematic .road-walk-hint { display: inline; }
.cinematic .road-read-hint { display: none; }
.partner-auto-card {
  position: absolute;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(var(--partner-card-y, 0px));
  opacity: var(--partner-card-opacity, 1);
  width: min(500px, calc(100% - 32px));
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 3px solid #8c6537;
  border-radius: 12px;
  background: #fff5de;
  color: #20382c;
  box-shadow: 0 6px 24px #091d2655;
  pointer-events: none;
}
.partner-auto-card[hidden],
html:not(.cinematic) .partner-auto-card { display: none; }
.partner-auto-card img { width: 86px; height: 60px; object-fit: contain; mix-blend-mode: normal; flex-shrink: 0; }
.partner-auto-card img[hidden] { display: none; }
.partner-auto-card > div { min-width: 0; }
.partner-auto-role { margin: 0 0 5px; font: 500 10px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.partner-auto-name { margin: 0; font: 600 28px/1.15 Georgia, serif; color: #20382c; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .partner-auto-card { min-height: 104px; gap: 12px; padding: 16px; }
  .partner-auto-card img { width: 66px; height: 54px; }
  .partner-auto-role { font-size: 9px; margin-bottom: 4px; }
  .partner-auto-name { font-size: 21px; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) { .partner-auto-card { animation: none; } }


/* Each partner keeps one colour across its board, passing card and opened details. */
.partner-shop:nth-child(6n+1) { --card-bg: #f5d7dc; --card-accent: #e9bac4; }
.partner-shop:nth-child(6n+2) { --card-bg: #f7dfbd; --card-accent: #ebc68e; }
.partner-shop:nth-child(6n+3) { --card-bg: #d8e9d3; --card-accent: #b7d4ad; }
.partner-shop:nth-child(6n+4) { --card-bg: #d5e7f2; --card-accent: #b3cfdf; }
.partner-shop:nth-child(6n+5) { --card-bg: #e8dcf0; --card-accent: #cdb8de; }
.partner-shop:nth-child(6n) { --card-bg: #f4e9b8; --card-accent: #e3d389; }
.shop-sign,
.partner-auto-card,
.partner-dialog { background: var(--card-bg, #f5d7dc); }
.partner-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  background: var(--card-accent, #e9bac4);
  border-right: 1px solid #35514440;
}
.partner-monogram { font: 600 28px/1 Georgia, serif; color: #244337; }
.partner-monogram[hidden] { display: none; }
.shop-sign,
.cinematic .partner-road .shop-sign {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  text-align: left;
}
.shop-details { min-width: 0; padding: 3px 7px; }
.shop-logo,
.cinematic .partner-road .shop-logo {
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  background: transparent;
}
.shop-role,
.cinematic .partner-road .shop-role { display: block; }
.shop-name,
.cinematic .partner-road .shop-name { overflow-wrap: anywhere; }
.shop-name .name-detail { white-space: normal; }
.partner-auto-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.partner-card-copy { min-width: 0; padding: 20px; }
.partner-auto-card img { width: 100%; height: 76px; background: transparent; }
.partner-dialog { width: min(520px, calc(100% - 28px)); padding: 48px 0 0; text-align: left; }
.partner-card-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 140px; align-items: center; }
#partner-dialog-logo { width: 100%; height: 90px; margin: 0; background: transparent; }
#partner-dialog-role { font-size: 11px; line-height: 1.4; margin: 0 0 7px; }
#partner-dialog-name { overflow-wrap: anywhere; }
@media (max-width:650px) {
  .shop-details { padding: 4px; }
  .cinematic .partner-road .shop-sign { grid-template-columns: 28% minmax(0, 1fr); height: 64%; }
  .cinematic .partner-road .shop-details { padding: 2px; }
  .cinematic .partner-road .shop-role { font-size: 5px; line-height: 1.1; letter-spacing: 0; margin-bottom: 2px; }
  .cinematic .partner-road .shop-name { font-size: 7px; line-height: 1.1; }
  .cinematic .partner-road .shop-sign .partner-logo-slot { padding: 1px; }
  .cinematic .partner-road .shop-sign .partner-monogram { font-size: 9px; }
  .partner-auto-card { grid-template-columns: 78px minmax(0, 1fr); padding: 0; gap: 0; }
  .partner-auto-card img { width: 100%; height: 60px; }
  .partner-card-copy { padding: 14px; }
  .partner-card-row { grid-template-columns: 82px minmax(0, 1fr); }
  #partner-dialog-name { font-size: 23px; }
}
/* Four shop columns need compact lettering on tablets and short desktop screens. */
@media (min-width: 651px) and (max-width: 1000px), (min-width: 651px) and (max-height: 760px) {
  .cinematic .partner-road .shop-sign { grid-template-columns: 28% minmax(0, 1fr); height: 64%; }
  .cinematic .partner-road .shop-details { padding: 2px; }
  .cinematic .partner-road .shop-role { font-size: clamp(5px, .75vw, 7px); line-height: 1.1; letter-spacing: 0; }
  .cinematic .partner-road .shop-name { font-size: clamp(7px, 1.1vw, 11px); line-height: 1.1; }
  .cinematic .partner-road .partner-logo-slot { padding: 2px; }
  .cinematic .partner-road .partner-monogram { font-size: clamp(9px, 1.6vw, 16px); }
}

/* Shared introduction/detail cards: generous artwork, complete names, quiet framing. */
.partner-auto-card,
.partner-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  min-height: 0;
  padding: 20px;
  border: 1px solid #c6a463;
  border-radius: 20px;
  background: #fff9ed;
  color: #173c30;
  box-shadow: 0 18px 56px #071e1b66, inset 0 0 0 4px #d8bd8426;
  text-align: left;
}
.partner-auto-card,
.partner-card-row {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  gap: 22px;
  min-height: 0;
}
.partner-dialog {
  margin: auto;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
.partner-dialog::backdrop { background: #071e1bd9; }
.partner-dialog .partner-dialog-close {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  margin: 0 0 12px auto;
  border: 1px solid #c6a46380;
  border-radius: 999px;
  background: #f5ecd9;
  color: #173c30;
  font: 600 13px/1.2 var(--sans);
}
.partner-dialog-close:hover { background: #ecdfc3; }
:is(.partner-auto-card, .partner-dialog) .partner-logo-slot {
  width: 100%;
  height: 144px;
  align-self: center;
  padding: 12px;
  border: 1px solid #d8bd8455;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.partner-auto-card img,
#partner-dialog-logo {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
:is(.partner-auto-card, .partner-dialog)[data-brand="ethereum"] .partner-logo-slot { background: #235543; }
:is(.partner-auto-card, .partner-dialog)[data-brand="tge"] .partner-logo-slot { background: #123b2e; }
:is(.partner-auto-card, .partner-dialog)[data-brand="ethereum"] img { transform: scale(1.25); }
:is(.partner-auto-card, .partner-dialog) .partner-card-copy { min-width: 0; padding: 0; }
.partner-auto-role,
#partner-dialog-role {
  margin: 0 0 10px;
  color: #52634f;
  font: 600 12px/1.5 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.partner-auto-name,
#partner-dialog-name {
  margin: 0;
  color: #173c30;
  font: 600 clamp(24px, 3vw, 30px)/1.22 Georgia, serif;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
:is(.partner-auto-card, .partner-dialog) .partner-monogram { font-size: 44px; }
@media (max-width: 600px) and (min-height: 501px) {
  .partner-auto-card,
.partner-dialog { width: min(400px, calc(100% - 28px)); padding: 16px; text-align: center; }
  .partner-auto-card,
.partner-card-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  :is(.partner-auto-card, .partner-dialog) .partner-logo-slot { height: clamp(112px, 18svh, 150px); padding: 14px 20px; }
  :is(.partner-auto-card, .partner-dialog) .partner-card-copy { padding: 0 4px 6px; }
  .partner-auto-role,
#partner-dialog-role { margin-bottom: 6px; }
  .partner-auto-name,
#partner-dialog-name { font-size: clamp(24px, 6.5vw, 28px); }
}
@media (max-height: 500px) {
  .partner-dialog { padding: 12px; }
  .partner-dialog .partner-dialog-close { margin-bottom: 8px; }
  .partner-card-row { gap: 16px; }
  .partner-dialog .partner-logo-slot { height: 112px; }
  #partner-dialog-name { font-size: 24px; }
}

/* scene-refinements.css */
/* Small speech bubbles stay tied to the head, not a fixed page-wide bar. */
.illustrated-scene .dialogue-beat {
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 13px;
  min-height: 0;
  border-radius: 14px;
  box-shadow: 0 5px 18px #17201730;
}
.illustrated-scene .dialogue-beat q[lang="gu"] { font-size: 1em; }
.dialogue-beat .speaker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.cinematic section.scene.illustrated-scene .dialogue-track {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  transform: none;
  pointer-events: none;
}
.cinematic .illustrated-scene .dialogue-beat {
  position: absolute;
  left: var(--bubble-x, 50%);
  top: var(--bubble-y, 50%);
  width: min(240px, calc(100vw - 28px));
  min-height: 0;
  margin: 0;
  transform: translate(-50%, -100%);
  opacity: var(--speaker-visible, 1);
  border-radius: 14px;
}
.illustrated-scene .dialogue-beat:after {
  left: var(--bubble-tip, 50%);
  right: auto;
  bottom: -11px;
  width: 13px;
  height: 12px;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
html:not(.cinematic) .illustrated-scene .dialogue-track {
  width: min(380px, 84%);
  max-width: 380px;
}
html:not(.cinematic) .illustrated-scene .dialogue-beat {
  font-size: 16px;
  padding: 10px 13px;
}

/* The Mercedes overlay keeps its full steering wheel visible at each ratio. */

/* Both friends now offer the thali towards the centre shrine. */
#devotion .aarti-art {
  left: 50%;
  bottom: 17%;
  height: min(36svh, 340px);
}

/* One overhead courtyard: the small shrine stays still as the friends circle. */
#celebration { background: #172e25; }
#celebration:before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -2;
  background: url(assets/story/event-decor/garba-floor.webp) center / cover;
  filter: blur(22px) brightness(.35);
}
.garba-world {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(88svh, 96vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  isolation: isolate;
}
.garba-courtyard { display: block; width: 100%; height: 100%; }
.garba-ring {
  position: absolute;
  inset: 0;
  transform-origin: 50% 48%;
  pointer-events: none;
}
.garba-dancer {
  position: absolute;
  width: 7%;
  left: var(--dancer-x);
  top: var(--dancer-y);
  transform: translate(-50%, -50%) rotate(var(--dancer-angle));
  filter: drop-shadow(0 2px 2px #25120855);
}
.garba-dancer.dancer-woman { width: 8%; }
.garba-dancer.garba-man { width: 8%; }
.garba-dancer.garba-woman { width: 9%; }
.garba-dancer img { display: block; width: 100%; height: auto; }
.cinematic .garba-dancer img {
  animation: garba-step 1.1s ease-in-out infinite;
  animation-delay: var(--step-delay, 0s);
  animation-play-state: paused;
}
.cinematic #celebration[data-dancing="true"] .garba-dancer img { animation-play-state: running; }
.cinematic #celebration[data-dancing="true"] .garba-ring { will-change: transform; }
@keyframes garba-step {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic .garba-dancer img { animation: none; }
}
#celebration .story-shade { z-index: 1; }
#celebration .dialogue-track { z-index: 7; }
#celebration .story-title,
#celebration .scene-actions { z-index: 5; }
html:not(.cinematic) #celebration { min-height: 1050px; }
html:not(.cinematic) .garba-world { top: 65%; }

@media (max-width: 650px) {
  .cinematic .illustrated-scene .dialogue-beat {
    width: min(200px, calc(100vw - 28px));
    font-size: 14px;
    line-height: 1.5;
    padding: 9px 11px;
  }
  #devotion .aarti-art { height: 27svh; bottom: 20%; }
  #devotion .scene-actions { bottom: 12%; }
  .garba-world { width: 106vw; top: 50%; }
  .cinematic #celebration .story-title { padding-top: 0; }
}
@media (max-width: 650px) and (max-height: 700px) {
  .cinematic .journey-stage:has(#devotion.is-active) .journey-caption { opacity: 0; }
}

/* Arrival travels through the actual lotus passage as the friends enter. */
#arrival .entry-passage-art {
  z-index: -3;
  opacity: 0;
  pointer-events: none;
}
.cinematic #arrival .entry-passage-art { opacity: var(--passage-opacity, 0); }
#the-stage .scene-art img { object-position: center; }

/* The camera moves into the whole courtyard before dissolving to the final walk. */
.cinematic .garba-world {
  transform: translate(-50%, -50%) scale(var(--garba-zoom, 1));
  transform-origin: 50% 48%;
}

/* Fit the complete concert composition; the friends watch from the foreground. */
.cinematic #the-stage { background: #102820; }
.cinematic #the-stage::before {
  content: "";
  position: absolute;
  inset: -25px;
  z-index: -5;
  background: url(assets/story/event-decor/crowds/stage-clean.webp) center / cover;
  filter: blur(22px) brightness(.3);
}
.cinematic #the-stage .scene-art,
.cinematic #the-stage .stage-crowd { inset: 90px 0 80px; }
.cinematic #the-stage .scene-art img { object-fit: contain; transform: none; }
.cinematic #the-stage .stage-crowd { transform: none; }
#the-stage .together-art {
  height: min(20svh, 180px);
  left: 23%;
  bottom: 12%;
}
@media (max-width: 650px) {
  .cinematic #the-stage .scene-art,
.cinematic #the-stage .stage-crowd { inset: 96px 0 92px; }
  #the-stage .together-art { height: 17svh; left: 24%; bottom: 17%; }
}

/* A separate note preserves the approved handoff's dimensions and motion. */
.elephant-entry-disclaimer {
  margin: 8px auto 0;
  font: 500 12px/1.6 "Noto Serif Gujarati", serif;
  color: #fff8e5;
  background: #163b32ed;
  border: 1px solid #d6b56c;
  border-radius: 6px;
  padding: 7px 10px;
  text-align: center;
}
.cinematic .elephant-entry-disclaimer {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 28px));
  box-sizing: border-box;
}

/* Original gold logo placed on the green wall, following the scenery's crop and motion. */
.invitation-wall-branding {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
.invitation-wall-branding svg { display: block; width: 100%; height: 100%; }
.invitation-wall-branding .wall-brand-mobile { display: none; }
html:not(.cinematic) .invitation-wall-branding {
  position: relative;
  inset: auto;
  z-index: 0;
  width: min(180px, 40vw);
  aspect-ratio: 152 / 104;
  margin: 24px auto;
  background: url(assets/logo.webp) center / contain no-repeat;
}
html:not(.cinematic) .invitation-wall-branding svg { display: none; }
/* Measure every speech beat so the wall logo reserves room for the longest line. */
.cinematic #the-invitation .dialogue-beat:not(.is-speaking) {
  display: block;
  visibility: hidden;
}
@media (min-width: 651px) and (max-height: 800px) {
  .cinematic .story-invite .invitation-handoff { width: min(79vw, 650px, 48svh); }
}
.cinematic .invitation-wall-branding {
  transform: scale(var(--zoom, 1.035)) translate3d(var(--pan, 0px), 0, 0);
}
@media (max-width:650px) {
  .invitation-wall-branding .wall-brand-desktop { display: none; }
  .invitation-wall-branding .wall-brand-mobile { display: block; }
}
@media (prefers-reduced-motion:reduce) {
  .invitation-wall-branding { transform: none !important; }
}

/* event-crowds.css */
/* Guests are independent of the floor, stage, lamps, shrine and shop signs. */
.event-crowd {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.crowd-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--plane-width, 100%);
  height: var(--plane-height, 100%);
  transform: translate(-50%, -50%);
}
.cinematic .event-crowd:not(.road-crowd) {
  transform: scale(var(--zoom, 1.035)) translate3d(var(--pan, 0px), 0, 0);
}
.gate-crowd { opacity: calc(1 - var(--passage-opacity, 0)); }
.passage-crowd { opacity: var(--passage-opacity, 0); }
.guest {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  height: calc(var(--h) * 1%);
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -95%);
  --travel-x: calc(var(--dx, 0) * var(--unit-x, 1px));
  --travel-y: calc(var(--dy, 0) * var(--unit-y, 1px));
}
.guest-shift, .guest-body, .guest-sprite { display: block; width: 100%; height: 100%; }
.guest-shift { position: relative; isolation: isolate; transform-origin: 50% 95%; }
.guest-shift::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 28%;
  bottom: 2%;
  width: 44%;
  height: 3%;
  border-radius: 50%;
  background: #35210d55;
  filter: blur(2px);
}
.guest-body { transform: scaleX(var(--facing, 1)); transform-origin: 50% 95%; }
.guest-sprite {
  background: var(--sprite) 0 0 / 400% 100% no-repeat;
  filter: drop-shadow(1px 2px 1px #25170844);
  transform-origin: 50% 95%;
}
.guest-pray .guest-sprite, .guest-performer .guest-sprite { background-size: 200% 100%; }
.cinematic .guest-walk .guest-shift {
  animation: guest-walk var(--duration, 26s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cinematic .guest-walk .guest-sprite, .cinematic .guest-dance .guest-sprite {
  animation: guest-steps var(--tempo, 1.1s) steps(1, end) infinite;
  animation-delay: var(--beat, 0s);
}
.cinematic .guest-dance .guest-shift {
  animation: guest-dance var(--duration, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.cinematic .guest-pray .guest-sprite {
  animation: guest-prayer var(--duration, 7s) steps(1, end) infinite;
  animation-delay: var(--delay, 0s);
}
.cinematic .guest-pray .guest-body {
  animation: guest-bow var(--duration, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.cinematic .guest-performer .guest-sprite {
  animation: guest-playing var(--tempo, 1.3s) steps(1, end) infinite;
  animation-delay: var(--beat, 0s);
}
.cinematic .event-crowd .guest-shift,
.cinematic .event-crowd .guest-body,
.cinematic .event-crowd .guest-sprite { animation-play-state: paused; }
.cinematic .scene[data-crowd-running="true"] .event-crowd .guest-shift,
.cinematic .scene[data-crowd-running="true"] .event-crowd .guest-body,
.cinematic .scene[data-crowd-running="true"] .event-crowd .guest-sprite { animation-play-state: running; }
@keyframes guest-walk {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--travel-x), var(--travel-y), 0) scale(var(--end-scale, 1)); }
}
@keyframes guest-steps {
  0%, 100% { background-position: 0% 0; }
  25% { background-position: 33.333333% 0; }
  50% { background-position: 66.666667% 0; }
  75% { background-position: 100% 0; }
}
@keyframes guest-dance {
  0%, 100% { transform: translate3d(calc(var(--travel-x) * -1), 0, 0) rotate(-2deg); }
  50% { transform: translate3d(var(--travel-x), -2px, 0) rotate(2deg); }
}
@keyframes guest-prayer {
  0%, 100% { background-position: 0% 0; }
  55% { background-position: 100% 0; }
  82% { background-position: 0% 0; }
}
@keyframes guest-bow {
  0%, 100% { transform: scaleX(var(--facing, 1)); }
  64% { transform: scaleX(var(--facing, 1)) scaleY(.98) rotate(1.2deg); }
}
@keyframes guest-playing {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.road-crowd { z-index: 20; overflow: visible; }
html:not(.cinematic) .road-crowd { display: none; }
@media (max-width: 650px) {
  .guest {
    left: calc(var(--mx, var(--x)) * 1%);
    top: calc(var(--my, var(--y)) * 1%);
    height: calc(var(--mh, var(--h)) * 1%);
    --travel-x: calc(var(--mdx, var(--dx, 0)) * var(--unit-x, 1px));
    --travel-y: calc(var(--mdy, var(--dy, 0)) * var(--unit-y, 1px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic .event-crowd .guest-shift,
  .cinematic .event-crowd .guest-body,
  .cinematic .event-crowd .guest-sprite { animation: none; }
}

/* Soft moving beams originate on the illustrated stage lighting truss. */
.stage-lights { position: absolute; inset: 0; pointer-events: none; }
.stage-beam {
  position: absolute;
  top: 28.7%;
  left: var(--lamp-x);
  width: 13%;
  height: 36%;
  transform-origin: 50% 0;
  transform: translateX(-50%) rotate(var(--sweep));
  background: linear-gradient(to bottom, var(--beam-color), transparent 95%);
  clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%);
  opacity: .3;
  mix-blend-mode: screen;
  filter: blur(3px);
}
.cinematic .stage-beam {
  animation: stage-light-sweep var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  animation-play-state: paused;
}
.cinematic .scene[data-crowd-running="true"] .stage-beam { animation-play-state: running; }
@keyframes stage-light-sweep {
  from { transform: translateX(-50%) rotate(var(--sweep)); opacity: .23; }
  to { transform: translateX(-50%) rotate(calc(var(--sweep) * -1)); opacity: .43; }
}
.aarti-maharajs {
  position: absolute;
  left: 50%;
  top: 64.5%;
  width: 31%;
  height: auto;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
@media (max-width:650px) {
  .stage-beam { top: 36%; left: var(--lamp-mx); height: 25%; width: 19%; }
}
@media (prefers-reduced-motion:reduce) {
  .cinematic .stage-beam { animation: none; }
}

/* thank-you.css */
/* =========================================================
   THE GARBA EXPERIENCE
   COMPLETE FINAL / THANK YOU PAGE
   CURRENT CONSOLIDATED VERSION
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --closing-footer-h: 64px;

  --thank-bg: #003724;
  --thank-panel: #092e25;

  --thank-gold: #f2d28e;
  --thank-gold-soft: #f0dba9;
  --thank-border: #c9a86b;

  --thank-cream: #fff6df;
  --thank-cream-soft: #fff2d3;

  --thank-muted: #e2d7c0;
  --thank-dark-text: #123b2d;
}


/* =========================================================
   FINAL PAGE SECTION
   Thank You + footer together fit one viewport
   ========================================================= */

.finale.thank-you {
  position: relative;
  isolation: isolate;

  display: block;

  width: 100%;

  height: auto;
  min-height: calc(100svh - 76px);
  max-height: none;

  padding: 0;
  margin: 0;

  overflow: visible;

  scroll-margin-top: 76px;

  color: var(--thank-cream);

  background:
    var(--thank-bg)
    url("assets/story/thank-you/botanical-background.webp")
    center / cover no-repeat;

  contain: none;

  z-index: 5;
}


/* =========================================================
   MAIN FINAL-PAGE WRAPPER
   ========================================================= */

.thank-you-scene {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr);

  justify-items: center;
  align-items: start;

  width: min(100%, 1048px);
  height: auto;
  min-height: inherit;
  grid-template-rows: 1fr auto;

  margin-inline: auto;

  padding:
    clamp(5px, 1svh, 12px)
    clamp(8px, 2vw, 20px)
    0;

  box-sizing: border-box;
}

.thank-you-scene > * {
  min-width: 0;
  max-width: 100%;
}


/* =========================================================
   GOLD CEREMONIAL FRAME
   ========================================================= */

.thank-you-frame {
  --arch-cap: min(45vw, 400px);
  --arch-side: clamp(10px, 2.5vw, 30px);

  position: relative;
  isolation: isolate;

  display: grid;
  grid-template-columns: minmax(0, 1fr);

  justify-items: center;
  align-content: space-between;
  align-self: stretch;

  width: 100%;
  height: auto;

  min-width: 0;
  min-height: 0;

  box-sizing: border-box;

  padding:
    clamp(44px, 6.8svh, 62px)
    clamp(12px, 4vw, 56px)
    0;

  gap: clamp(6px, 0.9svh, 10px);
}

.thank-you-frame > :not(.thank-you-arch) {
  min-width: 0;
  max-width: 100%;
}


/* =========================================================
   GOLD ARCH
   ========================================================= */

.thank-you-arch {
  position: absolute;

  inset: 0;

  z-index: 0;

  pointer-events: none;

  border: 0 solid transparent;

  border-image-source:
    url("assets/story/thank-you/gold-arch.webp");

  border-image-slice: 420 40 0 fill;

  border-image-width:
    var(--arch-cap)
    var(--arch-side)
    0;

  border-image-repeat: stretch;

  opacity: 0.88;
}


/* =========================================================
   FINAL EVENT LOGO
   CURRENT SIZE = 50% LARGER THAN PREVIOUS APPROVED SIZE
   ========================================================= */

.thank-you-logo {
  position: relative;

  z-index: 4;

  display: block;

  width: clamp(182.25px, 27svh, 290.25px) !important;
  height: auto;

  aspect-ratio: 1;

  object-fit: contain;

  margin: 0 auto;
}


/* =========================================================
   THANK YOU MESSAGE
   ========================================================= */

.thank-you-message {
  position: relative;

  z-index: 4;

  width: 100%;

  margin: 0 0 clamp(7px, 1svh, 12px);

  text-align: center;
}


/* THANK YOU heading - 25% reduced from older version */

.thank-you-message h2 {
  margin: 0;

  color: var(--thank-gold);

  font-family: Georgia, serif;
  font-size: clamp(1.3125rem, 3.75svh, 2.475rem) !important;
  font-weight: 500;
  line-height: 1;

  letter-spacing: -0.03em;

  overflow-wrap: anywhere;
}


/* Gujarati closing message */

.thank-you-message p {
  width: min(100%, 42ch);

  margin:
    clamp(5px, 0.75svh, 9px)
    auto
    0;

  color: var(--thank-cream-soft);

  font-family:
    "Noto Serif Gujarati",
    serif;

  font-size:
    clamp(0.78rem, 1.7svh, 1rem);

  font-weight: 400;

  line-height: 1.45;

  text-align: center;

  overflow-wrap: anywhere;
}


/* =========================================================
   ONE UNIFIED GREEN DETAILS CARD
   ========================================================= */

.thank-you-details {
  position: relative;

  z-index: 4;

  container: closing-card / inline-size;

  display: grid;
  grid-template-columns: minmax(0, 1fr);

  width: min(100%, 820px);

  min-width: 0;
  min-height: 0;

  gap: clamp(7px, 1svh, 12px);

  margin:
    clamp(3px, 0.5svh, 6px)
    0
    0;

  padding:
    clamp(10px, 1.45svh, 16px)
    clamp(11px, 1.7vw, 17px);

  box-sizing: border-box;

  border: 1px solid var(--thank-border);
  border-radius: 12px;

  background: var(--thank-panel);

  box-shadow:
    0 18px 60px #001d2385,
    inset 0 0 0 1px #ffffff08;

  color: var(--thank-cream);

  text-align: center;

  overflow: visible;
}

.thank-you-details > * {
  min-width: 0;
  max-width: 100%;

  margin: 0;
}


/* =========================================================
   EVENT IDENTITY
   Now merged into the SAME green card
   ========================================================= */

.thank-you-details .thank-you-kicker {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 0;

  margin: 0;

  padding:
    0
    0
    clamp(7px, 1svh, 10px);

  border: 0;
  border-bottom: 1px solid #8f7a52;

  border-radius: 0;

  background: transparent;

  box-shadow: none;

  color: var(--thank-gold-soft);

  font-family:
    var(--sans, Arial, sans-serif);

  font-size:
    clamp(8px, 1.15svh, 11px);

  font-weight: 600;

  line-height: 1.2;

  letter-spacing: 0.07em;

  text-align: center;

  white-space: normal;

  overflow-wrap: normal;
}


/* =========================================================
   DATE + VENUE
   ========================================================= */

.thank-you-details .event-facts {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    clamp(7px, 1.2vw, 14px);

  width: 100%;

  margin: 0;

  text-align: left;
}

.thank-you-details .thank-you-date,
.thank-you-details .thank-you-venue {
  display: grid;

  grid-template-columns:
    16px minmax(0, 1fr);

  align-items: start;

  gap: 6px;

  min-width: 0;

  margin: 0;

  color: #fff8e9;

  font-family:
    var(--sans, Arial, sans-serif);

  font-size:
    clamp(10px, 1.45svh, 13px);

  line-height: 1.25;
}


/* icons */

.thank-you-details
.event-facts
.ui-icon {
  width: 16px;
  height: 16px;

  margin-top: 1px;

  color: #edcf8d;
}


/* labels */

.thank-you-details
.event-facts
.fact-label {
  display: block;

  margin-bottom: 1px;

  color: #e1cda9;

  font-size:
    clamp(7px, 1svh, 9px);

  line-height: 1.15;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* values */

.thank-you-details
.event-facts
strong {
  display: block;

  color: #fff9eb;

  font-size:
    clamp(11px, 1.65svh, 15px);

  font-weight: 600;

  line-height: 1.2;
}

.thank-you-details
.event-facts
time > span,
.thank-you-details
.thank-you-venue > span > span {
  display: block;
}


/* =========================================================
   ACTIONS WRAPPER
   ========================================================= */

.thank-you-actions {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  gap: 5px;

  width: 100%;

  margin: 0;
}


/* =========================================================
   GRAB YOUR PASSES
   ========================================================= */

.thank-you-details .book-button {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 44px;

  gap: 7px;

  padding: 5px 9px;

  box-sizing: border-box;

  border-radius: 8px;

  background: #f0d49b;

  color: var(--thank-dark-text);

  font-family:
    var(--sans, Arial, sans-serif);

  font-size:
    clamp(11px, 1.5svh, 14px);

  font-weight: 700;

  line-height: 1.2;

  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.thank-you-details
.book-button:hover {
  background: #f6dfad;
}

.thank-you-details
.book-button:active {
  transform: scale(0.995);
}


/* =========================================================
   SAVE DATE / DIRECTIONS / SHARE
   ========================================================= */

.thank-you-details
.event-links {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 5px;

  width: 100%;

  margin: 0;
  padding: 0;

  border: 0;
}

.thank-you-details
.event-links a,
.thank-you-details
.event-links button {
  display: flex;

  flex-direction: row;

  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 44px;

  gap: 4px;

  padding: 4px 5px;

  box-sizing: border-box;

  border:
    1px solid #e8d6ac;

  border-radius: 8px;

  background: #f9f3e6;

  color: var(--thank-dark-text);

  font-family:
    var(--sans, Arial, sans-serif);

  font-size:
    clamp(9px, 1.3svh, 12px);

  font-weight: 600;

  line-height: 1.15;

  text-align: center;

  white-space: normal;
}


/* action icons */

.thank-you-details
.thank-you-actions
.ui-icon {
  width: 16px;
  height: 16px;

  flex: 0 0 auto;
}


/* =========================================================
   BOOKINGS THROUGH DISTRICT
   ========================================================= */

.thank-you-details
.booking-note {
  margin: 0;

  color: var(--thank-muted);

  font-family:
    var(--sans, Arial, sans-serif);

  font-size:
    clamp(8px, 1.1svh, 10px);

  line-height: 1.2;

  text-align: center;
}


/* =========================================================
   ENTRY NOTE
   ========================================================= */

.thank-you-details
.entry-note {
  display: block;

  margin: 0;

  padding: 5px 0 0;

  border: 0;
  border-top:
    1px solid #8a9770;

  border-radius: 0;

  background: none;

  color: #f5efdf;

  font-family:
    var(--sans, Arial, sans-serif);

  font-size:
    clamp(9px, 1.3svh, 12px);

  line-height: 1.25;

  text-align: left;
}

.thank-you-details
.entry-note p {
  margin: 0;
}

.thank-you-details
.entry-note strong {
  color: #fff6df;
}

.thank-you-details
.entry-note .ui-icon {
  display: inline-block;

  width: 15px;
  height: 15px;

  margin:
    0
    6px
    0
    0;

  color: #f0d49b;

  vertical-align: -3px;
}


/* =========================================================
   RELIVE EVENING INSIDE CARD
   ========================================================= */




/* =========================================================
   COMMON BUTTON / TEXT SAFETY
   ========================================================= */

.thank-you-details
:is(a, button) {
  min-width: 0;
  max-width: 100%;

  height: auto;

  box-sizing: border-box;

  white-space: normal;
}

.thank-you-details
.control-label {
  min-width: 0;
  max-width: 100%;

  overflow-wrap: anywhere;

  text-align: center;
}

.thank-you-scene
:is(
  p,
  time,
  strong,
  small,
  .control-label
) {
  min-width: 0;

  overflow-wrap: anywhere;
}


/* =========================================================
   NO PARTNER / SPONSOR STRIP ON FINAL PAGE
   ========================================================= */

.finale.thank-you
.finale-brands {
  display: none !important;
}


/* =========================================================
   BOTTOM DECORATIVE ARTWORK
   Elephant + leaves + lotus
   ========================================================= */

.thank-you-art {
  position: relative;

  z-index: 2;

  width: min(100%, 900px);

  --closing-art-base: clamp(82px, 13svh, 126px);

  margin: 0;

  opacity: 1;

  overflow: visible;

  pointer-events: none;
}

.thank-you-art img {
  position: absolute;

  display: block;

  pointer-events: none;
}


/* =========================================================
   ELEPHANT
   ========================================================= */

.thank-you-elephant {
  left: 50%;
  bottom: 0;

  z-index: 2;

  width: 100%;
  height: calc(var(--closing-art-base) * 1.84);

  transform:
    translateX(-50%);

  object-fit: contain;
  object-position:
    center bottom;
}


/* =========================================================
   LEAVES
   ========================================================= */

.thank-you-leaf {
  bottom: 0;

  z-index: 1;

  width: 68%;
  height: calc(var(--closing-art-base) * 2);

  object-fit: contain;
  object-position:
    center bottom;

  opacity: 0.96;
}

.leaf-left {
  left: 0;
}

.leaf-right {
  right: 0;

  height: calc(var(--closing-art-base) * 2);
}


/* =========================================================
   LOTUS
   ========================================================= */

.thank-you-lotus {
  bottom: 0;

  z-index: 3;

  width: 48%;
  height: calc(var(--closing-art-base) * 1.32);

  object-fit: contain;
  object-position:
    center bottom;
}

.lotus-left {
  left: 4%;
}

.lotus-right {
  right: 4%;
}


/* =========================================================
   CONTAINER RESPONSIVENESS
   ========================================================= */

@container closing-card (min-width: 15rem) {
  .thank-you-details
  .event-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .thank-you-details
  .event-links > :last-child {
    grid-column:
      1 / -1;
  }
}


@container closing-card (min-width: 18rem) {
  .thank-you-details
  .event-links {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .thank-you-details
  .event-links > :last-child {
    grid-column: auto;
  }

  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button {
    flex-direction: column;

    gap: 5px;
  }
}


@container closing-card (min-width: 34rem) {
  .thank-you-details
  .event-facts {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 20px;
  }

  .thank-you-details
  .event-facts strong {
    font-size: 15px;
  }

  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button {
    flex-direction: row;

    padding: 7px 10px;
  }
}


/* =========================================================
   FOOTER
   ========================================================= */

footer.closing-footer {
  display: grid;

  grid-template-columns:
    1.2fr 1fr 1.2fr;

  align-items: center;

  gap: 8px;

  width: 100%;

  height:
    var(--closing-footer-h);

  min-height:
    var(--closing-footer-h);

  padding:
    7px
    var(--gutter, 40px);

  box-sizing: border-box;

  border-top:
    1px solid #e0be8022;

  background:
    var(--ink, #0b201b);

  color: #c4c7b4;

  font-family:
    var(--sans, Arial, sans-serif);

  font-size: 10px;
}

footer.closing-footer > * {
  min-width: 0;

  margin: 0;

  line-height: 1.2;
}


/* footer replay */

footer.closing-footer > a:first-child {
  display: flex;

  align-items: center;

  min-height: 44px;

  padding: 6px 4px;

  color:
    var(--thank-gold);

  font-family:
    var(--serif, Georgia, serif);

  font-size:
    clamp(13px, 1.5vw, 18px);

  text-decoration: none;
}


/* middle text */

footer.closing-footer > :nth-child(2) {
  text-align: center !important;
}


/* right text */

footer.closing-footer > :last-child {
  text-align: right !important;
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.finale.thank-you
:is(a, button):focus-visible,
footer.closing-footer a:focus-visible {
  outline:
    3px solid #f8cf74;

  outline-offset: 3px;
}


/* =========================================================
   LARGE DESKTOP
   1200px+
   ========================================================= */

@media (min-width: 1200px) {

  .thank-you-frame {
    padding-inline:
      clamp(48px, 6vw, 90px);
  }

  .thank-you-details {
    width:
      min(820px, 78vw);
  }

  .thank-you-art {
    width:
      min(900px, 72vw);
  }
}


/* =========================================================
   STANDARD DESKTOP / LAPTOP
   901px - 1199px
   ========================================================= */

@media
(min-width: 901px)
and
(max-width: 1199px) {

  .thank-you-frame {
    padding-inline:
      clamp(30px, 4vw, 52px);
  }

  .thank-you-details {
    width:
      min(820px, 88vw);
  }

  .thank-you-logo {
    width: clamp(182.25px, 25.5svh, 270px) !important;
  }
}


/* =========================================================
   TABLET
   651px - 900px
   ========================================================= */

@media
(min-width: 651px)
and
(max-width: 900px) {

  .thank-you-frame {
    padding-inline:
      clamp(20px, 4vw, 36px);

    gap:
      clamp(5px, 0.8svh, 8px);
  }

  .thank-you-logo {
    width: clamp(177px, 25.5svh, 258px) !important;
  }

  .thank-you-details {
    width:
      min(100%, 700px);
  }

  .thank-you-art {
    width: 100%;
  }

  .thank-you-elephant {
    width: 96%;
  }
}


/* =========================================================
   MOBILE
   <= 650px
   ========================================================= */

@media (max-width: 650px) {

  :root {
    --closing-footer-h: 82px;
  }


  /* page */

  .finale.thank-you {
    height: auto;

    min-height: calc(100svh - 76px);

    max-height: none;
  }


  /* frame */

  .thank-you-frame {
    padding:
      clamp(40px, 6svh, 52px)
      18px
      0;

    gap:
      clamp(5px, 0.8svh, 8px);
  }


  /* logo */

  .thank-you-logo {
    width: clamp(182.25px, 27svh, 290.25px) !important;
  }


  /* thank you heading */

  .thank-you-message h2 {
    font-size:
      clamp(1.3125rem, 3.75svh, 2.475rem) !important;
  }


  /* Gujarati */

  .thank-you-message p {
    width: min(100%, 34ch);

    font-size:
      clamp(0.72rem, 1.5svh, 0.9rem);

    line-height: 1.38;
  }


  /* unified green card */

  .thank-you-details {
    width: 100%;

    gap:
      clamp(5px, 0.75svh, 8px);

    padding:
      8px 9px;

    border-radius: 11px;
  }


  /* card heading */

  .thank-you-details
  .thank-you-kicker {
    padding-bottom: 7px;

    font-size:
      clamp(7px, 1.05svh, 9px);

    letter-spacing:
      0.05em;
  }


  /* facts */

  .thank-you-details
  .event-facts {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }

  .thank-you-details
  .thank-you-date,
  .thank-you-details
  .thank-you-venue {
    grid-template-columns:
      14px minmax(0, 1fr);

    gap: 4px;

    font-size:
      clamp(8px, 1.2svh, 11px);
  }

  .thank-you-details
  .event-facts
  .ui-icon {
    width: 14px;
    height: 14px;
  }

  .thank-you-details
  .event-facts
  strong {
    font-size:
      clamp(9px, 1.4svh, 12px);
  }


  /* CTA */

  .thank-you-details
  .book-button {
    min-height: 44px;

    padding:
      4px 7px;

    font-size:
      clamp(10px, 1.3svh, 12px);
  }


  /* utility links */

  .thank-you-details
  .event-links {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 3px;
  }

  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button {
    min-height: 44px;

    padding: 3px;

    gap: 3px;

    font-size:
      clamp(8px, 1.05svh, 10px);
  }


  /* entry */

  .thank-you-details
  .entry-note {
    font-size:
      clamp(8px, 1.15svh, 10px);
  }


  /* art */

  .thank-you-art {
    width: 100%;

    --closing-art-base: clamp(88px, 14svh, 118px);
  }

  .thank-you-elephant {
    width: 92%;
    height: calc(var(--closing-art-base) * 1.76);
  }

  .thank-you-leaf {
    width: 74%;
    height: calc(var(--closing-art-base) * 2);
  }

  .thank-you-lotus {
    width: 52%;
    height: calc(var(--closing-art-base) * 1.24);
  }

  .lotus-left {
    left: 1%;
  }

  .lotus-right {
    right: 1%;
  }


  /* footer */

  footer.closing-footer {
    grid-template-columns:
      1fr 1fr;

    grid-template-rows:
      auto auto;

    height:
      var(--closing-footer-h);

    min-height:
      var(--closing-footer-h);

    padding:
      5px 10px;

    gap:
      2px 8px;

    font-size: 8px;
  }

  footer.closing-footer > :first-child {
    grid-column:
      1 / -1;

    justify-content: center;

    min-height: 36px;

    font-size: 12px;
  }

  footer.closing-footer > :nth-child(2),
  footer.closing-footer > :last-child {
    text-align:
      center !important;
  }
}


/* =========================================================
   SMALL MOBILE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

  .thank-you-frame {
    padding-inline:
      10px;
  }

  .thank-you-logo {
    width: clamp(174px, 27svh, 261px) !important;
  }

  .thank-you-message h2 {
    font-size:
      clamp(1.15rem, 3.5svh, 2rem) !important;
  }

  .thank-you-message p {
    font-size:
      clamp(0.68rem, 1.45svh, 0.82rem);
  }

  .thank-you-details {
    padding:
      7px 8px;
  }

  .thank-you-details
  .thank-you-kicker {
    font-size: 7px;

    letter-spacing:
      0.035em;
  }

  .thank-you-art {
    --closing-art-base: 94px;
  }

  .thank-you-elephant {
    width: 88%;
  }

  .thank-you-leaf {
    width: 78%;
  }

  .thank-you-lotus {
    width: 54%;
  }
}


/* =========================================================
   VERY SMALL MOBILE
   <= 320px
   ========================================================= */

@media (max-width: 320px) {

  .thank-you-frame {
    padding-inline:
      7px;
  }

  .thank-you-logo {
    width: clamp(157.5px, 25.5svh, 232.5px) !important;
  }

  .thank-you-details {
    padding:
      6px 7px;
  }

  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button {
    font-size:
      7.5px;
  }

  footer.closing-footer {
    padding-inline:
      6px;
  }
}


/* =========================================================
   SHORT SCREENS / LANDSCAPE
   <= 650px height
   ========================================================= */

@media (max-height: 650px) {

  :root {
    --closing-footer-h: 76px;
  }

  .thank-you-frame {
    padding:
      34px
      12px
      0;

    gap: 3px;
  }


  /* current logo size +50% short-screen version */

  .thank-you-logo {
    width: 155.25px !important;
  }


  /* thank you heading */

  .thank-you-message h2 {
    font-size:
      1.1625rem !important;
  }


  /* message */

  .thank-you-message {
    margin-bottom: 4px;
  }

  .thank-you-message p {
    margin-top: 2px;

    font-size: 0.68rem;

    line-height: 1.25;
  }


  /* card */

  .thank-you-details {
    gap: 4px;

    padding:
      6px 7px;
  }

  .thank-you-details
  .thank-you-kicker {
    padding-bottom: 5px;

    font-size: 7px;
  }


  /* facts */

  .thank-you-details
  .thank-you-date,
  .thank-you-details
  .thank-you-venue {
    font-size: 9px;
  }

  .thank-you-details
  .event-facts strong {
    font-size: 10px;
  }


  /* CTA */

  .thank-you-details
  .book-button {
    min-height: 44px;

    padding:
      3px 6px;

    font-size: 10px;
  }


  /* actions */

  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button {
    min-height: 44px;

    padding:
      2px 3px;

    font-size: 8px;
  }


  /* notes */

  .thank-you-details
  .booking-note {
    font-size: 7px;
  }

  .thank-you-details
  .entry-note {
    padding-top: 3px;

    font-size: 8px;
  }




  /* art */

  .thank-you-art {
    --closing-art-base: 72px;
  }

  .thank-you-elephant {
    width: 80%;
  }

  .thank-you-leaf {
    width: 62%;
  }

  .thank-you-lotus {
    width: 44%;
  }


  /* footer */

  footer.closing-footer {
    padding:
      4px 8px;

    font-size: 7px;
  }

  footer.closing-footer > a:first-child {
    font-size: 10px;
  }
}


/* =========================================================
   SHORT DESKTOP / TABLET
   <= 760px height and >650px width
   ========================================================= */

@media
(max-height: 760px)
and
(min-width: 651px) {

  .thank-you-frame {
    padding-top:
      clamp(34px, 5.2svh, 46px);

    padding-bottom:
      0;
  }

  .thank-you-logo {
    width: clamp(159px, 24svh, 217.5px) !important;
  }

  .thank-you-message h2 {
    font-size:
      clamp(1.25rem, 3.4svh, 2rem) !important;
  }

  .thank-you-details {
    gap:
      clamp(4px, 0.6svh, 7px);

    padding:
      7px 10px;
  }

  .thank-you-art {
    --closing-art-base: clamp(70px, 11svh, 92px);
  }
}


/* =========================================================
   LANDSCAPE PHONE
   ========================================================= */

@media
(max-width: 900px)
and
(max-height: 500px) {

  :root {
    --closing-footer-h: 58px;
  }

  .thank-you-frame {
    padding:
      20px
      18px
      0;

    gap: 2px;
  }

  .thank-you-logo {
    width: 117px !important;
  }

  .thank-you-message h2 {
    font-size:
      1rem !important;
  }

  .thank-you-message p {
    font-size:
      0.58rem;

    line-height: 1.2;
  }

  .thank-you-details {
    width:
      min(94%, 760px);

    gap: 2px;

    padding:
      4px 6px;
  }

  .thank-you-details
  .thank-you-kicker {
    font-size: 6px;

    padding-bottom: 3px;
  }

  .thank-you-details
  .event-facts {
    gap: 5px;
  }

  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button,
  .thank-you-details
  .book-button {
    min-height: 44px;
  }

  .thank-you-art {
    --closing-art-base: 52px;
  }

  footer.closing-footer {
    height:
      var(--closing-footer-h);

    min-height:
      var(--closing-footer-h);

    padding:
      2px 8px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media
(prefers-reduced-motion: reduce) {

  .finale.thank-you *,
  footer.closing-footer * {
    animation:
      none !important;

    transition:
      none !important;

    scroll-behavior:
      auto !important;
  }
}


/* =========================================================
   HIGH CONTRAST / FORCED COLORS
   ========================================================= */

@media
(forced-colors: active) {

  .thank-you-details,
  .thank-you-details
  .book-button,
  .thank-you-details
  .event-links a,
  .thank-you-details
  .event-links button {
    border:
      1px solid CanvasText;
  }

  .thank-you-message h2,
  .thank-you-details
  .thank-you-kicker,
  .thank-you-replay {
    color:
      CanvasText;
  }
}


/* =========================================================
   SAFE AREA SUPPORT — iPHONE
   ========================================================= */

@supports
(padding: max(0px)) {

  .finale.thank-you {
    padding-left:
      env(safe-area-inset-left);

    padding-right:
      env(safe-area-inset-right);
  }

  footer.closing-footer {
    padding-left:
      max(
        10px,
        env(safe-area-inset-left)
      );

    padding-right:
      max(
        10px,
        env(safe-area-inset-right)
      );
  }
}


/* =========================================================
   FINAL ACCESSIBILITY / TAP TARGETS
   ========================================================= */

.thank-you-details
:is(a, button),
footer.closing-footer a {
  -webkit-tap-highlight-color:
    transparent;
}

.thank-you-details
:is(a, button):focus-visible,
footer.closing-footer a:focus-visible {
  outline:
    3px solid #f8cf74;

  outline-offset:
    3px;
}


/* =========================================================
   END OF FINAL PAGE CSS
   ========================================================= */
/* Integration with the current heading, in-section footer and preserved links. */
.thank-you-heading { display:grid; grid-template-columns:minmax(0,1fr); justify-items:center; gap:5px; width:100%; }
.thank-you-logo { max-width:100%; }
.thank-you-details .event-links a { text-decoration:none; }
.thank-you-details .entry-note small { display:block; margin-top:3px; font-size:inherit; }
footer.closing-footer {
  height:auto; min-height:32px;
  grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto;
  padding:6px 10px;
}
footer.closing-footer > p { min-height:0; grid-column:auto; font-size:inherit; text-align:center !important; }
@media (max-width:650px) {
  footer.closing-footer { grid-template-columns:minmax(0,1fr); }
}
/* Retain the existing gold replay and invitation links without restyling. */
.thank-you-text-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:8px; margin:0; }
.thank-you-text-links a {
  display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:44px;
  padding:6px 2px; border:0; border-radius:0; background:none; box-shadow:none;
  color:#f2d28e; font-size:14px; line-height:1.3; font-weight:400; text-align:center;
  text-decoration:none; overflow-wrap:anywhere;
}
.thank-you-text-links .ui-icon { width:14px; height:14px; flex-shrink:0; }
.thank-you-text-links .control-label { text-decoration:underline; text-underline-offset:3px; }
.thank-you-text-links a:hover { color:#ffe7b1; }
.finale.thank-you .thank-you-text-links a:focus-visible { outline:2px solid #f2d28e; outline-offset:2px; }

.thank-you-text-links { position:relative; z-index:4; }
@media (min-height:441px) and (max-height:740px),
       (min-width:501px) and (max-width:650px) and (min-height:741px) and (max-height:800px) {
  .thank-you-text-links a { min-height:28px; padding-block:4px; font-size:13px; }
}
@media (max-width:500px) and (max-height:740px),
       (min-width:500px) and (max-height:540px) {
  .thank-you-text-links a { min-height:28px; padding-block:4px; font-size:12px; }
}
@media (min-width:500px) and (max-height:340px) {
  .thank-you-text-links a { min-height:24px; padding-block:2px; }
}
@media (max-height:420px) {
  html .masthead { min-height:53px; padding-block:3px; }
  html .masthead .wordmark { display:flex; align-items:center; height:46px; }
  html .masthead .wordmark img { width:auto; max-width:100%; max-height:44px; }
  .thank-you-scene { padding-block:3px; }
  .finale.thank-you { min-height:calc(100svh - 53px); scroll-margin-top:53px; }
}


/* Keep the heading centered and stacked while reducing ornamental spacing. */
@media (max-height:800px) {
  .thank-you-heading { gap:3px; }
  .thank-you-message { margin-bottom:0; }
}
@media (max-height:650px) {
  .thank-you-frame { padding-top:12px; gap:3px; }
  .thank-you-details { gap:2px; padding-block:4px; }
  .thank-you-art { --closing-art-base: 60px; }
}
@media (min-width:500px) and (max-height:540px) {
  .thank-you-frame { gap:2px; padding:4px 8px 0; }
  .thank-you-heading { gap:0; }
  .thank-you-details { width:100%; }
  .thank-you-art { --closing-art-base: 32px; }
  footer.closing-footer { min-height:20px; padding:3px 8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:500px) and (max-height:460px) {
  .thank-you-frame { padding-top:0; row-gap:0; }
  .thank-you-details .thank-you-actions { grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
  .thank-you-details .event-links { display:contents; }
  .thank-you-details .event-links > :last-child { grid-column:auto; }
  .thank-you-art { --closing-art-base: 24px; }
}
/* The mobile three-column row also resets the narrow-container spanning rule. */
@media (max-width:650px) {
  .thank-you-details .event-links > :last-child { grid-column:auto; }
}
@media (min-height:651px) and (max-height:740px) {
  .thank-you-frame { padding-top:28px; gap:5px; }
}

/* The supplied footer's first-child sizing is for a link; ours contains text. */
footer.closing-footer > p:first-child { min-height:0; grid-column:auto; font-size:inherit; }
@media (min-height:741px) and (max-height:900px) {
  .thank-you-frame { padding-top:28px; gap:7px; }
  .thank-you-heading { gap:0; }
  .thank-you-message { margin-bottom:0; }
}

/* On very short screens, scale decoration before compressing readable content. */
@media (min-width:500px) and (max-height:540px) {
  .thank-you-logo { width: 72px !important; }
  .thank-you-message p { width:min(100%,64ch); }
  .thank-you-art { --closing-art-base: 12px; }
}
@media (min-height:541px) and (max-height:800px) {
  .thank-you-frame { padding-top:8px; gap:3px; }
  .thank-you-logo { width: 155.25px !important; }
  .thank-you-art { --closing-art-base: 60px; }
}
@media (max-width:499px) and (max-height:600px) {
  .thank-you-frame { padding-top:6px; }
  .thank-you-art { --closing-art-base: 32px; }
}
@media (min-width:500px) and (max-height:340px) {
  .thank-you-logo { width: 48px !important; }
  .thank-you-details { gap:0; padding-block:2px; }
  .thank-you-details .thank-you-kicker { padding-bottom:1px; }
  .thank-you-art { --closing-art-base: 6px; }
  footer.closing-footer { min-height:14px; padding-block:2px; }
}

/* Continue both gold sides through the full red frame to the footer edge. */
.thank-you-scene { row-gap:0; padding-bottom:0; }
.thank-you-frame { --arch-cap:min(45vw,clamp(100px,calc(100svh - 380px),400px)); }
@media (min-width:500px) and (max-height:540px) {
  .thank-you-frame { --arch-cap:min(25vw,100px); }
}

@media (min-width:651px) and (min-height:541px) and (max-height:800px) {
  .thank-you-frame { padding-top:24px; }
  .thank-you-art { --closing-art-base: 44px; }
}

/* Lower the complete content stack while retaining its natural flow. */
.thank-you-heading { margin-top:clamp(10px,1.5svh,18px); }

/* Double the closing artwork while reserving real layout space for it. */
.finale.thank-you .thank-you-art {
  height:calc(var(--closing-art-base) * 2);
  margin-top:clamp(12px,2svh,22px);
}
.finale.thank-you :is(.leaf-left,.lotus-left) { object-position:left bottom; }
.finale.thank-you :is(.leaf-right,.lotus-right) { object-position:right bottom; }
.finale.thank-you .thank-you-logo { margin-bottom:clamp(16px,2svh,24px); }
@media (max-width:650px) {
  /* A single grounded composition: foliage frames the elephant at the footer. */
  .finale.thank-you .thank-you-art { height:calc(var(--closing-art-base) * 2); }
  .finale.thank-you .thank-you-elephant { bottom:0; width:64%; }
  .finale.thank-you .thank-you-leaf { width:42%; }
  .finale.thank-you .thank-you-lotus { width:34%; }
}

/* elephant-ride.css */
/* The supplied ivory-and-gold elephant stays on one layer through all three scenes. */
.journey-elephant {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 17%;
  width: min(50vw, 540px, 54svh);
  transform: translateX(-50%) translateX(var(--ride-x, 0px));
  opacity: var(--ride-opacity, 1);
  pointer-events: none;
}
.journey-elephant[hidden], html:not(.cinematic) .journey-elephant { display: none; }
.elephant-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1390 / 1040;
  transform: translateY(var(--gait-rise, 0px));
  transform-origin: 50% 92%;
}
.elephant-body::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 15%;
  right: 12%;
  bottom: -1%;
  height: 4%;
  border-radius: 50%;
  background: #18201566;
  filter: blur(6px);
}
.elephant-art { display: block; width: 100%; height: 100%; transform: scaleX(-1); filter: drop-shadow(1px 4px 2px #32281044); }
.elephant-riders {
  position: absolute;
  left: 8%;
  top: -36%;
  width: 49%;
  height: auto;
  opacity: var(--riders-opacity, 1);
  transform: translateY(calc(var(--riders-y, 0px) + var(--saddle-rise, 0px)));
  filter: drop-shadow(1px 3px 1px #30261233);
}
.cinematic .elephant-still { display: none; }
.cinematic #the-plan .story-cast, .cinematic #arrival .story-cast { z-index: 7; }
.cinematic #the-plan .story-person { left: 34%; bottom: 18%; }
.cinematic #the-plan .story-person.woman { left: 65%; }
.cinematic #arrival .dialogue-track { z-index: 8; }
html:not(.cinematic) .elephant-still { position: absolute; width: min(60vw, 550px); left: 50%; bottom: 8%; transform: translateX(-50%); }
html:not(.cinematic) #the-plan .story-cast,
html:not(.cinematic) #arrival .story-cast,
html:not(.cinematic) #arrival .together-art { display: none; }
@media (max-width: 650px) {
  .journey-elephant { width: min(62vw, 300px, 38svh); bottom: 20%; }
  html:not(.cinematic) .elephant-still { width: min(62vw, 300px, 38svh); bottom: 12%; }
  .cinematic #arrival .story-person { width: 38vw; }
}

/* Short landscape phones use the reading layout; keep the decor visible there too. */
@media (max-height: 600px) {
  html:not(.cinematic) .elephant-still { width: min(62vw, 300px, 38svh); bottom: 12%; }
}

/* One continuous textured surface, with the original image as a safe fallback. */
.elephant-mesh { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mesh-ready .elephant-mesh { opacity: 1; }
.mesh-ready .elephant-fallback { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .elephant-body, .elephant-riders { transform: none; }
}

/* brand-controls.css */
/* The original logos remain readable on their own contrasting backdrop plaques. */
.ui-icon { display:inline-block; width:21px; height:21px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
a:has(>.ui-icon),
button:has(>.ui-icon),
.photo-input { display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.control-label { min-width:0; overflow-wrap:break-word; }
.masthead { min-height:76px; padding-block:10px; align-items:center; }
.masthead .header-actions { flex-direction:row; gap:12px; align-items:center; }
.masthead .wordmark { width:78px; min-height:44px; }
.masthead .header-link { display:inline-flex; align-items:center; gap:9px; padding:10px 14px; min-height:46px; font-size:14px; }
.header-link .control-label { padding:0; }
.masthead .soundtrack-toggle { display:flex; align-items:center; justify-content:center; gap:7px; width:auto; height:auto; min-height:46px; border-radius:8px; padding:10px 12px; font-size:13px; color:#fff1ce; }
#opening-sound { display:inline-flex; gap:8px; align-items:center; min-height:44px; padding:10px 14px; }
.brand-wall { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.brand-plaque { display:grid; grid-template-rows:minmax(0,1fr); gap:0; min-width:0; min-height:44px; height:100%; border:1px solid #dfc591; border-radius:6px; background:#fff; padding:4px 7px; box-shadow:0 3px 12px #001a1744; overflow:hidden; color:#173c30; }
.brand-logo { display:flex; justify-content:center; align-items:center; min-width:0; min-height:0; overflow:hidden; }
.brand-plaque img { width:100%; height:100%; object-fit:contain; mix-blend-mode:normal; }
.brand-plaque:is(:hover,:focus-visible) { border-color:#f2c66c; box-shadow:0 0 0 2px #e0be8077; }
.brand-tge { background:#123b2e; }
.brand-ethereum { background:#235543; }
.brand-tge,
.brand-ethereum { color:#fff0ca; }
.brand-ethereum img { transform:scale(1.5); }
.stage-brands { display:none; }
.cinematic .stage-brands { display:grid; position:absolute; z-index:21; bottom:10px; left:50%; transform:translateX(-50%); width:min(510px,calc(100% - 28px)); height:60px; }
.cinematic .journey-caption { bottom:80px; border:0; padding:0; font-size:11px; }
.cinematic .journey-stage:has(#invitation.is-active) .stage-brands { height:84px; width:min(630px,calc(100% - 32px)); bottom:18px; }
.cinematic .journey-stage:has(#invitation.is-active) .journey-caption { display:none; }
.cinematic #invitation #opening-sound { bottom:112px; }
.cinematic .illustrated-scene .scene-actions { bottom:96px; }
.cinematic .story-invite .invitation-handoff { bottom:14%; width:min(79vw,650px,48svh); }
.cinematic .partner-road .road-world { bottom:94px; }
.cinematic .journey-stage:has(#partner-road.is-active) .journey-caption { display:none; }
.finale-brands,
.opening-brands { width:min(740px,100%); height:auto; grid-auto-rows:clamp(84px,13vw,112px); gap:12px; }
.finale-brands .brand-plaque { padding:8px; border-radius:10px; }
.opening-brands { margin:28px auto 0; }
.cinematic .opening-brands { display:none; }
html:not(.cinematic) #invitation { flex-direction:column; }
html:not(.cinematic) .invitation-wall-branding { margin-top:42px; margin-bottom:28px; width:min(200px,45vw); }
/* Keep the small lead-partner shop boards focused on their supplied artwork. */
.featured-partner .shop-name,
.featured-partner .shop-role { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.partner-shop.featured-partner .partner-logo-slot { width:100%; height:100%; max-width:none; flex:1; }
.partner-shop.featured-partner .shop-logo { width:100%; height:100%; max-height:none; margin:0; object-fit:contain; }
.close-button,
.invitation-viewer-bar button { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:auto; min-width:44px; min-height:44px; font-size:14px; padding:10px 12px; }
footer a { min-height:44px; padding:8px 4px; }
:where(a,button,label):focus-visible { outline:3px solid #f8cf74; outline-offset:4px; }
@media(max-width:650px) {
  .masthead { padding:8px 12px; gap:8px; }
  .masthead .wordmark { width:61px; }
  .masthead .header-actions { gap:7px; }
  .masthead .header-link { font-size:12px; gap:6px; padding:10px; }
  .masthead .soundtrack-toggle { font-size:12px; gap:5px; padding:10px 8px; }
  .masthead .header-date { display:none; }
  .stage-brands,
.cinematic .stage-brands { height:54px; gap:6px; bottom:8px; }
  .brand-plaque { padding:5px; }
  .cinematic .journey-caption { display:none; }
  .cinematic .illustrated-scene .scene-actions { bottom:80px; gap:8px; }
  .cinematic .story-invite .invitation-handoff { width:min(86vw,49svh); bottom:14%; }
  .cinematic .partner-road .road-world { bottom:82px; }
  .cinematic .journey-stage:has(#invitation.is-active) .stage-brands { height:70px; bottom:12px; }
  .cinematic #invitation #opening-sound { bottom:94px; }
  .finale-brands,
.opening-brands { grid-template-columns:repeat(2,minmax(0,1fr)); height:auto; gap:10px; }
  .finale-brands .brand-plaque { min-height:44px; padding:6px; }
  .scene-actions .outline-button,
.scene-actions .text-button { font-size:13px; min-height:44px; padding:10px 12px; }
}
@media(max-width:360px) {
  .masthead .header-link { padding:10px 7px; }
  .masthead .header-link .ui-icon { width:18px; height:18px; }
  .masthead .wordmark { width:55px; }
}
@media(max-width:650px) and (max-height:700px) {
  .cinematic .story-invite .invitation-handoff { width:min(80vw,38svh); bottom:18%; }
}
@media(min-width:651px) and (max-height:800px) {
  .cinematic .story-invite .invitation-handoff { width:min(79vw,650px,44svh); bottom:17%; }
}
/* Let featured artwork occupy the entire board, including compact street layouts. */
.partner-road .partner-shop.featured-partner .shop-sign { display:flex; padding:5px; }
.partner-road .partner-shop.featured-partner .shop-details { display:none; }
.partner-road .partner-shop.featured-partner .partner-logo-slot { border:0; padding:3px; background:#fff; }
.partner-road .partner-shop.featured-partner:nth-child(3) .partner-logo-slot { background:#235543; }
@media(max-width:360px) and (min-height:640px) {
  .cinematic .story-invite .invitation-handoff { bottom:20%; }
}
@media(min-width:651px) and (max-height:800px) {
  .cinematic .story-invite .invitation-handoff { width:min(72vw,650px,34svh); bottom:19%; }
  .cinematic #the-invitation .dialogue-beat { width:280px; font-size:14px; }
}
@media(max-width:360px) and (min-height:640px) {
  .cinematic .story-invite .invitation-handoff { width:min(80vw,35svh); bottom:20%; }
}
.brand-details[data-brand="ethereum"] .partner-logo-slot { background:#235543; }
.brand-details[data-brand="tge"] .partner-logo-slot { background:#123b2e; }
.brand-details[data-brand="ethereum"] #partner-dialog-logo { transform:scale(1.35); }
/* Gold oval control; its green centre detail matches the invitation palette. */
.masthead #autoscroll-toggle {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  gap:7px; min-height:46px; min-width:132px; padding:8px 14px; border-radius:999px;
  border:1px solid #f8dc91; background:linear-gradient(135deg,#ffeab3,#dab45f 60%,#f3d58d);
  box-shadow:inset 0 0 0 2px #173c30,inset 0 0 0 3px #f6d895,0 3px 14px #0004;
  color:#173c30; font-size:13px; font-weight:700; line-height:1.2;
}
#autoscroll-toggle .ui-icon { width:25px; height:25px; padding:4px; border-radius:50%; background:#173c30; color:#f5d69a; }
.masthead #autoscroll-toggle[aria-pressed="true"] { background:linear-gradient(135deg,#f9d789,#cda047); }
@media(max-width:1100px) { .masthead .header-date { display:none; } }
@media(max-width:650px) {
  .masthead { gap:7px; padding-inline:10px; }
  .masthead .wordmark { width:51px; }
  .masthead .header-actions { gap:6px; flex-shrink:0; }
  .masthead #autoscroll-toggle { min-width:98px; min-height:46px; padding:7px; gap:5px; font-size:11px; }
  #autoscroll-toggle .ui-icon { width:21px; height:21px; padding:3px; }
  .masthead .soundtrack-toggle { flex-direction:column; width:46px; padding:5px 2px; gap:2px; font-size:10px; line-height:1.2; }
  .masthead .soundtrack-toggle svg { width:18px; height:18px; }
  .masthead .header-link { flex-direction:column; width:65px; padding:5px 2px; gap:2px; font-size:10px; line-height:1.2; }
  .masthead .header-link .ui-icon { width:18px; height:18px; }
}
@media(max-width:310px) {
  .masthead { padding-inline:6px; gap:4px; }
  .masthead .wordmark { width:40px; }
  .masthead .header-actions { gap:4px; }
  .masthead #autoscroll-toggle { min-width:93px; }
  .masthead .header-link { width:58px; }
}

/* browser-safety.css */
/* Native iOS gestures still drive the existing scroll-position animation. */
.ios-native-scroll.cinematic .journey-stage {
  touch-action: auto;
  height: var(--ios-stage-height, 100vh);
  height: var(--ios-stage-height, 100svh);
}
.ios-native-scroll.cinematic .opening-scene .hamper-interior > img {
  height: var(--ios-stage-height, 100vh);
  height: var(--ios-stage-height, 100svh);
}
/* Keep decoded artwork for instant reverse scrolling; suspend invisible work. */
.ios-native-scroll.cinematic .scene:not(.is-visible) *,
.ios-native-scroll.cinematic .scene:not(.is-visible) *::before,
.ios-native-scroll.cinematic .scene:not(.is-visible) *::after,
.ios-native-scroll.safety-page-hidden *,
.ios-native-scroll.safety-page-hidden *::before,
.ios-native-scroll.safety-page-hidden *::after {
  animation-play-state: paused !important;
  will-change: auto !important;
}
/* Only after sustained slow rendering: retain art/motion, omit soft shadows. */
.ios-native-scroll.safety-light-effects .together-art,
.ios-native-scroll.safety-light-effects .story-person,
.ios-native-scroll.safety-light-effects .guest-sprite,
.ios-native-scroll.safety-light-effects .elephant-art,
.ios-native-scroll.safety-light-effects .elephant-riders {
  filter: none;
}
.ios-native-scroll.safety-light-effects dialog::backdrop {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Remove distant scene background/layer references; keep their layout geometry. */
.ios-native-scroll [data-resources="parked"],
.ios-native-scroll [data-resources="parked"] *,
.ios-native-scroll [data-resources="parked"] *::before,
.ios-native-scroll [data-resources="parked"] *::after {
  background-image: none !important;
  filter: none !important;
  will-change: auto !important;
}
