/* =========================================================
   "Lojuvard" — milliy premium to'y taklifnomasi · Tabrikon.uz
   lojuvard ko'k · oltin · krem · bordo
   ========================================================= */

:root {
  --navy: #0e2244;
  --navy-2: #163262;
  --gold: #d4b06a;
  --gold-2: #ecd6a4;
  --gold-ink: #7f612a;          /* gold for small text on cream (5:1) */
  --cream: #f6efe2;
  --cream-2: #efe4d0;
  --bordo: #561a24;
  --ink: #1f1a16;
  --ink-2: #4b4239;
  --on-dark: #f3ead8;
  --on-dark-2: #cdbf9f;

  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-script: 'Great Vibes', cursive;
  --f-sans: 'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .78, .2, 1);
  --col: 520px;

  /* pointed mehrob arch, stretched to any box */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V58C0 29 21 11 50 0C79 11 100 29 100 58V140Z'/%3E%3C/svg%3E");
  /* girih tile */
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d4b06a' stroke-width='1'%3E%3Cpath d='M60 14 71 33 92 28 87 49 106 60 87 71 92 92 71 87 60 106 49 87 28 92 33 71 14 60 33 49 28 28 49 33Z'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3Cpath d='M0 0 14 14M120 0 106 14M0 120 14 106M120 120 106 106'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--f-sans);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body.is-locked { overflow: hidden; height: 100dvh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
svg use { fill: none; stroke: currentColor; }

/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */
.langs {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 60;
  display: flex; gap: 2px; padding: 4px;
  background: rgba(14, 34, 68, .55);
  border: 1px solid rgba(212, 176, 106, .45);
  border-radius: 40px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.langs button {
  min-width: 40px; padding: 7px 10px;
  border-radius: 30px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  color: var(--on-dark);
  transition: background .3s, color .3s;
}
.langs button.on { background: var(--gold); color: var(--navy); }

/* =========================================================
   GATE
   ========================================================= */
.gate {
  position: fixed; inset: 0; z-index: 50;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  transition: transform 1.3s cubic-bezier(.7, 0, .2, 1), opacity .4s ease 1.1s;
}
.gate-photo { position: absolute; inset: 0; }
.gate-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-2%); } }
.gate-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,34,68,.55) 0%, rgba(14,34,68,0) 26%, rgba(14,34,68,0) 40%, rgba(14,34,68,.82) 66%, rgba(14,34,68,.96) 100%);
}
.gate-arch {
  position: absolute; left: 6%; right: 6%; top: 7%; bottom: 3%;
  width: 88%; height: 90%;
  color: var(--gold); opacity: .75;
}
.gate-arch {
  /* frame the text only — keep faces clear */
  -webkit-mask-image: linear-gradient(180deg, transparent 0 42%, #000 62%);
          mask-image: linear-gradient(180deg, transparent 0 42%, #000 62%);
  filter: drop-shadow(0 0 6px rgba(0,0,0,.35));
}
.gate-content {
  position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom));
  padding: 0 24px;
  text-align: center;
  max-width: 480px; margin: 0 auto;
}
.gate-label {
  font-size: .75rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0; animation: up 1.1s var(--ease) .3s forwards;
}
.gate-names {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(2.3rem, 11vw, 3.2rem);
  line-height: 1.02; letter-spacing: .06em; text-transform: uppercase;
  margin: 10px 0 6px;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; animation: up 1.2s var(--ease) .5s forwards;
}
.gate-names em {
  font-family: var(--f-script); font-style: normal; text-transform: none;
  font-size: .8em; line-height: .9; color: var(--gold);
}
.gate-date {
  font-family: var(--f-serif); font-size: 1.5rem; letter-spacing: .14em;
  opacity: 0; animation: up 1.1s var(--ease) .75s forwards;
}
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto; color: var(--gold); width: min(240px, 70%); }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 20px; height: 20px; flex-shrink: 0; animation: spin 24s linear infinite; }
.gate .divider { opacity: 0; animation: up 1.1s var(--ease) .65s forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.swipe-hint {
  margin-top: 18px;
  font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; color: var(--on-dark-2);
  opacity: 0; animation: up 1s var(--ease) .95s forwards;
}
.slider {
  position: relative;
  margin: 12px auto 0;
  width: min(330px, 100%); height: 62px;
  border-radius: 40px;
  background: rgba(243, 234, 216, .1);
  border: 1px solid rgba(212, 176, 106, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none;
  opacity: 0; animation: up 1s var(--ease) 1.1s forwards;
}
.slider:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  transform: translateX(calc(62px - 100%));
  background: linear-gradient(90deg, rgba(212,176,106,.15), rgba(212,176,106,.45));
  border-radius: 40px;
}
.slider-text {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding-left: 40px;
  font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-dark);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; } }
