/* =========================================================
   Sorin face 40 — invitație
   Minimalist modern: alb, cerneală, roșu.
   ========================================================= */

:root {
  --paper: #FBFAF7;
  --paper-2: #F2EFE9;
  --white: #FFFFFF;
  --ink: #141414;
  --muted: #6E6A63;
  --line: #E3DFD7;
  --red: #D41E2B;
  --red-deep: #A9141F;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.is-locked,
html.is-locked body { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.red { color: var(--red); }

.eyebrow {
  margin: 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn:not(.btn--ink):not(.btn--red):hover { background: var(--ink); color: var(--paper); }

.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn--wa svg { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-btn {
  margin-top: 20px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--red); }

/* ---------- Coperta ---------- */

.cover { display: none; }

.js .cover {
  --arch-w: clamp(160px, min(46vw, 36vh), 290px);
  --paper-a: rgba(251, 250, 247, .62);

  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: max(20px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 70% at 50% 42%, #242220 0%, #141414 62%, #0D0D0D 100%);
  color: var(--paper);
  overflow: hidden;
  transition: transform 1s var(--ease-io);
  will-change: transform;
}
/* textură fină de hârtie */
.js .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.js.cover-skipped .cover,
.cover[hidden] { display: none !important; }

.cover > * { position: relative; }

.cover__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-a);
  animation: rise .9s var(--ease) .05s backwards;
}

.cover__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cover__eyebrow {
  margin: 0 0 clamp(18px, 3.5vh, 32px);
  max-width: 30rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-a);
  animation: rise .9s var(--ease) .1s backwards;
}
.cover__eyebrow strong { color: var(--paper); font-weight: 700; }

/* scena: arcada cu portretul, „4” și „0” de o parte și de alta */
.cover__stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.cover__digit {
  position: absolute;
  bottom: 6%;
  z-index: 0;
  font-size: calc(var(--arch-w) * .78);
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.06em;
  transition: transform 1s var(--ease-io), opacity .6s var(--ease);
}
.cover__digit > span { display: block; }
.cover__digit--4 {
  right: calc(50% + var(--arch-w) / 2 - .12em);
  color: var(--red);
}
.cover__digit--4 > span { animation: slide-l 1.2s var(--ease) .35s backwards; }
.cover__digit--0 {
  left: calc(50% + var(--arch-w) / 2 - .12em);
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, .25vw, 2.5px) var(--paper);
}
.cover__digit--0 > span { animation: slide-r 1.2s var(--ease) .35s backwards; }

.cover__arch {
  position: relative;
  z-index: 1;
  width: var(--arch-w);
  aspect-ratio: 3 / 4;
  transition: transform 1s var(--ease-io), opacity .6s var(--ease);
}
/* contur fin, decalat, în jurul arcadei */
.cover__arch::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(251, 250, 247, .32);
  border-radius: calc(var(--arch-w) / 2 + 10px) calc(var(--arch-w) / 2 + 10px) 4px 4px;
  animation: fade 1.4s var(--ease) .9s backwards;
}
.cover__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 2px 2px;
  background: #222;
  animation: unveil 1.3s var(--ease-io) .15s backwards;
}
.cover__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, .88) 0%, rgba(20, 20, 20, 0) 42%);
}
.cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 50%;
  filter: contrast(1.04) saturate(1.05);
  animation: settle 2.2s var(--ease) .15s backwards;
}

.cover__name {
  position: relative;
  z-index: 2;
  margin: -.5em 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.6rem, min(14vw, 11vh), 7.5rem);
  line-height: .9;
  letter-spacing: -.01em;
  animation: rise 1s var(--ease) .75s backwards;
}

.cover__line {
  margin: 14px 0 0;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-a);
  animation: rise 1s var(--ease) .9s backwards;
}
.cover__line strong { color: var(--paper); font-weight: 700; }

.cover__bottom {
  display: flex;
  justify-content: center;
  animation: rise .9s var(--ease) 1.1s backwards;
}

.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.cover__open span { transition: transform .3s var(--ease); }
.cover__open:hover span { transform: translateX(4px); }

