:root {
  color-scheme: light;
  --story-ink: #46301d;
  --story-brown: #39200f;
  --story-gold: #d7b56e;
  --story-paper: #f1e4c9;
  --story-paper-deep: #d7bd8c;
  --story-serif: "Source Serif 4", Georgia, serif;
  --story-display: "DM Serif Display", Georgia, serif;
  --story-hand: "IM Fell English", Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

html.is-audio-scrolling {
  scroll-behavior: auto;
}

body.story-page {
  margin: 0;
  color: var(--story-paper);
  background: var(--story-brown) url("../opt/b5ece4cfa2b2cea97a737400c036ab9f.webp") center / cover fixed;
  font-family: var(--story-serif);
  line-height: 1.65;
}

.story-page *,
.story-page *::before,
.story-page *::after {
  box-sizing: border-box;
}

.story-page img {
  display: block;
  max-width: 100%;
}

.story-page a {
  color: inherit;
}

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: #9b7136;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
}

.ornament {
  width: min(250px, 65%);
  height: 17px;
  margin: 1.25rem auto;
  background: url("../img/flourish.svg") center / contain no-repeat;
  opacity: .8;
}

.opening {
  height: min(100dvh, 165.33vw, 620px);
  min-height: 0;
  padding: 0;
  background: #2d1a0c;
}

.opening::after,
.portal::after,
.event::after {
  position: absolute;
  z-index: -1;
  background: linear-gradient(180deg, rgba(38, 20, 8, .25), rgba(38, 20, 8, .67));
  content: "";
  inset: 0;
}

.opening::after {
  z-index: 0;
  background: transparent;
}

.opening-art {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(100vw, 375px, 60.48dvh);
  height: 100%;
  transform: translateX(-50%);
  container-type: inline-size;
  pointer-events: none;
}

.opening-art img {
  position: absolute;
  height: auto;
  max-width: none;
  /* Gambar dekorasi: jangan pernah dipaksa gepeng walau kotaknya tidak
     sebanding. contain menjaga proporsi asli; posisi diatur top/left. */
  object-fit: contain;
  object-position: center;
}

.opening-composition {
  position: absolute;
  inset: 0;
  container-type: inline-size;
}

.opening-art .opening-background {
  top: 0;
  left: -5.07%;
  width: 110.13%;
  height: 100%;
}

.opening-art .open-envelope {
  top: 13.39%;
  left: 10.93%;
  width: 50.67%;
}

.opening-art .intro-paper {
  top: 37.58%;
  left: 34.4%;
  width: 60%;
  height: 28.23%;
}

.opening-art .intro-scroll {
  top: 61.29%;
  left: 9.6%;
  width: 77.87%;
  height: 37.42%;
}

.intro-flourish {
  z-index: 2;
}

.opening-art .intro-frame-group {
  position: absolute;
  top: 51.61%;
  left: 5.87%;
  width: 33.33%;
  height: 27.67cqw;
  transform: rotate(-8deg);
  transform-origin: center;
  pointer-events: none;
}

.intro-frame-group .intro-building {
  z-index: 3;
  top: 9%;
  left: 7.5%;
  width: 85%;
  height: 82.5%;
  object-fit: cover;
}