.slider-chevrons {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--gold); letter-spacing: 2px; font-size: 1.1rem;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translate(4px, -50%); opacity: .5; } }
.knob {
  position: absolute; left: 4px; top: 4px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #f1d9a2, var(--gold) 55%, #a8843f);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5);
  cursor: grab;
}
/* the nudge lives on the arrow, so it never fights the knob's drag transform */
.knob svg { width: 22px; height: 22px; animation: hint 2.8s ease-in-out 2.2s infinite; }
.knob.dragging { cursor: grabbing; }
.knob.dragging svg { animation: none; }
@keyframes hint { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(6px); } 90% { transform: translateX(0); } }

/* opening */
.gate.is-opening { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.gate.is-gone { visibility: hidden; }

/* =========================================================
   PAGE / SECTIONS
   ========================================================= */
.page { position: relative; }
.sec { position: relative; padding: 84px 22px; text-align: center; overflow: hidden; }
.sec > * { position: relative; z-index: 1; max-width: var(--col); margin-left: auto; margin-right: auto; }
.navy { background: var(--navy); color: var(--on-dark); }
.cream { background: var(--cream); color: var(--ink); }
.bordo { background: var(--bordo); color: var(--on-dark); }

.girih {
  position: absolute !important; inset: 0; z-index: 0 !important; max-width: none !important;
  background: var(--girih) center / 120px 120px;
  opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
          mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
}
.ikat {
  position: absolute !important; inset: 0; z-index: 0 !important; max-width: none !important;
  background:
    repeating-linear-gradient(135deg, rgba(212,176,106,.07) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(45deg, rgba(212,176,106,.05) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 60%);
}

.title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.12;
  color: var(--navy);
}
.title.light { color: var(--on-dark); }
.date-line { font-family: var(--f-serif); font-size: 1.2rem; color: var(--ink-2); margin-top: 10px; }
.date-line.light { color: var(--on-dark-2); }
.sec-icon { width: 34px; height: 34px; color: var(--gold); display: block; margin: 0 auto 10px; }
.cream .sec-icon { color: var(--gold-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 40px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--navy); color: var(--on-dark); }
.btn-solid:hover { background: var(--navy-2); box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.btn-outline { border: 1px solid var(--gold-ink); color: var(--gold-ink); margin-top: 22px; }
.btn-outline:hover { background: var(--gold-ink); color: var(--cream); }
.btn-gold { background: linear-gradient(135deg, #e6c98a, var(--gold) 50%, #b8924b); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); filter: brightness(1.04); }
.btn.wide { width: 100%; }

/* arch photo frames */
.arch-photo {
  position: relative;
  width: min(250px, 66%); aspect-ratio: 5 / 7;
  margin: 0 auto 30px !important;
}
.arch-photo img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
          mask: var(--arch) center / 100% 100% no-repeat;
}
.arch-photo .arch-line {
  position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px);
  color: var(--gold); pointer-events: none;
}
.arch-photo.small { width: min(190px, 52%); }
.arch-photo.wide { width: min(320px, 86%); aspect-ratio: 4 / 4.6; margin-top: 26px !important; }

/* ---------- welcome ---------- */
.welcome { padding-top: 96px; padding-bottom: 96px; }
.arch-card {
  position: relative;
  padding: 92px 28px 44px;
  background: var(--cream);
  color: var(--ink);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
          mask: var(--arch) center / 100% 100% no-repeat;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.arch-card .arch-line {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  color: var(--gold-ink); opacity: .7; pointer-events: none;
}
.card-star { width: 46px; height: 46px; color: var(--gold-ink); display: block; margin: 0 auto 16px; animation: spin 40s linear infinite; }
.dear { font-family: var(--f-serif); font-size: 1.75rem; font-weight: 500; color: var(--navy); }
.invite-text { font-family: var(--f-serif); font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); margin-top: 14px; }
.script-names { font-family: var(--f-script); font-size: clamp(2.3rem, 10vw, 3rem); color: var(--gold-ink); margin: 18px 0 14px; line-height: 1.15; }
.respect { font-size: .85rem; line-height: 1.7; color: var(--ink-2); }
.respect b { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); }

/* ---------- countdown ---------- */
.cd { margin: 26px auto 0; }
.cd-days b {
  display: block;
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(4.6rem, 22vw, 6rem); line-height: .95;
  color: var(--navy);
}
.cd small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin-top: 6px; }
.cd-row { display: flex; justify-content: center; margin-top: 22px; }
.cd-row div { width: 96px; position: relative; }
.cd-row div + div::before { content: ''; position: absolute; left: 0; top: 10%; height: 60%; width: 1px; background: rgba(127,97,42,.35); }
.cd-row b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 2.5rem; line-height: 1; color: var(--navy); }
.cd b.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: .25; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cd-done { font-family: var(--f-script); font-size: 2.6rem; color: var(--gold-ink); margin: 26px 0 10px; }

