:root {
  color-scheme: light;
  --ivory: #f7f3ec;
  --paper: #fffdf8;
  --forest: #24382f;
  --forest-soft: #385044;
  --sage: #879989;
  --gold: #b89762;
  --terracotta: #a7604a;
  --ink: #25302a;
  --muted: #6f756f;
  --line: rgba(36, 56, 47, 0.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-weight: 400; overflow-x: hidden; }
body.invitation-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.film-grain { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 99; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.7'/%3E%3C/svg%3E"); }

/* Açılış sahnesi */
.envelope-scene { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; }
.envelope-scene.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }

.entry-invitation { position: relative; z-index: 20; display: grid; justify-items: center; color: #fff8e9; text-align: center; text-shadow: 0 2px 12px rgba(16,35,25,.75); animation: entryIntro 1.2s ease both; }
.entry-invitation > p { margin: 0 0 18px; color: #f2dfb8; font-size: 9px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.entry-trigger { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin: 0 0 19px; padding: 0; border: 1px solid rgba(255,239,198,.7); border-radius: 50%; color: #f7e5c3; background: rgba(24,55,38,.82); box-shadow: 0 15px 40px rgba(12,31,20,.38), inset 0 0 0 7px rgba(255,255,255,.035); backdrop-filter: blur(5px); transition: transform .3s ease, background .3s ease; }
.entry-trigger::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(220,185,126,.55); border-radius: 50%; }
.entry-trigger strong { position: relative; z-index: 2; margin-top: -9px; font: 500 31px/1 var(--serif); }
.entry-trigger strong i { color: #d9b57b; font-weight: 400; }
.entry-trigger small { position: absolute; z-index: 2; bottom: 23px; font-size: 6px; letter-spacing: .28em; text-transform: uppercase; }
.entry-ring, .entry-ripple { position: absolute; inset: -11px; border: 1px solid rgba(244,220,174,.4); border-radius: 50%; animation: entrancePulse 2.4s ease-out infinite; }
.entry-ripple { inset: -27px; animation-delay: 1.2s; }
.entry-trigger:hover { transform: scale(1.045); background: rgba(34,73,51,.92); }
.entry-trigger:focus-visible { outline: 2px solid #fff0c7; outline-offset: 8px; }
.entry-invitation h1 { margin: 0; font: 500 clamp(31px,5vw,49px)/1 var(--serif); }
.entry-invitation h1 em { color: #e0bc83; font-weight: 400; }
.entry-date { margin-top: 10px; color: #e8d3ae; font-size: 8px; letter-spacing: .3em; }
.entry-hint { margin-top: 20px; color: rgba(255,249,232,.75); font-size: 7px; letter-spacing: .2em; text-transform: uppercase; }
.entry-vignette { position: absolute; z-index: 18; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 25%, rgba(13,35,23,.22) 65%, rgba(8,25,16,.58) 100%); }

@keyframes entryIntro { from { opacity: 0; transform: translateY(18px); } }
@keyframes entrancePulse { 0% { opacity: .7; transform: scale(.85); } 75%,100% { opacity: 0; transform: scale(1.28); } }
@keyframes invitationVanish { to { opacity: 0; transform: scale(.72); filter: blur(8px); } }
/* Giriş düğmesinin fotoğraf üzerindeki görünümü */
.entry-vignette { background: radial-gradient(ellipse at 50% 48%, rgba(5,17,10,.05) 15%, rgba(5,20,12,.2) 52%, rgba(3,15,8,.7) 100%), linear-gradient(180deg, rgba(4,16,8,.14), transparent 50%, rgba(4,14,8,.28)); }
.entry-invitation { padding: 24px 34px 22px; border-radius: 50%; background: radial-gradient(circle, rgba(10,31,19,.52), rgba(10,31,19,.13) 58%, transparent 72%); }
.entry-trigger { width: 152px; height: 152px; overflow: visible; border: 0; border-radius: 0; color: #f6e4bd; background: url('/assets/wax-seal-green.png') center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 15px 18px rgba(3,16,8,.46)); backdrop-filter: none; }
.entry-trigger::before { display: none; }
.entry-trigger strong { margin-top: -8px; font-size: 27px; letter-spacing: -.02em; }
.entry-trigger strong i { color: #d8b477; text-shadow: 0 1px 2px rgba(3,19,9,.65); }
.entry-trigger small { bottom: 36px; font-size: 5px; }
.entry-ring { inset: -10px; border-color: rgba(215,187,132,.44); }
.entry-ripple { inset: -22px; border-color: rgba(215,187,132,.28); }
.entry-trigger::after { display: none; }
.entry-trigger:hover { background: url('/assets/wax-seal-green.png') center / contain no-repeat; filter: drop-shadow(0 15px 18px rgba(3,16,8,.5)) brightness(1.05); }
.entry-invitation h1 { text-shadow: 0 3px 18px #07160d, 0 1px 2px #07160d; }
.video-entry.video-loading .entry-trigger { cursor: progress; animation: videoLoadingPulse 1.15s ease-in-out infinite; }
.video-entry.video-loading .entry-ring,
.video-entry.video-loading .entry-ripple { animation-play-state: paused; opacity: .25; }
.video-entry.video-buffering .entry-invitation,
.video-entry.video-buffering .entrance-film,
.video-entry.video-buffering .hero-content.hero-in-portal,
.video-entry.video-buffering .hero-content.hero-in-portal > *,
body.video-buffering main,
body.video-buffering .site-header { animation-play-state: paused; }
@keyframes videoLoadingPulse { 50% { transform: scale(.96); filter: brightness(1.12); } }
/* Menü ve ana davetiye alanı */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 76px); border-bottom: 1px solid transparent; transition: background .3s, height .3s, border .3s, transform .5s; }
.site-header.scrolled { height: 64px; background: rgba(247,243,236,.92); border-color: var(--line); backdrop-filter: blur(14px); }
.monogram { font: 600 24px var(--serif); letter-spacing: .04em; }
.monogram span { color: var(--gold); font-style: italic; }
nav { display: flex; gap: clamp(22px, 4vw, 54px); }
nav a, .nav-rsvp { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
nav a { position: relative; }
nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .25s; }
nav a:hover::after { right: 0; }
.nav-rsvp { padding: 10px 17px; border: 1px solid var(--forest); }
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 110px 24px 72px; background: radial-gradient(circle at 50% 42%, #fffdf8 0, #f7f3ec 48%, #eee8de 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.eyebrow { margin: 0 0 18px; color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.hero-script { margin: -6px 0; font: 500 clamp(60px, 9vw, 122px)/.85 var(--serif); letter-spacing: -.045em; color: var(--forest); white-space: nowrap; }
.hero-ampersand { display: block; margin: -4px 0; font: italic 400 clamp(38px, 5vw, 66px)/1 var(--serif); color: var(--gold); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px auto 19px; color: var(--gold); }
.ornament span { width: 45px; height: 1px; background: var(--gold); }
.ornament i { font-size: 17px; font-style: normal; }
.hero-date { margin: 0 0 7px; font: 500 18px var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.hero-place { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; }
.hero-actions { display: flex; justify-content: center; gap: 11px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 1px solid var(--forest); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: color .25s, background .25s, transform .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: var(--forest-soft); }
.button-ghost { background: rgba(255,255,255,.4); }
.button-ghost:hover { color: #fff; background: var(--forest); }
.botanical { position: absolute; z-index: 1; width: min(28vw, 330px); color: var(--sage); opacity: .5; }
.botanical svg { width: 100%; fill: rgba(135,153,137,.08); stroke: currentColor; stroke-width: 1.3; }
.botanical-left { left: -25px; bottom: -130px; transform: rotate(7deg); }
.botanical-right { right: -25px; top: -100px; transform: scaleX(-1) rotate(7deg); }
.scroll-cue { position: absolute; z-index: 4; bottom: 24px; left: 50%; display: grid; justify-items: center; gap: 7px; transform: translateX(-50%); color: var(--muted); font-size: 8px; letter-spacing: .26em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 27px; background: var(--gold); animation: scrollLine 1.8s ease-in-out infinite; transform-origin: top; }

/* Ortak bölüm stilleri */
.section { max-width: 1180px; margin: 0 auto; padding: 130px clamp(24px, 6vw, 80px); }
.section h2, .countdown-section h2 { margin: 0; font: 500 clamp(42px, 6vw, 72px)/.98 var(--serif); letter-spacing: -.03em; color: var(--forest); }
.section h2 em { color: var(--terracotta); font-weight: 400; }
.story { position: relative; display: grid; grid-template-columns: 80px 1.15fr .85fr; align-items: center; gap: 50px; min-height: 680px; }
.section-number { align-self: start; color: var(--gold); font: italic 24px var(--serif); }
.story-copy > p:not(.eyebrow,.signature) { max-width: 510px; margin: 28px 0 0; color: var(--muted); font: 300 14px/1.9 var(--sans); }
.signature { margin: 23px 0 0; color: var(--terracotta); font: italic 29px var(--serif); }
.story-quote { position: relative; margin: 0; padding: 60px 12px 60px 58px; border-left: 1px solid var(--gold); color: var(--forest-soft); font: italic 400 clamp(26px, 3vw, 39px)/1.3 var(--serif); }
.story-quote span { position: absolute; top: 6px; left: 48px; color: rgba(184,151,98,.28); font: 100px/1 var(--serif); }
.countdown-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 7vw; padding: 85px max(7vw, 24px); color: #f8f4ed; background: var(--forest); }
.countdown-section .eyebrow { color: #caa889; }
.countdown-section h2 { color: #fff; font-size: clamp(36px, 5vw, 62px); }
.countdown { display: flex; align-items: center; justify-content: space-between; }
.countdown div { min-width: 80px; text-align: center; }
.countdown span { display: block; font: 400 clamp(48px, 7vw, 86px)/1 var(--serif); }
.countdown small { display: block; margin-top: 8px; color: #aeb9b2; font-size: 8px; letter-spacing: .25em; text-transform: uppercase; }
.countdown > i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

/* Etkinlik kartları ve gece akışı */
.events .section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 66px; }
.event-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 24px; align-items: center; }
.event-card { position: relative; min-height: 630px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px clamp(30px, 5vw, 68px); text-align: center; border: 1px solid var(--line); background: rgba(255,253,248,.7); }
.event-card-featured { min-height: 630px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--forest); }
.event-index { position: absolute; top: 25px; left: 29px; color: var(--gold); font: italic 15px var(--serif); }
.event-icon { height: 42px; margin-bottom: 22px; color: var(--gold); font: 42px/1 var(--serif); }
.rings { position: relative; width: 62px; }
.rings i { position: absolute; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; }
.rings i:first-child { left: 7px; }
.rings i:last-child { left: 25px; }
.event-type { margin: 0; color: var(--terracotta); font-size: 9px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.event-card-featured .event-type { color: #d6b48e; }
.event-card h3 { margin: 10px 0 3px; font: 500 clamp(42px, 5vw, 62px)/1 var(--serif); }
.event-card-featured h3 { color: #fff; }
.event-year { margin: 0 0 36px; color: var(--muted); font: italic 17px var(--serif); }
.event-card-featured .event-year { color: #abb8b1; }
.event-meta { width: 100%; max-width: 280px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-card-featured .event-meta { border-color: rgba(255,255,255,.15); }
.event-meta p { display: flex; justify-content: space-between; gap: 20px; margin: 9px 0; font-size: 11px; }
.event-meta span { color: var(--muted); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.event-card-featured .event-meta span { color: #9caaa2; }
.event-card > a { margin-top: 31px; padding-bottom: 5px; border-bottom: 1px solid var(--gold); color: var(--terracotta); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.event-card-featured > a { color: #d6b48e; }
.event-card > a span { margin-left: 8px; }

/* Aileler ve etkinlik hava durumu */
.families-weather { max-width: none; padding-inline: max(7vw, 24px); background: #f0ebe2; }
.families-weather > .section-heading { max-width: 760px; margin-inline: auto; }
.family-grid { max-width: 980px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(18px, 4vw, 55px); margin: 58px auto 92px; }
.family-card { min-height: 170px; display: grid; place-content: center; padding: 30px; border: 1px solid rgba(184,151,98,.38); text-align: center; background: rgba(255,253,248,.62); }
.family-card > span { margin-bottom: 16px; color: var(--terracotta); font-size: 8px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.family-card p { margin: 0; color: var(--forest); font: 500 clamp(25px, 3vw, 38px)/1.05 var(--serif); }
.family-card p i { color: var(--gold); font-weight: 400; }
.family-card p small { display: inline-block; margin: 0 3px; color: var(--muted); font: italic 13px var(--serif); }
.family-ornament { color: var(--gold); font-size: 24px; }
.weather-heading { max-width: 1080px; display: flex; align-items: end; justify-content: space-between; gap: 35px; margin: 0 auto 28px; }
.weather-heading h3 { margin: 0; color: var(--forest); font: 500 clamp(34px, 4vw, 50px)/1 var(--serif); }
.weather-heading > p { max-width: 370px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.weather-grid { max-width: 1080px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 auto; }
.weather-card { min-height: 176px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 30px 34px; color: #f7f3ec; background: var(--forest); }
.weather-card-wedding { background: var(--forest-soft); }
.weather-event { display: block; margin-bottom: 8px; color: #d9bd91; font-size: 8px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.weather-card time { font: 500 22px var(--serif); }
.weather-icon { color: #dfc18f; font: 42px/1 var(--serif); }
.weather-reading { display: grid; justify-items: end; text-align: right; }
.weather-temperature { font: 500 28px var(--serif); }
.weather-condition { margin-top: 4px; font-size: 9px; letter-spacing: .08em; }
.weather-rain { margin-top: 9px; color: #b9c6bd; font-size: 8px; }
.weather-source { max-width: 1080px; margin: 13px auto 0; color: var(--muted); font-size: 8px; text-align: right; }

.schedule { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: center; padding-top: 90px; }
.schedule-intro > p:last-child { max-width: 420px; margin-top: 26px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 27px; bottom: 27px; left: 112px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 15px 1fr; gap: 25px; align-items: center; min-height: 105px; }
.timeline time { font: italic 23px var(--serif); color: var(--terracotta); }
.timeline li > span { z-index: 1; width: 9px; height: 9px; margin-left: 3px; border: 2px solid var(--ivory); outline: 1px solid var(--gold); border-radius: 50%; background: var(--gold); }
.timeline strong { display: block; font: 500 27px var(--serif); }
.timeline small { color: var(--muted); font-size: 10px; letter-spacing: .07em; }

/* Formlar */
.rsvp-section { max-width: none; display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; padding-left: max(7vw,24px); padding-right: max(7vw,24px); color: #fff; background: #ebe3d8; }
.rsvp-aside { align-self: center; color: var(--ink); }
.rsvp-aside > p:nth-of-type(2) { max-width: 480px; margin: 27px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.rsvp-note { display: flex; align-items: center; gap: 15px; margin-top: 40px; }
.rsvp-note > span { padding-right: 15px; border-right: 1px solid var(--gold); font: 500 55px/1 var(--serif); color: var(--terracotta); }
.rsvp-note div { font: 500 20px/1.1 var(--serif); text-transform: uppercase; }
.rsvp-note small { color: var(--muted); font: 8px var(--sans); letter-spacing: .15em; }
.paper-form { display: grid; gap: 24px; padding: clamp(35px, 5vw, 65px); color: var(--ink); background: var(--paper); box-shadow: 0 30px 70px rgba(65,52,37,.11); }
.form-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 5px; font: 500 28px var(--serif); }
.form-heading i { flex: 1; height: 1px; background: var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 9px; color: var(--forest-soft); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
input, select, textarea { width: 100%; min-height: 46px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; color: var(--ink); background: transparent; font-size: 13px; letter-spacing: 0; text-transform: none; transition: border .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
::placeholder { color: #a4a6a2; }
.form-submit { width: 100%; justify-content: space-between; margin-top: 3px; border: 0; }
.form-submit b { font-size: 18px; font-weight: 300; }
.form-message { min-height: 18px; margin: -10px 0 0; color: var(--terracotta); font-size: 11px; font-weight: 600; text-transform: none; }
.form-message.success { color: #4d795c; }

/* Anı yükleme alanı ve hatıra panosu */
.memories { max-width: 1100px; }
.centered { max-width: 620px; margin: 0 auto 55px; text-align: center; }
.centered > p:last-child { margin: 23px auto 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.memory-uploader { margin-bottom: 60px; padding: clamp(16px, 2.5vw, 28px); border: 1px solid rgba(36,56,47,.1); border-radius: 24px; background: rgba(255,255,255,.58); box-shadow: 0 25px 70px rgba(36,56,47,.08); backdrop-filter: blur(18px); }
.memory-uploader form { display: grid; gap: 24px; }
.memory-upload-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.upload-drop { position: relative; display: flex; align-items: center; gap: 17px; min-height: 154px; padding: 28px; overflow: hidden; border: 1px dashed rgba(36,56,47,.25); border-radius: 17px; background: linear-gradient(145deg, rgba(239,235,227,.92), rgba(255,255,255,.7)); cursor: pointer; transition: border-color .25s, transform .25s, background .25s; }
.upload-drop:hover, .upload-drop.dragging { border-color: var(--gold); background: #f2ede5; transform: translateY(-2px); }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-copy { display: grid; gap: 7px; min-width: 0; }
.upload-icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--forest); box-shadow: 0 10px 24px rgba(36,56,47,.18); font-size: 25px; font-weight: 300; }
.upload-copy strong { color: var(--forest); font: 500 21px var(--serif); letter-spacing: 0; text-transform: none; }
.upload-copy small { color: var(--muted); font-size: 8px; line-height: 1.6; letter-spacing: .06em; text-transform: none; }
.memory-fields { display: grid; align-content: center; gap: 20px; padding: 22px 28px; border-radius: 17px; background: rgba(248,245,239,.9); }
.memory-fields textarea { min-height: 68px; }
.memory-fields .button { width: 100%; border: 0; justify-content: space-between; }
.memory-fields .button:disabled { color: #89938d; background: #dfe2df; cursor: default; transform: none; }
.memory-submit b { font-size: 18px; font-weight: 300; }
.upload-workspace { display: grid; gap: 14px; padding-top: 4px; }
.upload-workspace[hidden] { display: none; }
.upload-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.upload-queue-heading > div { display: flex; align-items: center; gap: 9px; }
.upload-queue-heading strong { color: var(--forest); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.upload-queue-heading small { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.queue-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(190,153,102,.12); }
.upload-overall { height: 3px; overflow: hidden; border-radius: 99px; background: rgba(36,56,47,.09); }
.upload-overall i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--terracotta)); transition: width .2s ease; }
.upload-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.preview-tile { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(36,56,47,.1); border-radius: 14px; background: #fff; box-shadow: 0 9px 25px rgba(36,56,47,.07); animation: previewIn .3s ease both; }
.preview-media { position: relative; aspect-ratio: 1; overflow: hidden; background: #e4dfd7; }
.preview-visual { position: absolute; inset: 0; overflow: hidden; }
.preview-media img, .preview-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.preview-visual > b { height: 100%; display: grid; place-items: center; color: var(--forest); font: 600 10px var(--sans); letter-spacing: .06em; }
.preview-video-badge { position: absolute; inset: 50% auto auto 50%; width: 30px; height: 30px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: #fff; background: rgba(36,56,47,.75); font-size: 9px; backdrop-filter: blur(5px); }
.preview-remove { position: absolute; z-index: 3; top: 7px; right: 7px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(24,31,27,.68); cursor: pointer; font-size: 17px; line-height: 1; backdrop-filter: blur(7px); transition: background .2s, transform .2s; }
.preview-remove:hover { background: #a95745; transform: scale(1.06); }
.preview-progress { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 5px; background: rgba(255,255,255,.42); }
.preview-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #cfb37f, #ba725c); transition: width .15s linear; }
.preview-tile.is-uploaded .preview-progress i { background: #5f8b6c; }
.preview-tile.is-error .preview-progress i { width: 100% !important; background: #b75949; }
.preview-meta { display: grid; gap: 4px; padding: 10px 11px 11px; }
.preview-name { overflow: hidden; color: var(--ink); font-size: 8px; font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.preview-status { color: var(--muted); font-size: 7px; letter-spacing: .02em; text-transform: none; }
.preview-tile.is-uploaded .preview-status { color: #4d795c; }
.preview-tile.is-error .preview-status { color: #a34f40; cursor: pointer; }
.memory-uploader form > .form-message { margin: -5px 2px 0; }
@keyframes previewIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
body.overlay-open { overflow: hidden; }
body.admin-page-mode,
body.admin-page-mode.overlay-open { min-height: 100svh; overflow: auto; background: var(--forest); }
body.admin-page-mode .envelope-scene,
body.admin-page-mode .site-header,
body.admin-page-mode main,
body.admin-page-mode footer,
body.admin-page-mode .back-to-top { display: none !important; }
.memory-challenge-chip { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 9px; margin: 24px auto 0; padding: 9px 15px; border: 1px solid rgba(167,96,74,.2); border-radius: 99px; color: var(--terracotta); background: rgba(255,255,255,.5); font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.memory-challenge-chip span { color: var(--gold); }
.memory-scoreboard { margin-top: 62px; overflow: hidden; border-radius: 24px; color: #edf2ee; background: linear-gradient(135deg, #1e332a, #2c493b); box-shadow: 0 28px 70px rgba(31,50,41,.18); }
.scoreboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 38px 42px 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.scoreboard-heading .eyebrow { margin-bottom: 8px; color: #d1aa76; }
.scoreboard-heading h3 { margin: 0; color: #fff; font: 500 clamp(31px, 4vw, 47px)/1 var(--serif); }
.scoreboard-heading > p { max-width: 390px; margin: 0; color: #aebbb3; font-size: 10px; line-height: 1.7; }
.scoreboard-totals { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,.1); }
.scoreboard-totals > div { padding: 27px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.scoreboard-totals > div:last-child { border: 0; }
.scoreboard-totals span { display: block; color: #efd9b5; font: 500 35px/1 var(--serif); }
.scoreboard-totals small { display: block; margin-top: 7px; color: #91a198; font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }
.scoreboard-list { display: grid; padding: 12px 20px 20px; }
.scoreboard-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) repeat(3, 85px); align-items: center; gap: 10px; min-height: 66px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.07); animation: scoreIn .35s ease both; }
.scoreboard-row:last-child { border: 0; }
.score-rank { color: #c9a773; font: italic 22px var(--serif); text-align: center; }
.score-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.score-avatar { flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--forest); background: #d9be92; font: 600 17px var(--serif); }
.score-person strong { overflow: hidden; font: 500 18px var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.score-metric { display: grid; justify-items: center; gap: 2px; }
.score-metric b { color: #fff; font: 500 18px var(--serif); }
.score-metric small { color: #87988e; font-size: 6px; letter-spacing: .1em; text-transform: uppercase; }
.score-total b { color: #e3c798; font-size: 23px; }
.scoreboard-empty { margin: 0; padding: 35px 20px; color: #a8b6ad; font: italic 18px var(--serif); text-align: center; }
@keyframes scoreIn { from { opacity: 0; transform: translateY(8px); } }
.upload-success { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20,34,28,.72); backdrop-filter: blur(14px); }
.upload-success[hidden] { display: none; }
.upload-success-card { position: relative; z-index: 2; width: min(92vw, 510px); padding: 45px 38px 38px; overflow: hidden; border-radius: 25px; text-align: center; background: #fffdf8; box-shadow: 0 35px 100px rgba(15,29,22,.3); animation: successPop .45s cubic-bezier(.2,.8,.2,1) both; }
.upload-success-card::before { content: ''; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(184,151,98,.22); border-radius: 18px; }
.success-mark { width: 65px; height: 65px; display: grid; place-items: center; margin: 0 auto 23px; border-radius: 50%; color: #fff; background: var(--forest); box-shadow: 0 0 0 10px rgba(36,56,47,.07); font-size: 27px; }
.upload-success-card .eyebrow { margin-bottom: 10px; }
.upload-success-card h2 { margin: 0; color: var(--forest); font: 500 clamp(35px, 6vw, 48px)/1 var(--serif); }
.upload-success-card > p:not(.eyebrow) { margin: 17px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.success-counts { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 27px 0; }
.success-counts span { display: grid; gap: 3px; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.success-counts b { color: var(--forest); font: 500 32px var(--serif); }
.success-counts i { width: 1px; height: 37px; background: var(--line); }
.upload-success-card .button { position: relative; z-index: 2; width: 100%; border: 0; justify-content: space-between; }
.success-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.success-confetti i { position: absolute; top: -10%; width: 8px; height: 17px; background: #d1ac72; animation: confettiFall 2.8s linear infinite; }
.success-confetti i:nth-child(1) { left: 12%; transform: rotate(15deg); }
.success-confetti i:nth-child(2) { left: 28%; width: 11px; height: 11px; border-radius: 50%; background: #a7604a; animation-delay: .5s; }
.success-confetti i:nth-child(3) { left: 44%; background: #71907d; animation-delay: 1.1s; }
.success-confetti i:nth-child(4) { left: 61%; width: 10px; height: 10px; border-radius: 50%; background: #e0bf8d; animation-delay: .25s; }
.success-confetti i:nth-child(5) { left: 77%; background: #a7604a; animation-delay: 1.5s; }
.success-confetti i:nth-child(6) { left: 91%; background: #71907d; animation-delay: .8s; }

/* Gizli RSVP yönetim paneli */
.admin-password-dialog,
.admin-rsvp-panel { position: fixed; z-index: 1250; inset: 0; display: grid; place-items: center; padding: 22px; overflow: auto; overscroll-behavior: contain; background: rgba(16,29,23,.76); backdrop-filter: blur(16px); -webkit-overflow-scrolling: touch; }
.admin-password-dialog[hidden],
.admin-rsvp-panel[hidden] { display: none; }
.admin-password-card { position: relative; width: min(430px, 100%); display: grid; gap: 18px; padding: 38px 34px 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; color: var(--ink); background: #fffdf8; box-shadow: 0 35px 100px rgba(5,16,10,.38); animation: successPop .35s cubic-bezier(.2,.8,.2,1) both; }
.admin-password-card .admin-close { position: absolute; top: 18px; right: 18px; }
.admin-password-card .eyebrow { margin: 0; }
.admin-password-card h2 { margin: 0; color: var(--forest); font: 500 42px/1 var(--serif); }
.admin-password-card p:not(.eyebrow) { margin: -7px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-password-error { min-height: 18px; margin: -8px 0 0; color: var(--terracotta) !important; font-size: 11px !important; font-weight: 700; }
.admin-password-card .button { width: 100%; border: 0; justify-content: space-between; }
.admin-rsvp-card { width: min(1340px, calc(100vw - 28px)); height: min(94svh, 920px); min-height: 0; display: grid; grid-template-rows: auto auto auto auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 28px; background: #fffdf8; box-shadow: 0 35px 100px rgba(5,16,10,.38); animation: successPop .35s cubic-bezier(.2,.8,.2,1) both; }
.admin-rsvp-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 32px 17px; border-bottom: 1px solid var(--line); }
.admin-rsvp-head .eyebrow { margin-bottom: 6px; font-size: 8px; }
.admin-rsvp-head h2 { margin: 0; color: var(--forest); font: 500 clamp(30px, 4vw, 44px)/1 var(--serif); }
.admin-rsvp-head p:last-child { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-close { flex: 0 0 auto; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: #fff; font-size: 24px; line-height: 1; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #f4efe7; }
.admin-stats > div { padding: 13px 18px; text-align: center; border-right: 1px solid var(--line); }
.admin-stats > div:last-child { border-right: 0; }
.admin-stats span { display: block; color: var(--terracotta); font: 500 27px/1 var(--serif); }
.admin-stats small { display: block; margin-top: 5px; color: var(--muted); font-size: 6px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.admin-tools { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .75fr) auto; gap: 14px; align-items: end; padding: 16px 32px; border-bottom: 1px solid var(--line); }
.admin-tools .button { border: 0; min-height: 47px; }
.admin-mobile-sort { display: none; }
.admin-table-wrap { min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.admin-rsvp-table { width: 100%; min-width: 850px; border-collapse: collapse; }
.admin-rsvp-table th { position: sticky; top: 0; z-index: 1; padding: 14px 16px; color: #fff; background: var(--forest); font-size: 8px; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.admin-rsvp-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.admin-rsvp-table th button::after { content: '↕'; opacity: .45; font-size: 9px; }
.admin-rsvp-table th button.is-active::after { content: '↓'; opacity: 1; color: #dfc18f; }
.admin-rsvp-table th button.is-active[data-order="asc"]::after { content: '↑'; }
.admin-rsvp-table td { padding: 15px 16px; border-bottom: 1px solid rgba(36,56,47,.09); color: var(--ink); font-size: 12px; vertical-align: top; }
.admin-rsvp-table td:first-child strong { display: block; font: 500 19px/1.1 var(--serif); color: var(--forest); }
.admin-rsvp-table td:first-child small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.admin-note { max-width: 360px; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.admin-badge { display: inline-flex; min-width: 92px; justify-content: center; padding: 7px 10px; border-radius: 999px; color: #fff; background: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.admin-badge.is-coming { background: #527b5d; }
.admin-badge.is-declined { background: #a7604a; }
.admin-delete { padding: 8px 12px; border: 1px solid rgba(167,96,74,.35); border-radius: 999px; color: var(--terracotta); background: rgba(167,96,74,.07); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-rsvp-message { min-height: 34px; margin: 0; padding: 11px 38px; color: var(--terracotta); font-size: 11px; font-weight: 700; }
.admin-rsvp-message.success { color: #527b5d; }
.admin-rsvp-cards { display: none; }
.admin-card-empty { margin: 0; padding: 18px; color: var(--muted); font: italic 17px var(--serif); text-align: center; }
body.admin-page-mode .admin-password-dialog,
body.admin-page-mode .admin-rsvp-panel { position: static; min-height: 100svh; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); overflow: visible; background: linear-gradient(135deg, #24382f, #31473d); backdrop-filter: none; }
body.admin-page-mode .admin-password-dialog[hidden],
body.admin-page-mode .admin-rsvp-panel[hidden] { display: none; }
body.admin-page-mode .admin-password-dialog.admin-password-overlay { position: fixed; inset: 0; z-index: 1300; padding: 18px; overflow: auto; background: rgba(16,29,23,.76); backdrop-filter: blur(16px); }
body.admin-page-mode .admin-rsvp-card { width: min(1340px, 100%); height: auto; min-height: calc(100svh - 36px); overflow: visible; grid-template-rows: auto auto auto auto auto auto; }
body.admin-page-mode .admin-table-wrap { overflow: visible; }
@keyframes successPop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes confettiFall { to { transform: translateY(115vh) rotate(540deg); } }
footer { padding: 90px 24px; text-align: center; color: #dfe5df; background: var(--forest); }
.footer-monogram { font: 500 52px var(--serif); }
.footer-monogram span { color: var(--gold); font-style: italic; }
footer p { margin: 15px 0 9px; color: #c3a67f; font-size: 10px; letter-spacing: .35em; }
footer small { color: #9ba9a0; font: italic 17px var(--serif); }
.back-to-top { position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); color: #fff; background: var(--forest); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.3); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes headerArrive { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  nav { display: none; }
  .site-header { height: 64px; padding: 0 20px; }
  .hero-script { font-size: clamp(54px, 15vw, 82px); }
  .botanical { width: 45vw; opacity: .32; }
  .story { grid-template-columns: 32px 1fr; gap: 18px; }
  .story-quote { grid-column: 2; margin-top: 20px; }
  .countdown-section, .schedule, .rsvp-section { grid-template-columns: 1fr; }
  .countdown-section { gap: 48px; }
  .events .section-heading { display: block; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card, .event-card-featured { min-height: 540px; }
  .schedule { gap: 45px; }
  .memory-upload-top { grid-template-columns: 1fr; }
  .upload-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scoreboard-heading { align-items: start; flex-direction: column; }
  .scoreboard-row { grid-template-columns: 38px minmax(0,1fr) repeat(3, 65px); }
  .admin-tools { grid-template-columns: 1fr 1fr; }
  .admin-tools label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .section { padding: 90px 22px; }
  .hero { padding-inline: 15px; }
  .hero-script { font-size: clamp(48px, 16vw, 69px); }
  .hero-actions { flex-direction: column; width: min(300px, 90vw); margin-inline: auto; }
  .story { grid-template-columns: 1fr; }
  .section-number { display: none; }
  .story-quote { grid-column: 1; padding-left: 26px; }
  .story-quote span { left: 20px; }
  .countdown-section { padding: 70px 22px; }
  .countdown span { font-size: 43px; }
  .countdown div { min-width: 55px; }
  .countdown > i { display: none; }
  .event-card, .event-card-featured { padding-inline: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .paper-form { padding: 35px 24px; }
  .rsvp-section { padding-inline: 18px; }
  .timeline::before { left: 91px; }
  .timeline li { grid-template-columns: 65px 13px 1fr; gap: 15px; }
  .timeline time { font-size: 20px; }
  .timeline strong { font-size: 23px; }
  .memory-uploader { padding: 12px; border-radius: 18px; }
  .upload-drop { min-height: 130px; padding: 22px 18px; }
  .memory-fields { padding: 22px 18px; }
  .upload-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .upload-queue-heading { align-items: flex-start; }
  .entry-trigger { width: 102px; height: 102px; }
  .entry-invitation h1 { font-size: 34px; }
  .entry-invitation > p { font-size: 7px; }
  .entry-hint { margin-top: 16px; }
  .memory-scoreboard { margin-top: 42px; border-radius: 18px; }
  .scoreboard-heading { padding: 28px 22px 23px; }
  .scoreboard-heading > p { font-size: 9px; }
  .scoreboard-totals { grid-template-columns: 1fr 1fr; }
  .scoreboard-totals > div:nth-child(2) { border-right: 0; }
  .scoreboard-totals > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .scoreboard-list { padding: 8px 10px 13px; }
  .scoreboard-row { grid-template-columns: 31px minmax(0,1fr) 42px; gap: 7px; padding: 8px 4px; }
  .score-metric { display: none; }
  .score-total { display: grid; }
  .score-person strong { font-size: 15px; }
  .score-avatar { width: 32px; height: 32px; }
  .upload-success-card { padding: 40px 25px 29px; }
  .admin-password-dialog,
  .admin-rsvp-panel { place-items: start center; padding: 10px; }
  .admin-password-card { margin-block: auto; padding: 34px 22px 25px; border-radius: 20px; }
  .admin-password-card h2 { font-size: 34px; }
  .admin-rsvp-card { height: calc(100svh - 20px); border-radius: 19px; }
  .admin-rsvp-head { padding: 17px 16px 13px; }
  .admin-rsvp-head .eyebrow { margin-bottom: 4px; }
  .admin-rsvp-head h2 { font-size: 30px; }
  .admin-rsvp-head p:last-child { font-size: 11px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats > div { padding: 10px 8px; }
  .admin-stats > div:nth-child(2) { border-right: 0; }
  .admin-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-stats span { font-size: 24px; }
  .admin-tools { grid-template-columns: 1fr; padding: 12px 14px; gap: 10px; }
  .admin-tools label:first-child { grid-column: auto; }
  .admin-mobile-sort { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fffdf8; -webkit-overflow-scrolling: touch; }
  .admin-mobile-sort button { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); background: #f3ece1; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .admin-mobile-sort button::after { content: ' ↕'; color: var(--muted); }
  .admin-mobile-sort button.is-active { color: #fff; border-color: var(--forest); background: var(--forest); }
  .admin-mobile-sort button.is-active::after { content: ' ↓'; color: #dfc18f; }
  .admin-mobile-sort button.is-active[data-order="asc"]::after { content: ' ↑'; }
  .admin-table-wrap { padding: 12px; background: #f6f1e9; }
  .admin-rsvp-table { display: none; }
  .admin-rsvp-cards { display: grid; gap: 10px; }
  .admin-mobile-card { display: grid; gap: 12px; padding: 15px; border: 1px solid rgba(36,56,47,.11); border-radius: 16px; background: #fffdf8; box-shadow: 0 10px 26px rgba(36,56,47,.06); }
  .admin-mobile-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
  .admin-mobile-card-top strong { display: block; color: var(--forest); font: 500 22px/1 var(--serif); }
  .admin-mobile-card-top small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
  .admin-mobile-card .admin-badge { min-width: auto; white-space: nowrap; }
  .admin-mobile-details { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 12px; background: #f2eadf; }
  .admin-mobile-details span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .admin-mobile-details b { color: var(--terracotta); font: 500 24px/1 var(--serif); }
  .admin-mobile-note { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
  .admin-mobile-card .admin-delete { justify-self: end; }
  .admin-rsvp-message { min-height: 28px; padding: 8px 14px; }
  body.admin-page-mode .admin-rsvp-card { height: auto; min-height: calc(100svh - 20px); overflow: visible; }
  footer { padding-block: 70px; }
}

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

/* Mobil cihazlara özel yerleşim */
@media (max-width: 600px) {
  html { scroll-padding-top: 60px; }
  body { -webkit-text-size-adjust: 100%; }

  .entry-vignette { background: linear-gradient(180deg, rgba(3,16,9,.26), transparent 31%, transparent 62%, rgba(3,16,9,.76)), radial-gradient(ellipse at 50% 49%, transparent 15%, rgba(4,18,10,.18) 63%, rgba(3,13,7,.5)); }

  .entry-invitation { position: relative; inset: auto; width: min(90vw, 420px); max-height: calc(100svh - 24px); padding: clamp(12px, 2.8svh, 24px) clamp(14px, 5vw, 30px); border-radius: 50%; background: radial-gradient(circle, rgba(10,31,19,.48), rgba(10,31,19,.1) 60%, transparent 74%); pointer-events: auto; }
  .entry-invitation > p { margin-bottom: clamp(10px, 2svh, 16px); font-size: clamp(6px, 1.8vw, 8px); }
  .entry-trigger { position: relative; top: auto; left: auto; width: clamp(106px, min(32vw, 20svh), 136px); height: clamp(106px, min(32vw, 20svh), 136px); margin: 0 0 clamp(10px, 2svh, 17px); transform: none; pointer-events: auto; box-shadow: none; filter: drop-shadow(0 12px 15px rgba(3,16,8,.46)); }
  .entry-trigger:hover { transform: scale(1.025); }
  .entry-trigger strong { margin-top: -7px; font-size: clamp(23px, 6.4vw, 27px); }
  .entry-trigger small { bottom: clamp(25px, 4.8svh, 32px); }
  .entry-ring { inset: -8px; }
  .entry-ripple { inset: -18px; }
  .entry-invitation h1 { position: relative; inset: auto; margin: 0; font-size: clamp(25px, min(8.8vw, 5.4svh), 36px); line-height: .95; pointer-events: none; }
  .entry-date { position: relative; inset: auto; margin-top: clamp(7px, 1.4svh, 10px); font-size: clamp(6px, 1.8vw, 7px); }
  .entry-hint { margin-top: clamp(10px, 2svh, 16px); font-size: clamp(5px, 1.55vw, 7px); }

  .site-header,
  .site-header.scrolled { height: 60px; padding: 0 16px; }
  .site-header.scrolled { background: rgba(247,243,236,.96); }
  .monogram { font-size: 22px; }
  .nav-rsvp { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; }

  .hero { min-height: 100svh; padding: 92px 17px 68px; }
  .hero-content { width: 100%; }
  .hero-script { max-width: 100%; margin-block: -2px; font-size: clamp(36px, min(12.5vw, 7.2svh), 58px); line-height: .9; white-space: nowrap; }
  .hero-ampersand { margin-block: 1px; font-size: 38px; }
  .ornament { margin-top: 24px; }
  .hero-date { font-size: 16px; letter-spacing: .08em; }
  .hero-place { padding-inline: 8px; line-height: 1.6; }
  .hero-actions { width: 100%; max-width: 330px; gap: 10px; }
  .hero-actions .button { width: 100%; min-height: 50px; }
  .scroll-cue { bottom: 15px; }

  .section { padding: 76px 18px; }
  .section h2,
  .countdown-section h2 { font-size: clamp(39px, 12vw, 50px); line-height: .98; }
  .eyebrow { margin-bottom: 14px; font-size: 8px; }

  .story { gap: 32px; min-height: 0; }
  .story-copy > p:not(.eyebrow,.signature) { margin-top: 22px; font-size: 13px; line-height: 1.8; }
  .story-quote { margin-top: 4px; padding: 44px 12px 42px 22px; font-size: 27px; }
  .story-quote span { left: 15px; }

  .countdown-section { gap: 35px; padding: 62px 16px; text-align: center; }
  .countdown { gap: 4px; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown span { font-size: clamp(34px, 11vw, 46px); }
  .countdown small { margin-top: 6px; font-size: 7px; letter-spacing: .14em; }

  .events .section-heading { margin-bottom: 38px; text-align: center; }
  .event-grid { gap: 14px; }
  .event-card,
  .event-card-featured { min-height: 0; padding: 50px 22px 43px; }
  .event-card h3 { font-size: 47px; }
  .event-meta { max-width: none; }

  .families-weather { padding-inline: 14px; }
  .family-grid { grid-template-columns: 1fr; gap: 12px; margin: 38px auto 62px; }
  .family-card { min-height: 135px; padding: 24px 15px; }
  .family-card p { font-size: clamp(25px, 8vw, 34px); }
  .family-ornament { line-height: 1; }
  .weather-heading { display: block; margin-bottom: 22px; padding-inline: 4px; text-align: center; }
  .weather-heading > p { margin: 14px auto 0; }
  .weather-grid { grid-template-columns: 1fr; }
  .weather-card { min-height: 150px; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 25px 20px; }
  .weather-icon { grid-column: 2; grid-row: 1; font-size: 36px; }
  .weather-reading { grid-column: 1 / -1; grid-row: 2; justify-items: start; text-align: left; }
  .weather-temperature { font-size: 25px; }
  .weather-source { padding-right: 4px; }

  .schedule { gap: 34px; padding-top: 72px; }
  .timeline::before { left: 82px; }
  .timeline li { grid-template-columns: 61px 12px minmax(0,1fr); gap: 13px; min-height: 92px; }
  .timeline time { font-size: 18px; }
  .timeline strong { font-size: 22px; }
  .timeline small { font-size: 9px; }

  .rsvp-section { gap: 42px; padding-inline: 14px; }
  .rsvp-aside { padding-inline: 5px; }
  .rsvp-note { margin-top: 30px; }
  .paper-form { gap: 20px; padding: 30px 20px; box-shadow: 0 18px 45px rgba(65,52,37,.1); }
  .form-heading { font-size: 25px; }
  .field-row { gap: 18px; }
  input,
  select,
  textarea { min-height: 48px; font-size: 16px; }
  .form-submit,
  .button { min-height: 50px; }

  .centered { margin-bottom: 38px; }
  .centered > p:last-child { margin-top: 17px; font-size: 12px; }
  .memory-uploader { margin-bottom: 42px; padding: 10px; border-radius: 18px; }
  .memory-uploader form { gap: 14px; }
  .memory-upload-top { gap: 12px; }
  .upload-drop { min-height: 118px; gap: 13px; padding: 20px 16px; border-radius: 14px; }
  .upload-icon { width: 45px; height: 45px; border-radius: 13px; }
  .upload-copy strong { font-size: 19px; }
  .memory-fields { gap: 15px; padding: 18px 15px; border-radius: 14px; }
  .upload-preview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .preview-tile { min-width: 0; }
  .preview-tile > small { max-width: 100%; }

  .memory-scoreboard { margin-top: 38px; border-radius: 17px; }
  .scoreboard-heading { gap: 15px; padding: 25px 18px 21px; }
  .scoreboard-heading h3 { font-size: 32px; }
  .scoreboard-totals > div { padding: 20px 7px; }
  .scoreboard-totals span { font-size: 29px; }
  .scoreboard-row { min-height: 58px; }

  .upload-success { padding: 14px; }
  .upload-success-card { width: 100%; padding: 37px 20px 24px; border-radius: 20px; }
  .admin-close { width: 38px; height: 38px; }
  .admin-stats span { font-size: 24px; }
  .back-to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  footer { padding: 65px 18px calc(65px + env(safe-area-inset-bottom)); }
}

/* Tek parça sinematik giriş videosu ve siteye geçiş */
.video-entry { isolation: isolate; background: #142319; }
.video-entry.film-finishing { background: transparent; }
.entrance-film { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: translateZ(0) scale(1); transform-origin: 50% 50%; transition: transform 4.8s linear; will-change: opacity, transform; }
.video-entry.names-entering .entrance-film { transform: translateZ(0) scale(1.12); }
.video-entry .entry-vignette { z-index: 2; background: radial-gradient(ellipse at 50% 48%, transparent 18%, rgba(3,16,9,.13) 58%, rgba(2,10,5,.68) 100%), linear-gradient(180deg, rgba(2,12,6,.18), transparent 43%, rgba(2,11,5,.38)); }
.video-entry .entry-invitation { z-index: 4; }
.hero-content.hero-in-portal { position: absolute; z-index: 5; top: calc(50% + 19px); left: 50%; width: min(96vw, 1040px); opacity: 1; clip-path: inset(7% 32% 7% 32% round 21%); transform: translate3d(-50%,-50%,0) scale(.22); transform-origin: 50% 50%; transition: none; pointer-events: none; will-change: transform, clip-path; }
.hero-content.hero-in-portal > * { opacity: 0; }
.film-light-leak { display: none; }
.video-entry.opened .entry-invitation { animation: invitationVanish .48s ease forwards; }
.video-entry.opened .film-light-leak { opacity: 0; }
.video-entry.opened .entry-vignette { animation: clearEntryVignette .45s ease forwards; }
.video-entry.opened { animation: none; }
body.invitation-opening main,
body.invitation-opening .site-header { animation: none; }
body.invitation-opening.film-finishing main { animation: pageArriveSoft .95s cubic-bezier(.2,.7,.25,1) both; }
body.invitation-opening.film-finishing .site-header { animation: headerArrive .65s ease .2s both; }
.video-entry.film-finishing .entry-vignette { animation: filmVignetteOut .85s ease forwards; }
.video-entry.film-finishing .entrance-film { animation: entranceFilmFade 2.1s cubic-bezier(.4,0,.2,1) forwards; }
.video-entry.names-entering .hero-content.hero-in-portal { animation: heroPortalIn 5.4s cubic-bezier(.3,.18,.2,1) forwards; }
.video-entry.names-entering .hero-content.hero-in-portal .hero-script,
.video-entry.names-entering .hero-content.hero-in-portal .hero-ampersand { animation: portalNamesIn 1.05s cubic-bezier(.2,.7,.25,1) .08s forwards; }
.video-entry.film-finishing .hero-content.hero-in-portal .eyebrow { animation: portalDetailIn .8s ease .52s forwards; }
.video-entry.film-finishing .hero-content.hero-in-portal .ornament { animation: portalDetailIn .85s ease .68s forwards; }
.video-entry.film-finishing .hero-content.hero-in-portal .hero-date,
.video-entry.film-finishing .hero-content.hero-in-portal .hero-place { animation: portalDetailIn .85s ease .82s forwards; }
.video-entry.film-finishing .hero-content.hero-in-portal .hero-actions { animation: portalDetailIn .85s ease 1s forwards; }
@keyframes filmLightLeak { from { opacity: 0; transform: translate3d(-50%,-50%,0) scale(.96); } to { opacity: .44; transform: translate3d(-50%,-50%,0) scale(1.04); } }
@keyframes filmVignetteOut { from { opacity: 0; } to { opacity: 0; } }
@keyframes clearEntryVignette { to { opacity: 0; } }
@keyframes entranceFilmFade { 0% { opacity: 1; } 72% { opacity: .4; } 100% { opacity: 0; } }
@keyframes heroPortalIn {
  0% { clip-path: inset(7% 32% 7% 32% round 21%); transform: translate3d(-50%,-50%,0) scale(.22); }
  72% { clip-path: inset(5% 27% 5% 27% round 15%); }
  84% { clip-path: inset(2% 12% 2% 12% round 7%); }
  100% { clip-path: inset(0 0 0 0 round 0); transform: translate3d(-50%,-50%,0) scale(1); }
}
@keyframes portalNamesIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes portalDetailIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageArriveSoft { from { opacity: 0; transform: translate3d(0,10px,0) scale(1.012); } to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }

@media (max-width: 600px) {
  .entrance-film { object-position: 50% 50%; }
  .video-entry::before,
  .video-entry::after { display: none; }
  .video-entry.opened { animation: none; }
  .video-entry.opened .entry-invitation { animation-duration: .4s; }
  .hero-content.hero-in-portal { top: calc(50% + 12px); width: calc(100% - 12px); clip-path: inset(6% 29% 6% 29% round 19%); }
  .video-entry.names-entering .hero-content.hero-in-portal { animation-name: heroPortalInMobile; }
  body.invitation-opening main,
  body.invitation-opening .site-header { animation: none; }
  .film-light-leak { top: 50%; width: 86vw; height: 48vh; border-radius: 48% 48% 7% 7% / 24% 24% 7% 7%; }
  body.invitation-opening.film-finishing main { animation: pageArriveSoft .85s cubic-bezier(.2,.7,.25,1) both; }
  body.invitation-opening.film-finishing .site-header { animation: headerArrive .55s ease .15s both; }
}

@keyframes heroPortalInMobile {
  0% { clip-path: inset(6% 15% 6% 15% round 19%); transform: translate3d(-50%,-50%,0) scale(.22); }
  72% { clip-path: inset(4% 10% 4% 10% round 14%); }
  84% { clip-path: inset(1% 0% 1% 0% round 6%); }
  100% { clip-path: inset(0 0 0 0 round 0); transform: translate3d(-50%,-50%,0) scale(1); }
}