.intro-frame-group .intro-frame {
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-frame-group .intro-flourish--one {
  z-index: 2;
  top: 84.4%;
  left: 12%;
  width: 89.6%;
  height: 19.27%;
}

.intro-frame-group .intro-flourish--two {
  z-index: 2;
  top: -1.83%;
  left: 88.8%;
  width: 13.6%;
  height: 85.32%;
}

.intro-frame-group .intro-flourish--three {
  z-index: 2;
  top: 6.42%;
  left: 3.2%;
  width: 89.6%;
  height: 19.27%;
}

.intro-frame-group .intro-flourish--four {
  z-index: 2;
  top: 6.42%;
  left: 4%;
  width: 16%;
  height: 88.07%;
}

.opening-art .envelope-seal {
  z-index: 5;
  top: 29.52%;
  left: 30.13%;
  width: 13.07%;
}

.opening-art .intro-vinyl {
  z-index: 5;
  top: 34.84%;
  left: 7.47%;
  width: 22.93%;
}

.opening-art .intro-watch {
  z-index: 5;
  top: 25.1%;
  left: 59.27%;
  width: 28.27%;
}

.opening-art .intro-star {
  z-index: 5;
  top: 59.03%;
  left: 71.2%;
  width: 22.13%;
}

.letter-hero {
  position: absolute;
  z-index: 6;
  top: 21.45%;
  left: 35.47%;
  width: 160px;
  margin: 0;
  transform: translateX(-50%);
  color: #744c21;
  font-family: var(--story-hand);
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.opening-copy-card {
  position: absolute;
  z-index: 6;
  top: 42.26%;
  left: 44.27%;
  width: 42.67%;
  color: #522d01;
  font-family: var(--story-hand);
  font-size: 9.5px;
  font-style: italic;
  line-height: 1.5;
  text-align: justify;
}

.opening-copy-text {
  margin: 0 0 .2rem;
}

.opening-copy-text:first-child {
  width: 98%;
}

.opening-copy--second {
  position: static;
  width: 100%;
  margin: .4rem 0 0;
}

.opening-caption {
  position: absolute;
  z-index: 6;
  top: 78.06%;
  left: 23.2%;
  width: 49.87%;
  color: #522d01;
  font-family: var(--story-hand);
  font-style: italic;
  text-align: center;
}

.opening-caption-ornament {
  left: -2.5%;
  width: 105%;
  height: auto;
  filter: saturate(1.8) contrast(1.25) brightness(.82);
}

.opening-caption-ornament--top {
  top: -5.5cqw;
}

.opening-caption-ornament--bottom {
  bottom: -5.5cqw;
}

.opening-caption strong {
  display: block;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.8;
}

.opening-caption span {
  display: block;
  margin-top: -4px;
  font-size: 7px;
  line-height: 1.3;
}

.scroll-paper h2,
.portal-card h2,
.event-content h2,
.message-card h2,
.closing h2 {
  margin: 0;
  font-family: var(--story-hand);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
}

.closing h2 {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 700;
}

.letter-hero h1 em {
  color: #76512c;
}

.scroll-cue {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: .25rem;
  color: var(--story-paper);
  font-size: .75rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 25px;
  background: var(--story-gold);
  animation: cue-drop 1.4s ease-in-out infinite;
}

.story {
  display: grid;
  min-height: 1050px;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 8rem max(6vw, 1.5rem);
  background: #321e10;
}

.story-collage {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, 375px);
  transform: translateX(-50%);
  overflow: hidden;
  background: url("../opt/08c459ccfe052cc5663d7e6846086ecb.webp") center top / 869px 573px no-repeat;
}

.story-art {
  position: absolute;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.story-art--paper {
  top: 70px;
  left: 26px;
  width: 247px;
  height: 150px;
}

.story-art--letter {
  top: 75px;
  left: 49px;
  width: 148px;
  height: 133px;
}

.story-art--books {
  top: 86px;
  left: 191px;
  width: 84px;
  height: 93px;
}

.story-art--fold {
  top: 169px;
  left: 176px;
  width: 184px;
  height: 135px;
}

.story-art--torn {
  top: 177px;
  left: 166px;
  width: 192px;
  height: 112px;
}

.story-art--quill {
  top: 152px;
  left: 10px;
  width: 96px;
  height: 86px;
}

.memory-photo {
  position: absolute;
  width: clamp(150px, 21vw, 260px);
  padding: .6rem .6rem 2rem;
  background: #eadbbd;
  box-shadow: 0 12px 30px rgba(13, 7, 2, .55);
  opacity: .38;
  display: none;
}

.memory-photo img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  filter: sepia(.5) saturate(.65);
}

.memory-photo--one {
  top: 4%;
  left: 4%;
  transform: rotate(-11deg);
}

.memory-photo--two {
  top: 8%;
  right: 6%;
  transform: rotate(9deg);
}

.memory-photo--three {
  right: 8%;
  bottom: 4%;
  transform: rotate(-7deg);
}

.scroll-paper {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(ellipse at 50% 50%, #f6ebd2 0, #ead7b3 68%, #cfb184 100%);
  box-shadow: 0 18px 50px rgba(15, 8, 2, .5), inset 0 0 35px rgba(104, 67, 28, .18);
  color: var(--story-ink);
}

.scroll-paper {
  grid-column: 1;
  width: min(680px, 100%);
  justify-self: center;
  border-radius: 42px / 10px;
  text-align: center;
}

.scroll-paper::before,
.scroll-paper::after {
  position: absolute;
  top: -12px;
  bottom: -12px;
  width: 46px;
  border-radius: 45%;
  background: linear-gradient(90deg, #c9a777, #f3e3c2 60%, #c7a274);
  box-shadow: 0 5px 12px rgba(27, 14, 4, .35);
  content: "";
}

.scroll-paper::before {
  left: -24px;
}

.scroll-paper::after {
  right: -24px;
}

.scroll-paper h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.scroll-paper p:not(.eyebrow) {
  margin: 1rem 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-style: italic;
}

.scroll-paper .pull-quote {
  margin: 1.5rem 0;
  color: #76512c;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
}

.framed-memory {
  grid-column: 2;
  width: min(330px, 100%);
  justify-self: center;
  color: var(--story-paper);
  font-family: var(--story-hand);
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  transform: rotate(4deg);
}

.framed-memory p {
  margin: .7rem 0;
}

.gold-frame {
  padding: 14px;
  border: 8px ridge #bd934b;
  background: linear-gradient(135deg, #e4c579, #815b29 45%, #e6c978 70%, #956a2f);
  box-shadow: 0 15px 30px rgba(14, 7, 1, .6);
}

.gold-frame img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border: 5px solid #573a1c;
  filter: sepia(.16);
}

.manifesto {
  min-height: 420px;
  padding: 18px max(5vw, 1.2rem) 32px;
  background:
    linear-gradient(rgba(34, 18, 8, .46), rgba(34, 18, 8, .72)),
    url("../opt/9fdca3a36294a616e5e31be9ec4a56ae.webp") center / cover no-repeat;
}

.portal-card h2,
.event-content h2,
.message-card h2,
.closing h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.gallery {
  display: grid;
  width: min(1050px, 100%);
  margin: 0 auto 5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: center;
}

.gallery-frame {
  padding: .7rem .7rem 2.8rem;
  background: #f0e1c4;
  box-shadow: 0 16px 34px rgba(15, 8, 2, .55);
  color: #543b20;
  font-family: var(--story-hand);
  font-size: 1.15rem;
  font-style: italic;
}

.gallery-frame img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  filter: sepia(.22);
}

.gallery-frame figcaption {
  padding-top: .6rem;
  text-align: center;
}

.gallery-frame--a {
  transform: rotate(-5deg);
}

.story-page .portal-detail {
  color: #5a3415;
}

.gallery-frame--b {
  transform: translateY(-16px) rotate(3deg);
}

.gallery-frame--c {
  transform: rotate(-2deg);
}

.showcase {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.showcase-title,
.attractions-title {
  margin: 0;
  color: var(--story-gold);
  font-family: var(--story-display);
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.showcase-title {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.2;
}

.show-grid {
  display: grid;
  width: min(700px, 100%);
  margin: 14px auto 52px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.show-card,
.attraction-card {
  min-width: 0;
  margin: 0;
  color: #e9c478;
  font-family: var(--story-hand);
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

.show-card__frame,
.attraction-card__frame {
  position: relative;
  margin: 0 auto;
  isolation: isolate;
}

.show-card__frame {
  width: min(100%, 154px);
  aspect-ratio: .72;
  padding: 7px;
  background: linear-gradient(135deg, #f0d88b, #94621f 24%, #e6c878 48%, #79501b 72%, #e9ce7b);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55);
}

.show-card__frame::after,
.attraction-card__frame::after {
  position: absolute;
  z-index: 1;
  background: url("../opt/97a9bcffa3f3fe05c1ee9ae37a3c837b.webp") center / contain no-repeat;
  content: "";
  inset: -5px;
  pointer-events: none;
}

.show-card__media,
.attraction-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.show-card figcaption {
  display: grid;
  min-height: 36px;
  margin-top: 9px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #f0d29a, #d8ad69 65%, #c8954d);
  clip-path: polygon(3% 6%, 96% 0, 100% 15%, 98% 88%, 94% 100%, 5% 96%, 0 82%, 1% 18%);
  color: #593817;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.1;
  place-items: center;
}

.attractions-title {
  margin-top: 24px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.2;
}

.attraction-grid {
  display: grid;
  width: min(820px, 100%);
  margin: 18px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.attraction-card__frame {
  width: min(100%, 145px);
  aspect-ratio: .73;
  padding: 8px;
  background: linear-gradient(135deg, #f0d88b, #94621f 24%, #e6c878 48%, #79501b 72%, #e9ce7b);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .55);
}

.attraction-card figcaption {
  margin-top: 11px;
  color: #e9c478;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.25;
}

.show-card.reveal,
.attraction-card.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
}

.show-card.reveal.is-visible,
.attraction-card.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.show-card:nth-child(2),
.attraction-card:nth-child(2) {
  transition-delay: .1s;
}

.show-card:nth-child(3),
.attraction-card:nth-child(3) {
  transition-delay: .2s;
}

.attraction-card:nth-child(4) {
  transition-delay: .3s;
}

.show-card__frame,
.attraction-card__frame {
  transition: transform .3s ease;
}

.show-card:hover .show-card__frame,
.attraction-card:hover .attraction-card__frame {
  transform: translateY(-4px);
}

@media (max-width: 760px) {
  .manifesto {
    min-height: 0;
    padding: 40px 18px 46px;
    background-position: center;
  }

  .showcase-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .show-grid {
    width: 100%;
    margin: 20px auto 60px;
    gap: 12px;
  }

  .show-card__frame {
    width: min(100%, 88px);
    padding: 6px;
  }

  .show-card figcaption {
    min-height: 36px;
    margin-top: 9px;
    padding-inline: 5px;
    font-size: clamp(11px, 3.2vw, 13px);
  }

  .attractions-title {
    margin-top: 24px;
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .attraction-grid {
    width: min(300px, 100%);
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .attraction-card__frame {
    width: min(100%, 120px);
    padding: 9px;
  }

  .attraction-card figcaption {
    margin-top: 12px;
    font-size: clamp(16px, 4.4vw, 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .show-card.reveal,
  .attraction-card.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .show-card__frame,
  .attraction-card__frame {
    transition: none;
  }
}

.portal {
  display: grid;
  min-height: 760px;
  padding: 0;
  background: url("../opt/b5ece4cfa2b2cea97a737400c036ab9f.webp") center / cover no-repeat;
  place-items: center;
}

.portal::after {
  background: rgba(47, 25, 9, .12);
}

.portal-backdrop {
  position: absolute;
  z-index: 0;
  width: min(920px, 100%);
  height: 100%;
  left: 50%;
  top: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.portal-art {
  position: absolute;
  max-width: none;
  object-fit: contain;
}

.portal-art--network {
  top: 13%;
  left: 4%;
  width: 92%;
  height: 68%;
  opacity: .2;
}

.portal-art--envelopes {
  top: 8%;
  left: 43%;
  width: 48%;
  height: 54%;
}

.portal-art--postcard {
  top: 13%;
  left: 16%;
  width: 52%;
  height: 43%;
  transform: rotate(-2deg);
}

.portal-art--display {
  top: 57%;
  left: 32%;
  width: 48%;
  height: 34%;
}

.portal-art--display video,
.portal-art--display > img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
}

.portal-art--display video {
  inset: 8% 6% 10%;
  width: 88%;
  height: 80%;
  object-fit: cover;
}

.portal-art--display > img {
  z-index: 1;
  /* contain: bingkai layar tidak gepeng mengikuti kotak */
  object-fit: contain;
}

.portal-collage {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: 760px;
}

.portal-title {
  position: absolute;
  top: 6%;
  left: 15%;
  width: 48%;
  margin: 0;
  color: #f4e2b6;
  font-family: var(--story-display);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 5px rgba(40, 20, 7, .6);
}

.portal-postcard-copy {
  position: absolute;
  top: 35%;
  left: 21%;
  width: 38%;
  color: #72512c;
  font-family: var(--story-hand);
  font-style: italic;
  text-align: left;
}

.portal-postcard-copy .portal-lead {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
}

.portal-postcard-copy > p:not(.portal-lead) {
  width: 88%;
  margin: 0;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  line-height: 1.35;
}

.portal-detail {
  position: absolute;
  z-index: 2;
  top: 80%;
  left: 11%;
  display: grid;
  width: 23%;
  aspect-ratio: 1.62;
  color: #5a3415;
  font-family: var(--story-hand);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  place-items: center;
  transform: rotate(5deg);
}

.portal-detail img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  inset: 0;
}

.portal-detail span {
  position: relative;
  z-index: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.message-card {
  width: min(860px, 100%);
  padding: clamp(3rem, 5vw, 3.5rem) clamp(2.5rem, 5.5vw, 4rem);
  /* contain: kertas tidak ikut gepeng mengikuti bentuk kotak */
  background: url("../opt/5d42e9daef153bbc69c6446a757b4260.webp") center / contain no-repeat;
  color: var(--story-ink);
  text-align: center;
}
.gold-button {
  display: inline-block;
  padding: .8rem 1.45rem;
  border: 1px solid #815d2c;
  border-radius: 3px;
  background: linear-gradient(135deg, #dbbb70, #a47a38);
  box-shadow: 0 5px 12px rgba(55, 35, 12, .2);
  color: #2d1a0c;
  cursor: pointer;
  font: 700 1rem var(--story-serif);
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}

.gold-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.event {
  display: grid;
  width: 100%;
  min-height: 500px;
  padding: 24px max(5vw, 1.25rem);
  background: #49301b;
  grid-template-columns: repeat(2, minmax(0, 330px));
  justify-content: center;
  align-items: center;
  gap: clamp(60px, 12vw, 190px);
}

.event-backdrop,
.event-backdrop::after {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.event-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-backdrop::after {
  background: rgba(70, 43, 20, .62);
  content: "";
}

.event-content,
.event-venue {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.event-content {
  max-width: 330px;
}

.event-venue {
  max-width: 330px;
}

.event-content {
  align-self: center;
}

.event-content h2 {
  margin: 0 0 12px;
  color: var(--story-gold);
  font-family: var(--story-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-style: normal;
  font-weight: 700;
}

.event-date {
  display: grid;
  width: min(270px, 100%);
  min-height: 42px;
  margin: 16px auto 0;
  padding: 5px 18px;
  border: 3px double #76572c;
  border-radius: 24px;
  background: #f6edcf;
  color: #4b321b;
  font-size: 1.15rem;
  font-style: italic;
  place-items: center;
}

.venue {
  margin: 12px 0 16px;
  color: #e8be68;
  font-family: var(--story-hand);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 700;
}

.venue span {
  color: #e4b83e;
  font-size: 1.25em;
}

.event-photo {
  width: min(280px, 100%);
  height: 230px;
  margin: 0 auto;
  padding: 9px;
  border: 6px ridge #b88b46;
  background: #ead8b4;
  box-shadow: 0 8px 25px rgba(13, 7, 2, .5);
}

.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maps-link {
  display: grid;
  width: min(255px, 90%);
  min-height: 42px;
  margin: 0 auto;
  padding: 5px 18px;
  border: 3px double #76572c;
  border-radius: 24px;
  background: #f6edcf;
  color: #76512a;
  font-family: var(--story-hand);
  font-size: 1.1rem;
  font-style: italic;
  place-items: center;
  text-decoration: none;
}

.story-page .maps-link {
  color: #76512a;
}

.calendar {
  width: min(320px, 100%);
  margin: 0 auto;
  color: #4a321c;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid span {
  display: grid;
  min-height: 41px;
  padding: .2rem;
  border: 1px solid rgba(90, 64, 34, .55);
  place-items: center;
  font-size: .76rem;
}

.calendar-weekdays span {
  min-height: 25px;
  background: #b8893c;
  color: #3f2912;
  font-weight: 700;
}

.calendar-days span {
  background: #fffdf7;
}

.calendar-days .event-day {
  position: relative;
  color: #51371e;
  font-weight: 700;
}

.calendar-days .event-day-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* contain: ornamen hari tidak gepeng mengikuti kotak sel kalender */
  object-fit: contain;
  pointer-events: none;
}

.countdown {
  display: grid;
  height: clamp(390px, 24vw, 448px);
  min-height: 0;
  padding: 0;
  background: #24130d url("../opt/81986bc6404a96edf84261e1bd3d06ce.webp") center 38% / cover no-repeat;
  text-align: center;
}

.countdown::before,
.countdown::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.countdown::before {
  z-index: 1;
  inset: -100% 0;
  opacity: .65;
  background-image:
    radial-gradient(circle, rgba(255, 239, 195, .9) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, .75) 0 1.8px, transparent 2.6px),
    radial-gradient(circle, rgba(244, 205, 130, .8) 0 2px, transparent 2.8px),
    radial-gradient(circle, rgba(255, 249, 225, .75) 0 1px, transparent 1.7px);
  background-position: 12px 8px, 70px 45px, 90px 13px, 34px 80px;
  background-size: 97px 137px, 151px 193px, 223px 277px, 131px 211px;
  animation: countdown-dust-fall 18s linear infinite;
}

.countdown::after {
  z-index: 0;
  background: rgba(24, 11, 7, .62);
}

.countdown-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.countdown h2 {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 100%;
  margin: 0;
  color: var(--story-gold);
  font-family: var(--story-display);
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  transform: translateX(-50%);
}

.countdown-display {
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(620px, 94vw);
  aspect-ratio: 799 / 632;
  transform: translate(-50%, -50%);
}

.countdown-scroll {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* rasio aset 1.264 ~ kotak 1.262 - contain menjaga proporsi tetap tepat */
  object-fit: contain;
}

.countdown-clock {
  position: absolute;
  top: 52%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 68%;
  gap: clamp(4px, .55vw, 10px);
  transform: translate(-50%, -50%);
}

.countdown-clock div {
  display: grid;
  position: relative;
  min-width: 0;
  padding: 0;
  color: #57371f;
}

.countdown-clock div + div::before {
  position: absolute;
  top: .08em;
  left: calc(clamp(4px, .55vw, 10px) * -1);
  color: #987546;
  content: ":";
  font-family: var(--story-serif);
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.countdown-clock strong {
  color: #57371f;
  font-family: var(--story-serif);
  font-size: clamp(1.65rem, 2.9vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
}

.countdown-clock span {
  margin-top: 5px;
  color: #76563c;
  font-size: clamp(.48rem, .65vw, .74rem);
  letter-spacing: .22em;
  text-transform: uppercase;
}

@keyframes countdown-dust-fall {
  to {
    background-position: 12px 308px, 70px 431px, 90px 513px, 34px 356px;
  }
}

.dedication {
  display: grid;
  height: clamp(480px, 33vw, 620px);
  min-height: 0;
  padding: 0;
  background:
    linear-gradient(rgba(112, 67, 30, .62), rgba(112, 67, 30, .62)),
    url("../opt/6cbe999adebdab2c9ee5b00fd963946a.webp") center / cover no-repeat;
  place-items: center;
}

.dedication-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.dedication-composition {
  position: relative;
  top: 35px;
  width: min(860px, 92vw);
  height: min(500px, 84%);
}

.dedication-paper {
  position: absolute;
  top: 0;
  left: 22%;
  width: 67%;
  height: 90%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 12px 5px rgba(35, 20, 9, .48));
}

.dedication-copy {
  position: absolute;
  top: 17%;
  left: 31%;
  z-index: 1;
  width: 50%;
  color: #704923;
  font-family: var(--story-serif);
  font-size: clamp(14px, .96vw, 18px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.38;
  text-align: justify;
}

.dedication-copy p {
  margin: 0;
}

.dedication-copy p + p {
  margin-top: .65em;
}

.dedication-portrait {
  position: absolute;
  top: 25%;
  left: 7%;
  z-index: 2;
  width: 22%;
  aspect-ratio: 585 / 800;
  margin: 0;
  overflow: hidden;
  filter: drop-shadow(0 5px 3px rgba(35, 20, 9, .5));
}

.story-page .dedication-portrait-photo,
.story-page .dedication-portrait-frame {
  display: none; /* kalah oleh .story-page img jika tidak pakai prefix */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dedication-portrait-rimsky {
  /* gabungan bingkai + foto: jaga proporsi agar tidak gepeng */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.dedication-portrait-photo {
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.22);
}

.dedication-portrait-frame {
  z-index: 1;
  max-width: none;
  /* bingkai ornamen: jaga proporsi agar tidak gepeng */
  object-fit: contain;
}

.dedication-clip {
  position: absolute;
  top: -7%;
  left: 70%;
  z-index: 3;
  width: 7%;
  max-width: none;
  height: 19%;
  object-fit: contain;
  transform: rotate(8deg);
  filter: drop-shadow(0 2px 2px rgba(27, 19, 13, .45));
}

.message {
  display: grid;
  padding: 2rem 1.25rem;
  place-items: center;
  background: url("../opt/renjana-background-terbaru.webp") center / cover no-repeat;
}

.message-card {
  width: min(650px, 100%);
  padding: 5rem clamp(1.5rem, 5vw, 3rem) 3rem;
  background: url("../opt/5d42e9daef153bbc69c6446a757b4260.webp") center / 100% 100% no-repeat;
  color: var(--story-ink);
  text-align: center;
}

.message-intro {
  margin: 0 auto 1.5rem;
  max-width: 580px;
  color: var(--story-ink);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.message-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.message-form > label {
  display: grid;
  gap: .35rem;
  color: #24190f;
  font-size: .95rem;
  font-weight: 600;
}

.message-form input:not([type="radio"]),
.message-form textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #bba174;
  border-radius: 2px;
  background: rgba(255, 253, 246, .88);
  color: #352414;
  font: 400 1rem var(--story-serif);
}

.message-form textarea {
  resize: vertical;
}

.rating-label {
  min-width: 0;
  padding: .8rem;
  border: 0;
}

.rating-label legend {
  padding: 0 .35rem;
  color: #24190f;
  font-size: .95rem;
  font-weight: 600;
}

.rating-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem;
}

.rating-options label {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-weight: 400;
}

.message-form .gold-button {
  justify-self: center;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: #714d27;
  text-align: center;
}

.form-status[data-state="error"] {
  color: #8a2b1c;
}

/* Perangkap spam: tak terlihat pada layar, tidak terbaca screen reader. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin: 0;
  font-size: .8rem;
  text-align: center;
}

.form-privacy a {
  color: inherit;
}

/* Kontrol audio: hanya muncul saat musik benar-benar diputar. */
.sound-toggle {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border: 1px solid rgba(215, 181, 110, .55);
  border-radius: 999px;
  background: rgba(30, 17, 7, .72);
  color: var(--story-paper);
  font: 600 clamp(.65rem, 1.6vw, .8rem) var(--story-serif);
  cursor: pointer;
  opacity: .85;
}

.sound-toggle[hidden] {
  display: none;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  opacity: 1;
}

.sound-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.sound-toggle[aria-pressed="true"] .sound-toggle__waves,
.sound-toggle:not([aria-pressed="true"]) .sound-toggle__slash {
  display: none;
}

.closing {
  display: flex;
  min-height: 480px;
  padding: clamp(4rem, 10vw, 8rem) 1.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("../opt/f8d004ebb056d8f94c6c7cf232dd2bf7.webp") center / cover no-repeat;
  text-align: center;
}

.closing h2 {
  width: min(880px, 100%);
  color: #f2dfb9;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-style: italic;
}

.closing-social-label {
  margin: 1.75rem 0 .75rem;
  color: #f2dfb9;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: .04em;
}

.closing a.closing-contact-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .65rem 1.1rem;
  border: 1px solid #25d366;
  border-radius: 999px;
  background-color: #25d366;
  color: #062f19 !important;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.closing a.closing-contact-link:hover,
.closing a.closing-contact-link:focus-visible {
  border-color: #20bd5a;
  background-color: #20bd5a;
  color: #041f10 !important;
  transform: translateY(-2px);
}

.closing-contact-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.closing-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.closing-social-links a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #f2dfb9;
  transition: color .2s ease, transform .2s ease;
}

.closing-social-links a:hover,
.closing-social-links a:focus-visible {
  color: #e2bc72;
  transform: translateY(-3px);
}

.closing-social-links a:focus-visible,
.back-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.closing-social-links svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.closing-social-icon-dot {
  fill: currentColor;
  stroke: none;
}

.closing-social-links a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #e7cf9e;
  text-underline-offset: .25em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes record-spin {
  to { transform: rotate(360deg); }
}

@keyframes cue-drop {
  0%, 100% { opacity: .45; transform: scaleY(.75); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 760px) {
  .story {
    display: block;
    height: 528px;
    min-height: 528px;
    padding: 0;
  }

  .story-art--paper { z-index: 1; }
  .story-art--letter { z-index: 2; }
  .story-art--books { z-index: 3; }
  .story-art--fold { z-index: 4; }
  .story-art--torn { z-index: 5; }
  .story-art--quill { z-index: 6; }

  .story .scroll-paper {
    position: absolute;
    top: 70px;
    left: 26px;
    z-index: 7;
    width: 247px;
    height: 210px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    transform: none;
  }

  .story .scroll-paper::before,
  .story .scroll-paper::after {
    display: none;
  }

  .story .scroll-paper h2 {
    position: absolute;
    top: 27px;
    left: 31px;
    width: 181px;
    font-size: 8px;
    line-height: 1.25;
    text-align: center;
  }

  .story .scroll-paper p:not(.eyebrow) {
    position: absolute;
    top: 48px;
    left: 31px;
    width: 181px;
    margin: 0;
    font-size: 7px;
    line-height: 1.2;
    text-align: center;
  }

  .story .scroll-paper .pull-quote {
    top: 120px;
    left: 160px;
    width: 160px;
    color: #522d01;
    font-size: 7px;
    line-height: 1.2;
    text-align: justify;
  }

  .scroll-paper {
    grid-column: 1;
  }

  .framed-memory {
    display: none;
  }

  .memory-photo--one {
    top: 2%;
  }

  .memory-photo--two {
    top: 36%;
    right: -5%;
  }

  .memory-photo--three {
    bottom: 2%;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gallery-frame {
    padding: .45rem .45rem 1.8rem;
    font-size: .95rem;
  }

  .gallery-frame--b {
    transform: translateY(12px) rotate(3deg);
  }

  .gallery-frame--c {
    grid-column: 1 / -1;
    width: min(65%, 300px);
    justify-self: center;
  }

  .portal {
    min-height: 560px;
  }

  .opening {
    height: max(100dvh, min(270vw, 1012.5px));
    min-height: 0;
  }

  .opening-art {
    height: min(100dvh, 165.33vw, 620px);
  }

  .opening-art .opening-background {
    height: max(100dvh, min(270vw, 1012.5px));
    object-fit: cover;
  }

  .opening-art .intro-paper {
    width: 72%;
    height: 110cqw;
  }

  .opening-copy-card {
    left: 40.27%;
    width: 56.67%;
  }

  .opening-art .intro-frame-group {
    top: 114cqw;
    left: 2cqw;
  }

  .opening-art .intro-vinyl {
    left: 0cqw;
  }

  .opening-art .intro-star {
    top: 156cqw;
    left: 70cqw;
  }

  .opening-art .intro-scroll {
    top: 149.82cqw;
    height: 115cqw;
    object-fit: fill;
  }

  .opening-caption {
    top: 187.34cqw;
    transform: translateY(3cqw);
  }

  .opening-caption-ornament--top {
    top: -3.5cqw;
  }

  .letter-hero {
    font-size: clamp(13px, 3.8cqw, 16px);
  }

  .opening-copy-card {
    font-size: clamp(13px, 4cqw, 16px);
  }

  .opening-caption strong {
    font-size: clamp(17px, 4.8cqw, 20px);
    line-height: 1.5;
  }

  .opening-caption span {
    margin-top: 0;
    font-size: clamp(15px, 4.3cqw, 18px);
    line-height: 1.4;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .story-note--primary {
    top: 23%;
  }

  .story-note--secondary {
    top: 53%;
  }

  .story-belief {
    top: 590px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .opening-art .intro-paper {
    width: 66cqw;
  }

  .opening-art .intro-vinyl {
    left: 0cqw;
  }

  .opening-art .intro-frame-group {
    left: 1cqw;
  }
}

@media (min-width: 761px) {
  body.story-page {
    background-image: url("../opt/opening-background-texture.webp");
  }

  .dedication-paper {
    left: 11%;
    width: 89%;
    height: 78%;
    object-fit: fill;
  }

  .opening {
    height: max(115vw, 930px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .opening-art {
    left: 50%;
    width: 100%;
    height: 100%;
    aspect-ratio: 750 / 1116;
  }

  .opening-composition {
    inset: 0;
    transform: translateY(-24%) scale(.65);
    transform-origin: center;
  }

  .opening-art .opening-background {
    left: -.53%;
    width: 98.93%;
    height: 100%;
    object-fit: cover;
  }

  .opening-art .open-envelope {
    top: 12.8cqw;
    left: 10.8cqw;
    width: 49.47cqw;
  }

  .opening-art .intro-paper {
    top: 62.13cqw;
    left: 34.4cqw;
    width: 60cqw;
    height: 46.67cqw;
  }

  .opening-art .intro-frame-group {
    top: 88.83cqw;
    left: 5.87cqw;
    width: 33.33cqw;
    height: 27.67cqw;
  }

  .intro-frame-group .intro-flourish--one {
    top: 84.4%;
    left: 12%;
    width: 89.6%;
    height: 19.27%;
  }

  .intro-frame-group .intro-flourish--two {
    top: -1.83%;
    left: 88.8%;
    width: 13.6%;
    height: 85.32%;
  }

  .intro-frame-group .intro-flourish--three {
    top: 6.42%;
    left: 3.2%;
    width: 89.6%;
    height: 19.27%;
  }

  .intro-frame-group .intro-flourish--four {
    top: 6.42%;
    left: 4%;
    width: 16%;
    height: 88.07%;
  }

  .opening-art .intro-scroll {
    top: 105.77cqw;
    left: 9.33cqw;
    width: 76.13cqw;
    height: 66cqw;
  }

  .opening-art .envelope-seal {
    top: 39.07cqw;
    left: 29.33cqw;
    width: 12.8cqw;
  }

  .opening-art .intro-vinyl {
    top: 53.6cqw;
    left: 3.47cqw;
    width: 22.93cqw;
  }

  .opening-art .intro-watch {
    top: 39.2cqw;
    left: 57.93cqw;
    width: 27.73cqw;
  }

  .opening-art .intro-star {
    top: 97.6cqw;
    left: 82cqw;
    width: 22.13cqw;
  }

  .letter-hero {
    top: 27cqw;
    left: 35.47cqw;
    width: 42.67cqw;
    font-size: 2.93cqw;
  }

  .opening-copy-card {
    top: 69.87cqw;
    left: 44.27cqw;
    width: 42.67cqw;
    font-size: 2.27cqw;
  }

  .opening-copy-text:first-child {
    width: 98%;
  }

  .opening-copy--second {
    margin-top: 1.07cqw;
  }

  .opening-caption {
    top: 133.08cqw;
    left: 23.2cqw;
    width: 49.87cqw;
  }

  .opening-caption strong {
    font-size: 2.55cqw;
    line-height: 1.5;
  }

  .opening-caption span {
    margin-top: 0;
    font-size: 2.15cqw;
    line-height: 1.4;
  }

  .story-collage {
    width: min(100vw, 750px);
    background-size: 1738px 1146px;
  }

  .story {
    display: block;
    height: 1056px;
    min-height: 1056px;
    padding: 0;
  }

  .story-art--paper {
    top: 140px;
    left: 52px;
    width: 494px;
    height: 300px;
  }

  .story-art--letter {
    top: 150px;
    left: 98px;
    width: 296px;
    height: 266px;
  }

  .story-art--books {
    top: 172px;
    left: 382px;
    width: 168px;
    height: 186px;
  }

  .story-art--fold {
    top: 338px;
    left: 352px;
    width: 368px;
    height: 270px;
  }

  .story-art--torn {
    top: 354px;
    left: 332px;
    width: 384px;
    height: 224px;
  }

  .story-art--quill {
    top: 304px;
    left: 20px;
    width: 192px;
    height: 172px;
  }

  .story .scroll-paper {
    position: absolute;
    top: 140px;
    left: 52px;
    z-index: 7;
    width: 494px;
    height: 420px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .story .scroll-paper::before,
  .story .scroll-paper::after {
    display: none;
  }

  .story .scroll-paper h2 {
    position: absolute;
    top: 54px;
    left: 62px;
    width: 362px;
    font-size: 16px;
    line-height: 1.25;
  }

  .story .scroll-paper p:not(.eyebrow) {
    position: absolute;
    top: 96px;
    left: 62px;
    width: 362px;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .story .scroll-paper .pull-quote {
    top: 240px;
    left: 320px;
    width: 320px;
    font-size: 14px;
  }
}

@media (min-width: 761px) and (max-height: 500px) {
  .opening .scroll-cue {
    display: none;
  }
}

@media (max-width: 420px) {
  .scroll-paper {
    padding: 2.3rem 1.6rem;
  }

  .scroll-paper::before,
  .scroll-paper::after {
    width: 28px;
  }

  .scroll-paper::before {
    left: -15px;
  }

  .scroll-paper::after {
    right: -15px;
  }

  .countdown-clock {
    gap: .35rem;
  }

  .countdown-clock div {
    padding: .7rem .25rem;
  }

  .countdown-clock span {
    font-size: .68rem;
    letter-spacing: .04em;
  }

  .calendar {
    padding: .35rem;
  }

  .calendar-grid span {
    min-height: 30px;
    padding: .15rem;
    font-size: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .story {
    height: 526px;
    min-height: 526px;
  }

  .portal {
    display: grid;
    height: auto;
    min-height: 0;
    padding: 16px 0;
    background-position: center;
  }

  .portal-backdrop {
    width: 100%;
  }

  .portal-collage {
    width: 100%;
    height: auto;
    aspect-ratio: 920 / 760;
  }

  .portal-title {
    font-size: clamp(.72rem, 3.2vw, .9rem);
  }

  .portal-postcard-copy {
    top: 29%;
  }

  .portal-postcard-copy .portal-lead {
    margin-bottom: 4px;
    font-size: clamp(.68rem, 3vw, .82rem);
  }

  .portal-postcard-copy > p:not(.portal-lead) {
    width: 92%;
    font-size: clamp(.54rem, 2.4vw, .66rem);
  }

  .portal-detail {
    left: 25%;
    width: 17%;
    font-size: clamp(.62rem, 2.8vw, .78rem);
  }

  .event {
    display: grid;
    height: auto;
    min-height: 0;
    padding: 48px 16px 40px;
    background-position: center;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }

  .event::after {
    background: transparent;
  }

  .event-backdrop img {
    object-position: center;
  }

  .event-backdrop::after {
    background: rgba(70, 43, 20, .58);
  }

  .event-content,
  .event-venue {
    max-width: 320px;
  }

  .event-content h2 {
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 7vw, 2rem);
  }

  .event-date {
    width: min(280px, 100%);
    min-height: 38px;
    margin-top: 12px;
    font-size: 1rem;
  }

  .event-photo {
    width: min(220px, 100%);
    height: 182px;
    padding: 7px;
    border-width: 5px;
  }

  .calendar {
    width: min(300px, 100%);
  }

  .calendar-grid span {
    min-height: clamp(28px, 8vw, 34px);
    padding: 2px;
    font-size: clamp(.68rem, 2.8vw, .75rem);
  }

  .calendar-weekdays span {
    min-height: 23px;
  }

  .venue {
    margin: 10px 0 12px;
    font-size: clamp(.95rem, 4vw, 1.1rem);
  }

  .maps-link {
    min-height: 38px;
    font-size: 1rem;
  }

  .countdown {
    height: clamp(290px, 72vw, 344px);
    min-height: 0;
    padding: 0;
    background-position: center 38%;
  }

  .countdown h2 {
    top: 18%;
    font-size: clamp(1.25rem, 5.3vw, 1.55rem);
  }

  .countdown-display {
    top: 60%;
    width: min(90vw, 620px);
  }

  .countdown-clock {
    width: 68%;
    gap: clamp(4px, 1vw, 6px);
  }

  .countdown-clock div + div::before {
    top: .08em;
    left: calc(clamp(4px, 1vw, 6px) * -1);
    font-size: clamp(1.3rem, 5vw, 1.65rem);
    /* Kolon harus turun sedikit agar sejajar dengan tinggi digit; mobile-checked 412px */
    transform: translateY(.57em);
  }

  .countdown-clock strong {
    font-size: clamp(1.3rem, 7vw, 1.95rem);
  }

  .countdown-clock span {
    margin-top: 3px;
    font-size: clamp(.42rem, 1.8vw, .53rem);
    letter-spacing: .16em;
  }

  .dedication {
    height: 73vw;
    min-height: 340px;
    max-height: 560px;
    background-position: center;
  }

  .dedication-composition {
    top: 0;
    width: 100%;
    height: 100%;
  }

  .dedication-paper {
    top: 16%;
    left: 23.3%;
    width: 73%;
    height: 77%;
    object-fit: fill;
  }

  .dedication-copy {
    top: 32%;
    left: 33.3%;
    width: 56%;
    font-size: clamp(9px, 2.25vw, 12px);
    line-height: 1.3;
  }

  /* Jarak antar paragraf teks dedikasi di mobile: sedikit lebih lega */
  .dedication-copy p + p {
    margin-top: .95em;
  }

  .dedication-portrait {
    top: 38%;
    left: 7.5%;
    width: 24%;
  }

  .dedication-clip {
    top: 8%;
    left: 75%;
    width: 13%;
    height: 20%;
  }

  .message {
    height: auto;
    min-height: 0;
    padding: 8px 12px;
  }

  .message-card {
    width: 100%;
    padding: 44px 9% 38px;
    text-align: center;
  }

  .message-intro {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.35;
  }

  .message-form {
    gap: 7px;
  }

  .message-form > label {
    gap: 2px;
    font-size: 8px;
  }

  .message-form input:not([type="radio"]),
  .message-form textarea {
    padding: 5px 6px;
    font-size: 9px;
  }

  .message-form textarea {
    min-height: 40px;
  }

  .rating-label {
    padding: 5px;
  }

  .rating-label legend {
    font-size: 8px;
  }

  .rating-options {
    gap: 2px;
  }

  .rating-options label {
    font-size: 7px;
  }

  .message-form .gold-button {
    padding: 5px 10px;
    font-size: 8px;
  }

  .form-status {
    font-size: 8px;
  }

  .closing {
    min-height: 360px;
    padding: 58px 20px;
  }

  .closing h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .closing-social-label,
  .closing .back-link {
    font-size: .9rem;
  }

  .closing-social-links {
    gap: 1rem;
  }

  .closing-social-links a {
    width: 44px;
    height: 44px;
  }
}

  @media (min-width: 761px) {
    .rating-options {
      gap: .35rem;
    }

    .rating-options label {
      position: relative;
      min-height: 46px;
      flex: 1 1 0;
      justify-content: center;
      border-radius: 5px;
      background: #e6e6e6;
      cursor: pointer;
    }

    .rating-options label:focus-within {
      outline: 2px solid #a47a38;
      outline-offset: 2px;
    }

    .rating-options input {
      position: absolute;
      width: 100%;
      height: 100%;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
  }

  .open-envelope,
  .intro-paper,
  .intro-scroll,
.intro-frame,
.envelope-seal,
.intro-watch,
.intro-star,
.opening-copy-card,
.opening-caption {
  animation: opening-arrive .85s cubic-bezier(.2, .7, .2, 1) both;
}

.letter-hero {
  animation: opening-fade .85s ease .3s both;
}

.open-envelope { animation-delay: .15s; }
.intro-paper { animation-delay: .3s; }
.intro-scroll { animation-delay: .45s; }
.intro-frame { animation-delay: .6s; }
.envelope-seal { animation-delay: .7s; }
.intro-watch,
.intro-star { animation-delay: .75s; }
.letter-hero { animation-delay: .3s; }
.opening-copy-card { animation-delay: .55s; }
.opening-caption { animation-delay: .8s; }

.opening-art .intro-vinyl {
  animation: vinyl-spin 24s linear infinite;
  transform-origin: center;
}

.opening-art .intro-paper {
  transform: rotate(3deg) scaleY(1.22);
  transform-origin: center;
}

@media (min-width: 761px) {
  .opening-art .intro-paper {
    transform: rotate(3deg) scaleX(1.5) scaleY(1.22);
  }
}

.opening-copy-card {
  transform: rotate(3deg);
  transform-origin: center;
}

.opening-art .intro-scroll {
  transform: scaleY(1.22);
  transform-origin: center;
}

.opening-art .intro-paper,
.opening-art .intro-scroll,
.opening-copy-card,
.opening-caption {
  animation-name: opening-fade;
}

.gallery-frame.reveal {
  opacity: 0;
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}

.gallery-frame.reveal.is-visible {
  opacity: 1;
}

.gallery-frame--a.reveal {
  transform: translateY(24px) rotate(-5deg);
}

.gallery-frame--a.reveal.is-visible {
  transform: rotate(-5deg);
}

.gallery-frame--b.reveal {
  transform: translateY(8px) rotate(3deg);
}

.gallery-frame--b.reveal.is-visible {
  transform: translateY(-16px) rotate(3deg);
}

.gallery-frame--c.reveal {
  transform: translateY(24px) rotate(-2deg);
}

.gallery-frame--c.reveal.is-visible {
  transform: rotate(-2deg);
}

.gallery-frame--d.reveal {
  transform: translateY(24px) rotate(2deg);
}

.gallery-frame--d.reveal.is-visible {
  transform: rotate(2deg);
}

.gallery-frame--b { transition-delay: .12s; }
.gallery-frame--c { transition-delay: .24s; }
.gallery-frame--d { transition-delay: .36s; }

.portal-title.reveal,
.portal-postcard-copy.reveal,
.portal-detail.reveal {
  opacity: 0;
  transition: opacity .65s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}

.portal-title.reveal,
.portal-postcard-copy.reveal {
  transform: translateY(14px);
}

.portal-title.reveal.is-visible,
.portal-postcard-copy.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.portal-detail.reveal {
  transform: translateY(14px) rotate(5deg);
}

.portal-detail.reveal.is-visible {
  opacity: 1;
  transform: rotate(5deg);
}

@media (min-width: 761px) {
  .portal-detail {
    left: 25%;
    width: 17%;
    font-size: clamp(1.05rem, 1.5vw, 1.4rem);
    transform: rotate(5deg);
  }

  .portal-detail.reveal {
    transform: translateY(14px) rotate(5deg);
  }

  .portal-detail.reveal.is-visible {
    transform: rotate(5deg);
  }
}

.portal-art.reveal {
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .65s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}

.portal-art.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portal-art--network.reveal.is-visible {
  opacity: .2;
}

.portal-art--postcard.reveal {
  transform: translateY(14px) rotate(-2deg) scale(.97);
}

.portal-art--postcard.reveal.is-visible {
  transform: rotate(-2deg);
}

.portal-art--network { transition-delay: .08s; }
.portal-art--postcard { transition-delay: .18s; }
.portal-art--display { transition-delay: .28s; }
.portal-detail { transition-delay: .36s; }

.dedication-composition.reveal {
  opacity: 0;
  transform: translateY(18px) rotate(-1.2deg);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.dedication-composition.reveal.is-visible {
  opacity: 1;
  transform: rotate(-1.2deg);
}

@keyframes opening-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes opening-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .gallery-frame--b.reveal.is-visible {
    transform: translateY(12px) rotate(3deg);
  }

}

@media (prefers-reduced-motion: reduce) {
  .open-envelope,
  .intro-paper,
  .intro-scroll,
  .intro-frame,
  .intro-watch,
  .intro-star,
  .opening-copy-card,
  .opening-caption,
  .opening-art .intro-vinyl,
  .opening-art .envelope-seal,
  .opening-art .intro-watch {
    animation: none;
  }

  .letter-hero {
    animation: none;
  }

  .gallery-frame,
  .portal-art,
  .dedication-composition {
    transition: none;
  }

  .gallery-frame.reveal {
    opacity: 1;
  }
}

.story {
  display: block;
  height: 100dvh;
  min-height: 900px;
  padding: 0;
  background: #382819;
}

.story-collage {
  z-index: 0;
  inset: 0;
  left: 0;
  width: 100%;
  transform: none;
  background:
    linear-gradient(rgba(48, 32, 17, .48), rgba(48, 32, 17, .56)),
    url("../opt/08c459ccfe052cc5663d7e6846086ecb.webp") center / cover no-repeat;
  container-type: inline-size;
}

.story-collage .story-art {
  height: auto;
}

.story-art--paper {
  z-index: 1;
  top: 9%;
  left: 27%;
  width: 36cqw;
}

.story-art--letter {
  z-index: 2;
  top: 45px;
  left: 11%;
  width: min(34cqw, 470px);
  opacity: .32;
}

.story-art--books {
  z-index: 0;
  top: 7%;
  left: 55%;
  width: 13cqw;
}

.story-art--fold {
  z-index: 5;
  top: 37%;
  left: 45%;
  width: 32cqw;
}

.story-art--torn {
  z-index: 4;
  top: 38%;
  left: 47%;
  width: 30cqw;
}

.story-art--quill {
  z-index: 5;
  top: 30%;
  left: 25%;
  width: 9cqw;
  transform: scaleX(-1);
}

.story-note {
  position: absolute;
  z-index: 6;
  color: #4b2e17;
  font-family: var(--story-hand);
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 1px rgba(255, 245, 220, .28);
}

.story-note--primary {
  top: 13%;
  left: 29%;
  width: 32cqw;
  transform: rotate(-2deg);
}

.story-note--primary h2 {
  margin: 0 0 .55rem;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.story-note--primary p,
.story-note--secondary p {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.42;
  text-align: center;
}

.story-note--secondary {
  top: 41%;
  left: 49%;
  width: 27cqw;
  transform: rotate(2deg);
}

.story-belief {
  position: absolute;
  z-index: 7;
  top: 520px;
  left: 10%;
  width: 80%;
  margin: 0;
  color: #f1e1bd;
  font-family: var(--story-hand);
  font-size: clamp(18px, 1.65vw, 24px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 8px rgba(24, 14, 6, .75);
}

.story-marquee {
  position: absolute;
  z-index: 8;
  top: 630px;
  left: 0;
  width: 100%;
  height: clamp(170px, 18vw, 240px);
  overflow: hidden;
  border-block: 6px solid #a27c43;
  background: rgba(73, 48, 24, .75);
}

.story-marquee__track,
.story-marquee__group {
  display: flex;
  height: 100%;
}

.story-marquee__track {
  width: max-content;
  animation: story-marquee-scroll 42s linear infinite;
}

.story-marquee__group {
  gap: 5px;
  padding-right: 5px;
}

.story-marquee__group figure {
  flex: 0 0 min(33.333vw, 420px);
  height: 100%;
  margin: 0;
  padding: 4px;
  background: #816033;
}

.story-marquee__group img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(.12) contrast(.95);
}

.story-marquee:hover .story-marquee__track {
  animation-play-state: paused;
}

.story-note.reveal {
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
}

.story-note--primary.reveal {
  transform: translateY(18px) rotate(-2deg);
}

.story-note--secondary.reveal {
  transform: translateY(18px) rotate(2deg);
}

.story-note.reveal.is-visible {
  opacity: 1;
}

.story-note--primary.reveal.is-visible {
  transform: rotate(-2deg);
}

.story-note--secondary.reveal.is-visible {
  transform: rotate(2deg);
}

.story-belief.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}

.story-belief.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes story-marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .story {
    height: 530px;
    min-height: 530px;
  }

  .story-collage {
    background:
      linear-gradient(rgba(48, 32, 17, .46), rgba(48, 32, 17, .54)),
      url("../opt/08c459ccfe052cc5663d7e6846086ecb.webp") center / cover no-repeat;
  }

  .story-art--paper {
    top: 44px;
    left: 6%;
    width: 72%;
  }

  .story-art--letter {
    top: 54px;
    left: 12%;
    width: 43%;
    opacity: .18;
  }

  .story-art--books {
    top: 55px;
    left: 66%;
    width: 17%;
  }

  .story-art--fold {
    top: 157px;
    left: 44%;
    width: 58%;
    transform: rotate(5deg);
  }

  .story-art--torn {
    top: 164px;
    left: 45%;
    width: 57%;
    transform: rotate(5deg);
  }

  .story-art--quill {
    top: 141px;
    left: 5%;
    width: 20%;
    transform: scaleX(-1);
  }

  .story-note {
    line-height: 1.32;
  }

  .story-note--primary {
    top: 61px;
    left: 9%;
    width: 56%;
  }

  .story-note--primary h2 {
    margin-bottom: 3px;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.28;
  }

  .story-note--primary p,
  .story-note--secondary p {
    font-size: clamp(10.5px, 3vw, 12px);
    line-height: 1.3;
  }

  .story-note--secondary {
    top: 180px;
    left: 48%;
    width: 50%;
    transform: rotate(5deg);
  }

  .story-note--secondary.reveal.is-visible {
    transform: rotate(2deg);
  }

  .story-belief {
    top: 313px;
    left: 6%;
    width: 88%;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.25;
  }

  .story-marquee {
    top: 375px;
    height: clamp(112px, 30vw, 132px);
    border-block-width: 5px;
  }

  .story-marquee__group {
    gap: 4px;
    padding-right: 4px;
  }

  .story-marquee__group figure {
    flex-basis: 33.333vw;
    padding: 3px;
  }
}

@media (max-width: 340px) {
  .story-art--paper {
    left: 4%;
    width: 76%;
  }

  .story-art--fold {
    left: 38%;
    width: 65%;
  }

  .story-art--torn {
    left: 38%;
    width: 65%;
  }
}

@media (min-width: 761px) {
  .story {
    height: max(100dvh, 900px);
    min-height: 900px;
  }

  .story-art--fold {
    top: 30%;
    left: 49%;
    width: 26cqw;
    transform: rotate(4deg);
  }

  .story-art--torn {
    top: 31%;
    left: 49%;
    width: 26cqw;
    transform: rotate(4deg);
  }

  .story-note--secondary {
    top: 36%;
    left: 50.75%;
    width: 22.5cqw;
    transform: rotate(4deg);
  }

  .story-note--secondary.reveal.is-visible {
    transform: rotate(4deg);
  }

  .story-belief {
    top: 555px;
    left: 13%;
    width: 74%;
  }

  .story-note--secondary p {
    font-size: clamp(15px, 1.05vw, 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-marquee__track {
    animation: none;
  }

  .story-note.reveal,
  .story-belief.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
