@charset "UTF-8";
/* ==========================================================================
   Ümmühan & Hakan — Düğün Davetiyesi
   Bordo kadife + varak filigran. Tüm süslemeler assets/img/*.svg
   ========================================================================== */

/* ------------------------------------------------------------ değişkenler */
:root {
  --wine-950: #250510;
  --wine-900: #3a0a18;
  --wine-800: #4b0f22;
  --wine-700: #5d152c;
  --wine-600: #6d1c36;

  --foil-050: #fffaf1;
  --foil-100: #f7ead6;
  --foil-200: #e9d3b2;
  --foil-300: #d3b189;
  --foil-400: #b98f60;

  --line: rgba(233, 211, 178, 0.34);
  --line-soft: rgba(233, 211, 178, 0.16);

  --foil-grad: linear-gradient(
    104deg,
    #fff8ec 0%,
    #e3c9a2 26%,
    #fffaf3 44%,
    #d2ac7f 64%,
    #fbf1e2 82%,
    #dfbd93 100%
  );

  --ff-script: "Pinyon Script", "Segoe Script", cursive;
  --ff-serif: "Cormorant Garamond", "Times New Roman", serif;
  --ff-sans: "Jost", "Segoe UI", system-ui, sans-serif;

  /* JS tarafından gerçek görünür yükseklikle güncellenir */
  --app-h: 100vh;
  --pad-x: clamp(0.85rem, 4vw, 2rem);
  --pad-y: clamp(0.85rem, 3.5vh, 2rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@supports (height: 100dvh) {
  :root {
    --app-h: 100dvh;
  }
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  /* Yatay taşmayı keser ama dikey kaydırmayı bozmaz (hidden yerine clip). */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 211, 178, 0.35) transparent;
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(233, 211, 178, 0.28);
  border-radius: 999px;
}

html.no-snap {
  scroll-snap-type: none;
}

/* Sayfa gecis motoru aciksa: tarayicinin kendi kaydirmasi ve yakalamasi
   devre disi. Dikey parmak hareketini JS yonetir, boylece iki bolumun
   arasinda durmak mumkun olmaz. Yakinlastirma (pinch) serbest kalir. */
html.pager-on {
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: none;
}
html.pager-on::-webkit-scrollbar {
  width: 0;
  height: 0;
}
html.pager-on body {
  touch-action: pan-x pinch-zoom;
}

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

body {
  margin: 0;
  min-height: 100%;
  overscroll-behavior-y: none;
  background: var(--wine-900);
  color: var(--foil-100);
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* kadife zemin (sabit; kaydırmada oynamaz) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 226, 190, 0.1), transparent 62%),
    radial-gradient(90% 60% at 50% 115%, rgba(255, 214, 170, 0.07), transparent 60%),
    linear-gradient(168deg, var(--wine-700) 0%, var(--wine-800) 38%, var(--wine-900) 68%, var(--wine-950) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/velvet-grain.png");
  background-size: 128px 128px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

img {
  max-width: 100%;
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
.ico--sm {
  width: 0.95em;
  height: 0.95em;
}
.ico--xs {
  width: 0.85em;
  height: 0.85em;
}

/* varak yazı */
.foil-text {
  background: var(--foil-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil-text {
    background: none;
    color: var(--foil-100);
    -webkit-text-fill-color: currentColor;
  }
}

/* -------------------------------------------------------------- bölümler */
.sc {
  position: relative;
  min-height: var(--app-h);
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
}

/* ------------------------------------------------------- kemerli kart ---- */
.panel {
  position: relative;
  width: 100%;
  max-width: 27rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.6rem, 8vh, 4rem) clamp(1.1rem, 5vw, 2.2rem) clamp(1.5rem, 4.5vh, 2.4rem);
  border: 1px solid var(--line);
  border-radius: clamp(80px, 30vw, 168px) clamp(80px, 30vw, 168px) 10px 10px;
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(255, 238, 214, 0.1), transparent 66%),
    linear-gradient(172deg, rgba(120, 32, 60, 0.55) 0%, rgba(58, 10, 24, 0.72) 58%, rgba(37, 5, 16, 0.85) 100%);
  box-shadow:
    0 26px 60px -34px rgba(12, 2, 7, 0.9),
    inset 0 0 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.panel--wide {
  max-width: 30rem;
}

/* ikinci ince çerçeve */
.panel__rule {
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  border-radius: inherit;
  pointer-events: none;
}

/* tepe tacı */
.panel__crest {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(9rem, 44%, 13rem);
  translate: -50% -46%;
  opacity: 0.92;
  pointer-events: none;
}

/* alt köşe filigranları */
.panel__corner {
  position: absolute;
  bottom: -2px;
  width: clamp(3.4rem, 18%, 5rem);
  aspect-ratio: 1;
  background: url("../img/orn-corner.svg") center / contain no-repeat;
  opacity: 0.68;
  pointer-events: none;
}
.panel__corner--bl {
  left: -2px;
  transform: scaleY(-1);
}
.panel__corner--br {
  right: -2px;
  transform: scale(-1, -1);
}

/* İç içe kaydırma kabı yok: içerik uzunsa bölüm büyür, sayfa normal kayar.
   (Kart içinde ayrı bir kaydırma alanı olsa fare tekerleği orada kilitlenirdi.) */
.panel__body {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.6vh, 1rem);
}

/* ---------------------------------------------------------- tipografi ---- */
.eyebrow {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.58rem, 2.6vw, 0.72rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--foil-300);
}
.eyebrow--dim {
  color: var(--foil-400);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.cover__guest {
  margin: 0;
  font-size: clamp(0.82rem, 3.4vw, 1rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--foil-200);
  line-height: 1.45;
}
.cover__guest strong {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1rem, 4.4vw, 1.3rem);
  letter-spacing: 0.1em;
  color: var(--foil-100);
}

