/* =========================================================
   Maria & Roland · 18 iulie 2027
   Papetărie în acuarelă: plic albastru prăfuit, flori pastel,
   cartoane ivoire, caligrafie.
   ========================================================= */

:root {
  color-scheme: light;

  --paper: #fffdf9;
  --paper-2: #fbf7f0;
  --ground: #e8edf2;
  --ground-2: #dae2eb;

  --ink: #3b4f6e;
  --ink-soft: #4f6685;
  --ink-faint: #52698a;   /* text secundar: contrast ≥ 4.5:1 pe fundal */

  --dusty: #a3b7cd;
  --dusty-deep: #7a93b1;   /* doar pentru borduri și pictograme */
  --dusty-ink: #52698a;    /* același ton, pentru TEXT (contrast ≥ 4.5:1) */
  --dusty-pale: #edf2f8;

  --blush: #f2c4cc;
  --rose: #d98799;
  --rose-deep: #a8506a;
  --peach: #f6cfad;
  --butter: #f3dc93;
  --gilt: #c4a66c;
  --sage: #9db592;
  --sage-deep: #6d8b66;
  --lilac: #c9bfe2;

  --line: rgb(59 79 110 / .2);
  --line-2: rgb(59 79 110 / .32);

  --f-script: "Pinyon Script", "Great Vibes", "Snell Roundhand", cursive;
  --f-serif: "Cormorant Garamond", "Cormorant", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --cw: min(calc(100vw - 32px), 540px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .36 0 0 0 0 .44 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --shadow-card:
    0 1px 1px rgb(40 60 90 / .05),
    0 10px 24px -12px rgb(40 60 90 / .28),
    0 34px 60px -34px rgb(40 60 90 / .38);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ground);
}
html.locked, html.locked body { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-serif);
  font-size: clamp(1.13rem, 1.02rem + .4vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(255 255 255 / .55), transparent 60%),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-feature-settings: "liga", "kern";
}
/* pânza de in a „mesei" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(60 80 110 / .035) 0 1px, transparent 1px 4px),
    var(--grain);
  opacity: .9;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--dusty-deep); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.caps {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: .8em;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  padding-inline: 16px;
}
@supports not (overflow-x: clip) { .page { overflow-x: hidden; } }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .6em 1.15em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(255 253 249 / .85);
  color: var(--ink);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--dusty-pale); border-color: var(--dusty-deep); }
.btn:active { transform: scale(.97); }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

/* ---------- carton ---------- */
.card {
  position: relative;
  background-color: var(--paper);
  background-image: var(--grain), linear-gradient(160deg, #fffefb 0%, var(--paper-2) 100%);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}

/* ---------- flori ---------- */
.flora { display: block; width: 100%; height: auto; overflow: visible; }
.fl { position: absolute; pointer-events: none; z-index: 3; }
.fl > .flora { transform-origin: var(--fo, 50% 50%); }
html.js .fl[data-bloom] > .flora {
  opacity: 0;
  transform: scale(.55) rotate(-10deg);
  transition: opacity 1.1s ease, transform 1.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .fl[data-bloom].in > .flora { opacity: 1; transform: none; }

/* ---------- apariții la derulare ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

.script-title {
  margin: 0;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.7rem, 1.9rem + 4.4vw, 4.4rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  padding-block: .1em .15em;
}
html.js .script-title[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(-30% 105% -40% -10%);
  transition: clip-path 1.9s var(--ease-soft);
}
html.js .script-title[data-reveal].in { clip-path: inset(-30% -10% -40% -10%); }

/* =========================================================
   INTRO · scrisoarea
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  background:
    radial-gradient(90% 70% at 50% 45%, rgb(255 255 255 / .6), transparent 70%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgb(90 115 150 / .18)),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%);
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(60 80 110 / .035) 0 1px, transparent 1px 4px),
    var(--grain);
}
html.opened .intro,
html:not(.js) .intro { display: none; }

.intro__fl { position: absolute; pointer-events: none; width: clamp(220px, 46vmin, 440px); }
.intro__fl--a { left: -9%; bottom: -8%; transform: rotate(18deg); }
.intro__fl--b { right: -10%; top: -9%; transform: rotate(196deg); }

.intro__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.6svh, 26px);
  padding: 16px;
  padding-top: max(12svh, 60px);
  width: 100%;
}
.intro__kicker {
  margin: 0;
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  animation: introIn 1.4s var(--ease-out) both .2s;
}
.intro__hint {
  margin: 0;
  max-width: min(100%, 30em);
  text-wrap: balance;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  animation: introIn 1.4s var(--ease-out) both .9s, hintPulse 2.6s ease-in-out 2.4s infinite;
}
@keyframes introIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes hintPulse { 50% { opacity: .55; } }

.env-wrap {
  width: min(92vw, 620px, calc(52svh * 100 / 70));
  animation: envIn 1.5s var(--ease-out) both .35s;
}
@supports not (height: 1svh) {
  .env-wrap { width: min(92vw, 620px, calc(52vh * 100 / 70)); }
}
@keyframes envIn { from { opacity: 0; transform: translateY(30px) rotate(-3deg) scale(.96); } }

.env {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 70;
  container-type: inline-size;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.env > * { position: absolute; }
.env svg { display: block; width: 100%; height: 100%; overflow: visible; }

.env__back { inset: 0; z-index: 0; border-radius: 1.6cqi; box-shadow: 0 2px 3px rgb(40 60 90 / .12), 0 26px 50px -22px rgb(40 60 90 / .45); }
.env__card { left: 5%; width: 90%; top: 7%; height: 88%; z-index: 2; will-change: transform; }
.env__pocket { inset: 0; z-index: 3; pointer-events: none; }
.env__flapwrap {
  left: 0; top: 0; width: 100%; height: 54.2857%; /* 38 / 70: clapa */
  z-index: 4;
  perspective: 1100px;
  pointer-events: none;
}
.env__flap {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.env__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.env__face--in { transform: rotateX(180deg); }

.env__to {
  position: absolute;
  left: 10%; right: 10%;
  top: 68.5%;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: .4cqi;
  text-align: center;
  color: #233450;
  text-shadow: 0 1px 0 rgb(255 255 255 / .3);
}
.env__to-k { font-size: max(2.6cqi, 10px); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.env__to-n { font-family: var(--f-script); font-size: 7.5cqi; line-height: 1.15; text-wrap: balance; }
.env__to-n.is-long { font-size: 5.8cqi; }

.minicard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5.5cqi 6cqi 3.6cqi;
  background-color: var(--paper);
  background-image: var(--grain), linear-gradient(170deg, #fffefb, var(--paper-2));
  border-radius: 1.2cqi;
  box-shadow: 0 1px 2px rgb(40 60 90 / .15), 0 12px 24px -14px rgb(40 60 90 / .35);
  text-align: center;
}
.minicard::before {
  content: "";
  position: absolute;
  inset: 2.2cqi;
  border: 1px solid rgb(122 147 177 / .35);
  border-radius: .6cqi;
  pointer-events: none;
}
.minicard__names { margin: 1.4cqi 0 0; font-family: var(--f-script); font-size: 10cqi; line-height: 1.1; color: var(--ink); }
.minicard__names i { font-family: var(--f-serif); color: var(--dusty-ink); font-size: .62em; }
.minicard__date { margin: 1.6cqi 0 0; font-size: max(2.6cqi, 10px); letter-spacing: .3em; font-weight: 600; color: var(--ink-soft); }
.minicard__fl { width: 28cqi; margin-top: auto; }

/* sigiliul de ceară */
.seal {
  left: 50%;
  top: 51.5%;
  width: 16%;
  aspect-ratio: 1;
  z-index: 5;
  translate: -50% -50%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.seal::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 1.5px solid rgb(255 253 249 / .85);
  animation: sealHalo 2.6s ease-out 2.2s infinite;
  pointer-events: none;
}
@keyframes sealHalo {
  0% { transform: scale(.82); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.seal:hover .seal__half { filter: brightness(1.05); }
.seal:focus-visible { outline-offset: 6px; border-radius: 50%; }
.seal__half { position: absolute; inset: 0; display: block; }
.seal__half--l { clip-path: polygon(0 0, 53% 0, 46% 19%, 56% 38%, 44% 57%, 55% 76%, 47% 100%, 0 100%); }
.seal__half--r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 47% 100%, 55% 76%, 44% 57%, 56% 38%, 46% 19%); }
.seal__half svg { filter: drop-shadow(0 2px 2px rgb(80 40 50 / .3)); }

.intro.is-opening { pointer-events: none; }
.intro.is-opening .seal::before { display: none; }

/* =========================================================
   HERO · invitația
   ========================================================= */
.hero {
  position: relative;
  padding-block: calc(var(--cw) * .36 + 36px) 40px;
  display: grid;
  justify-items: center;
  gap: 40px;
}
.hero__stack {
  position: relative;
  width: var(--cw);
}
.hero__env {
  position: absolute;
  left: -3%;
  width: 106%;
  top: calc(var(--cw) * -.36);
  aspect-ratio: 100 / 110;
  z-index: 0;
  transform: rotate(-3.2deg);
  filter: drop-shadow(0 18px 24px rgb(40 60 90 / .22));
}
.hero__env svg { display: block; width: 100%; height: 100%; overflow: visible; }

.card--hero {
  z-index: 2;
  padding: clamp(46px, 11vw, 74px) clamp(22px, 7vw, 58px) clamp(42px, 9vw, 64px);
  text-align: center;
  transform: rotate(.6deg);
}
.card--hero::before,
.card--hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgb(122 147 177 / .4);
}
.card--hero::before { inset: 11px; }
.card--hero::after { inset: 15px; border-width: .5px; border-color: rgb(122 147 177 / .28); }

.mono {
  position: relative;
  width: clamp(92px, 24vw, 118px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.mono > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mono > span {
  position: relative;
  font-family: var(--f-script);
  font-size: calc(clamp(92px, 24vw, 118px) * .3);
  line-height: 1;
  color: var(--ink);
  /* scrisul înclinat are greutatea (R-ul) spre dreapta: îl mutăm puțin la stânga ca să pară centrat în coroniță */
  translate: -.12em -4%;
  white-space: nowrap;
}
.mono > span i { font-style: normal; font-size: .72em; color: var(--dusty-ink); margin-inline: .04em; }
.mono--mini { width: 17cqi; }
.mono--mini > span { font-size: 5cqi; }

.hero__for {
  margin: 20px auto 0;
  display: grid;
  gap: 2px;
  padding: 10px 18px 12px;
  width: fit-content;
  max-width: 100%;
  border-block: 1px solid var(--line);
}
.hero__for .caps { font-size: .68rem; color: var(--ink-faint); }
.hero__for-n { font-family: var(--f-script); font-size: 1.9rem; line-height: 1.2; color: var(--ink); text-wrap: balance; }

.hero__with { margin: 22px 0 0; font-size: .74rem; color: var(--ink-soft); }
.parents {
  margin: 12px 0 0;
  display: grid;
  gap: 0;
  font-size: clamp(1.18rem, 1rem + .8vw, 1.42rem);
  font-weight: 500;
  line-height: 1.35;
}
.parents i { font-weight: 400; color: var(--dusty-ink); }
.parents__and { font-style: italic; font-size: .85em; color: var(--ink-faint); }
.invite {
  margin: 18px auto 0;
  max-width: 30ch;
  font-style: italic;
  font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: balance;
}
.invite br { display: none; }
@media (min-width: 480px) { .invite br { display: inline; } }

.names {
  margin: 10px 0 0;
  display: grid;
  justify-items: center;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 2.2rem + 9vw, 6.2rem);
  line-height: .95;
  color: var(--ink);
}
.names__n { display: block; padding-inline: .15em; }
.names__amp { display: block; font-family: var(--f-serif); font-style: italic; font-size: .5em; line-height: 1.1; color: var(--dusty-ink); }

.date {
  margin: 22px auto 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 360px;
  color: var(--ink);
}
.date__m, .date__y { font-size: .82rem; letter-spacing: .34em; font-weight: 600; }
.date__row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 3vw, 18px);
}
.date__side {
  padding-block: 6px;
  border-block: 1px solid var(--line-2);
  font-size: .68rem;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.date__d {
  font-size: clamp(3rem, 2.4rem + 3vw, 3.9rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.hero__place { margin: 22px 0 0; font-size: .8rem; letter-spacing: .4em; color: var(--ink-soft); }

.fl--corner { width: clamp(150px, 46%, 250px); }
.fl--tl { left: -9%; top: -7%; --fo: 0 0; }
/* oglindim tot containerul (în jurul centrului lui), nu desenul din el */
.fl--br { right: -9%; bottom: -7%; scale: -1 -1; --fo: 0 0; }

/* flori mari pe „masă", doar pe ecrane late */
.fl--table { display: none; }
@media (min-width: 1000px) {
  .fl--table { display: block; width: 360px; z-index: 1; }
  .fl--table-l { left: -330px; top: 32%; rotate: -24deg; }
  .fl--table-r { right: -330px; top: 6%; rotate: 150deg; }
}

.cue {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}
.cue .caps { font-size: .66rem; }
.cue i {
  position: relative;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--line-2), transparent);
  overflow: hidden;
}
.cue i::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 4px;
  height: 12px;
  border-radius: 4px;
  background: var(--dusty-deep);
  animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }

/* =========================================================
   SECȚIUNI
   ========================================================= */
.sec {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  padding-block: clamp(64px, 11vw, 132px);
}
.sec__head {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  margin-bottom: clamp(30px, 6vw, 56px);
}
.sec__kicker { margin: 0; font-size: .72rem; color: var(--ink-soft); }
.lead { margin: 12px auto 0; max-width: 44ch; color: var(--ink-soft); text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }

/* ---------- verset ---------- */
.verse { padding-block: clamp(40px, 8vw, 90px); }
/* pe telefon, secțiunile au mai mult aer între ele */
@media (max-width: 599px) {
  .sec { padding-block: 92px; }
  .verse { padding-block: 64px; }
  .sec__head { margin-bottom: 40px; }
  .contact .sec__head { margin-bottom: 32px; }
}
.vellum {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(46px, 9vw, 64px) clamp(22px, 6vw, 56px) clamp(30px, 6vw, 44px);
  text-align: center;
  background: rgb(255 253 249 / .5);
  border: 1px solid rgb(255 255 255 / .8);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
  box-shadow: 0 16px 40px -26px rgb(40 60 90 / .35);
}
.vellum__fl { position: absolute; left: 50%; top: 0; width: 180px; translate: -50% -52%; }
.vellum blockquote {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.28rem, 1.1rem + .9vw, 1.62rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}
.vellum figcaption { margin-top: 16px; font-size: .7rem; color: var(--ink-faint); }

/* ---------- numărătoarea inversă ---------- */
.countdown { text-align: center; }
.fl--spray { width: clamp(190px, 40vw, 380px); z-index: 0; opacity: .95; }
.fl--spray-l { left: -26%; top: -64px; rotate: -8deg; }
@media (max-width: 599px) { .fl--spray-l { left: -30%; top: -112px; } }
.fl--spray-r { right: -26%; bottom: -54px; rotate: 170deg; }
@media (min-width: 900px) {
  .fl--spray-l { left: -8%; top: 0; }
  .fl--spray-r { right: -8%; bottom: 0; }
}

.cd {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 26px);
  max-width: 640px;
  margin: 0 auto;
}
.cd__box { display: grid; justify-items: center; gap: 12px; }
.cd__hex {
  position: relative;
  width: 100%;
  max-width: 138px;
  aspect-ratio: 1.1547;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background:
    linear-gradient(160deg, rgb(255 255 255 / .35), transparent 45%),
    linear-gradient(200deg, #8fa6c2 0%, #6f89a9 55%, #5c7596 100%);
  filter: drop-shadow(0 8px 10px rgb(40 60 90 / .28));
}
.cd__hex::before {
  /* bordura aurie */
  content: "";
  position: absolute;
  inset: 5%;
  clip-path: inherit;
  background: linear-gradient(135deg, #efe0b6, var(--gilt) 40%, #f6ebcb 60%, #b08f55);
}
.cd__velvet {
  position: absolute;
  inset: 7.5%;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgb(255 255 255 / .22), transparent 70%),
    radial-gradient(circle at 50% 50%, #8199b8 0%, #647fa2 60%, #4f6989 100%);
  display: grid;
  place-items: center;
}
.cd__velvet::after {
  /* textura de catifea */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: .9;
  mix-blend-mode: soft-light;
}
.cd__cushion {
  position: relative;
  width: 74%;
  height: 62%;
  border-radius: 46% / 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, #6a84a6 0%, #567196 55%, #4a6485 100%);
  box-shadow: inset 0 -3px 6px rgb(30 45 70 / .35), inset 0 2px 3px rgb(255 255 255 / .35), 0 2px 4px rgb(30 45 70 / .3);
}
.cd__num {
  position: relative;
  grid-area: 1 / 1;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, .7rem + 3.4vw, 2.5rem);
  line-height: 1;
  color: #fffdf6;
  text-shadow: 0 1px 1px rgb(30 45 70 / .45), 0 0 12px rgb(255 245 220 / .2);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: .02em;
}
.cd__lbl { font-size: .68rem; color: var(--ink-soft); letter-spacing: .2em; }
.cd__done {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--f-script);
  font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  line-height: 1.2;
}
.countdown .actions { position: relative; z-index: 2; margin-top: clamp(28px, 5vw, 44px); }

/* ---------- programul zilei ---------- */
.tl {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: clamp(26px, 6vw, 56px);
  padding-block: 12px 24px;
}
.vine {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.vine__path {
  fill: none;
  stroke: #87a37d;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.vleaf {
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0);
  transform-origin: 0 0;
  transition: transform .9s var(--ease-out);
}
.vleaf.on { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s)); }

