/* ==========================================================
   Bar Mitzvah · Yosef Haim — styles
   Palette from the save-the-date (navy, gold, cream stripes)
   and the kippah (black velvet, navy striped satin).
   ========================================================== */

:root {
  --ink: #070b1f;
  --navy-950: #0b1230;
  --navy-900: #111a42;
  --navy-800: #1a2556;
  --navy-700: #2b3566;
  --navy-600: #3a4475;
  --gold: #c9a24a;
  --gold-light: #f2d78f;
  --gold-pale: #f8ebc4;
  --gold-deep: #9a7425;
  --cream: #dfcda9;
  --ivory: #fbf7ee;
  --ivory-2: #f4ecdb;
  --text-light: #efe6d2;
  --text-muted: rgba(239, 230, 210, .62);
  --text-dark: #2b3566;

  --serif-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --hebrew: "Frank Ruhl Libre", "David", serif;

  --gold-grad: linear-gradient(115deg, #9a7425 0%, #d8b25a 22%, #f6e2a4 38%, #c9a24a 52%, #f2d78f 68%, #a98330 86%, #e8c977 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text-light);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; }

:lang(he), [lang="he"] { font-family: var(--hebrew); }
html[lang="he"] body { font-family: var(--hebrew); }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Logo (glitter PNG + moving shine through the mask) ---------- */
.logo {
  position: relative;
  aspect-ratio: 540 / 794;
  background: url("assets/logo-oro-hd.png") center / contain no-repeat;
}
.logo::after {
  content: "";
  position: absolute; inset: 0;
  -webkit-mask: url("assets/logo-mask.png") center / contain no-repeat;
          mask: url("assets/logo-mask.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 248, 220, .95) 48%, rgba(255, 255, 255, .0) 60%) 0 0 / 300% 100%;
  mix-blend-mode: screen;
  animation: shine 5.5s var(--ease-in-out) infinite;
}
@keyframes shine {
  0%, 30% { background-position: 120% 0; }
  70%, 100% { background-position: -40% 0; }
}

.logo--gate { display: block; width: clamp(110px, 30vw, 150px); }
.logo--hero { width: clamp(120px, 34vw, 190px); }
.logo--mini { width: 22px; display: block; }
.logo--mini::after, .logo--menu::after { display: none; }
.logo--menu { width: 64px; margin: 0 auto 18px; }
.logo--card { width: 92px; margin: 10px auto 22px; }
.logo--thanks { width: 70px; margin: 0 auto 14px; }
.logo--footer { width: 52px; margin: 0 auto 18px; opacity: .9; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.btn--gold {
  background: var(--gold-grad);
  background-size: 200% 100%;
  color: #2a1f08;
  box-shadow: 0 8px 28px -10px rgba(201, 162, 74, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold:hover { box-shadow: 0 14px 34px -10px rgba(242, 215, 143, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(242, 215, 143, .5);
  color: var(--gold-pale);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(242, 215, 143, .1); }
.btn--ghost-dark {
  background: transparent; border-color: rgba(43, 53, 102, .35); color: var(--text-dark);
}
.btn--he { font-family: var(--hebrew); letter-spacing: .02em; font-size: 15px; text-transform: none; }
html[lang="he"] .btn { font-family: var(--hebrew); letter-spacing: .04em; font-size: 15px; }
.btn--small { --pad-y: 10px; --pad-x: 18px; font-size: 11px; }
html[lang="he"] .btn--small { font-size: 14px; }
.btn--wide { width: 100%; }

/* ---------- Gate (opening curtain) ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  perspective: 1200px;
}
.gate__half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(120% 80% at 50% 50%, rgba(255, 255, 255, .05), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 60%, var(--ink));
  transition: transform 1.6s var(--ease-in-out);
  will-change: transform;
}
.gate__half--left { left: 0; }
.gate__half--right { right: 0; }
/* gold seam trim: visible only near the top and bottom edges, never behind the content */
.gate__half::before, .gate__half::after {
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 16%, transparent 84%, #000 100%);
          mask: linear-gradient(180deg, #000 0%, transparent 16%, transparent 84%, #000 100%);
}
.gate__half::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(242, 215, 143, .45); }
.gate__half--left::before { right: 0; }
.gate__half--right::before { left: 0; }
.gate__half::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px;
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 1px, transparent 1px 5px);
  opacity: .5;
}
.gate__half--left::after { right: 10px; }
.gate__half--right::after { left: 10px; }

.gate__content {
  position: relative; z-index: 2;
  text-align: center; padding: 24px;
  transition: opacity .7s, transform 1s var(--ease-out), filter .7s;
}
.gate__bsd { font-family: var(--hebrew); font-size: 13px; color: var(--text-muted); margin: 0 0 26px; }
.gate__seal {
  position: relative; display: grid; place-items: center; margin: 0 auto 26px; width: 240px; height: 240px;
  border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer;
  transition: transform .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.gate__seal:hover { transform: scale(1.04); }
.gate__seal:active { transform: scale(.97); }
.gate__seal:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 6px; }
.gate__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(242, 215, 143, .35);
  animation: ring 3.6s var(--ease-out) infinite;
}
.gate__ring--2 { animation-delay: 1.8s; }
@keyframes ring {
  0% { transform: scale(.55); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: scale(1.15); opacity: 0; }
}
.gate__seal .logo { animation: breathe 4s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(242, 190, 90, .45)); }
@keyframes breathe { 50% { transform: scale(1.04); filter: drop-shadow(0 0 34px rgba(242, 190, 90, .7)); } }
.gate__kicker {
  font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold-light); margin: 0 0 8px;
}
.gate__kicker span { font-family: var(--hebrew); font-size: 14px; letter-spacing: .08em; }
.gate__name {
  font-family: var(--serif-caps); font-size: clamp(30px, 8vw, 46px); letter-spacing: .12em;
  margin: 0 0 34px; color: var(--ivory);
}
.gate__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.gate.is-open .gate__half--left { transform: translateX(-102%); }
.gate.is-open .gate__half--right { transform: translateX(102%); }
.gate.is-open .gate__content { opacity: 0; transform: scale(1.25); filter: blur(6px); }
.gate.is-gone { display: none; }

/* ---------- FX canvas ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 120; }

/* ---------- Top bar & menu ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  transition: background-color .5s, backdrop-filter .5s, transform .6s var(--ease-out), box-shadow .5s;
  transform: translateY(-100%);
}
body.is-open .topbar { transform: none; }
.topbar.is-solid {
  background: rgba(11, 18, 48, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(242, 215, 143, .14);
}
.topbar__logo { display: block; padding: 4px; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 8px; direction: ltr; }
.lang__btn {
  background: none; border: 0; padding: 6px 2px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .15em; color: var(--text-muted);
  transition: color .3s;
}
.lang__btn[lang="he"] { font-family: var(--hebrew); font-size: 14px; letter-spacing: 0; }
.lang__btn.is-active { color: var(--gold-light); }
.lang__sep { width: 1px; height: 14px; background: rgba(242, 215, 143, .35); }

.burger {
  position: relative; z-index: 61;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(242, 215, 143, .35); background: rgba(11, 18, 48, .35);
  display: grid; place-content: center; gap: 6px;
}
.burger span { display: block; width: 16px; height: 1px; background: var(--gold-light); transition: transform .5s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 40%, rgba(43, 53, 102, .96), rgba(7, 11, 31, .98));
  clip-path: circle(0% at calc(100% - 38px) 34px);
  transition: clip-path .9s var(--ease-in-out);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 38px) 34px); visibility: visible; }
.menu__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.menu a {
  font-family: var(--serif-caps); font-size: clamp(24px, 6vw, 34px); letter-spacing: .14em;
  text-decoration: none; color: var(--ivory); padding: 8px 12px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s, transform .8s var(--ease-out), color .3s;
}
html[lang="he"] .menu a { font-family: var(--hebrew); letter-spacing: .02em; }
.menu a:hover { color: var(--gold-light); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-of-type(1) { transition-delay: .25s; }
.menu.is-open a:nth-of-type(2) { transition-delay: .32s; }
.menu.is-open a:nth-of-type(3) { transition-delay: .39s; }
.menu.is-open a:nth-of-type(4) { transition-delay: .46s; }
.menu.is-open a:nth-of-type(5) { transition-delay: .53s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 90px 18px 110px;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(58, 68, 117, .55), transparent 70%),
    radial-gradient(120% 90% at 50% 100%, var(--ink), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__stripes {
  position: absolute; inset: -10% 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px);
  -webkit-mask: radial-gradient(70% 60% at 50% 45%, #000, transparent 75%);
          mask: radial-gradient(70% 60% at 50% 45%, #000, transparent 75%);
}
.hero__content { position: relative; z-index: 1; text-align: center; max-width: 640px; width: 100%; }
.hero__bsd { font-family: var(--hebrew); font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }

.hero__logo-wrap { position: relative; display: grid; place-items: center; margin: 0 auto 26px; }
.hero__glow {
  position: absolute; width: 150%; aspect-ratio: 1; left: 50%; top: 55%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(242, 190, 90, .32), rgba(242, 190, 90, .08) 40%, transparent 68%);
  animation: glow 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow { 50% { opacity: .65; scale: .92; } }
.logo--hero { transform-origin: 50% 100%; animation: flicker 6s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: skewX(0) scaleY(1); }
  20% { transform: skewX(-1deg) scaleY(1.012); }
  40% { transform: skewX(.8deg) scaleY(.995); }
  60% { transform: skewX(-.5deg) scaleY(1.01); }
  80% { transform: skewX(.6deg) scaleY(1); }
}

.hero__kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold-light); margin: 0 0 6px; padding-inline-start: .5em;
}
html[lang="he"] .hero__kicker { font-family: var(--hebrew); letter-spacing: .04em; font-size: 18px; padding: 0; }
.hero__name {
  margin: 0;
  font-family: var(--serif-caps); font-weight: 500;
  font-size: clamp(40px, 11.5vw, 84px); line-height: 1.05; letter-spacing: .08em;
}
html[lang="he"] .hero__name { font-family: var(--hebrew); font-weight: 500; letter-spacing: 0; font-size: clamp(48px, 13vw, 96px); }
.hero__name .split { color: var(--gold-light); }
.gold-text, .section-head__title, .announce__title, .event__title {
  background: var(--gold-grad);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gold-move 9s linear infinite;
}
@keyframes gold-move { to { background-position: 250% 0; } }
.split .ch {
  display: inline-block;
  background: var(--gold-grad); background-size: 900% 100%;
  background-position: calc(var(--i) * 12%) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gold-move 14s linear infinite;
  animation-delay: calc(var(--i) * -.25s);
  opacity: 0; transform: translateY(.45em) rotateX(60deg); filter: blur(6px);
  transition: opacity .9s, transform 1.1s var(--ease-out), filter .9s;
  transition-delay: calc(var(--i) * 55ms + .35s);
}
body.is-open .split .ch { opacity: 1; transform: none; filter: none; }

.hero__surname {
  font-family: var(--serif-caps); font-size: clamp(14px, 3.6vw, 18px); letter-spacing: .6em;
  color: var(--ivory); margin: 10px 0 0; padding-inline-start: .6em;
}
html[lang="he"] .hero__surname { font-family: var(--hebrew); letter-spacing: .04em; font-size: 22px; padding: 0; }
.hero__date {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 4.4vw, 21px);
  color: var(--text-muted); margin: 16px 0 30px;
}
html[lang="he"] .hero__date { font-style: normal; }

.hero__content > :not(.hero__logo-wrap):not(h1) {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s, transform 1.2s var(--ease-out);
}
.hero__logo-wrap { opacity: 0; transform: scale(.85); transition: opacity 1.4s, transform 1.8s var(--ease-out); }
body.is-open .hero__logo-wrap { opacity: 1; transform: none; }
body.is-open .hero__content > :not(.hero__logo-wrap):not(h1) { opacity: 1; transform: none; }
body.is-open .hero__bsd { transition-delay: .1s; }
body.is-open .hero__kicker { transition-delay: .3s; }
body.is-open .hero__surname { transition-delay: 1.0s; }
body.is-open .hero__date { transition-delay: 1.15s; }
body.is-open .countdown { transition-delay: 1.3s; }
body.is-open .hero__actions { transition-delay: 1.5s; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 400px; margin: 0 auto 30px; }
.countdown__unit {
  position: relative;
  padding: 14px 4px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(43, 53, 102, .55), rgba(11, 18, 48, .6));
  border: 1px solid rgba(242, 215, 143, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.countdown__unit::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff6d0, #f2b84a 60%, transparent 70%);
  filter: blur(.3px);
  animation: tiny-flame 1.6s ease-in-out infinite alternate;
}
.countdown__unit:nth-child(2)::before { animation-delay: -.4s; }
.countdown__unit:nth-child(3)::before { animation-delay: -.9s; }
.countdown__unit:nth-child(4)::before { animation-delay: -1.3s; }
@keyframes tiny-flame { 50% { transform: scaleY(1.3) skewX(4deg); } 100% { transform: scaleY(.9) skewX(-3deg); opacity: .8; } }
.countdown__num {
  display: block; margin-top: 6px;
  font-family: var(--serif-caps); font-size: clamp(24px, 7vw, 34px); line-height: 1.1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.countdown__num.tick { animation: tick .6s var(--ease-out); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; filter: blur(3px); } 100% { transform: none; opacity: 1; filter: none; } }
.countdown__label {
  display: block; margin-top: 4px;
  font-family: var(--sans); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light);
}
html[lang="he"] .countdown__label { font-family: var(--hebrew); font-size: 13px; letter-spacing: 0; }
.countdown__done {
  font-family: var(--serif-caps); font-size: 34px; margin: 0 0 30px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.scroll-cue {
  position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--text-muted);
  text-decoration: none;
  opacity: 0; transition: opacity 1s 2s;
}
html[lang="he"] .scroll-cue { font-family: var(--hebrew); letter-spacing: 0; font-size: 14px; }
body.is-open .scroll-cue { opacity: 1; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold-light), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; width: 1px; height: 12px; background: #fff; animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { from { top: -12px; } to { top: 38px; } }

/* ---------- Reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s, transform 1.2s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="pop"] { transform: scale(.7) rotate(-6deg); filter: blur(4px); transition: opacity 1s, transform 1.4s var(--ease-out), filter 1s; }
[data-reveal="pop"].is-in { filter: none; }
[data-reveal="card"] { transform: translateY(50px) scale(.97); }
[data-reveal="frame"] { transform: none; opacity: 1; }
[data-reveal="draw"] { transform: none; }
[data-reveal="words"] { transform: none; opacity: 1; }
[data-reveal="line"] { transform: scaleX(0); opacity: 1; transition: transform 1.4s var(--ease-in-out); }
[data-reveal="line"].is-in { transform: scaleX(1); }

/* ---------- Verse ---------- */
.verse {
  position: relative;
  padding: 110px 22px 120px;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.verse__ornament svg { width: 200px; height: 20px; overflow: visible; }
.verse__ornament path {
  fill: none; stroke: var(--gold); stroke-width: 1;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.6s var(--ease-in-out);
}
.verse__ornament.is-in path { stroke-dashoffset: 0; }
.verse__he {
  font-family: var(--hebrew); font-weight: 400;
  font-size: clamp(30px, 8vw, 50px); line-height: 1.5;
  color: var(--gold-pale);
  margin: 34px auto 22px; max-width: 760px;
}
.verse__he .w {
  display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(8px);
  transition: opacity 1.2s, transform 1.4s var(--ease-out), filter 1.2s;
  transition-delay: calc(var(--i) * 180ms);
}
.verse__he.is-in .w { opacity: 1; transform: none; filter: none; text-shadow: 0 0 24px rgba(242, 190, 90, .35); }
.verse__tr { font-style: italic; font-size: clamp(19px, 4.8vw, 24px); color: var(--text-light); max-width: 560px; margin: 0 auto 12px; transition-delay: .9s; }
html[lang="he"] .verse__tr { font-style: normal; }
.verse__src { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0; transition-delay: 1.2s; }
html[lang="he"] .verse__src { font-family: var(--hebrew); letter-spacing: .05em; font-size: 15px; }

/* ---------- Announcement (save-the-date card) ---------- */
.announce {
  position: relative;
  padding: 70px 16px;
  overflow: hidden;
}
.announce__stripes {
  position: absolute; inset: -20% 0; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--navy-600) 0 16px, var(--cream) 16px 32px);
  will-change: transform;
}
.card-deco {
  --frame: 14px;
  position: relative;
  max-width: 560px; margin: 0 auto;
  background: var(--ivory);
  color: var(--text-dark);
  padding: 64px 34px 60px;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(7, 11, 31, .7);
}
.card-deco__body { position: relative; z-index: 1; }
.card-deco__bsd { position: absolute; top: -40px; inset-inline-end: -12px; font-family: var(--hebrew); font-size: 12px; margin: 0; color: var(--navy-700); }

/* animated art-deco frame */
.deco-edge { position: absolute; transition: transform 1.6s var(--ease-in-out); }
.deco-edge--top, .deco-edge--bottom { left: 64px; right: 64px; height: 8px; border-block: 2px solid var(--gold); border-bottom-width: 1px; transform: scaleX(0); }
.deco-edge--top { top: var(--frame); }
.deco-edge--bottom { bottom: var(--frame); border-top-width: 1px; border-bottom-width: 2px; }
.deco-edge--left, .deco-edge--right { top: 64px; bottom: 64px; width: 8px; border-inline: 2px solid var(--gold); transform: scaleY(0); }
.deco-edge--left { left: var(--frame); border-right-width: 1px; }
.deco-edge--right { right: var(--frame); border-left-width: 1px; }
.deco-edge { border-color: transparent; border-image: linear-gradient(90deg, #a8822f, #f2d78f, #b8912f, #f2d78f, #a8822f) 1; }
.deco-edge--left, .deco-edge--right { border-image: linear-gradient(180deg, #a8822f, #f2d78f, #b8912f, #f2d78f, #a8822f) 1; }
.card-deco.is-in .deco-edge { transform: none; transition-delay: .5s; }

.deco-corner {
  position: absolute; width: 64px; height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23a8822f'/%3E%3Cstop offset='.45' stop-color='%23f2d78f'/%3E%3Cstop offset='1' stop-color='%23b8912f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='2'%3E%3Crect x='14' y='14' width='26' height='26'/%3E%3Cpath d='M0 24H58M24 0V58M0 30H48M30 0V48'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: scale(.4) rotate(-45deg);
  transition: opacity .8s, transform 1.2s var(--ease-out);
}
.deco-corner--tl { top: 0; left: 0; }
.deco-corner--tr { top: 0; right: 0; rotate: 90deg; }
.deco-corner--br { bottom: 0; right: 0; rotate: 180deg; }
.deco-corner--bl { bottom: 0; left: 0; rotate: 270deg; }
.card-deco.is-in .deco-corner { opacity: 1; transform: none; }

.announce__parents { font-family: var(--serif-caps); font-size: clamp(20px, 5.4vw, 26px); letter-spacing: .08em; margin: 0 0 6px; color: var(--navy-700); }
.announce__siblings { font-style: italic; font-size: clamp(17px, 4.4vw, 20px); margin: 0 0 18px; color: var(--navy-600); }
.announce__lead, .announce__of { font-style: italic; font-size: 19px; margin: 0; color: var(--navy-600); }
html[lang="he"] .announce__siblings, html[lang="he"] .announce__lead, html[lang="he"] .announce__of { font-style: normal; }
html[lang="he"] .announce__parents { font-family: var(--hebrew); font-weight: 500; letter-spacing: 0; }
.announce__title {
  font-family: var(--serif-caps); font-weight: 500;
  font-size: clamp(32px, 9vw, 50px); letter-spacing: .06em; line-height: 1.15;
  margin: 8px 0 6px;
  filter: drop-shadow(0 1px 0 rgba(154, 116, 37, .25));
}
html[lang="he"] .announce__title { font-family: var(--hebrew); letter-spacing: 0; }
.announce__name {
  font-family: var(--serif-caps); font-weight: 600;
  font-size: clamp(34px, 9.5vw, 52px); letter-spacing: .04em; line-height: 1.1;
  margin: 12px 0 0; color: var(--navy-700);
}
html[lang="he"] .announce__name { font-family: var(--hebrew); font-weight: 700; letter-spacing: 0; }
.announce__name small { font-family: var(--hebrew); font-size: .32em; font-weight: 500; vertical-align: super; color: var(--gold-deep); }
.divider { width: 120px; height: 1px; margin: 26px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.announce__date { font-family: var(--serif-caps); font-size: clamp(16px, 4.6vw, 24px); letter-spacing: .2em; white-space: nowrap; margin: 0; color: var(--navy-700); }
.announce__date i { font-style: normal; color: var(--gold); margin: 0 .1em; }
html[lang="he"] .announce__date { font-family: var(--hebrew); letter-spacing: .08em; }
.announce__shabbat { font-family: var(--serif-caps); font-size: 15px; letter-spacing: .3em; color: var(--gold-deep); margin: 10px 0 2px; }
html[lang="he"] .announce__shabbat { font-family: var(--hebrew); letter-spacing: .05em; font-size: 19px; }
.announce__hebdate { font-family: var(--hebrew); font-size: 20px; margin: 0 0 22px; color: var(--navy-700); }
.announce__city { font-family: var(--serif-caps); letter-spacing: .35em; font-size: 15px; margin: 0; color: var(--navy-700); }
html[lang="he"] .announce__city { font-family: var(--hebrew); letter-spacing: .1em; font-size: 18px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin: 0 auto 44px; }
.section-head__kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 10px; }
html[lang="he"] .section-head__kicker { font-family: var(--hebrew); letter-spacing: .04em; font-size: 15px; }
.section-head__title { font-family: var(--serif-caps); font-weight: 500; font-size: clamp(30px, 8vw, 46px); letter-spacing: .08em; margin: 0; line-height: 1.15; }
html[lang="he"] .section-head__title { font-family: var(--hebrew); letter-spacing: 0; }
.section-head .divider { margin: 20px auto 0; }
.section-head--dark .section-head__kicker { color: var(--gold-deep); }

/* ---------- Program ---------- */
.program {
  position: relative;
  padding: 110px 18px 120px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(58, 68, 117, .45), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.timeline {
  position: relative;
  display: grid; gap: 34px;
  max-width: 1120px; margin: 0 auto;
}
.timeline__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; translate: -50% 0;
  background: rgba(242, 215, 143, .14);
}
.timeline__fill { position: absolute; top: 0; left: 0; width: 1px; height: 0; background: linear-gradient(180deg, transparent, var(--gold-light)); box-shadow: 0 0 10px var(--gold-light); }
.timeline__fill::after { content: ""; position: absolute; bottom: -4px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff6d0; box-shadow: 0 0 14px 4px rgba(242, 190, 90, .8); }

.event {
  position: relative;
  max-width: 420px; width: 100%; margin: 0 auto;
  padding: 44px 26px 32px;
  text-align: center;
  border-radius: 26px 26px 26px 26px;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #232e62, #131c47);
  border: 1px solid rgba(242, 215, 143, .25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.event::before {
  content: ""; position: absolute; inset: 8px; border-radius: 20px;
  border: 1px solid rgba(242, 215, 143, .12); pointer-events: none;
}
.event__icon {
  width: 72px; height: 72px; margin: -80px auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--navy-700), var(--navy-950));
  border: 1px solid rgba(242, 215, 143, .45);
  box-shadow: 0 0 0 6px var(--navy-950), 0 0 30px rgba(242, 190, 90, .25);
}
.ico { width: 40px; height: 40px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--tefillin .ico__box { fill: rgba(242, 215, 143, .1); }
.ico--tefillin .ico__box--front { fill: rgba(242, 215, 143, .16); }
.ico--tefillin .ico__base { fill: rgba(242, 215, 143, .08); }
.ico__shin-heads { fill: #fff1c4; stroke: none; animation: shin-glow 3s ease-in-out infinite; }
.ico__shin { stroke: #fff1c4; stroke-width: 1.8; animation: shin-glow 3s ease-in-out infinite; }
@keyframes shin-glow { 50% { filter: drop-shadow(0 0 3px rgba(255, 220, 140, .9)); stroke: #fff; } }
.ico__strap { stroke-width: 2.2; stroke-dasharray: 40; stroke-dashoffset: 40; animation: strap 4.2s var(--ease-in-out) infinite; }
.ico__strap--2 { animation-delay: .5s; }
@keyframes strap { 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
@keyframes spin { to { transform: rotate(360deg); } }
.ico__flame { fill: #f6d27a; stroke: #ffe7a8; stroke-width: .6; transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.3s ease-in-out infinite alternate; }
.ico__flame--2 { animation-delay: -.6s; }
@keyframes flame { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.9, 1.15) skewX(5deg); } 100% { transform: scale(1.05, .92) skewX(-4deg); } }
.ico__lines { stroke-dasharray: 22; stroke-dashoffset: 22; animation: write 3.4s var(--ease-in-out) infinite; }
@keyframes write { 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -22; } }

.event__num { font-family: var(--serif-caps); font-size: 12px; letter-spacing: .4em; color: var(--gold); margin: 0 0 4px; padding-inline-start: .4em; }
.event__title { font-family: var(--serif-caps); font-weight: 500; font-size: clamp(26px, 7vw, 32px); letter-spacing: .08em; margin: 0; line-height: 1.2; }
html[lang="he"] .event__title { font-family: var(--hebrew); letter-spacing: 0; }
.event__sub { font-style: italic; font-size: 18px; color: var(--text-muted); margin: 6px 0 0; }
html[lang="he"] .event__sub { font-style: normal; }
.event__sep { width: 40px; height: 1px; margin: 20px auto; background: var(--gold); opacity: .6; }
.event__day { font-family: var(--serif-caps); font-size: 15px; letter-spacing: .12em; margin: 0; color: var(--ivory); }
html[lang="he"] .event__day { font-family: var(--hebrew); letter-spacing: 0; font-size: 18px; }
.event__alt { font-size: 16px; color: var(--text-muted); margin: 2px 0 10px; }
.event__time { font-family: var(--serif-caps); font-size: 26px; color: var(--gold-light); margin: 0 0 12px; letter-spacing: .06em; }
html[lang="he"] .event__time { font-family: var(--hebrew); }
.event__place { font-size: 19px; margin: 0; font-weight: 500; color: var(--ivory); }
.event__city { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); margin: 2px 0 22px; }
html[lang="he"] .event__city { font-family: var(--hebrew); letter-spacing: .05em; font-size: 14px; }
.event__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.program__closing { text-align: center; font-style: italic; font-size: clamp(20px, 5vw, 26px); color: var(--gold-pale); margin: 60px 0 0; }
html[lang="he"] .program__closing { font-style: normal; }

/* ---------- RSVP ---------- */
.rsvp {
  padding: 40px 14px 110px;
  background: linear-gradient(180deg, var(--navy-950), var(--ink));
}
.rsvp__card {
  max-width: 600px; margin: 0 auto;
  padding: 50px 22px 36px;
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 50% 0%, #fff, transparent 70%),
    var(--ivory);
  color: var(--text-dark);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 215, 143, .5), 0 0 0 7px var(--navy-950), 0 0 0 8px rgba(242, 215, 143, .35);
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field__label { font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-600); }
html[lang="he"] .field__label { font-family: var(--hebrew); font-size: 14px; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 18px; color: var(--text-dark);
  background: #fff;
  border: 1px solid rgba(43, 53, 102, .18);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18); }
.field input.is-invalid { border-color: #b4483c; box-shadow: 0 0 0 4px rgba(180, 72, 60, .12); }

.attend { display: grid; gap: 12px; }
.attend__item {
  border: 1px solid rgba(43, 53, 102, .14);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s, opacity .4s;
}
.attend__item.is-on { border-color: var(--gold); box-shadow: 0 10px 26px -18px rgba(154, 116, 37, .9); }
.attend__item.is-disabled { opacity: .45; pointer-events: none; }
.attend__head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.attend__text { flex: 1; min-width: 0; }
.attend__title { display: block; font-family: var(--serif-caps); font-size: 16px; letter-spacing: .06em; color: var(--navy-700); }
html[lang="he"] .attend__title { font-family: var(--hebrew); font-weight: 500; font-size: 18px; letter-spacing: 0; }
.attend__when { display: block; font-size: 15px; color: var(--navy-600); opacity: .8; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(43, 53, 102, .18); transition: background .35s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .45s var(--ease-out); }
.switch input:checked + span { background: var(--gold-grad); }
.switch input:checked + span::after { transform: translateX(20px); }
[dir="rtl"] .switch span::after { left: auto; right: 3px; }
[dir="rtl"] .switch input:checked + span::after { transform: translateX(-20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.attend__counts { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.attend__item.is-on .attend__counts { grid-template-rows: 1fr; }
.attend__counts > div { overflow: hidden; }
.attend__counts-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--ivory-2); }
.stepper__label { font-family: var(--sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-600); }
html[lang="he"] .stepper__label { font-family: var(--hebrew); font-size: 14px; letter-spacing: 0; }
.stepper__ctrl { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(43, 53, 102, .25); background: #fff; font-size: 16px; line-height: 1; color: var(--navy-700); transition: background .2s, transform .2s; }
.stepper button:active { transform: scale(.9); background: var(--gold-pale); }
.stepper output { min-width: 18px; text-align: center; font-family: var(--serif-caps); font-size: 18px; color: var(--navy-700); }

.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 18px; color: var(--navy-700); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(43, 53, 102, .35); background: #fff; position: relative; transition: background .3s, border-color .3s; }
.check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #2a1f08; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease-out); }
.check input:checked + .check__box { background: var(--gold-grad); border-color: var(--gold); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }

.form__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(180, 72, 60, .08); color: #8e3127; font-size: 16px; }
.form__note { text-align: center; font-size: 15px; font-style: italic; color: var(--navy-600); margin: -4px 0 0; opacity: .8; }
html[lang="he"] .form__note { font-style: normal; }

.thanks { text-align: center; padding: 10px 6px; display: grid; justify-items: center; gap: 12px; }
.thanks[hidden] { display: none; }
.thanks__title { font-family: var(--serif-caps); font-weight: 500; font-size: 38px; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="he"] .thanks__title { font-family: var(--hebrew); }
.thanks__text { font-size: 19px; margin: 0 0 8px; max-width: 420px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 70px 20px calc(50px + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid rgba(242, 215, 143, .12);
}
.footer__name { font-style: italic; font-size: 20px; color: var(--gold-pale); margin: 0 0 26px; }
html[lang="he"] .footer__name { font-style: normal; }
.footer__label { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
html[lang="he"] .footer__label { font-family: var(--hebrew); font-size: 14px; letter-spacing: 0; }
.footer__wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(242, 215, 143, .3);
  text-decoration: none; font-family: var(--sans); letter-spacing: .08em; font-size: 15px; color: var(--ivory);
  transition: background .3s, border-color .3s;
  direction: ltr;
}
.footer__wa:hover { background: rgba(242, 215, 143, .08); border-color: var(--gold-light); }
.footer__wa svg { width: 18px; height: 18px; fill: var(--gold-light); }
.footer__bsd { font-family: var(--hebrew); color: var(--text-muted); font-size: 12px; margin: 30px 0 0; }

/* Language swap fade */
body.lang-swap main, body.lang-swap .footer, body.lang-swap .menu__inner { opacity: 0; transition: opacity .25s; }
main, .footer, .menu__inner { transition: opacity .35s; }

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  body { font-size: 19px; }
  .card-deco { padding: 80px 70px 76px; }
  .rsvp__card { padding: 60px 48px 44px; }
  .topbar { padding-inline: 32px; }
}
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(3, 1fr); column-gap: 28px; row-gap: 0; padding-top: 40px; }
  .timeline__line { top: 76px; bottom: auto; left: 8%; right: 8%; width: auto; height: 1px; translate: 0 0; }
  .timeline__fill { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
  .timeline__fill::after { bottom: auto; top: -3px; left: auto; right: -4px; }
  [dir="rtl"] .timeline__fill { right: 0; left: auto; background: linear-gradient(270deg, transparent, var(--gold-light)); }
  [dir="rtl"] .timeline__fill::after { right: auto; left: -4px; }
  /* Share the row tracks across the three cards so every line sits at the same height */
  .event { max-width: none; display: grid; grid-row: span 11; grid-template-rows: subgrid; row-gap: 0; align-items: center; }
  .event__links { align-self: end; }
}
@media (max-width: 420px) {
  .form__row { grid-template-columns: 1fr; }
  .attend__counts-inner { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Photos page ---------- */
.photos-page { overflow-x: hidden; }
.photos-page .topbar { transform: none; }
.topbar__back {
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color .3s;
}
.topbar__back:hover { color: var(--gold-light); }
html[lang="he"] .topbar__back { font-family: var(--hebrew); font-size: 14px; letter-spacing: 0; }
@media (max-width: 480px) { .topbar__back { display: none; } }

.photos {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(96px + env(safe-area-inset-top)) 16px 80px;
  background:
    radial-gradient(70% 45% at 50% 18%, rgba(58, 68, 117, .55), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.photos__stripes {
  position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px);
  -webkit-mask: radial-gradient(70% 50% at 50% 20%, #000, transparent 75%);
          mask: radial-gradient(70% 50% at 50% 20%, #000, transparent 75%);
}
.photos__head { text-align: center; max-width: 560px; margin: 0 auto 34px; animation: rise 1.2s var(--ease-out) both; }
.logo--photos { width: 84px; margin: 0 auto 20px; filter: drop-shadow(0 0 22px rgba(242, 190, 90, .4)); animation: breathe 4s ease-in-out infinite; }
.photos__head .divider { margin: 18px auto; }
.photos__intro { font-style: italic; font-size: clamp(18px, 4.6vw, 21px); color: var(--text-light); margin: 0; }
html[lang="he"] .photos__intro { font-style: normal; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.photos__card {
  max-width: 600px; margin: 0 auto;
  display: grid; gap: 18px;
  padding: 30px 20px 26px;
  border-radius: 28px;
  background: radial-gradient(90% 60% at 50% 0%, #fff, transparent 70%), var(--ivory);
  color: var(--text-dark);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 215, 143, .5), 0 0 0 7px var(--navy-950), 0 0 0 8px rgba(242, 215, 143, .35);
  animation: rise 1.2s .15s var(--ease-out) both;
}

.drop {
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  padding: 30px 16px;
  border: 1.5px dashed rgba(154, 116, 37, .55);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--ivory-2));
  text-align: center; cursor: pointer;
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.drop:hover, .drop.is-over { border-color: var(--gold); transform: translateY(-2px); background: #fff; }
.drop.is-disabled { pointer-events: none; opacity: .5; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: radial-gradient(circle at 50% 35%, var(--navy-700), var(--navy-950));
  box-shadow: 0 0 0 1px rgba(242, 215, 143, .45), 0 10px 26px -10px rgba(11, 18, 48, .8);
}
.drop__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linejoin: round; }
.drop__icon svg circle:last-child { fill: var(--gold-light); stroke: none; animation: shin-glow 2.6s ease-in-out infinite; }
.drop__title { font-family: var(--serif-caps); font-size: 20px; letter-spacing: .08em; color: var(--navy-700); }
html[lang="he"] .drop__title { font-family: var(--hebrew); font-weight: 500; letter-spacing: 0; }
.drop__hint { font-size: 16px; color: var(--navy-600); opacity: .8; }

.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--ivory-2); box-shadow: 0 6px 16px -10px rgba(11, 18, 48, .7);
  opacity: 0; transform: scale(.8);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.thumb.is-in { opacity: 1; transform: none; }
.thumb.is-leaving { opacity: 0; transform: scale(.6); }
.thumb__img { position: absolute; inset: 0; background: center / cover no-repeat; transition: filter .4s, transform .6s var(--ease-out); }
.thumb.is-uploading .thumb__img { filter: brightness(.55) saturate(.6); }
.thumb.is-done .thumb__img { transform: scale(1.04); }
.thumb__state { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.thumb.is-uploading .thumb__state::after {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(242, 215, 143, .3); border-top-color: var(--gold-light);
  animation: spin .9s linear infinite;
}
.thumb.is-done .thumb__state::after {
  content: "✓"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #2a1f08; font: 600 16px/1 var(--sans);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  animation: pop .5s var(--ease-out);
}
.thumb.is-error { box-shadow: 0 0 0 2px #b4483c; }
.thumb.is-error .thumb__state::after { content: "!"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #b4483c; color: #fff; font: 600 16px/1 var(--sans); }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
@keyframes spin { to { transform: rotate(360deg); } }
.thumb__remove {
  position: absolute; top: 5px; inset-inline-end: 5px;
  width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(11, 18, 48, .7); color: #fff; font-size: 16px; line-height: 1;
}
.thumb.is-uploading .thumb__remove, .thumb.is-done .thumb__remove { display: none; }

.progress { height: 4px; border-radius: 99px; background: rgba(43, 53, 102, .12); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .4s var(--ease-out); }

.footer--slim { padding-top: 40px; }
.footer--slim .btn { margin-bottom: 4px; }

/* Photos call-to-action on the invitation */
.photos-cta { padding: 0 16px 100px; background: var(--ink); text-align: center; }
.photos-cta__card {
  max-width: 600px; margin: 0 auto; padding: 40px 24px;
  border-radius: 26px; border: 1px solid rgba(242, 215, 143, .25);
  background: linear-gradient(180deg, rgba(43, 53, 102, .55), rgba(17, 26, 66, .7));
}
.photos-cta__icon { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(242, 215, 143, .45); }
.photos-cta__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linejoin: round; }
.photos-cta__text { font-style: italic; font-size: 19px; color: var(--text-light); margin: 12px auto 24px; max-width: 420px; }
html[lang="he"] .photos-cta__text { font-style: normal; }

/* ---------- Background music button ---------- */
.sound {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--navy-700), var(--navy-950));
  border: 1px solid rgba(242, 215, 143, .6);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .9);
  animation: rise .8s 1.6s var(--ease-out) backwards;
  transition: transform .3s var(--ease-out);
}
.sound:hover { transform: scale(1.06); }
.sound:active { transform: scale(.95); }
.sound:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
[dir="rtl"] .sound { right: auto; left: max(16px, env(safe-area-inset-left)); }
.sound::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(242, 215, 143, .5); opacity: 0;
}
.sound.is-playing::after { animation: ring 2.6s var(--ease-out) infinite; }
.sound__eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.sound__eq i { width: 3px; height: 40%; border-radius: 2px; background: var(--gold-light); animation: eq .9s ease-in-out infinite alternate; }
.sound__eq i:nth-child(2) { animation-delay: -.3s; }
.sound__eq i:nth-child(3) { animation-delay: -.6s; }
.sound__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.sound.is-playing .sound__eq { display: flex; }
.sound__off { width: 20px; height: 20px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound.is-playing .sound__off { display: none; }
.sound__slash { stroke: var(--gold-pale); }
