/* ================= FONTS ================= */
@font-face {
  font-family: 'Baskvill';
  src: url('../../fonts/BASKVILL.woff2') format('woff2'),
       url('../../fonts/BASKVILL.woff') format('woff'),
       url('../../fonts/BASKVILL.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Verusa';
  src: url('../../fonts/Verusa.woff2') format('woff2'),
       url('../../fonts/Verusa.woff') format('woff'),
       url('../../fonts/Verusa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ================= ROOT ================= */
:root {
  --frame-w: 430px;
  --white: #ffffff;
  --ink: #2a2a2a;
  --muted: #6f6f6f;
  --font-body: 'Baskvill', 'Baskerville', Georgia, serif;
  --font-heading: 'Verusa', 'Baskvill', Georgia, serif;
  --ease: cubic-bezier(.77, 0, .18, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  color-scheme: only light;
}

body { overflow: hidden; }

/* ================= LAYOUT ================= */
.layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
}

.side-bg { display: none; }

.main-scroll {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  scroll-behavior: smooth;
}

/* kunci scroll sebelum Open Invitation */
body.is-locked .main-scroll > *:not(.opening) {
  visibility: hidden;
}

/* DESKTOP: kiri bg diam, kanan scroll */
@media (min-width: 992px) {
  .side-bg {
    display: block;
    flex: 1;
    position: relative;
    background: url('../../images/immersive/bgkiri.webp') center / cover no-repeat;
  }

  .side-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.25));
  }

  .main-scroll {
    width: var(--frame-w);
    flex: 0 0 var(--frame-w);
    box-shadow: -12px 0 40px rgba(0, 0, 0, .25);
  }
}

/* ================= OPENING ================= */
.opening {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: url('../../images/immersive/bgpembuka.webp') center / cover no-repeat;
  transition: transform 1.1s var(--ease), visibility 0s linear 1.1s;
}

/* overlay hitam biar text putih kebaca */
.opening::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.30) 0%,
    rgba(0,0,0,.45) 50%,
    rgba(0,0,0,.65) 100%);
}

@media (min-width: 992px) {
  .opening {
    left: auto;
    right: 0;
    width: var(--frame-w);
  }
}

.opening.is-hidden {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

.opening-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 28px;
}

.opening-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .9;
}

.opening-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(52px, 15vw, 68px);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opening-amp {
  font-size: .55em;
  margin: 6px 0;
  opacity: .85;
}

.opening-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 18px;
  font-size: 15px;
  letter-spacing: .3em;
}

.opening-date .line {
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, .7);
}

.opening-text {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.7;
  opacity: .92;
}

.opening-guest {
  margin: 0 auto 30px;
  max-width: 300px;
}

.guest-label {
  display: block;
  font-size: 13px;
  letter-spacing: .15em;
  opacity: .8;
  margin-bottom: 6px;
}

.guest-name {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  word-break: break-word;
}

/* ================= BUTTON OPEN (KOTAK) ================= */
.btn-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), letter-spacing .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* efek isi putih dari kiri ke kanan */
.btn-open::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

/* garis frame kedua */
.btn-open::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .35);
  pointer-events: none;
  transition: inset .45s var(--ease), border-color .45s var(--ease);
}

.btn-open:hover,
.btn-open:focus-visible {
  color: var(--ink);
  letter-spacing: .32em;
}

.btn-open:hover::before,
.btn-open:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-open:hover::after,
.btn-open:focus-visible::after {
  inset: 3px;
  border-color: rgba(0, 0, 0, .2);
}

.btn-open:active { transform: scale(.97); }

.btn-open:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ================= ANIMASI MASUK ================= */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SECTION UMUM ================= */
.section {
  position: relative;
  padding: 80px 28px;
  text-align: center;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(38px, 11vw, 48px);
  line-height: 1.1;
  color: var(--ink);
}