/* deschiderea: cifrele pleacă în lateral, portretul se apropie, apoi coperta urcă */
.cover.is-opening .cover__digit--4 { transform: translateX(-60vw); }
.cover.is-opening .cover__digit--0 { transform: translateX(60vw); }
.cover.is-opening .cover__arch { transform: scale(1.08); opacity: 0; }
.cover.is-opening .cover__name,
.cover.is-opening .cover__line,
.cover.is-opening .cover__eyebrow,
.cover.is-opening .cover__top,
.cover.is-opening .cover__bottom { opacity: 0; transition: opacity .4s var(--ease); }
.cover.is-open { transform: translateY(-100%); }

@keyframes slide-l { from { opacity: 0; transform: translateX(40%); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translateX(-40%); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Confetti ---------- */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: 7px;
  height: 15px;
  animation: fall var(--t) cubic-bezier(.25, .6, .45, 1) var(--d) forwards;
}
.confetti i.is-white { box-shadow: inset 0 0 0 1px var(--line); }
.confetti i.is-round { width: 9px; height: 9px; border-radius: 50%; }

@keyframes fall {
  to { transform: translate(var(--dx), 112vh) rotate(var(--r)); }
}

/* ---------- Reveal la scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Secțiuni ---------- */

.section {
  padding-block: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: clamp(36px, 6vw, 72px);
}
.section-head__index {
  padding-top: .55em;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section-head h2 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
}

.section-note {
  margin: 28px 0 0;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 88px;
  outline: none;
}

.hero__title {
  margin: .18em 0 .28em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .1em;
  font-size: clamp(6rem, 30vw, 18rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.065em;
}
.hero__title .serif { font-size: .4em; }
.hero__num { color: var(--red); white-space: nowrap; }

/* „0”-ul din „40.”: oval cu poza, cât înălțimea cifrei, așezat pe linia de bază */
.photo-zero {
  display: inline-block;
  width: .6em;
  height: .73em;
  margin: 0 .01em 0 .02em;
  border: .065em solid var(--red);
  border-radius: 50%;
  overflow: hidden;
  vertical-align: baseline;
  background: var(--paper-2);
}
.photo-zero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 30%;
  /* zoom pe față: ovalul e mic */
  transform: scale(1.5);
  transform-origin: 43% 32%;
  transition: transform .8s var(--ease);
}
.hero__title:hover .photo-zero img { transform: scale(1.58); }

.hero__intro {
  max-width: 44rem;
  --delay: .1s;
}

.hero__quote { margin: 0; }
.hero__quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__quote .qm { color: var(--red); }
.hero__quote .signature { margin-top: 18px; }

.hero__text {
  margin: 28px 0 0;
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.signature {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
}
.signature::before { content: "— "; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(44px, 7vw, 88px) 0 0;
  border-top: 1.5px solid var(--ink);
  --delay: .2s;
}
.facts > div { padding: 18px 20px 0 0; }
.facts dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 8px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
}
.facts a { text-decoration: none; transition: color .2s; }
.facts a:hover { color: var(--red); }

/* paleta discretă din „Dress code” */
.palette {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
}
.palette__dots { display: inline-flex; flex: none; }
.palette__dots i {
  width: 14px;
  height: 14px;
  margin-left: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--paper);
}
.palette__dots i:first-child { margin-left: 0; }
.pd-white { background: var(--white); outline: 1px solid #CFC9BE; outline-offset: -1px; }
.pd-beige { background: #D8C6A5; }
.pd-grey { background: #A9A8A4; }

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--red);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Countdown ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 3vw, 32px) clamp(8px, 2vw, 24px);
  border-left: 1px solid var(--line);
}
.countdown__cell:first-child { padding-left: 0; border-left: 0; }
.countdown__num {
  font-size: clamp(2.5rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.countdown__cell:first-child .countdown__num { color: var(--red); }
.countdown__label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown__after {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ---------- Program ---------- */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--ink);
}
.timeline li {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) 1fr auto;
  gap: 8px 28px;
  align-items: baseline;
  padding: clamp(22px, 3.4vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}
.timeline li:hover time { color: var(--red); }
.timeline h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.timeline p {
  margin: .4em 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.qmark {
  display: inline-block;
  margin-left: .1em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  transform-origin: 50% 80%;
  animation: wiggle 2.8s var(--ease) infinite;
}
@keyframes wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  78% { transform: rotate(-14deg); }
  86% { transform: rotate(10deg); }
  93% { transform: rotate(-4deg); }
}

.inline-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.inline-link:hover { color: var(--red); }

.tag {
  justify-self: end;
  padding: 5px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--red { border-color: var(--red); background: var(--red); color: var(--white); }

/* poze Feelings în program (22:00) */
.band-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.4vw, 14px);
  margin-top: 20px;
  max-width: 44rem;
}
.band-photos .photo__frame { aspect-ratio: 4 / 3; }
.band-photos .photo:first-child { grid-column: 1 / -1; }
.band-photos .photo:first-child .photo__frame { aspect-ratio: 16 / 9; }
.band-photos .photo__frame img { filter: saturate(1.05); }