.names {
  margin: clamp(0.1rem, 0.8vh, 0.5rem) 0 0;
  font-family: var(--ff-script);
  font-weight: 400;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.names__first,
.names__second {
  display: block;
  font-size: clamp(2.5rem, min(13vw, 8.2vh), 4.4rem);
  /* Ü gibi harflerin noktalari varak degradesinin dısında kalıp kaybolmasın diye
     kutu yukarıdan/aşağıdan genişletilir; fazlalık negatif kenar boşluğu ile alınır */
  padding: 0.3em 0.14em 0.12em;
  margin: -0.14em 0;
}
.names__and {
  display: block;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 4.8vw, 1.6rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--foil-300);
  margin: 0.06em 0 0.04em;
}
.names--sm .names__first,
.names--sm .names__second {
  font-size: clamp(2.1rem, min(11vw, 6.6vh), 3.5rem);
}

.script-title {
  margin: 0;
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(2.1rem, min(10vw, 6.4vh), 3.2rem);
  line-height: 1;
  padding: 0.22em 0.12em 0.2em;
}

.invite-text {
  margin: 0;
  font-style: italic;
  font-size: clamp(0.84rem, 3.5vw, 1.02rem);
  line-height: 1.7;
  color: var(--foil-200);
}

.ornament {
  width: clamp(8rem, 58%, 14rem);
  opacity: 0.8;
  margin: clamp(0.1rem, 0.8vh, 0.5rem) auto;
}
.ornament--tight {
  width: clamp(7rem, 46%, 11rem);
  margin-bottom: 0;
}

.signature {
  margin: 0;
  font-family: var(--ff-script);
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  color: var(--foil-200);
  opacity: 0.85;
}

/* ------------------------------------------------------------- kapak ---- */
.cover__date {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.5rem, 2.4vw, 0.9rem);
  font-family: var(--ff-serif);
  color: var(--foil-100);
}
.cover__date span {
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.cover__date em {
  font-style: normal;
  font-size: clamp(0.7rem, 3vw, 0.88rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--foil-300);
}
.cover__sub {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.64rem, 2.8vw, 0.78rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--foil-300);
}

