/* Tamo & Zura - wedding invitation styles.
   Single stylesheet for index.html. script.js only toggles the classes declared here
   (.is-loading, .is-locked, .assets-ready, .fade-out, .gone, .revealed, .visible, .lang-en, .playing). */

/* ===== FONTS =====
   font-display: block, never swap: the loading screen covers the block period. */
@font-face {
  font-family: 'DM Medea';
  src: url('bpg_nino.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

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

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

/* ===== VARIABLES ===== */
:root {
  --vh:        1vh;  /* JS off = plain vh; the inline head script pins the real value */
  --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;
  overflow-x: hidden;
}

html, body {
  overscroll-behavior-y: none;
}

body {
  font-family: 'DM Medea', 'Noto Serif Georgian', serif;
  background-color: var(--bg);
  color: var(--text);
  /* clip, never hidden: hidden makes body a scroll container, and overscroll-behavior
     then stops wheel and touch scrolling from chaining up to the page in Chrome. */
  overflow-x: clip;
  max-width: 100%;
}

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

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

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

/* Never position:fixed or overflow:hidden: Chrome iOS opened from a chat app would freeze
   its viewport short. script.js traps the gesture instead. */
html.is-locked, html.is-locked body {
  overscroll-behavior: none;
  touch-action: none;
}

/* ===== 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;
}

/* Must out-rank the intro overlay beneath it. */
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

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


.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 180px;
}

.loader-bar {
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 1px;
  background-color: rgba(201, 164, 106, 0.22);
}

.loader-bar__fill {
  display: block;
  height: 100%;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* System font on purpose: the web fonts are still in their font-display block period. */
.loader-pct {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--gold-lt);
}

/* ===== 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', 'Noto Serif Georgian', 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;
}

.is-loading #intro-click {
  animation-play-state: paused;
}

.intro-tap {
  position: absolute;
  inset: 0;
  z-index: 11;
  background: url('image.jpg') center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.intro-tap.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#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-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: 190px;
  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%;
  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;
  white-space: nowrap;
  /* Above .hero::after (z-index 1): without this the bottom fade paints over the hint. */
  z-index: 3;
}

.scroll-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #2d4870;
  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;
}

.vh-lock .hero {
  min-height: calc(var(--vh) * 100);
}

.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;
  transition: opacity 1s ease;
}

.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 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', 'Noto Serif Georgian', 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', 'Noto Serif Georgian', 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', 'Noto Serif Georgian', serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  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;
  /* Tall on purpose: DM Medea's tails collide across lines at anything tighter. */
  line-height: 2.4;
  margin-bottom: 10px;
}

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


.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', 'Noto Serif Georgian', serif;
}

.event-card__addr {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', 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', 'Noto Serif Georgian', 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', 'Noto Serif Georgian', serif;
}

.event-card__schedule {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  width: 100%;
  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', 'Noto Serif Georgian', 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', 'Noto Serif Georgian', serif;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
  text-align: left;
}

.event-card__map {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  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-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
}

.rsvp-label {
  display: block;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.rsvp-form[hidden],
.rsvp[hidden] {
  display: none;
}

.radio-card input[type="radio"]:focus-visible + .radio-face {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.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;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: 0.02em;
  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: #4c6a81;
  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: 15px;
  letter-spacing: 0.1em;
  padding: 15px 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', 'Noto Serif Georgian', serif;
  font-size: 14px;
  color: var(--text);
  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', 'Noto Serif Georgian', serif;
}

/* Mixed digits + Georgian: Noto first, or the digits render in Cormorant and the weights
   visibly disagree inside one line. */
body:not(.lang-en) .day-date,
body:not(.lang-en) .countdown-sub {
  font-family: 'Noto Serif Georgian', '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: 26px;
  height: auto;
}

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

/* ===== COUNTDOWN ===== */
.countdown {
  margin-top: 5rem;
  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', 'Noto Serif Georgian', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  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', 'Noto Serif Georgian', serif;
}

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

/* ===== DAY HEADER ===== */
.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', 'Noto Serif Georgian', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--teal);
}

/* ===== CLOSING ===== */
.closing {
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.assets-ready .closing {
  background-image: url('last-bg.jpg');
}

.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 24px;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

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

.closing-love {
  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', 'Noto Serif Georgian', 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(calc(var(--vh) * 26)) translateX(28px) rotate(50deg); }
  55%  { transform: translateY(calc(var(--vh) * 54)) translateX(-14px) rotate(96deg); }
  80%  { transform: translateY(calc(var(--vh) * 80)) translateX(24px) rotate(148deg); opacity: 0.48; }
  93%  { opacity: 0; }
  100% { transform: translateY(calc(var(--vh) * 110)) 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(calc(var(--vh) * 28)) translateX(-26px) rotate(-44deg); }
  58%  { transform: translateY(calc(var(--vh) * 58)) translateX(18px) rotate(-90deg); }
  82%  { transform: translateY(calc(var(--vh) * 82)) translateX(-10px) rotate(-145deg); opacity: 0.45; }
  93%  { opacity: 0; }
  100% { transform: translateY(calc(var(--vh) * 110)) 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(calc(var(--vh) * 24)) translateX(34px) rotate(36deg); }
  54%  { transform: translateY(calc(var(--vh) * 54)) translateX(4px) rotate(80deg); }
  80%  { transform: translateY(calc(var(--vh) * 80)) translateX(30px) rotate(126deg); opacity: 0.44; }
  93%  { opacity: 0; }
  100% { transform: translateY(calc(var(--vh) * 110)) translateX(12px) rotate(158deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-chevron { animation: none; }
}

/* ===== 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', 'Noto Serif Georgian', 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: 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; }
}