/* link din primul ecran spre secțiunea de dress code */
.facts__link { display: block; text-decoration: none; }
.facts__more {
  display: inline-block;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  border-bottom: 1px solid currentColor;
}
.facts__link:hover .facts__more { color: var(--red-deep); }

/* ---------- Dress code (recomandare, discret) ---------- */

.section--soft { padding-block: clamp(64px, 9vw, 120px); }
.dc {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
}
.dc .section-head { margin-bottom: 0; }
.dc__body { max-width: 38rem; --delay: .1s; }
.dc__lead {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.1;
}
.dc__text {
  margin: 16px 0 0;
  font-size: 1.12rem;
  color: var(--muted);
}
.dc__text strong { color: var(--ink); font-weight: 600; }
.dc__swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.dc__swatches li { display: inline-flex; align-items: center; gap: 10px; }
.dc__swatches i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.dc__plus { font-weight: 400; color: var(--muted); font-size: .95rem; }

/* ---------- Locație ---------- */

.location {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.venue-name {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.venue-place {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--red);
}
.venue-text {
  margin: 24px 0 28px;
  max-width: 28rem;
  color: var(--muted);
}

.map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  --delay: .1s;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease);
}
.map:hover iframe { filter: none; }

/* Grilă: prima poză mare (2×2), celelalte patru în jurul ei */
.venue-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(28px, 5vw, 56px);
}
.venue-photos .photo__frame { aspect-ratio: 4 / 3; }
.venue-photos .photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.venue-photos .photo:first-child .photo__frame {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.venue-photos .photo:nth-child(2),
.venue-photos .photo:nth-child(4) { --delay: .08s; }
.venue-photos .photo:nth-child(3),
.venue-photos .photo:nth-child(5) { --delay: .16s; }

/* ---------- Cazare & transport ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.6vw, 32px);
}
.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--white);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.info-card:nth-child(2) { --delay: .1s; }
.info-card__kicker {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}
.info-card h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.02;
}
.info-card p {
  margin: 16px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}
.info-card__hint {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .98rem !important;
}
.info-card .btn { margin-top: auto; }
.info-card p + .btn { margin-top: 28px; }

.info-card--dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.info-card--dark p { color: rgba(251, 250, 247, .68); }
.info-card--dark .info-card__hint { border-top-color: rgba(251, 250, 247, .16); color: var(--paper); }
.info-card__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.info-card__apps li {
  padding: 8px 18px;
  border: 1.5px solid rgba(251, 250, 247, .4);
  border-radius: 999px;
  font-weight: 600;
}
.info-card__apps + .info-card__hint { margin-top: 24px; }

/* ---------- Fotografii locație ---------- */

.photo { margin: 0; }

.photo__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: default;
}
.photo.is-loaded .photo__frame { cursor: zoom-in; }

.photo__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.photo.is-loaded img { opacity: 1; }
.photo.is-loaded .photo__frame:hover img { transform: scale(1.04); }

.photo__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)),
    var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity .4s var(--ease);
}
.photo.is-loaded .photo__ph { opacity: 0; }