/* ------------------------------------------------------ tarih şeridi ---- */
.datebar {
  width: 100%;
  max-width: 21rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.35rem, 1.4vh, 0.7rem);
  margin: clamp(0.1rem, 0.8vh, 0.4rem) 0;
}
.datebar__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--foil-300), transparent);
  opacity: 0.55;
}
.datebar__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 3.4vw, 1.3rem);
}
.datebar__day {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 10vw, 3.1rem);
  line-height: 1;
  color: var(--foil-050);
}
.datebar__mid,
.datebar__meta {
  display: flex;
  flex-direction: column;
  gap: 0.28em;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.6rem, 2.7vw, 0.74rem);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--foil-200);
}
.datebar__meta {
  border-left: 1px solid var(--line);
  padding-left: clamp(0.7rem, 3.4vw, 1.3rem);
  color: var(--foil-300);
}
.datebar__mid em,
.datebar__meta em {
  font-style: normal;
}
.datebar__mid i,
.datebar__meta i {
  font-style: normal;
  color: var(--foil-400);
}

/* ---------------------------------------------------------- aileler ---- */
.families {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 5vw, 1.8rem);
}
.family {
  flex: 1 1 0;
  min-width: 0;
}
.family h3 {
  margin: 0;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(0.95rem, 4.2vw, 1.22rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--foil-100);
}
.family p {
  margin: 0.1em 0 0;
  font-family: var(--ff-sans);
  font-weight: 200;
  font-size: clamp(0.56rem, 2.5vw, 0.68rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--foil-300);
}
.family small {
  display: block;
  margin-top: 0.35em;
  font-size: clamp(0.66rem, 3vw, 0.8rem);
  font-style: italic;
  color: var(--foil-400);
}
.family__sep {
  width: 1px;
  align-self: stretch;
  min-height: 2.6rem;
  background: linear-gradient(180deg, transparent, var(--foil-300), transparent);
  opacity: 0.6;
}

/* ---------------------------------------------------------- program ---- */
.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 2.4vh, 1.3rem);
  text-align: left;
}
.agenda__item {
  position: relative;
  padding-left: clamp(0.9rem, 4vw, 1.3rem);
}
.agenda__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  bottom: 0.3em;
  width: 1px;
  background: linear-gradient(180deg, var(--foil-300), rgba(233, 211, 178, 0.05));
}
.agenda__item::after {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  rotate: 45deg;
  background: var(--foil-200);
}
.agenda__time {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.68rem, 3vw, 0.82rem);
  letter-spacing: 0.22em;
  color: var(--foil-300);
}
.agenda__body h3 {
  margin: 0.12em 0 0.3em;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(1.02rem, 4.4vw, 1.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foil-050);
}
.agenda__place {
  margin: 0.45em 0 0.3em;
  font-size: clamp(0.76rem, 3.2vw, 0.9rem);
  line-height: 1.55;
  color: var(--foil-200);
}
.agenda__label {
  display: block;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.56rem, 2.5vw, 0.66rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--foil-400);
  margin-bottom: 0.15em;
}

.maplink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.9em 0.38em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.6rem, 2.7vw, 0.72rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foil-100);
  background: rgba(255, 240, 220, 0.04);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.maplink:hover,
.maplink:focus-visible {
  background: rgba(255, 240, 220, 0.12);
  border-color: var(--foil-200);
  color: var(--foil-050);
}

/* ------------------------------------------------------------ konum ---- */
.venue {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: clamp(0.7rem, 3.4vw, 1.1rem);
  padding: clamp(0.7rem, 2.4vh, 1.05rem) clamp(0.8rem, 3.6vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  background: linear-gradient(140deg, rgba(255, 240, 220, 0.07), rgba(255, 240, 220, 0.02));
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.venue:hover,
.venue:focus-visible {
  border-color: var(--foil-200);
  background: linear-gradient(140deg, rgba(255, 240, 220, 0.13), rgba(255, 240, 220, 0.04));
  transform: translateY(-2px);
}
.venue__icon {
  display: grid;
  place-items: center;
  width: clamp(2.1rem, 9vw, 2.6rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--foil-200);
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  flex: 0 0 auto;
  margin-top: 0.15em;
}
.venue__text {
  min-width: 0;
}
.venue__text strong {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(0.95rem, 4.1vw, 1.15rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foil-050);
  line-height: 1.25;
}
.venue__text em {
  display: block;
  font-size: clamp(0.72rem, 3.1vw, 0.85rem);
  color: var(--foil-300);
}
.venue__text small {
  display: block;
  margin-top: 0.25em;
  font-size: clamp(0.72rem, 3.1vw, 0.85rem);
  line-height: 1.5;
  color: var(--foil-200);
}
.venue__hint {
  display: inline-block;
  margin-top: 0.5em;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.55rem, 2.5vw, 0.65rem);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--foil-400);
}

