/* ===== FONTS ===== */
@font-face {
  font-family: 'DM Medea';
  src: url('bpg_nino.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Medea Display';
  src: url('DM-Medea.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== VARIABLES ===== */
:root {
  --bg:        #f4efe6;
  --bg-alt:    #ede8df;
  --text:      #2c2018;
  --text-soft: #8a7a6a;
  --teal:      #6888a0;
  --gold:      #c9a46a;
  --gold-lt:   #a07840;
  --border:    #d5ccc0;
  --rule:      #c8bdb0;
}

/* ===== DM MEDEA DISPLAY — FONT SIZE CONFIG =====
   Edit values below to resize Georgian (ka) and English (en)
   independently. sm = mobile, md = 481px, lg = 769px, xl = 1025px
   ====================================================== */

/* — Georgian — */
:root {
  --fs-names-sm:    32px;
  --fs-names-md:    64px;
  --fs-names-lg:    86px;
  --fs-names-xl:   108px;

  --fs-title-sm:    24px;
  --fs-title-md:    30px;
  --fs-title-lg:    34px;

  --fs-venue-sm:    18px;
  --fs-venue-lg:    26px;

  --fs-venue-sub:   22px;

  --fs-time-sm:     28px;
  --fs-time-lg:     26px;

  --fs-thankyou:    20px;
}

/* — English — */
body.lang-en {
  --fs-names-sm:    42px;
  --fs-names-md:    64px;
  --fs-names-lg:    86px;
  --fs-names-xl:   108px;

  --fs-title-sm:    28px;
  --fs-title-md:    32px;
  --fs-title-lg:    36px;

  --fs-venue-sm:    34px;
  --fs-venue-lg:    30px;

  --fs-venue-sub:   22px;

  --fs-time-sm:     28px;
  --fs-time-lg:     26px;

  --fs-thankyou:    20px;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Medea', 'Noto Serif Georgian', serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.lang-en {
  font-family: 'Cormorant Garamond', serif;
}

body.lang-en .h-names {
  font-family: 'Cormorant Garamond', serif;
}

input, textarea, select, button {
  font-family: inherit;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 3px;
  transition: background-color 0.4s ease;
}
body.scrollbar-ready::-webkit-scrollbar-thumb {
  background-color: var(--rule);
}
* {
  scrollbar-color: var(--rule) var(--bg-alt);
  scrollbar-width: thin;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #F0E6DA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loading-screen.gone {
  display: none;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border: 2.5px solid rgba(201, 164, 106, 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* ===== INTRO OVERLAY ===== */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #f0e6da;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-overlay.gone {
  display: none;
}

#intro-click {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  animation: introFadeIn 1.4s ease 0.3s forwards;
  transition: opacity 0.5s ease;
}

.intro-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.38em;
  color: #2a1a0e;
  font-weight: 500;
}

.intro-divider {
  width: 36px;
  height: 1px;
  background: #2a1a0e;
  opacity: 0.4;
}

.intro-ka {
  font-size: 22px;
  color: #2a1a0e;
  letter-spacing: 0.05em;
  font-weight: 600;
}

#video-1,
#video-2,
#intro-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#intro-poster.hidden {
  opacity: 0;
}

#video-1 {
  opacity: 1;
}

#video-2 {
  opacity: 0;
}

#video-2.active {
  opacity: 1;
}

/* ===== LANGUAGE TOGGLE ===== */
#lang-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#lang-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}

.lang-switch {
  position: relative;
  width: 74px;
  height: 36px;
  background: rgba(244, 239, 230, 0.82);
  border-radius: 18px;
  border: 1px solid rgba(200, 189, 176, 0.7);
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  backdrop-filter: blur(6px);
}