.photo__ph-label {
  padding: 0 .2em;
  background: var(--paper-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
  color: var(--ink);
}
.photo__ph-note {
  padding: 2px 8px;
  background: var(--paper-2);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.photo__ph--red {
  background: var(--red);
  box-shadow: none;
  color: rgba(255, 255, 255, .85);
}
.photo__ph--red .photo__ph-label,
.photo__ph--red .photo__ph-note { background: transparent; color: var(--white); }

.photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-weight: 600;
}
.photo__idx {
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- RSVP ---------- */

.section--rsvp { background: var(--white); }

.rsvp {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.rsvp__intro .section-head { margin-bottom: 28px; }
.rsvp__intro .section-head h2 { font-size: clamp(3.6rem, 11vw, 8rem); }
.rsvp__intro .section-head h2 em { color: var(--red); }

.deadline {
  margin: 14px 0 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--red);
}
.deadline:empty { display: none; }

.note {
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 3px solid var(--red);
  background: var(--paper);
}
.note__title {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.note p { margin: 6px 0 0; color: var(--muted); }

.rsvp__panel { --delay: .1s; }

.form { position: relative; }

.field {
  display: block;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field[hidden] { display: none; }

.field__label {
  display: block;
  margin-bottom: 4px;
  padding: 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field--choice .field__label { margin-bottom: 12px; }
.optional {
  margin-left: .5em;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  opacity: .75;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  outline: none;
  transition: border-color .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #B9B4AB; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--red); }
.field textarea {
  min-height: 3.2em;
  resize: vertical;
  font-size: 1.1rem;
  line-height: 1.45;
}
.field__hint {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}
.extras[hidden] { display: none; }
.field.has-error input { border-bottom-color: var(--red); }

.field__error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--red);
}
.field__error:empty { display: none; }

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__opt span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  user-select: none;
}
.choice__opt:hover span { border-color: var(--red); }
.choice__opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.choice--num .choice__opt span { width: 56px; padding: 0; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.choice--num .choice__opt input:checked + span { background: var(--red); border-color: var(--red); color: var(--white); }
.field.has-error .choice__opt span { border-color: var(--red); }

.guests {
  margin: -4px 0 26px;
  padding: 4px 0 0 20px;
  border-left: 3px solid var(--red);
  animation: rise .5s var(--ease) both;
}
.guests[hidden] { display: none; }
.guests .field:last-child { margin-bottom: 0; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: .95rem;
  font-weight: 500;
}
.form__status.is-error { color: var(--red); }

.done {
  padding: clamp(28px, 4vw, 44px);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  outline: none;
  animation: rise .7s var(--ease) both;
}
.done[hidden] { display: none; }
.done__mark {
  margin: 0 0 8px;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.07em;
  color: var(--red);
}
.done__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.done__text { margin: 12px 0 24px; font-size: 1.1rem; color: var(--muted); }
.done__demo {
  margin: 20px 0 0;
  padding: 10px 14px;
  background: #FFF4E5;
  border-radius: 4px;
  font-size: .88rem;
  color: #7A4A00;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(80px, 12vw, 150px) max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.footer__big {
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: clamp(3rem, 11vw, 9rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
}
.footer__big .serif { font-size: .55em; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
}
.footer__grid .eyebrow { margin-bottom: 14px; }
.footer__small {
  margin: clamp(48px, 8vw, 96px) 0 0;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- Buton plutitor ---------- */

.fab {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(212, 30, 43, .7);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .2s;
}
.fab:hover { background: var(--red-deep); }
.is-opened .fab.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 20, 20, .92); }
.lightbox[open] { animation: rise .4s var(--ease) both; }
.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__caption {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 600;
}
.lightbox__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .location,
  .rsvp { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .facts dt { flex: none; white-space: nowrap; }
  .facts dd { margin: 0; text-align: right; }
  .facts dd .palette { justify-content: flex-end; }
  .dc { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  .scroll-hint { display: none; }

  .timeline li { grid-template-columns: 1fr auto; }
  .timeline li > div { grid-column: 1 / -1; }
  .timeline time { grid-row: 1; }
  .tag { grid-row: 1; align-self: center; }


  .venue-photos {
    grid-template-columns: repeat(5, 80%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .venue-photos .photo:first-child { grid-column: auto; grid-row: auto; }
  .venue-photos .photo:first-child .photo__frame { flex: none; aspect-ratio: 4 / 3; }
  .venue-photos::-webkit-scrollbar { display: none; }
  .venue-photos .photo { scroll-snap-align: start; }
  .band-photos {
    grid-template-columns: repeat(4, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
  }
  .band-photos::-webkit-scrollbar { display: none; }
  .band-photos .photo { scroll-snap-align: start; }
  .band-photos .photo:first-child { grid-column: auto; }
  .band-photos .photo__frame,
  .band-photos .photo:first-child .photo__frame { aspect-ratio: 4 / 3; }
  .js .venue-photos [data-reveal] { transform: none; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .cover__top { font-size: .66rem; letter-spacing: .14em; }
  .cover__line { font-size: .7rem; letter-spacing: .14em; }
  .countdown__cell { padding-inline: 6px; }
  .countdown__label { font-size: .62rem; letter-spacing: .1em; }
  .choice--num .choice__opt span { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
