:root {
    --ink: #0f1b2d;
    --navy: #17263f;
    --navy-soft: #22355a;
    --gold: #c6a265;
    --gold-light: #e7d4ad;
    --cream: #f6efe3;
    --paper: #fcf9f3;
    --text: #232b38;
    --muted: #6a7180;
    --line: rgba(198, 162, 101, .35);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Great Vibes', 'Segoe Script', cursive;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --gutter: clamp(20px, 6vw, 40px);
    --space-section: clamp(72px, 18vw, 120px);
    --radius: 22px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-variant-numeric: lining-nums; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 15px/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(36px, 10vw, 54px); letter-spacing: -.01em; }
h2 em, h3 em { font-style: italic; color: var(--gold); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.sprite { position: absolute; }
.is-hidden { display: none !important; }
.text-center { text-align: center; }

.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 560px; }

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font: 600 11px/1 var(--font-body);
    letter-spacing: .32em;
    color: var(--gold-light);
}
.eyebrow-gold { color: var(--gold); }

.ring-mark { width: 64px; height: 40px; color: var(--gold); margin: 0 auto 26px; display: block; }

/* ---------- Butonlar ---------- */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font: 700 12px/1 var(--font-body);
    letter-spacing: .2em;
    text-decoration: none;
    transition: transform .25s var(--ease-out), background-color .25s, color .25s, box-shadow .25s;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary svg, .btn-outline svg, .skip-intro svg { width: 14px; height: 14px; }
.btn-primary { background: var(--navy); color: var(--gold-light); border: 1px solid var(--navy); box-shadow: 0 12px 28px -14px rgba(15, 27, 45, .7); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--ink); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-primary:active, .btn-outline:active { transform: scale(.97); }
:is(.btn-primary, .btn-outline, .skip-intro, .tap-to-open, .hero-scroll):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ---------- Giriş ---------- */
.opening {
    position: fixed;
    inset: 0;
    cursor: pointer;
    z-index: 50;
    background: var(--ink);
    transition: opacity 1s var(--ease-out), visibility 1s;
}
.opening.closed { opacity: 0; visibility: hidden; pointer-events: none; }
.opening-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opening-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 27, 45, .78) 0%, rgba(15, 27, 45, .2) 30%, transparent 55%, rgba(15, 27, 45, .25) 100%);
}
.opening-content {
    position: absolute;
    top: max(5vh, calc(env(safe-area-inset-top) + 40px));
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
}
.opening-eyebrow {
    display: block;
    font: 600 11px/1 var(--font-body);
    letter-spacing: .4em;
    color: var(--gold-light);
    opacity: 0;
    animation: fade-up 1.2s .3s var(--ease-out) forwards;
}
.opening-title {
    display: inline-block;
    min-height: 1.2em;
    margin-top: 14px;
    font: 400 clamp(46px, 14vw, 72px)/1.2 var(--font-script);
    text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.opening-title.typing { border-right: 1px solid currentColor; }
.skip-intro {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(15, 27, 45, .35);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.tap-to-open {
    position: absolute;
    left: 50%;
    bottom: max(12vh, calc(env(safe-area-inset-bottom) + 48px));
    transform: translateX(-50%);
    padding: 18px 34px;
    white-space: nowrap;
    border: 1px solid var(--gold-light);
    border-radius: 999px;
    background: rgba(15, 27, 45, .55);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- Müzik butonu ---------- */
.music-toggle {
    position: fixed;
    right: 16px;
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(231, 212, 173, .55);
    border-radius: 50%;
    background: rgba(15, 27, 45, .62);
    color: var(--gold-light);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    animation: fade-up .8s var(--ease-out) both;
}
.music-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.music-toggle .music-slash { opacity: 0; transition: opacity .2s; }
.music-toggle.is-muted .music-slash { opacity: 1; }
.music-toggle:not(.is-muted)::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--gold-light);
    animation: ripple 2.4s ease-out infinite;
}
.music-toggle:active { transform: scale(.94); }
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.music-toggle[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--ink) url('../assets/hero-poster.jpg') center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 27, 45, .05) 0%, rgba(15, 27, 45, .15) 38%, rgba(15, 27, 45, .78) 68%, var(--ink) 100%);
}
.hero-content {
    position: relative;
    width: 100%;
    padding: 0 var(--gutter) max(56px, calc(env(safe-area-inset-bottom) + 40px));
    text-align: center;
}
.hero-names {
    font: 400 clamp(64px, 19vw, 104px)/1 var(--font-script);
    letter-spacing: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero-names i { font-family: var(--font-display); font-style: italic; font-size: .5em; color: var(--gold-light); vertical-align: middle; }
.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 20px;
    font: 500 22px/1 var(--font-display);
    letter-spacing: .12em;
}
.hero-date b { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.hero-content p { max-width: 340px; margin: 0 auto 30px; color: rgba(255, 255, 255, .82); font-size: 14px; }
.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3em;
    text-decoration: none;
}
.hero-scroll span { font-size: 18px; animation: bob 2.2s ease-in-out infinite; }