/* --------------------------------------------------------- geri sayım ---- */
.countdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.35rem, 1.4vh, 0.7rem);
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.3rem, 1.8vw, 0.6rem);
  width: 100%;
  max-width: 20rem;
}
.countdown__grid > div {
  padding: clamp(0.3rem, 1.2vh, 0.5rem) 0.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(255, 240, 220, 0.035);
}
.countdown__grid b {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 5vw, 1.45rem);
  line-height: 1.15;
  color: var(--foil-050);
  font-variant-numeric: tabular-nums;
}
.countdown__grid span {
  display: block;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.46rem, 2.1vw, 0.58rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--foil-400);
}
.countdown.is-past .countdown__grid {
  display: none;
}

/* ------------------------------------------------------------ butonlar ---- */
.pill,
.ghost-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: clamp(0.8rem, 2.6vh, 1.4rem);
  padding: 0.5em 1.35em 0.55em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.6rem, 2.7vw, 0.72rem);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foil-100);
  background: rgba(255, 240, 220, 0.04);
  flex: 0 0 auto;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.pill:hover,
.pill:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible {
  background: rgba(255, 240, 220, 0.12);
  border-color: var(--foil-200);
  transform: translateY(-2px);
}
.pill .ico {
  animation: nudge 2.6s var(--ease) infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

/* --------------------------------------------------- açılış: zarf kapağı ---- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  background: var(--wine-950);
  transition: opacity 0.5s ease 0.85s, visibility 0.5s ease 0.85s;
}
.gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate.is-gone {
  display: none;
}

.gate__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.door {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 50.4%;
  overflow: hidden;
  background:
    radial-gradient(85% 55% at 50% 12%, rgba(255, 228, 196, 0.12), transparent 66%),
    linear-gradient(168deg, var(--wine-700) 0%, var(--wine-800) 46%, var(--wine-900) 100%);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 1.6s cubic-bezier(0.62, 0.03, 0.18, 1);
  will-change: transform;
}
.door::after {
  /* dikişteki gölge */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  pointer-events: none;
}
.door--l {
  left: 0;
  transform-origin: left center;
}
.door--r {
  right: 0;
  transform-origin: right center;
}
.door--l::after {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 2, 8, 0.55));
  border-right: 1px solid rgba(233, 211, 178, 0.22);
}
.door--r::after {
  left: 0;
  background: linear-gradient(270deg, transparent, rgba(16, 2, 8, 0.55));
  border-left: 1px solid rgba(233, 211, 178, 0.22);
}

.gate.is-open .door--l {
  transform: rotateY(-106deg);
}
.gate.is-open .door--r {
  transform: rotateY(106deg);
}

.door__spray {
  position: absolute;
  width: 132%;
  height: 66%;
  background: url("../img/orn-spray.svg") no-repeat center / contain;
  pointer-events: none;
}
.door--l .door__spray {
  top: -1%;
  left: -22%;
}
.door--r .door__spray {
  bottom: -1%;
  right: -22%;
  rotate: 180deg;
}

.door__frame {
  position: absolute;
  inset: clamp(12px, 3.4vw, 26px);
  border: 1px solid rgba(233, 211, 178, 0.26);
  pointer-events: none;
}
.door--l .door__frame {
  right: -1px;
  border-right: 0;
}
.door--r .door__frame {
  left: -1px;
  border-left: 0;
}