.lang-switch__thumb {
  position: absolute;
  left: 3px;
  width: 32px;
  height: 28px;
  background: rgba(104, 136, 160, 0.15);
  border: 1px solid rgba(104, 136, 160, 0.4);
  border-radius: 14px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switch.lang-en .lang-switch__thumb {
  transform: translateX(36px);
}

.lang-switch__label {
  flex: 1;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  position: relative;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.28s ease;
  color: var(--text);
}

.lang-switch__label--ka {
  opacity: 1;
}

.lang-switch.lang-en .lang-switch__label--ka {
  opacity: 0.38;
}

.lang-switch.lang-en .lang-switch__label--en {
  opacity: 1;
}

/* ===== MUSIC TOGGLE ===== */
#music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#music-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}

.music-switch {
  position: relative;
  width: 54px;
  height: 30px;
  background: rgba(150, 144, 134, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(200, 189, 176, 0.7);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  backdrop-filter: blur(6px);
  transition: background 0.28s ease;
}

.music-switch.playing {
  background: rgba(104, 136, 160, 0.7);
}

.music-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-switch.playing .music-switch__thumb {
  transform: translateX(24px);
}


/* ===== SHARED HERO CENTER ===== */
.hero-center {
  text-align: center;
  padding: 6rem 24px 40px;
  max-width: 600px;
}

.hero-center .h-initials,
.hero-center .h-names,
.hero-center .h-date,
.hero-center .h-subtitle {
  opacity: 0;
}

.h-scroll {
  opacity: 0;
}

.hero-center.revealed .h-initials  { animation: fadeInUp 0.7s ease forwards; animation-delay: 0s; }
.hero-center.revealed .h-names     { animation: fadeInUp 0.7s ease forwards; animation-delay: 0.15s; }
.hero-center.revealed .h-date      { animation: fadeInUp 0.7s ease forwards; animation-delay: 0.28s; }
.hero-center.revealed .h-subtitle  { animation: fadeInUp 0.7s ease forwards; animation-delay: 0.40s; }
.hero-center.revealed ~ .h-scroll  { animation: fadeInUpCentered 0.7s ease forwards; animation-delay: 0.52s; }

.h-rule {
  width: 48px;
  height: 1px;
  background: #2d4870;
  margin: 0 auto 18px;
  display: none;
}

.h-names {
  font-family: 'DM Medea Display', serif;
  font-size: var(--fs-names-sm);
  font-weight: 600;
  color: #2d4870;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 38px;
  text-shadow: none;
  white-space: nowrap;
}

.amp {
  color: #2d4870;
  padding: 0 6px;
}

.h-initials {
  display: block;
  width: 120px;
  margin: -10px auto 24px;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.h-date {
  font-size: 16px;
  font-weight: 500;
  color: #4d6a93;
  letter-spacing: 0.26em;
  margin: 12px 0 24px;
}

.h-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #2d4870;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 0 30px;
  min-height: 100px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.85), 0 0 20px rgba(255,255,255,0.6);
}

.h-scroll {
  position: absolute;
  bottom: 18%;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 6px 10px;
  width: fit-content;
  min-width: 120px;
  min-height: 50px;
  font-weight: 700 !important;
}

.scroll-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #4d6a93;
  font-weight: 400;
}

.scroll-chevron {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  animation: chevronBounce 3.5s ease-in-out infinite;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

#hv-fwd {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
}

#hv-fwd.show {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.32) 0%,
    rgba(255,255,255,0.60) 10%,
    rgba(255,255,255,0.40) 25%,
    rgba(255,255,255,0) 55%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, #f4efe6);
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 2;
}

/* ===== ANIMATIONS ===== */
@keyframes introFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50%       { transform: scale(1.05); opacity: 1; }
}