.section-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.section-pertama {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ================= TOMBOL MUSIK ================= */
.music-btn {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s var(--ease), background .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.music-btn.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.music-btn:hover { background: #ffffff; }

.music-btn i {
  position: relative;
  z-index: 1;
}

/* icon play digeser dikit biar keliatan center */
.music-btn i.fa-play { margin-left: 3px; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
  .opening { transition: none; }
}

/* ================= VIDEO WRAP (PARALLAX) ================= */
.video-wrap {
  position: relative;
  isolation: isolate;
}

.video-bg {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100dvh;
  margin-bottom: -100vh;
  margin-bottom: -100dvh;
  overflow: hidden;
  background: #1a1a1a;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.70) 100%);
}

.video-wrap > .section {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.video-wrap .section-title { color: var(--white); }

/* ================= LANDING PAGE ================= */
.landingpage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lp-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .9;
}

.lp-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(52px, 15vw, 68px);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-amp {
  font-size: .55em;
  margin: 6px 0;
  opacity: .85;
}

.lp-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 30px;
  font-size: 15px;
  letter-spacing: .3em;
}

.lp-date .line {
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, .7);
}

.lp-quote {
  margin: 0 auto;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.8;
  opacity: .9;
}

.lp-quote-author {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  opacity: .8;
}

/* indikator scroll */
.lp-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
}

.lp-scroll.reveal { transform: translate(-50%, 24px); }
.lp-scroll.reveal.is-visible { transform: translate(-50%, 0); }

.lp-scroll-text {
  font-size: 10px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .8;
}

.lp-scroll-line {
  position: relative;
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.lp-scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--white);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -40%; }
  100% { top: 100%; }
}

/* ================= GROOM & BRIDE ================= */
.groombride {
  padding: 90px 28px 100px;
}

.groombride .section-title { margin-bottom: 44px; }

.gb-person {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* foto potret bentuk arch */
.gb-photo {
  position: relative;
  width: 230px;
  aspect-ratio: 3 / 4;
  margin-bottom: 30px;
}

.gb-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50% 50% 4px 4px / 37.5% 37.5% 4px 4px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

/* garis frame tipis (geser sedikit) */
.gb-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50% 50% 4px 4px / 37.5% 37.5% 4px 4px;
  transform: translate(10px, -10px);
  transition: transform 1.2s var(--ease) .3s;
}

.gb-photo-bride .gb-frame { transform: translate(-10px, -10px); }

/* garis abstrak di atas foto */
.gb-lines {
  position: absolute;
  inset: -22px;
  width: calc(100% + 44px);
  height: calc(100% + 44px);
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.gb-photo-bride .gb-lines { transform: scaleX(-1); }

.gb-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, .75);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease) .4s;
}

.gb-lines circle {
  fill: var(--white);
  opacity: 0;
  transition: opacity .8s ease 1.8s;
}

.gb-photo.is-visible .gb-lines path { stroke-dashoffset: 0; }
.gb-photo.is-visible .gb-lines circle { opacity: .9; }

.gb-name {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.15;
}

.gb-parent {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  opacity: .88;
}

.gb-ig {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
  transition: background .35s ease, color .35s ease, transform .35s var(--ease);
}

.gb-ig:hover,
.gb-ig:focus-visible {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ================= AMPERSAND ================= */
.gb-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 56px 0;
}

.amp-line {
  width: 90px;
  height: 18px;
  overflow: visible;
}

.amp-line-right { transform: scaleX(-1); }

.amp-line path,
.amp-orbit ellipse {
  fill: none;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) .3s;
}

.amp-line circle {
  fill: var(--white);
  opacity: 0;
  transition: opacity .6s ease 1.4s;
}

.amp-char {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1;
}

.amp-orbit {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  overflow: visible;
}

.gb-amp.is-visible .amp-line path,
.gb-amp.is-visible .amp-orbit ellipse { stroke-dashoffset: 0; }
.gb-amp.is-visible .amp-line circle { opacity: .9; }

/* ================= REVEAL ON SCROLL ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .lp-scroll.reveal { opacity: 1; transform: none; transition: none; }
  .lp-scroll.reveal { transform: translateX(-50%); }
  .gb-lines path,
  .amp-line path,
  .amp-orbit ellipse { stroke-dashoffset: 0; transition: none; }
  .gb-lines circle,
  .amp-line circle { opacity: .9; transition: none; }
  .lp-scroll-line::after { animation: none; }
}


/* ================= LOVE STORY ================= */
.lovestory {
  background: #ffffff;
  padding: 90px 32px 96px;
}