/* mühür */
.seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: clamp(112px, 33vw, 176px);
  aspect-ratio: 320 / 396;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: url("../img/orn-seal.svg") center / contain no-repeat;
  translate: -50% -50%;
  cursor: pointer;
  transition: transform 0.6s var(--ease), opacity 0.5s ease;
}
.seal:hover {
  transform: scale(1.04);
}
.seal__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 200, 0.22), transparent 68%);
  animation: breathe 3.6s ease-in-out infinite;
  pointer-events: none;
}
.seal__mono {
  position: relative;
  font-family: var(--ff-script);
  font-size: clamp(1.7rem, 7.6vw, 2.5rem);
  line-height: 1;
  padding: 0.24em 0.06em 0.16em;
  white-space: nowrap;
}
.seal__mono i {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.5em;
  margin: 0 0.06em;
  vertical-align: 0.28em;
}
.gate.is-open .seal {
  opacity: 0;
  transform: scale(1.22);
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.gate__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(3.2rem, 12vh, 7rem);
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.58rem, 2.6vw, 0.72rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--foil-200);
  transition: opacity 0.4s ease;
}
.gate__hint span {
  animation: fadePulse 3.4s ease-in-out infinite;
}
.gate.is-open .gate__hint {
  opacity: 0;
}

@keyframes fadePulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* ---------------------------------------------------------- pırıltılar ---- */
.sparkles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease 0.9s;
}
body.is-open .sparkles {
  opacity: 1;
}
.sparkles span {
  position: absolute;
  left: var(--x);
  bottom: -6vh;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 232, 0.95), rgba(233, 211, 178, 0));
  animation: drift var(--s) linear var(--d) infinite;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(14px, -108vh, 0) scale(1.15);
    opacity: 0;
  }
}

/* ------------------------------------------------------ bölüm noktaları ---- */
.dots {
  position: fixed;
  right: clamp(0.45rem, 2vw, 1rem);
  top: 50%;
  translate: 0 -50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.8s ease 1.1s;
  pointer-events: none;
}
body.is-open .dots {
  opacity: 1;
  pointer-events: auto;
}
.dots a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}
.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--foil-300);
  transition: all 0.4s var(--ease);
}
.dots a.is-active span {
  background: var(--foil-100);
  box-shadow: 0 0 8px rgba(255, 240, 214, 0.7);
  transform: scale(1.35);
}