@keyframes ringExpand {
  0%   { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fadeInUpCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes chevronBounce {
  0%   { transform: translateY(-2px) rotate(45deg); opacity: 0.8; }
  50%  { transform: translateY(2px)  rotate(45deg); opacity: 0.35; }
  100% { transform: translateY(-2px) rotate(45deg); opacity: 0.8; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SHARED SECTION ===== */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'DM Medea Display', serif;
  font-size: var(--fs-title-sm);
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

body.lang-en .section-title {
  font-family: 'Cormorant Garamond', serif;
}

.section-rule {
  width: 36px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto 48px;
}

/* ===== EVENTS SECTION ===== */
.flowers-container {
  position: absolute;
  width: 100%;
  top: -20%;
  left: 50%;
  opacity: 0.7;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.flowers-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.events {
  background-color: var(--bg);
  overflow-y: visible;
  overflow-x: clip;
  position: relative;
  padding-bottom: 10rem;
}

.events-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 40px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.event-card__img {
  width: calc(100% + 64px);
  height: auto;
  margin: -40px -32px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.event-card__img img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
}

.event-card__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16%;
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
  pointer-events: none;
}

.event-card__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--teal);
  margin-bottom: 16px;
  line-height: 1.6;
}

.event-card__venue {
  font-family: 'DM Medea Display', serif;
  font-size: var(--fs-venue-sm);
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 2.4;
  margin-bottom: 10px;
}

body.lang-en .event-card__venue {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}


.g17 {
  font-family: 'DM Medea', serif !important;
  font-size: 32px !important;
}

.event-card__sub {
  font-family: 'DM Medea Display', serif;
  font-size: var(--fs-venue-sub);
  color: var(--text-soft);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

body.lang-en .event-card__sub {
  font-family: 'Cormorant Garamond', serif;
}

.event-card__addr {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.event-card__rule {
  width: 40px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto 20px;
}

.event-card__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.event-card__time {
  font-family: 'DM Medea Display', serif;
  font-size: 34px;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  line-height: 1;
}

body.lang-en .event-card__time {
  font-family: 'Cormorant Garamond', serif;
}

.event-card__schedule {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  width: 70%;
  margin: 0 auto;
  margin-bottom: 22px;
  padding-top: 4px;
  align-items: baseline;
}

.event-card__sub-row {
  display: contents;
}

.event-card__sub-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

.event-card__sub-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
  text-align: left;
}

.event-card__sub-label .after-party {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  opacity: 0.75;
}

.event-card__map {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.event-card__map:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* ===== DRESS CODE ===== */
.dresscode {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* ===== RSVP ===== */
.rsvp {
  background-color: var(--bg);
}

.rsvp-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rsvp-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
}

.rsvp-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 2px;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.25s ease;
  text-align: center;
}

.rsvp-input::placeholder {
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.rsvp-input:focus {
  border-color: var(--teal);
}

.rsvp-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-face {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-align: center;
  min-height: 54px;
  background: var(--bg-alt);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.radio-card input[type="radio"]:checked + .radio-face {
  border-color: var(--teal);
  color: var(--teal);
  background-color: rgba(104, 136, 160, 0.08);
}

.rsvp-submit {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.32em;
  padding: 16px 40px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  margin-top: 4px;
}

.rsvp-submit:hover {
  background-color: rgba(104, 136, 160, 0.08);
  border-color: var(--teal);
  color: var(--teal);
}

.rsvp-submit:disabled {
  opacity: 0.45;
  cursor: default;
}

.rsvp-status {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  min-height: 20px;
  text-align: center;
}

.rsvp-thankyou {
  display: none;
  padding: 20px 0;
}

.rsvp-thankyou.visible {
  display: block;
}

.thankyou-text {
  font-family: 'DM Medea Display', serif;
  font-size: var(--fs-thankyou);
  color: var(--text);
  letter-spacing: 0.04em;
  text-align: center;
}

body.lang-en .thankyou-text {
  font-family: 'Cormorant Garamond', serif;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.25s ease;
}

.footer-credit:hover {
  opacity: 1;
}

.footer-logo {
  width: 22px;
  height: auto;
}

.footer-credit span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* ===== COUNTDOWN ===== */
.countdown {
  margin-top: 5rem;
  /* background-color: var(--bg-alt); */
  /* border-top: 1px solid var(--border); */
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.countdown-col {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 200px;
  height: auto;
  pointer-events: none;
  opacity: 0.85;
}

.countdown-col--left {
  left: -85px;
}

.countdown-col--right {
  right: -85px;
  transform: translateY(-50%) scaleX(-1);
}

.countdown-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-top: 14px;
  margin-bottom: 0;
}

.countdown .section-rule {
  margin: 30px auto 40px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cd-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  min-width: 66px;
}

.cd-unit + .cd-unit::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  height: 52%;
  width: 1px;
  background: var(--rule);
}

.cd-num {
  font-family: 'DM Medea Display', serif;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body.lang-en .cd-num {
  font-family: 'Cormorant Garamond', serif;
}

.cd-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ===== DAY GROUPS ===== */
.day-group {
  margin-bottom: 60px;
}

.day-group:last-child {
  margin-bottom: 0;
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.day-header::before,
.day-header::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rule);
}

.day-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.3em;
  color: var(--teal);
}

.finale .day-header {
  margin-bottom: 18px;
}

.finale-video-wrap {
  width: 50rem;
  margin-left: -65%;
  overflow: hidden;
  margin-bottom: 32px;
  background: transparent;
  position: relative;
}

.finale-video-wrap::before,
.finale-video-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.finale-video-wrap::before {
  top: 0;
  height: 28%;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.finale-video-wrap::after {
  bottom: 0;
  height: 18%;
  background: linear-gradient(to top, var(--bg), transparent);
}

.finale-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  clip-path: inset(2% 0);
}

.event-card__note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin: 6px auto 30px;
  max-width: 320px;
  text-align: center;
}

/* ===== CLOSING ===== */
.closing {
  background-color: var(--bg);
  background-image: url('last-bg.jpg');
  background-size: cover;
  background-position: center;
  /* border-top: 1px solid var(--border); */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32%;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.closing::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.closing .section-inner {
  position: relative;
  z-index: 2;
}

.closing-crest {
  display: block;
  width: 240px;
  max-width: 72%;
  margin: -3rem auto 0px;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.closing-line {
  /* font-family: 'Cormorant Garamond', serif; */
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--teal);
  line-height: 2.2;
  margin-bottom: 28px;
  padding: 0 60px;
}

.closing-divider {
  width: 36px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto 24px;
}

.closing-love {
  /* font-family: 'Cormorant Garamond', serif; */
  font-size: 18px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.closing-names {
  font-family: 'DM Medea Display', serif;
  font-size: 24px;
  color: #2d4870;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

body.lang-en .closing-names {
  font-family: 'Cormorant Garamond', serif;
}

/* ===== FALLING PETALS ===== */
#site {
  position: relative;
}

#petals-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
  visibility: hidden;
}

#petals-layer.visible {
  visibility: visible;
}

.petal {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}


@keyframes petalFallA {
  0%   { transform: translateY(-100px) translateX(0) rotate(0deg);    opacity: 0; }
  12%  { opacity: 0.55; }
  30%  { transform: translateY(26vh) translateX(28px) rotate(50deg); }
  55%  { transform: translateY(54vh) translateX(-14px) rotate(96deg); }
  80%  { transform: translateY(80vh) translateX(24px) rotate(148deg); opacity: 0.48; }
  93%  { opacity: 0; }
  100% { transform: translateY(110vh) translateX(-4px) rotate(183deg); opacity: 0; }
}

@keyframes petalFallB {
  0%   { transform: translateY(-100px) translateX(0) rotate(16deg);   opacity: 0; }
  12%  { opacity: 0.52; }
  32%  { transform: translateY(28vh) translateX(-26px) rotate(-44deg); }
  58%  { transform: translateY(58vh) translateX(18px) rotate(-90deg); }
  82%  { transform: translateY(82vh) translateX(-10px) rotate(-145deg); opacity: 0.45; }
  93%  { opacity: 0; }
  100% { transform: translateY(110vh) translateX(6px) rotate(-176deg); opacity: 0; }
}

@keyframes petalFallC {
  0%   { transform: translateY(-100px) translateX(0) rotate(-8deg);   opacity: 0; }
  14%  { opacity: 0.50; }
  28%  { transform: translateY(24vh) translateX(34px) rotate(36deg); }
  54%  { transform: translateY(54vh) translateX(4px) rotate(80deg); }
  80%  { transform: translateY(80vh) translateX(30px) rotate(126deg); opacity: 0.44; }
  93%  { opacity: 0; }
  100% { transform: translateY(110vh) translateX(12px) rotate(158deg); opacity: 0; }
}

/* ===== DESKTOP NOTICE ===== */
#desktop-notice {
  display: none;
}

@media (min-width: 769px) {
  /* hide everything */
  body > *:not(#desktop-notice) {
    display: none !important;
  }

  #desktop-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg);
    padding: 40px 24px;
    gap: 10px;
  }

  .desktop-notice__logo {
    width: 52px;
    height: auto;
    opacity: 0.8;
    margin-bottom: 24px;
  }

  .desktop-notice__ka,
  .desktop-notice__en {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0;
    line-height: 1.5;
  }

  .desktop-notice__sub {
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 2px;
  }
}