.tl__item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas: "node art" "node card";
  column-gap: 12px;
  row-gap: 14px;
  align-items: start;
}
.tl__node {
  grid-area: node;
  width: 52px;
  height: 52px;
  margin-top: 4px;
  transform: scale(0) rotate(-60deg);
  transition: transform 1.2s cubic-bezier(.3, 1.4, .4, 1);
}
.tl__node.on { transform: none; }
.tl__node svg { display: block; width: 100%; height: 100%; overflow: visible; }

.tl__art {
  grid-area: art;
  display: flex;
  align-items: center;
  gap: 14px;
}
.art { width: 64px; height: 52px; color: var(--dusty-deep); flex: none; }
.tl__time {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .35em;
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.tl__ora { font-family: var(--f-script); font-size: .55em; color: var(--dusty-ink); }

.event {
  grid-area: card;
  padding: clamp(24px, 5vw, 34px) clamp(20px, 5vw, 34px);
}
.event::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(122 147 177 / .28);
  pointer-events: none;
}
.event__kicker { margin: 0; font-size: .72rem; color: var(--rose-deep); }
.event__hall { margin: 6px 0 0; font-family: var(--f-script); font-size: 1.55rem; line-height: 1.1; color: var(--dusty-ink); }
.event__place {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  line-height: 1.15;
  text-wrap: balance;
}
.event__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 20px;
}
.event__actions .btn { flex: 1 1 auto; }