/* ------------------------------------------------------- giriş animasyonu ---- */
.reveal > *,
.reveal .panel__body > * {
  opacity: 0;
  transform: translateY(16px);
}
body.is-open .reveal > *,
body.is-open .reveal .panel__body > * {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
body.is-open .reveal .r-1 {
  transition-delay: 0.15s;
}
body.is-open .reveal .r-2 {
  transition-delay: 0.32s;
}
body.is-open .reveal .r-3 {
  transition-delay: 0.5s;
}
body.is-open .reveal .r-4 {
  transition-delay: 0.68s;
}
body.is-open .reveal .r-5 {
  transition-delay: 0.86s;
}
body.is-open .reveal .panel__crest,
body.is-open .reveal .panel__rule,
body.is-open .reveal .panel__corner {
  transition-delay: 0s;
}

/* bölüm 2-4: görünür olunca yumuşak giriş */
.sc:not(#sc-1) .panel {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.sc:not(#sc-1).in .panel {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- uyarlama ---- */
/* çok kısa ekranlar / yatay mod: kart daha derli toplu */
@media (max-height: 600px) {
  :root {
    --pad-y: clamp(0.5rem, 1.8vh, 1rem);
  }
  .panel {
    padding-top: clamp(1.8rem, 6vh, 2.6rem);
    padding-bottom: clamp(1.1rem, 3vh, 1.6rem);
    border-radius: clamp(60px, 22vw, 110px) clamp(60px, 22vw, 110px) 10px 10px;
  }
  .panel__body {
    gap: clamp(0.35rem, 1.2vh, 0.7rem);
  }
  .panel__crest {
    width: clamp(7rem, 34%, 10rem);
  }
  .panel__corner {
    width: clamp(3rem, 15%, 4.2rem);
    bottom: 0;
  }
  .panel__corner--bl {
    left: 0;
  }
  .panel__corner--br {
    right: 0;
  }
  .ornament {
    display: none;
  }
  .agenda__place {
    font-size: clamp(0.72rem, 3vw, 0.86rem);
  }
  .agenda {
    gap: clamp(0.5rem, 1.6vh, 0.9rem);
  }
  .script-title {
    padding: 0.16em 0.12em 0.14em;
  }
  .agenda__body h3 {
    margin: 0.1em 0 0.2em;
  }
  .agenda__place {
    margin: 0.3em 0 0.25em;
  }
  .maplink {
    padding: 0.28em 0.75em 0.32em;
  }
  .pill,
  .ghost-btn {
    margin-top: clamp(0.5rem, 1.6vh, 0.9rem);
  }
  .gate__hint {
    bottom: clamp(1.2rem, 6vh, 2.4rem);
  }
}

/* yatay telefon: kart genişler, program iki kolona düşer, kapak süsü kenara oturur */
@media (orientation: landscape) and (max-height: 560px) {
  .panel,
  .panel--wide {
    max-width: 44rem;
    padding: clamp(1.1rem, 6vh, 1.9rem) clamp(1.1rem, 4vw, 2rem) clamp(0.8rem, 3vh, 1.2rem);
    border-radius: clamp(40px, 9vw, 80px) clamp(40px, 9vw, 80px) 10px 10px;
  }
  .panel__body {
    gap: clamp(0.3rem, 1vh, 0.6rem);
  }
  .agenda__place {
    margin: 0.25em 0 0.2em;
  }
  .pill,
  .ghost-btn {
    margin-top: clamp(0.4rem, 1.4vh, 0.8rem);
  }
  .panel__crest {
    width: clamp(6rem, 26%, 9rem);
    translate: -50% -42%;
  }
  .names__first,
  .names__second {
    font-size: clamp(1.7rem, 7vh, 2.6rem);
  }
  .names--sm .names__first,
  .names--sm .names__second {
    font-size: clamp(1.5rem, 6vh, 2.2rem);
  }
  .script-title {
    font-size: clamp(1.6rem, 7vh, 2.4rem);
  }
  .agenda {
    flex-direction: row;
    gap: clamp(1rem, 4vw, 2rem);
  }
  .agenda__item {
    flex: 1 1 0;
    min-width: 0;
  }
  .datebar,
  .countdown__grid {
    max-width: 26rem;
  }
  .venue {
    max-width: 34rem;
    margin: 0 auto;
  }
  /* kapak süsü yatayda dış kenara yaslanır */
  .door__spray {
    width: 58%;
    height: 132%;
    background-size: auto 100%;
  }
  .door--l .door__spray {
    top: -16%;
    left: -6%;
    background-position: left center;
  }
  .door--r .door__spray {
    bottom: -16%;
    right: -6%;
    background-position: right center;
  }
}

/* geniş ekranlarda kart biraz daha ferah */
@media (min-width: 900px) and (min-height: 760px) {
  .panel {
    max-width: 29rem;
    padding-bottom: clamp(1.4rem, 3.5vh, 2.2rem);
  }
  .panel--wide {
    max-width: 33rem;
  }
}

@media (hover: none) {
  .pill:hover,
  .ghost-btn:hover,
  .venue:hover,
  .maplink:hover,
  .seal:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gate {
    transition: opacity 0.25s ease;
  }
  .door {
    transition: opacity 0.4s ease;
  }
  .gate.is-open .door--l,
  .gate.is-open .door--r {
    transform: none;
    opacity: 0;
  }
  .seal__ring,
  .gate__hint span,
  .pill .ico,
  .sparkles span {
    animation: none;
  }
  .sparkles {
    display: none;
  }
  .reveal > *,
  .reveal .panel__body > *,
  .sc:not(#sc-1) .panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .gate,
  .dots,
  .sparkles,
  .pill {
    display: none !important;
  }
  .sc {
    min-height: auto;
    page-break-inside: avoid;
  }
}