.lovestory .section-title { margin-bottom: 18px; }

.ls-divider {
  display: block;
  width: 1px;
  height: 42px;
  margin: 0 auto 26px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35));
}

.ls-text {
  max-width: 340px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}

.ls-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ls-line {
  width: 54px;
  height: 1px;
  background: rgba(0, 0, 0, .25);
}

.ls-mono {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}

.ls-mono i {
  font-style: normal;
  font-size: .55em;
  margin: 0 8px;
  opacity: .55;
  vertical-align: middle;
}

/* ================= COUNTDOWN / SAVE THE DATE ================= */
.countdown {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--white);
  background: #1a1a1a;
  isolation: isolate;
}

.cd-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../../images/immersive/bgdate.webp') center / cover no-repeat;
  animation: cdZoom 22s ease-in-out infinite alternate;
}

/* overlay: atas gelap utk judul, bawah lebih gelap utk detail */
.countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.20) 28%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.82) 100%);
}

@keyframes cdZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.cd-heading {
  margin: 0;
  padding: 54px 28px 0;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(40px, 12vw, 52px);
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.cd-bottom {
  padding: 0 0 calc(30px + env(safe-area-inset-bottom));
}

/* slider geser */
.cd-slider {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cd-slider::-webkit-scrollbar { display: none; }

.cd-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 28px;
  text-align: left;
}

.cd-event {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(32px, 9.5vw, 40px);
  line-height: 1.1;
}

.cd-date,
.cd-time {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: .95;
}

.cd-time { margin-bottom: 22px; }

.cd-timer {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 26px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}

.cd-unit:first-child {
  padding-left: 0;
  border-left: 0;
  align-items: flex-start;
  min-width: 52px;
}

.cd-num {
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}

/* button kotak, efek sama dgn open invitation */
.btn-calendar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-calendar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.btn-calendar:hover,
.btn-calendar:focus-visible { color: var(--ink); }

.btn-calendar:hover::before,
.btn-calendar:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-calendar:active { transform: scale(.97); }

.btn-calendar:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* dots (garis) */
.cd-dots {
  display: flex;
  gap: 8px;
  padding: 22px 28px 0;
}

.cd-dot {
  width: 18px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .4s var(--ease), background .4s ease;
}

/* area klik lebih besar utk jari */
.cd-dot { position: relative; }
.cd-dot::after {
  content: '';
  position: absolute;
  inset: -10px -4px;
}

.cd-dot.is-active {
  width: 34px;
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .cd-bg { animation: none; }
}

.venues {
  padding: 90px 28px 100px;
}

.venues-subtitle {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .85;
}

.venues .section-title {
  margin-bottom: 54px;
}

.venue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-card + .venue-card {
  margin-top: 76px;
}

.venue-event {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.1;
}

.venue-photo {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 10;
}

.venue-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  transform: translate(10px, 10px);
  pointer-events: none;
}

.venue-card-alt .venue-photo::before {
  transform: translate(-10px, 10px);
}

.venue-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

.venue-lines {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 40px;
  margin: 30px auto 20px;
  overflow: visible;
}

.venue-card-alt .venue-lines {
  transform: scaleX(-1);
}

.venue-card-alt .venue-lines.reveal {
  transform: scaleX(-1) translateY(24px);
}

.venue-card-alt .venue-lines.reveal.is-visible {
  transform: scaleX(-1) translateY(0);
}

.venue-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, .75);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease) .3s;
}

.venue-lines path.thin {
  stroke: rgba(255, 255, 255, .4);
  transition-delay: .7s;
}

.venue-lines rect {
  fill: var(--white);
  opacity: 0;
  transition: opacity .6s ease 1.6s;
}

.venue-lines.is-visible path { stroke-dashoffset: 0; }
.venue-lines.is-visible rect { opacity: .9; }

.venue-name {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: normal;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: .03em;
}

.venue-time {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}

.venue-address {
  max-width: 300px;
  margin: 0 auto 26px;
  font-size: 14px;
  line-height: 1.75;
  opacity: .88;
}

