/* ============================================================
   Simran & Yash — 22–24 November 2026, Bangkok
   Rebuilt from Website(UpdatedWording).psb (1080 × 11091)
   Coordinate system: --x/--y are % of the design canvas;
   1cqw = canvas-width / 100 (10.8px at full 1080px scale).
   ============================================================ */

@font-face { font-family: 'Carnero Light';    src: url('../public/fonts/Carnero-Light.woff2') format('woff2');    font-display: block; }
@font-face { font-family: 'Carnero';          src: url('../public/fonts/Carnero-Regular.woff2') format('woff2');  font-display: block; }
@font-face { font-family: 'Carnero Book';     src: url('../public/fonts/Carnero-Book.woff2') format('woff2');     font-display: block; }
@font-face { font-family: 'Carnero Italic';   src: url('../public/fonts/Carnero-Italic.woff2') format('woff2');   font-style: italic; font-display: block; }
@font-face { font-family: 'Carnero SemiBold'; src: url('../public/fonts/Carnero-SemiBold.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Grand Amoura';     src: url('../public/fonts/Grand-Amoura-Demo.woff2') format('woff2');font-display: block; }

:root {
  --cream:   #F8EDD9;
  --teal:    #045162;
  --dark:    #093739;
  --green:   #3D5C32;
  --purple:  #956BC7;
  --olive:   #657935;
  --red:     #A53123;
  --magenta: #AB3169;
  --brick:   #CE4239;
  --rose:    #B87271;
  --gold:    #655E3C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  font-family: 'Carnero Book', 'Carnero', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- page canvas: full bleed on every screen ---------- */
.page {
  position: relative;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}

.art { display: block; }
.strip { display: block; width: 100%; height: auto; }

/* ---------- positioned layers ---------- */
.sprite {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  pointer-events: none;
}
.sprite img { display: block; width: 100%; height: auto; }

.t {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: max-content;
  max-width: 98cqw;
  text-align: center;
  translate: -50% 0;
  text-decoration: none;
}

.anchor {
  position: absolute;
  top: calc(var(--y) * 1%);
}

/* ---------- typography (sizes = design px / 10.8) ---------- */
.blessing { font-size: 2.6cqw; line-height: 1.25; }

.names {
  font-family: 'Grand Amoura', cursive;
  font-size: 9.278cqw;
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  /* Grand Amoura's capital Y extends past its advance width. Safari may
     otherwise crop that overhang when this heading is composited. */
  padding-inline: 0.14em;
  translate: 0 -0.08em;
}
.names.amp { line-height: 0.86em; }

.fam { font-size: 2.08cqw; line-height: 1.22; }

.ga-head {
  font-family: 'Grand Amoura', cursive;
  font-size: 8.056cqw;
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  translate: 0 -0.08em;
}

.day {
  font-family: 'Carnero SemiBold', 'Carnero', serif;
  font-size: 3.9cqw;
  line-height: 1;
  letter-spacing: 0.04em;
  translate: 0 -0.1em;
}
.num {
  font-family: 'Carnero SemiBold', 'Carnero', serif;
  font-size: 7.361cqw;
  line-height: 1;
  translate: 0 -0.06em;
}

.itin-script {
  display: inline-block;
  font-family: 'Grand Amoura', cursive;
  font-weight: 700;
  font-size: 5.667cqw;
  line-height: 1;
  letter-spacing: -0.02em;
  translate: 0 -0.08em;
}
a.t .itin-script { cursor: pointer; }
a.t { pointer-events: auto; }

.venue { font-size: 2.85cqw; line-height: 1.15; translate: 0 -0.16em; }

.kicker {
  font-size: 2.352cqw;
  line-height: 1;
  letter-spacing: 0.05em;
  translate: 0 -0.1em;
}

.ga-title {
  font-family: 'Grand Amoura', cursive;
  font-size: 7.713cqw;
  font-weight: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  translate: 0 -0.14em;
}

.details { font-size: 2.5cqw; line-height: 1.24; translate: 0 -0.16em; }
.details strong { font-family: 'Carnero SemiBold', serif; font-weight: normal; }

.para { font-size: 2.32cqw; line-height: 1.24; translate: 0 -0.16em; }
.para p + p { margin-top: 0.55em; }
/* soft cream halo where a paragraph brushes the artwork below it */
.para.veil {
  text-shadow:
    0 0 10px rgba(248, 237, 217, 0.95),
    0 0 18px rgba(248, 237, 217, 0.9),
    0 0 30px rgba(248, 237, 217, 0.85),
    0 0 44px rgba(248, 237, 217, 0.7);
}
.para em { font-family: 'Carnero Italic', serif; font-style: italic; }
.para strong { font-family: 'Carnero SemiBold', serif; font-weight: normal; }
.thai { font-family: 'Carnero Italic', 'Noto Sans Thai', 'Thonburi', sans-serif; }

/* ---------- colors ---------- */
.c-teal    { color: var(--teal); }
.c-dark    { color: var(--dark); }
.c-green   { color: var(--green); }
.c-purple  { color: var(--purple); }
.c-olive   { color: var(--olive); }
.c-red     { color: var(--red); }
.c-magenta { color: var(--magenta); }
.c-brick   { color: var(--brick); }
.c-rose    { color: var(--rose); }
.c-gold    { color: var(--gold); }
.c-black   { color: #000; }

/* ---------- entrance animations ---------- */
.reveal {
  opacity: 0;
  transition:
    opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.slow { transition-duration: 2s, 2s; }

.fx-rise  { transform: translateY(3cqw); }
.fx-fade  { transform: none; }
.fx-down  { transform: translateY(-4cqw); }
.fx-left  { transform: translateX(-7cqw); }
.fx-right { transform: translateX(7cqw); }
.fx-pop   { transform: scale(0.82); }
.fx-bloom { transform: scale(0.7) rotate(-6deg); transition-duration: 1.8s, 1.8s; }
.fx-rise.ga-title, .fx-rise.ga-head, .fx-rise.names { transform: translateY(3cqw) scale(0.94); }

.reveal.in { opacity: 1; transform: none; }
.fx-rise.ga-title.in, .fx-rise.ga-head.in, .fx-rise.names.in { transform: none; }

/* gentle continuous motion (applied to wrappers so it
   doesn't fight the entrance transition) */
.float-slow { animation: floaty 6s ease-in-out infinite alternate; }
.float-sway { animation: sway 4.5s ease-in-out infinite alternate; }

@keyframes floaty {
  from { margin-top: 0; }
  to   { margin-top: 0.9cqw; }
}
@keyframes sway {
  from { transform: rotate(-1.6deg); }
  to   { transform: rotate(1.6deg); }
}

/* ---------- accessibility ----------
   With reduced motion, keep a gentle opacity-only fade
   (no movement) so the page still feels alive. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none !important; transition: opacity 0.9s ease; }
  .float-slow, .float-sway { animation: none; }
}

::selection { background: rgba(4, 81, 98, 0.2); }

/* ============================================================
   Seal splash screen — tap to break the seal, start the music,
   and let the two halves part like an envelope opening.
   ============================================================ */
body.locked { overflow: hidden; height: 100dvh; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.splash { perspective: 1400px; perspective-origin: 50% 50%; }

.splash-panel {
  position: absolute;
  top: 0;
  width: 50.05%;
  height: 100%;
  background: #145864;
  transition: transform 2.4s cubic-bezier(0.7, 0, 0.3, 1) 1s;
  will-change: transform;
}
.splash-left {
  left: 0;
  transform-origin: left center;
  background: radial-gradient(180% 130% at 100% 50%, #1A6472 0%, #145864 55%, #0D4450 100%);
}
.splash-right {
  right: 0;
  transform-origin: right center;
  background: radial-gradient(180% 130% at 0% 50%, #1A6472 0%, #145864 55%, #0D4450 100%);
}

.seal {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  text-align: center;
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.seal-ring {
  width: min(46vw, 34vh, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 219, 0.55);
  outline: 1px solid rgba(242, 237, 219, 0.25);
  outline-offset: 6px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  animation: seal-breathe 3.6s ease-in-out infinite;
}
.seal-ring img {
  width: 62%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

/* ---------- the seal as a timepiece ---------- */
.seal-ring.watch { position: relative; }
.watch-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.watch-ticks line { stroke: rgba(242, 237, 219, 0.55); }
.watch-ticks line.hr { stroke: rgba(242, 237, 219, 0.9); }
.seal-ring.watch .watch-mark {
  width: 44%;
  translate: 0 -14%;
}
.subdial {
  position: absolute;
  left: 50%;
  top: 66%;
  translate: -50% 0;
  width: 27%;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 237, 219, 0.5);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.subdial-day {
  font-family: 'Carnero SemiBold', serif;
  font-size: clamp(15px, 5.2vw, 26px);
  line-height: 1;
  color: rgba(242, 237, 219, 0.95);
}
.subdial-mon {
  font-family: 'Carnero Light', serif;
  font-size: clamp(7px, 2vw, 10px);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: rgba(242, 237, 219, 0.8);
}
.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  translate: -50% 0;
  border-radius: 2px;
  rotate: var(--rot, 0deg);
}
.hand-h { width: 2.5px; height: 24%; background: rgba(242, 237, 219, 0.9); }
.hand-m { width: 2px;   height: 34%; background: rgba(242, 237, 219, 0.75); }
.hand-s { width: 1px;   height: 40%; background: #D8B65C; }
.watch-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D8B65C;
  border: 1px solid rgba(20, 88, 100, 0.8);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4.5vw, 26px);
  margin-top: 4.5vh;
}
.countdown > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.countdown span {
  font-family: 'Carnero SemiBold', serif;
  font-size: clamp(20px, 6vw, 30px);
  line-height: 1;
  color: rgba(242, 237, 219, 0.96);
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-family: 'Carnero Light', serif;
  font-size: clamp(8px, 2.2vw, 10px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(242, 237, 219, 0.65);
}
.seal-hint {
  margin-top: 2.6vh;
  font-family: 'Carnero Light', serif;
  font-size: clamp(11px, 3vw, 14px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(242, 237, 219, 0.85);
  animation: hint-pulse 2.4s ease-in-out infinite;
}

@keyframes seal-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* opening sequence: the seal melts away first, then the two doors
   swing open like a box while the whole screen dissolves */
.splash {
  transition: opacity 1.6s ease 1.6s;
}
.splash.opening { cursor: default; pointer-events: none; opacity: 0; }
.splash.opening .seal {
  opacity: 0;
  transform: scale(1.12);
}
.splash.opening .seal-ring { animation: none; }
.splash.opening .splash-left  { transform: rotateY(94deg); }
.splash.opening .splash-right { transform: rotateY(-94deg); }
.splash.gone { display: none; }

/* credits roll-up: the card waits below the fold behind the doors,
   then glides up into place as they open */
.page.pre-roll { transform: translateY(45vh); }
.page.rolling {
  transform: translateY(0);
  transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .page.pre-roll { transform: none; }
}

/* music toggle */
.audio-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(4, 81, 98, 0.35);
  background: rgba(248, 237, 217, 0.92);
  color: var(--teal);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(9, 55, 57, 0.18);
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}
.audio-toggle:not([hidden]) { opacity: 1; }
.audio-toggle .ic-off { display: none; width: 27px; height: auto; }
/* music off → the button becomes a little teal seal showing the SY mark */
.audio-toggle[aria-pressed="false"] {
  background: #145864;
  border-color: rgba(242, 237, 219, 0.5);
}
.audio-toggle[aria-pressed="false"] .ic-on { display: none; }
.audio-toggle[aria-pressed="false"] .ic-off { display: block; }

/* ============================================================
   Notch header, mobile bottom nav, FAQ modal
   ============================================================ */

/* ---------- floating notch (shared pill style) ---------- */
.notch, .bottom-nav {
  position: fixed;
  left: 50%;
  z-index: 85;
  display: flex;
  align-items: center;
  background: rgba(13, 68, 80, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(9, 55, 57, 0.3);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

/* desktop: floats below the top edge */
.notch {
  top: 14px;
  gap: 22px;
  padding: 9px 26px;
  transform: translate(-50%, calc(-100% - 20px));
}
body.nav-in .notch { transform: translate(-50%, 0); }

.notch-mark { display: block; line-height: 0; }
.notch-mark img { width: 34px; height: auto; }

.notch-nav { display: flex; align-items: center; gap: 20px; }
.notch-nav a, .notch-faq {
  font-family: 'Carnero Light', serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 237, 219, 0.9);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}
.notch-nav a:hover, .notch-faq:hover { color: #fff; }

/* ---------- mobile bottom nav: the same notch, floating at the bottom ---------- */
.bottom-nav {
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: none;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 16px;
  transform: translate(-50%, calc(100% + 24px));
}
body.nav-in .bottom-nav { transform: translate(-50%, 0); }

/* hide on scroll down, return on scroll up (js toggles nav-hidden) */
.bottom-nav.nav-ready { transition: transform 0.35s ease; }
body.nav-in .bottom-nav.nav-hidden { transform: translate(-50%, calc(100% + 30px)); }

.bottom-nav a, .bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 10px 4px;
  font-family: 'Carnero Light', serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(242, 237, 219, 0.9);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (max-width: 700px) {
  .bottom-nav { display: flex; }
  .notch { display: none; }              /* no top notch on mobile */
  .audio-toggle { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- FAQ modal ---------- */
.faq-overlay[hidden] { display: none; }
.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background: rgba(9, 55, 57, 0.45);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.faq-overlay.open { opacity: 1; }

.faq-modal {
  position: relative;
  width: min(560px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: 18px;
  padding: 34px 34px 28px;
  box-shadow: 0 24px 70px rgba(9, 55, 57, 0.4);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-overlay.open .faq-modal { transform: none; }

.faq-handle { display: none; }

.faq-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(4, 81, 98, 0.08);
  color: var(--teal);
  font-size: 14px;
  cursor: pointer;
}
.faq-close:hover { background: rgba(4, 81, 98, 0.16); }

.faq-title {
  font-family: 'Grand Amoura', cursive;
  font-size: 34px;
  font-weight: normal;
  color: var(--dark);
  text-align: center;
  margin-bottom: 18px;
}

.faq-info {
  background: rgba(4, 81, 98, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.faq-info h3 {
  font-family: 'Carnero', serif;
  font-weight: normal;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.faq-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.faq-info h4 {
  font-family: 'Carnero', serif;
  font-weight: normal;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}
.faq-info ul { list-style: none; }
.faq-info li, .faq-info p {
  font-family: 'Carnero Light', serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #34514f;
}

.faq-contacts { list-style: none; }
.faq-contacts li {
  font-family: 'Carnero Light', serif;
  font-size: 14px;
  line-height: 1.7;
  color: #34514f;
}
.faq-contacts li span {
  font-family: 'Carnero', serif;
  color: var(--dark);
}
.faq-contacts li span::after { content: ' · '; color: var(--teal); }
.faq-contacts a { color: var(--teal); text-underline-offset: 2px; }

.faq-list a { color: var(--teal); text-underline-offset: 2px; }
.faq-list p + p { margin-top: 10px; }
.faq-list details p { padding: 0 2px; }
.faq-list details p:last-child { padding-bottom: 14px; }

@media (max-width: 700px) {
  .faq-info-grid { grid-template-columns: 1fr; }
}

.faq-list details {
  border-bottom: 1px solid rgba(4, 81, 98, 0.14);
  padding: 4px 0;
}
.faq-list summary {
  font-family: 'Carnero', serif;
  font-size: 15.5px;
  color: var(--dark);
  padding: 12px 26px 12px 2px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  font-family: 'Carnero Light', serif;
  font-size: 20px;
  color: var(--teal);
  transition: rotate 0.3s ease;
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list p {
  font-family: 'Carnero Light', serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: #34514f;
  padding: 0 2px 14px;
}

/* mobile: bottom sheet */
@media (max-width: 700px) {
  .faq-overlay { place-items: end stretch; }
  .faq-modal {
    width: 100%;
    max-height: 82dvh;
    border-radius: 22px 22px 0 0;
    padding: 14px 22px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .faq-overlay.open .faq-modal { transform: none; }
  .faq-handle {
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: rgba(4, 81, 98, 0.25);
    margin: 0 auto 12px;
  }
  .faq-title { font-size: 30px; }
}

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  /* the one-time door opening (deliberate tap) still plays;
     idle pulses and the sweeping second hand stay off */
  .seal-ring, .seal-hint { animation: none; }
  .hand-s { display: none; }
  .notch, .bottom-nav { transition: opacity 0.5s ease; }
  .faq-modal { transition: none !important; transform: none !important; }
}

/* dress-code label lines: mid-weight, matching the designer's intent */
.details b { font-family: 'Carnero', serif; font-weight: normal; }