/* ---------- story ---------- */
.story { min-height: 92vh; display: flex; align-items: flex-end; padding-bottom: 70px; color: var(--on-dark); }
.story-bg { position: absolute !important; inset: -12% 0 !important; max-width: none !important; z-index: 0 !important; }
.story-bg img { width: 100%; height: 100%; object-fit: cover; }
.story-shade { position: absolute !important; inset: 0; z-index: 0 !important; max-width: none !important; background: linear-gradient(180deg, rgba(14,34,68,0) 30%, rgba(14,34,68,.92) 85%); }
.story-content { width: 100%; }
.heart { width: 26px; height: 26px; color: var(--gold); display: block; margin: 0 auto 10px; animation: beat 1.6s ease-in-out infinite; }
.heart use { fill: currentColor; stroke: none; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.story-text { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.55; color: var(--on-dark); margin-top: 12px; }

/* ---------- programme ---------- */
.timeline { margin-top: 34px; text-align: left; position: relative; }
.timeline::before { content: ''; position: absolute; left: 86px; top: 10px; bottom: 10px; width: 1px; background: rgba(212,176,106,.25); }
.timeline::after { content: ''; position: absolute; left: 86px; top: 10px; bottom: 10px; width: 1px; background: var(--gold); transform: scaleY(var(--fill, 0)); transform-origin: top; transition: transform .2s linear; }
.timeline li { display: grid; grid-template-columns: 86px 1fr; align-items: center; padding: 15px 0; position: relative; }
.timeline time { font-family: var(--f-serif); font-size: 1.55rem; font-weight: 500; color: var(--gold); padding-right: 22px; text-align: right; }
.timeline li::before {
  content: ''; position: absolute; left: 81px; top: 50%; width: 11px; height: 11px; margin-top: -5px;
  border: 1px solid var(--gold); background: var(--navy); transform: rotate(45deg);
  transition: background .5s, box-shadow .5s;
}
.timeline li.on::before { background: var(--gold); }
.timeline span { padding-left: 24px; font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.3; color: var(--on-dark); opacity: .55; transition: opacity .5s; }
.timeline li.on span { opacity: 1; }

/* ---------- venue ---------- */
.venue-name { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); margin-top: 10px; }
.venue-addr { font-size: .92rem; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
.map-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.map-btns .btn { min-width: 140px; }

/* ---------- dress ---------- */
.dress-photo {
  width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 26px !important;
  box-shadow: 0 0 0 6px var(--bordo), 0 0 0 7px var(--gold);
}
.dress-photo img { width: 100%; height: 100%; object-fit: cover; }
.dress-text { font-family: var(--f-serif); font-size: 1.25rem; line-height: 1.55; color: var(--on-dark-2); margin-top: 12px; }
.palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 380px !important; margin-top: 28px; }
.palette li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; font-size: .7rem; line-height: 1.3; color: var(--on-dark-2); text-align: center; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
.palette i {
  width: clamp(36px, 11vw, 48px); aspect-ratio: 1; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 3px var(--bordo), 0 0 0 4px rgba(212,176,106,.7);
  transform: scale(0); transition: transform .8s var(--ease);
}
.palette.is-in i { transform: scale(1); }
.palette li:nth-child(2) i { transition-delay: .1s; }
.palette li:nth-child(3) i { transition-delay: .2s; }
.palette li:nth-child(4) i { transition-delay: .3s; }
.palette li:nth-child(5) i { transition-delay: .4s; }