/* ---------- Bölümler ---------- */
.section-paper { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
section { position: relative; }

.section-title { margin-bottom: 42px; }
.section-title p { margin-top: 16px; color: var(--muted); max-width: 440px; }
.section-title.text-center p { margin-left: auto; margin-right: auto; }
.section-navy .section-title p { color: rgba(255, 255, 255, .66); }

.story { padding: var(--space-section) 0; }
.story p { margin-top: 26px; color: var(--muted); font-size: 15.5px; text-wrap: balance; }
.signature { margin-top: 34px; font: 400 44px/1 var(--font-script); color: var(--navy); }
.signature span { font-family: var(--font-display); font-style: italic; font-size: .55em; color: var(--gold); }
.story .story-families {
    margin-top: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
}
.story .story-note {
    display: inline-block;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font: italic 500 19px/1.5 var(--font-display);
    font-variant-numeric: lining-nums;
    color: var(--navy);
}

.date-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 5vw, 36px);
    padding: 34px var(--gutter);
    background: var(--ink);
    color: #fff;
    text-align: center;
}
.date-ribbon strong { display: block; font: 500 clamp(30px, 9vw, 40px)/1 var(--font-display); color: var(--gold-light); }
.date-ribbon small { display: block; margin-top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .28em; color: rgba(255, 255, 255, .62); }
.date-ribbon i { width: 1px; height: 46px; background: var(--line); }

/* Geri sayım */
.countdown-section { padding: var(--space-section) 0; text-align: center; }
.countdown-section h2 + p { margin: 16px auto 0; max-width: 360px; color: var(--muted); }
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 40px 0 36px;
}
.countdown div {
    padding: 20px 4px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 18px 34px -26px rgba(15, 27, 45, .45);
}
.countdown strong { display: block; font: 500 clamp(32px, 10vw, 46px)/1 var(--font-display); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.countdown span { display: block; margin-top: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--gold); }

/* Program */
.program-section { padding: var(--space-section) 0; overflow: hidden; }
.program-section::before, .program-section::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border: 1px solid var(--line);
    border-radius: 50%;
    pointer-events: none;
}
.program-section::after { right: -60px; top: -110px; }
.program-section .container { position: relative; z-index: 1; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 84px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.event-row { display: grid; grid-template-columns: 64px 40px 1fr; padding: 0 0 38px; }
.event-row:last-child { padding-bottom: 0; }
.event-time small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .24em; color: rgba(255, 255, 255, .5); }
.event-time strong { display: block; margin-top: 4px; font: 500 26px/1 var(--font-display); color: var(--gold-light); }
.event-dot { position: relative; }
.event-dot::after {
    content: '';
    position: absolute;
    left: 15.5px;
    top: 10px;
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--navy), 0 0 0 5px var(--line);
}
.event-copy small { font-size: 10px; font-weight: 700; letter-spacing: .24em; color: var(--gold); }
.event-copy h3 { margin: 8px 0 8px; font-size: 28px; }
.event-copy p { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* Mekân */
.venue-section { padding: var(--space-section) 0; }
.venue-card {
    padding: 28px 22px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(15, 27, 45, .55);
}
.venue-head h3 { font-size: 32px; color: var(--navy); }
.venue-head p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.venue-head .eyebrow { margin-bottom: 12px; }
.map-box {
    height: 240px;
    margin: 22px 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--cream);
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.75) contrast(1.02); }
.venue-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.venue-actions a { padding: 0 12px; letter-spacing: .14em; font-size: 11px; }

/* Kapanış */
.final-section {
    padding: calc(var(--space-section) + 40px) 0 calc(var(--space-section) + 20px);
    overflow: hidden;
    color: #fff;
    /* Taban renk açık: kesirli piksel sınırında koyu renk sızıp çizgi oluşturmasın. */
    background: linear-gradient(var(--paper) 24px, var(--ink) 24px) var(--paper);
}
.final-photo {
    position: absolute;
    inset: 4px 0 0;
    background: url('../assets/final.jpg') center 70% / cover no-repeat;
    opacity: .5;
}
.final-section::after {
    content: '';
    position: absolute;
    inset: -1px 0 0;
    background: linear-gradient(180deg, var(--paper) 0, var(--paper) 3%, rgba(15, 27, 45, .55) 22%, rgba(15, 27, 45, .7) 100%);
}
.final-section .container { position: relative; z-index: 1; }
.final-section .ring-mark { color: var(--gold-light); }
.final-section h2 em { color: var(--gold-light); }
.final-names { margin: 34px 0 14px; font: 400 clamp(52px, 15vw, 72px)/1 var(--font-script); }
.final-names span { font-family: var(--font-display); font-style: italic; font-size: .5em; color: var(--gold-light); }
.final-section small { font-size: 12px; font-weight: 600; letter-spacing: .4em; color: rgba(255, 255, 255, .7); }

/* ---------- Sadece mobil ---------- */
.mobile-only-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 30%, var(--navy-soft), var(--ink) 70%);
    color: #fff;
    text-align: center;
}
.mobile-only-gate[hidden] { display: none; }
.mobile-only-card { max-width: 440px; }
.mobile-only-card h2 { margin: 6px 0 18px; font-size: 40px; }
.mobile-only-card p { color: rgba(255, 255, 255, .7); }
body.desktop-blocked { overflow: hidden; }

/* ---------- Hareket ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(231, 212, 173, .35); } 50% { box-shadow: 0 0 0 12px rgba(231, 212, 173, 0); } }

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

@media (max-width: 360px) {
    .countdown { gap: 6px; }
    .countdown span { letter-spacing: .12em; }
    .venue-actions { grid-template-columns: 1fr; }
}

/* "font" kısayolu rakam stilini sıfırlıyor; Cormorant'ta 11'in II gibi görünmemesi için düz rakam. */
.hero-date, .date-ribbon strong, .event-time strong, .countdown strong, h1, h2, h3 { font-variant-numeric: lining-nums tabular-nums; }