.btn-direction {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-direction::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.btn-direction:hover,
.btn-direction:focus-visible {
  color: var(--ink);
}

.btn-direction:hover::before,
.btn-direction:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-direction:active {
  transform: scale(.97);
}

.btn-direction:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .venue-lines path { stroke-dashoffset: 0; transition: none; }
  .venue-lines rect { opacity: .9; transition: none; }
  .venue-card-alt .venue-lines.reveal { transform: scaleX(-1); }
}

.gift {
  position: relative;
  padding: 90px 24px 100px;
  color: var(--white);
  background: #1a1a1a;
  overflow: hidden;
  isolation: isolate;
}

.gift-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../../images/immersive/bggift.webp') center / cover no-repeat;
}

.gift::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.66) 50%,
    rgba(0,0,0,.78) 100%);
}

.gift .section-title { color: var(--white); }

.gift-block + .gift-block { margin-top: 70px; }

.gift-text {
  max-width: 330px;
  margin: 0 auto 30px;
  font-size: 14.5px;
  line-height: 1.85;
  opacity: .9;
}

.gift-accounts {
  display: grid;
  gap: 18px;
}

.gift-account {
  position: relative;
  padding: 28px 22px 26px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gift-account::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}

.gift-bank-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 8px 16px;
  margin-bottom: 18px;
}

.gift-bank-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.gift-acc-name {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: .05em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.gift-acc-number {
  margin: 0 0 20px;
  font-size: 26px;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.btn-gift {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-gift::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.btn-gift:hover,
.btn-gift:focus-visible,
.btn-gift.is-copied { color: var(--ink); }

.btn-gift:hover::before,
.btn-gift:focus-visible::before,
.btn-gift.is-copied::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-gift:active { transform: scale(.97); }

.btn-gift:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.gift-subtitle {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(34px, 10vw, 42px);
  line-height: 1.1;
}

.gift-address {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 26px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: left;
}

.gift-address i {
  margin-top: 4px;
  opacity: .85;
}

.gift-address p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.gift-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 260px;
  margin: 76px auto 64px;
}

.gift-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6));
}

.gift-divider span:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,.6), rgba(255,255,255,0));
}

.gift-divider i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, .8);
  transform: rotate(45deg);
}

.gift-divider + .gift-block { margin-top: 0; }

.registry .gift-text { margin-bottom: 34px; }

.reg-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .35s ease;
}

.reg-card:hover { border-color: rgba(255, 255, 255, .5); }

.reg-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}

.reg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s ease;
}

.reg-card:hover .reg-photo img { transform: scale(1.05); }

.reg-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  opacity: .55;
}

.reg-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}

.reg-card.is-reserved .reg-badge {
  opacity: 1;
  transform: translateY(0);
}

.reg-card.is-reserved .reg-photo img { filter: grayscale(1) brightness(.7); }

.reg-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 14px 14px 16px;
}

.reg-name {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: normal;
  font-size: 14px;
  line-height: 1.45;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.reg-link,
.reg-link-empty {
  height: 18px;
  margin-bottom: 14px;
}

.reg-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  max-width: 100%;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.reg-link i { font-size: 9px; }

.reg-link:hover,
.reg-link:focus-visible {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, .6);
}

.reg-link-empty { display: block; }

.reg-btn {
  margin-top: auto;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  -webkit-tap-highlight-color: transparent;
}

.reg-btn:hover:not(:disabled),
.reg-btn:focus-visible:not(:disabled) {
  background: var(--white);
  color: var(--ink);
}

.reg-btn:disabled {
  cursor: default;
  border-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .55);
}

body.modal-open .main-scroll { overflow: hidden; }

.reg-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.reg-modal[hidden] { display: none; }

@media (min-width: 992px) {
  .reg-modal {
    left: auto;
    right: 0;
    width: var(--frame-w);
  }
}

.reg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .35s ease;
}

.reg-modal-panel {
  position: relative;
  width: 100%;
  max-width: var(--frame-w);
  padding: 38px 26px calc(28px + env(safe-area-inset-bottom));
  background: #ffffff;
  color: var(--ink);
  text-align: center;
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}

.reg-modal-panel::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 40px;
  height: 3px;
  background: rgba(0, 0, 0, .15);
  transform: translateX(-50%);
}