/* ---------- gallery ---------- */
.gallery { padding-left: 0; padding-right: 0; }
.gallery .title { padding: 0 22px; }
.g-track {
  display: flex; gap: 14px;
  max-width: none !important;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 30px calc(50% - 120px) 10px;
  scrollbar-width: none;
}
.g-track::-webkit-scrollbar { display: none; }
.g-track figure {
  flex: 0 0 240px; aspect-ratio: 5 / 7;
  scroll-snap-align: center;
  transition: transform .5s var(--ease), opacity .5s;
  transform: scale(.88); opacity: .55;
}
.g-track figure.on { transform: none; opacity: 1; }
.g-track img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
          mask: var(--arch) center / 100% 100% no-repeat;
}
.g-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.g-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(127,97,42,.3); transition: background .3s, transform .3s; }
.g-dots i.on { background: var(--gold-ink); transform: scale(1.3); }

/* ---------- rsvp ---------- */
.rsvp-card {
  background: var(--cream); color: var(--ink);
  border-radius: 24px 24px 24px 24px;
  padding: 40px 24px 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4), inset 0 0 0 1px rgba(127,97,42,.25);
}
.rsvp-text { font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); margin: 10px 0 26px; }
#rsvpForm { display: grid; gap: 18px; text-align: left; }
.field > span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .01em; color: var(--gold-ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid rgba(127,97,42,.35); border-radius: 12px;
  background: #fffaf1;
  font-size: 1rem; color: var(--ink);
  outline: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(212,176,106,.3); }
.field ::placeholder { color: #6f6558; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  min-height: 50px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(127,97,42,.35); background: #fffaf1;
  font-size: .85rem; font-weight: 500; line-height: 1.3;
  transition: background .3s, color .3s, border-color .3s;
}
.chip.active { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.rsvp-msg { min-height: 1.4em; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--navy); }
.rsvp-msg.show { animation: up .6s var(--ease); }

/* ---------- thanks ---------- */
.thanks { min-height: 100vh; display: flex; align-items: center; color: var(--on-dark); }
.thanks-bg { position: absolute !important; inset: 0; z-index: 0 !important; max-width: none !important; }
.thanks-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.thanks-shade { position: absolute !important; inset: 0; z-index: 0 !important; max-width: none !important; background: linear-gradient(180deg, rgba(14,34,68,.75), rgba(14,34,68,.35) 45%, rgba(14,34,68,.85)); }
.thanks-content { width: 100%; }
.thanks-big { font-family: var(--f-script); font-size: clamp(4rem, 20vw, 5.5rem); line-height: 1; color: var(--gold-2); }
.thanks-sub { font-family: var(--f-serif); font-size: 1.5rem; margin-top: 6px; }
.thanks-names { font-family: var(--f-serif); font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; }
.credit { margin-top: 40px; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- music + toast ---------- */
.music {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1d9a2, var(--gold) 55%, #a8843f);
  color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.7); pointer-events: none;
  transition: opacity .5s, transform .5s var(--ease);
}
body:not(.is-locked) .music { opacity: 1; transform: none; pointer-events: auto; }
.music .bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music .bars i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.music.playing .bars i { animation: eq .9s ease-in-out infinite; }
.music.playing .bars i:nth-child(2) { animation-delay: -.3s; }
.music.playing .bars i:nth-child(3) { animation-delay: -.6s; }
.music.playing .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 50% { height: 16px; } }
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 70;
  transform: translate(-50%, 16px);
  background: var(--navy); color: var(--on-dark);
  border: 1px solid rgba(212,176,106,.5);
  padding: 12px 20px; border-radius: 30px;
  font-size: .85rem; max-width: calc(100vw - 32px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.arch-photo.reveal { transform: translateY(26px) scale(.94); }
.arch-photo.reveal.is-in { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 900px) {
  .sec { padding-top: 110px; padding-bottom: 110px; }
  .gate-content { bottom: 40px; }
  .gate-arch { left: calc(50% - 300px); width: 600px; }
  .gate-photo img { object-position: 50% 12%; }
  .g-track figure { flex-basis: 280px; }
  .g-track { padding-left: calc(50% - 140px); padding-right: calc(50% - 140px); }
}
@media (max-width: 370px) {
  .sec { padding-left: 16px; padding-right: 16px; }
  .arch-card { padding: 80px 20px 36px; }
  .cd-row div { width: 84px; }
  .timeline::before, .timeline::after { left: 72px; }
  .timeline li { grid-template-columns: 72px 1fr; }
  .timeline li::before { left: 67px; }
  .timeline time { font-size: 1.35rem; padding-right: 18px; }
  .timeline span { padding-left: 20px; font-size: 1.12rem; }
  .langs button { min-width: 36px; padding: 7px 8px; }
}
@media (max-height: 640px) {
  .gate-names { font-size: 2.1rem; }
  .gate-date { font-size: 1.25rem; }
  .swipe-hint { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