/* ===== BREAKPOINTS ===== */
/* @media (min-width: 481px) {
  .h-names        { font-size: var(--fs-names-md); }
  .h-date         { font-size: 14px; }
  .h-subtitle     { font-size: 17px; }
  .h-initials     { width: 150px; }
  .section        { padding: 96px 40px; }
  .section-title  { font-size: var(--fs-title-md); }
  .cd-num         { font-size: 56px; }
  .cd-unit        { min-width: 78px; padding: 0 20px; }
  .closing-names  { font-size: 42px; }
  .closing-crest  { width: 280px; }
} */

@media (min-width: 769px) {
  .h-names        { font-size: var(--fs-names-lg); }
  .h-date         { font-size: 15px; letter-spacing: 0.3em; }
  .h-subtitle     { font-size: 18px; }
  .hero-center    { padding: 100px 40px 50px; }
  .h-initials     { width: 180px; }
  .section        { padding: 110px 60px; }
  .section-title  { font-size: var(--fs-title-lg); }
  .events-cards       { flex-direction: row; align-items: flex-start; gap: 24px; }
  .event-card         { flex: 1; }
  .event-card__venue  { font-size: var(--fs-venue-lg); }
}

@media (min-width: 1025px) {
  .h-names        { font-size: var(--fs-names-xl); }
  .h-date         { font-size: 16px; }
  .h-subtitle     { font-size: 19px; }
  .hero-center    { padding: 120px 60px 60px; }
  .h-initials     { width: 200px; }
  .section        { padding: 120px 80px; }
}