.reg-modal.is-open .reg-modal-backdrop { opacity: 1; }
.reg-modal.is-open .reg-modal-panel { transform: translateY(0); }

.reg-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.reg-modal-label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.reg-modal-title {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 28px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.reg-field {
  display: block;
  margin-bottom: 16px;
  text-align: left;
}

.reg-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.reg-field em {
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.reg-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color .3s ease;
}

.reg-field input:focus { border-color: var(--ink); }

.reg-error {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #b3261e;
  text-align: left;
}

.reg-error[hidden] { display: none; }

.reg-submit {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, opacity .3s ease;
}

.reg-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
}

.reg-submit:disabled {
  opacity: .6;
  cursor: default;
}

.im-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 90;
  max-width: calc(100% - 48px);
  padding: 12px 18px;
  background: rgba(20, 20, 20, .92);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.im-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 992px) {
  .im-toast {
    left: auto;
    right: calc(var(--frame-w) / 2);
    max-width: calc(var(--frame-w) - 48px);
    transform: translate(50%, 10px);
  }
  .im-toast.is-show { transform: translate(50%, 0); }
}

.reg-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}

.reg-slider::-webkit-scrollbar { display: none; }

.reg-slider > .reg-card {
  flex: 0 0 calc((100% - 14px) / 2);
  scroll-snap-align: start;
}

.reg-slider.is-dragging { scroll-snap-type: none; }

.reg-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.reg-nav[hidden] { display: none; }

.reg-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 11px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.reg-arrow:hover:not(:disabled) {
  background: var(--white);
  color: var(--ink);
}

.reg-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.reg-scrollbar {
  position: relative;
  flex: 0 1 190px;
  height: 2px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  touch-action: none;
}

.reg-scrollbar::before {
  content: '';
  position: absolute;
  inset: -12px 0;
}

.reg-scrollthumb {
  position: absolute;
  top: -1px;
  left: 0;
  height: 4px;
  width: 50%;
  background: var(--white);
  cursor: grab;
  will-change: transform;
}

.reg-scrollthumb:active { cursor: grabbing; }

.rsvpwish {
  background: #ffffff;
  color: var(--ink);
  padding: 90px 26px 100px;
}

.rw-subtitle {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
}

.rsvpwish .section-title { margin-bottom: 16px; }

.rw-text {
  max-width: 330px;
  margin: 0 auto 34px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.rw-form {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.rw-field {
  display: block;
  margin-bottom: 20px;
}

.rw-label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.rw-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color .3s ease;
}

.rw-input:focus { border-color: var(--ink); }

.rw-textarea {
  min-height: 130px;
  resize: vertical;
}

.rw-counter {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.rw-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rw-choice {
  position: relative;
  display: block;
}

.rw-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rw-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, .18);
  font-size: 11.5px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.rw-choice span i {
  font-size: 11px;
  opacity: .7;
}

.rw-choice:hover span { border-color: var(--ink); }

.rw-choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.rw-choice input:checked + span i { opacity: 1; }

.rw-choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.rw-submit {
  width: 100%;
  margin-top: 6px;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, opacity .3s ease;
}

.rw-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
}

.rw-submit:disabled {
  opacity: .6;
  cursor: default;
}

.rw-feedback {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}

.rw-feedback[hidden] { display: none; }
.rw-feedback.is-error { color: #b3261e; }
.rw-feedback.is-success { color: #2e6b3f; }

.rw-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 240px;
  margin: 76px auto 64px;
}

.rw-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.3));
}

.rw-divider span:last-child {
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,0));
}

.rw-divider i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(0, 0, 0, .45);
  transform: rotate(45deg);
}

.wish-board {
  max-width: 360px;
  margin: 44px auto 0;
  border: 1px solid rgba(0, 0, 0, .12);
  text-align: left;
}

.wish-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.wish-list {
  max-height: 420px;
  padding: 0 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.25) transparent;
}

.wish-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.wish-item:last-child { border-bottom: 0; }

.wish-item.is-new { animation: wishIn .6s var(--ease); }