.tl__note { position: relative; z-index: 1; padding-left: 64px; }
.tl__route {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgb(255 253 249 / .78);
  border: 1px dashed var(--line-2);
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.25;
  transition: background-color .25s, border-color .25s;
}
.tl__route:hover { background: var(--paper); border-color: var(--dusty-deep); }
.tl__route > span { display: grid; }
.tl__route .caps { font-size: .66rem; }
.tl__route em { font-size: 1rem; }
.tl__route .i { width: 1.5em; height: 1.5em; color: var(--dusty-deep); }

@media (min-width: 820px) {
  .tl__item {
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    grid-template-areas: "art node card";
    column-gap: 28px;
    align-items: center;
  }
  .tl__item--alt { grid-template-areas: "card node art"; }
  .tl__node { width: 84px; height: 84px; margin: 0; }
  .tl__art { justify-content: flex-end; flex-direction: row-reverse; }
  .tl__item--alt .tl__art { justify-content: flex-start; flex-direction: row; }
  .tl__item:not(.tl__item--alt) .tl__art { flex-direction: row; justify-content: flex-end; }
  .art { width: 84px; height: 68px; }
  .tl__note { padding: 0; text-align: center; }
}

/* ---------- contact ---------- */
.contact { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(56px, 9vw, 110px); }
.contact .sec__head { margin-bottom: clamp(24px, 5vw, 40px); }
.contact__grid {
  display: grid;
  gap: 16px;
  max-width: 660px;
  margin: 0 auto;
  padding-inline: 4px;
}
.contact__card { padding: 26px 20px 22px; text-align: center; }
.contact__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(122 147 177 / .28);
  pointer-events: none;
}
.contact__name { position: relative; margin: 0; font-family: var(--f-script); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--dusty-ink); }
.contact__num { position: relative; margin: 4px 0 0; font-size: 1.2rem; letter-spacing: .06em; color: var(--ink); }
.contact__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 16px; }
.contact__actions .btn { flex: 1 1 auto; justify-content: center; }
@media (min-width: 560px) { .contact__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- confirmare ---------- */
.rsvp { padding-bottom: clamp(40px, 6vw, 70px); }
.card--rsvp {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 80px) clamp(20px, 6vw, 58px) clamp(40px, 8vw, 60px);
}
.card--rsvp::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(122 147 177 / .32);
  pointer-events: none;
}
.fl--rsvp-tr { right: -10%; top: -8%; width: clamp(150px, 40%, 250px); scale: -1 1; --fo: 0 0; }
.fl--rsvp-bl { left: -10%; bottom: -7%; width: clamp(140px, 36%, 230px); scale: 1 -1; --fo: 0 0; }
/* buchetele din spatele cartonului: stânga-sus și dreapta-jos */
.fl--rsvp-sl, .fl--rsvp-sr { width: clamp(200px, 44vw, 400px); z-index: 0; opacity: .95; }
.fl--rsvp-sl { left: -24%; top: -10px; rotate: -16deg; }
.fl--rsvp-sr { right: -24%; bottom: 0; rotate: 164deg; }
@media (min-width: 760px) {
  .fl--rsvp-sl { left: -2%; top: 5%; }
  .fl--rsvp-sr { right: -2%; bottom: 6%; }
}
.rsvp__fl { width: min(170px, 52%); margin: 6px auto -4px; }