@keyframes wishIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wish-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.wish-name {
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.wish-date {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.wish-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wish-empty {
  padding: 30px 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .wish-item.is-new { animation: none; }
}

.glimpse {
  padding: 90px 20px 70px;
}

.glimpse-subtitle {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .85;
}

.glimpse .section-title { margin-bottom: 40px; }

.glimpse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.glimpse-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.glimpse-item::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color .45s ease;
  pointer-events: none;
}

.glimpse-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .45s ease;
}

.glimpse-item:hover img,
.glimpse-item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(.85);
}

.glimpse-item:hover::after,
.glimpse-item:focus-visible::after {
  border-color: rgba(255, 255, 255, .7);
}

.glimpse-item:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.closing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 30px 90px;
}

.closing-title-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 340px;
  min-height: 170px;
  margin-bottom: 26px;
}

.closing-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.closing-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease) .3s;
}

.closing-lines path.thin {
  stroke: rgba(255, 255, 255, .35);
  transition-delay: .8s;
}

.closing-lines circle {
  fill: var(--white);
  opacity: 0;
  transition: opacity .8s ease 2s;
}

.closing-title-wrap.is-visible .closing-lines path { stroke-dashoffset: 0; }
.closing-title-wrap.is-visible .closing-lines circle { opacity: .9; }

.closing-title {
  position: relative;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(56px, 17vw, 74px);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.closing-text {
  max-width: 320px;
  margin: 0 auto 34px;
  font-size: 14.5px;
  line-height: 1.9;
  opacity: .9;
}

.closing-with {
  margin: 0 0 8px;
  font-size: 13px;
  font-style: italic;
  letter-spacing: .08em;
  opacity: .8;
}

.closing-names {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(36px, 11vw, 46px);
  line-height: 1.1;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 24px calc(30px + env(safe-area-inset-bottom));
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  transition: transform .35s var(--ease), opacity .35s ease;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  transform: translateY(-2px);
  opacity: .8;
}

.footer-logo img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-text {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .12em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s ease;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

@media (min-width: 992px) {
  .lightbox {
    left: auto;
    right: 0;
    width: var(--frame-w);
  }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .94);
}

.lightbox-stage {
  position: relative;
  margin: 0;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: pan-y;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  max-height: calc(100dvh - 180px);
  object-fit: contain;
  transform: scale(.96);
  transition: transform .4s var(--ease), opacity .25s ease;
}

.lightbox.is-open .lightbox-stage img { transform: scale(1); }
.lightbox-stage img.is-switching { opacity: 0; }

.lightbox-counter {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .75);
}

.lightbox-btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 0;
  background: rgba(0, 0, 0, .25);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-btn:hover {
  background: var(--white);
  color: var(--ink);
}

.lightbox-close {
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
}

.lightbox-prev,
.lightbox-next {
  bottom: calc(24px + env(safe-area-inset-bottom));
}

.lightbox-prev { left: calc(50% - 52px); }
.lightbox-next { left: calc(50% + 10px); }

@media (prefers-reduced-motion: reduce) {
  .glimpse-item img,
  .lightbox-stage img { transition: none; }
  .closing-lines path { stroke-dashoffset: 0; transition: none; }
  .closing-lines circle { opacity: .9; transition: none; }
}

.main-scroll > .video-bg {
  z-index: 0;
}

.main-scroll > *:not(.video-bg):not(.opening) {
  position: relative;
  z-index: 1;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity .8s var(--ease), visibility 0s linear .8s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .8s var(--ease);
}

.preloader.is-done .preloader-inner {
  transform: translateY(-12px);
}

.preloader-logo {
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}

.preloader-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  animation: preloaderBreath 2.4s ease-in-out infinite;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .08);
  border-top-color: rgba(0, 0, 0, .55);
  animation: preloaderSpin 1.6s linear infinite;
}

.preloader-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .06);
  border-bottom-color: rgba(0, 0, 0, .3);
  animation: preloaderSpin 2.4s linear infinite reverse;
}

.preloader-bar {
  position: relative;
  width: 160px;
  height: 1px;
  background: rgba(0, 0, 0, .1);
  overflow: hidden;
}

.preloader-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
}

.preloader-pct {
  margin: 14px 0 6px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.preloader-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderBreath {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.94); opacity: .75; }
}

body:not(.is-ready) .fade-up {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo img { animation: none; }
}