.rsvp__head { position: relative; z-index: 4; text-align: center; margin-bottom: 30px; }
.rsvp__prev {
  position: relative;
  z-index: 4;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--dusty-pale);
  border: 1px solid rgb(122 147 177 / .35);
  text-align: center;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.form { position: relative; z-index: 4; display: grid; gap: 26px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label {
  padding: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.opt { margin-left: .4em; font-weight: 400; font-style: italic; font-size: 1.2em; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.field__input {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 1.18rem;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field__input::placeholder { color: var(--ink-faint); font-style: italic; opacity: .9; }
.field__input:focus { outline: none; border-bottom-color: var(--dusty-deep); box-shadow: 0 1px 0 var(--dusty-deep); }
.field__area {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgb(255 255 255 / .55);
  resize: vertical;
  min-height: 3.2em;
  line-height: 1.45;
}
.field__area:focus { border-color: var(--dusty-deep); box-shadow: 0 0 0 3px rgb(122 147 177 / .18); }
.field__input + .field__input { margin-top: 4px; }
.field__err { margin: 0; font-size: 1rem; font-style: italic; color: var(--rose-deep); }
.field__err:empty { display: none; }
.field.is-invalid .field__input { border-bottom-color: var(--rose-deep); }

.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box {
  display: grid;
  justify-items: center;
  gap: 6px;
  height: 100%;
  padding: 16px 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgb(255 255 255 / .5);
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.25;
  transition: border-color .25s, background-color .25s, box-shadow .3s, transform .25s var(--ease-out);
  pointer-events: none;
}
.choice__box .i { width: 1.6em; height: 1.6em; color: var(--dusty-deep); transition: color .25s, fill .25s, transform .4s cubic-bezier(.3, 1.6, .4, 1); }
.choice__opt input:checked + .choice__box {
  border-color: var(--dusty-deep);
  background: var(--dusty-pale);
  box-shadow: 0 0 0 1px var(--dusty-deep), 0 10px 20px -14px rgb(40 60 90 / .45);
}
.choice__opt input:checked + .choice__box .i { transform: scale(1.12); }
.choice__opt input[value="Da"]:checked + .choice__box .i { color: var(--rose); fill: var(--blush); }
.choice__opt input:focus-visible + .choice__box { outline: 2px solid var(--dusty-deep); outline-offset: 3px; }

.more {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .6s var(--ease-soft), opacity .5s;
}
.more.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.more__inner {
  display: grid;
  gap: 26px;
  min-height: 0;
  overflow: hidden;
  padding: 4px;
  margin: -4px;
}

.field--row { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: end; }
.count { display: grid; gap: 8px; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(255 255 255 / .55);
  padding: 3px;
}
.stepper__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
  transition: background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.stepper__btn:hover { background: var(--dusty-pale); }
.stepper__btn:disabled { opacity: .3; cursor: default; background: transparent; }
.stepper__val {
  width: 2.6ch;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__val::-webkit-inner-spin-button,
.stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__val:focus { outline: none; }
.field__hint { flex-basis: 100%; margin: 0; font-size: 1rem; font-style: italic; color: var(--ink-faint); }

/* persoanele din formular: nume, vârstă, meniu */
.persons { display: grid; gap: 14px; }
.persons[hidden] { display: none; }
.person {
  display: grid;
  gap: 4px;
  padding: 12px 14px 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgb(255 255 255 / .45);
}
.person__tag { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dusty-ink); }
.person__sel { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a93b1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center; }
.person__sel:disabled { cursor: not-allowed; opacity: .6; }
.person__err { margin: 0; min-height: 0; font-size: 1rem; font-style: italic; color: var(--rose-deep); }
.person__err:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 42px;
  padding: 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(255 255 255 / .5);
  font-size: 1.04rem;
  line-height: 1.2;
  transition: background-color .2s, border-color .2s;
  pointer-events: none;
}
.chip span::before {
  content: "";
  width: .5em;
  height: .28em;
  margin-top: -.18em;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg) scale(0);
  transition: transform .3s cubic-bezier(.3, 1.6, .4, 1);
  margin-right: -.5em;
  transition-property: transform, margin;
}
.chip input:checked + span { background: var(--dusty-pale); border-color: var(--dusty-deep); }
.chip input:checked + span::before { transform: rotate(-45deg) scale(1); margin-right: 0; }
.chip input:focus-visible + span { outline: 2px solid var(--dusty-deep); outline-offset: 2px; }


.submit {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #506787, var(--ink));
  color: #fffdf9;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 14px 26px -14px rgb(40 60 90 / .7);
  transition: transform .25s var(--ease-out), box-shadow .25s, filter .25s;
  -webkit-tap-highlight-color: transparent;
}
.submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.submit:active { transform: translateY(1px) scale(.99); }
.submit > * { grid-area: 1 / 1; }
.submit__spin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgb(255 253 249 / .35);
  border-top-color: #fffdf9;
  opacity: 0;
}
.submit.is-loading { pointer-events: none; }
.submit.is-loading .submit__txt { opacity: 0; }
.submit.is-loading .submit__spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__privacy { margin: 0; font-size: .85rem; line-height: 1.5; text-align: center; color: var(--ink-soft); text-wrap: balance; }
.form__status { margin: 0; text-align: center; font-style: italic; color: var(--rose-deep); }
.form__status:empty { display: none; }

.fallback {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px dashed var(--dusty-deep);
  border-radius: 12px;
  background: var(--dusty-pale);
  text-align: center;
}
.fallback[hidden] { display: none; }
.fallback__msg { margin: 0; max-width: 44ch; color: var(--ink-soft); font-size: .98rem; text-wrap: pretty; }
.rsvp__prev .link-btn { display: block; margin: 6px auto 0; }
.closed .done__title { font-size: clamp(2.2rem, 1.7rem + 3vw, 3.2rem); }
.closed .actions[hidden] { display: none; }

.done {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  outline: none;
  animation: doneIn 1s var(--ease-out) both;
}
@keyframes doneIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.done__title { margin: 0; font-family: var(--f-script); font-size: clamp(2.8rem, 2rem + 4vw, 4rem); line-height: 1.1; }
.done__msg { margin: 0; max-width: 40ch; color: var(--ink-soft); text-wrap: pretty; }
.done__cal { margin-top: 6px; }
.done__link { display: grid; gap: 10px; justify-items: center; width: min(100%, 460px); margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--dusty-pale); }
.done__link-t { margin: 0; color: var(--ink-soft); font-size: .95rem; text-wrap: balance; }
.done__link-in { width: 100%; text-align: center; font-size: .9rem; }
.done__link-st { margin: 0; min-height: 1.2em; color: var(--ink-soft); font-size: .9rem; }
.link-btn {
  margin-top: 6px;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-2);
}
.link-btn:hover { color: var(--ink); }

/* ---------- final ---------- */
.foot {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-block: 30px calc(130px + env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: center;
  text-align: center;
}
.fl--garland { position: relative; width: min(100%, 520px); z-index: 1; }
.foot__script {
  margin: 4px 0 0;
  font-family: var(--f-script);
  font-size: clamp(2.6rem, 2rem + 3.2vw, 3.8rem);
  line-height: 1.15;
}
.foot__names { margin: 10px 0 0; font-family: var(--f-script); font-size: 1.9rem; color: var(--dusty-ink); line-height: 1.1; }
.foot__names i { font-style: normal; }
.foot__date { margin: 12px 0 0; font-size: .72rem; letter-spacing: .3em; color: var(--ink-faint); }

/* ---------- buton plutitor ---------- */
.fab {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #506787, var(--ink));
  color: #fffdf9;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgb(30 45 70 / .75), 0 0 0 1px rgb(255 255 255 / .15) inset;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
  -webkit-tap-highlight-color: transparent;
}
.fab.show { transform: translate(-50%, 0); opacity: 1; }
.fab .i { width: 1.3em; height: 1.3em; }

/* ---------- petale, fluturi ---------- */
.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 110;
  pointer-events: none;
}
.bfly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: clamp(34px, 7vw, 46px);
  pointer-events: none;
  will-change: transform;
}
.bfly__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 5px rgb(40 60 90 / .18)); }
.bfly__wing {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: flap var(--flap, .26s) ease-in-out infinite alternate;
}
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.22); } }

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

/* fără JavaScript: mesaj sus, iar plicul nu blochează pagina */
.noscript { margin: 0; padding: 12px 16px; text-align: center; font-size: 1.05rem; color: var(--ink); background: #fff8e8; border-bottom: 1px solid #e6d7a8; }
