/* =====================================================================
   HERO — Kapı açılışı intro + chrome
   ===================================================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

body.is-intro-locked,
body.is-door-opening {
    overflow: hidden;
    height: 100vh;
}

/* ---------------------------------------------------------------------
   Kapı açılışı — krem / zeytin / şampanya altın
--------------------------------------------------------------------- */
.door-intro {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 72px 20px 110px;
    overflow: hidden;
    background: var(--c-cream, #f2eee9);
    transition: opacity 0.55s var(--ease-smooth), visibility 0.55s;
}

.door-intro.is-done {
    display: none;
    pointer-events: none;
}

.door-intro__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.door-intro__botanical {
    position: absolute;
    inset: -8%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(92vw, 820px);
    opacity: 0.22;
    filter: saturate(0.85);
    transform: scale(1.04);
    will-change: transform, opacity;
}

.door-intro__rays {
    position: absolute;
    inset: -30%;
    background: conic-gradient(
        from 0deg,
        rgba(242, 238, 233, 0.55) 0deg,
        rgba(166, 139, 103, 0.08) 18deg,
        rgba(242, 238, 233, 0.5) 36deg,
        rgba(166, 139, 103, 0.08) 54deg,
        rgba(242, 238, 233, 0.5) 72deg,
        rgba(166, 139, 103, 0.08) 90deg,
        rgba(242, 238, 233, 0.5) 108deg,
        rgba(166, 139, 103, 0.08) 126deg,
        rgba(242, 238, 233, 0.5) 144deg,
        rgba(166, 139, 103, 0.08) 162deg,
        rgba(242, 238, 233, 0.5) 180deg,
        rgba(166, 139, 103, 0.08) 198deg,
        rgba(242, 238, 233, 0.5) 216deg,
        rgba(166, 139, 103, 0.08) 234deg,
        rgba(242, 238, 233, 0.5) 252deg,
        rgba(166, 139, 103, 0.08) 270deg,
        rgba(242, 238, 233, 0.5) 288deg,
        rgba(166, 139, 103, 0.08) 306deg,
        rgba(242, 238, 233, 0.5) 324deg,
        rgba(166, 139, 103, 0.08) 342deg,
        rgba(242, 238, 233, 0.55) 360deg
    );
    opacity: 0.35;
    mix-blend-mode: multiply;
    animation: door-rays-turn 100s linear infinite;
}

@keyframes door-rays-turn {
    to { transform: rotate(360deg); }
}

.door-intro__mist {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 252, 248, 0.92) 0%, rgba(242, 238, 233, 0.55) 46%, transparent 72%),
        linear-gradient(180deg, rgba(232, 226, 217, 0.45) 0%, transparent 38%, rgba(42, 43, 38, 0.08) 100%);
}

.door-intro__bloom {
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(78vw, 560px);
    height: min(78vw, 560px);
    transform: translate(-50%, -50%) scale(0.85);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(196, 173, 138, 0.28) 42%, transparent 70%);
    opacity: 0;
    filter: blur(18px);
    pointer-events: none;
}

.door-intro__sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.door-intro__sparkles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(196, 173, 138, 0.85);
    opacity: 0;
}

.door-intro__grain {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.door-scene {
    position: relative;
    z-index: 2;
    perspective: 2000px;
    perspective-origin: 50% 38%;
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(440px, 86vw);
}

.door-frame {
    width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform-origin: 50% 55%;
    filter: drop-shadow(0 28px 48px rgba(42, 43, 38, 0.18));
    opacity: 0;
    will-change: transform, opacity;
}

.door-frame__lintel {
    position: relative;
    z-index: 2;
    padding: 0.85rem 1.2rem 1.05rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.98), rgba(242, 238, 233, 0.96));
    border: 1px solid rgba(166, 139, 103, 0.42);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    opacity: 0;
}

.door-frame__welcome {
    margin: 0 0 0.55rem;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: clamp(0.72rem, 2.2vw, 0.84rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold-dark, #7d6648);
    line-height: 1.35;
}

.door-frame__crest {
    display: inline-grid;
    place-items: center;
    grid-auto-flow: column;
    gap: 0.05em;
    width: 48px;
    height: 48px;
    margin: 0 0 0.4rem;
    border-radius: 50%;
    border: 1px solid rgba(166, 139, 103, 0.5);
    box-shadow:
        0 0 0 5px rgba(250, 248, 245, 0.85),
        inset 0 0 14px rgba(255, 255, 255, 0.9);
    background: radial-gradient(circle at 38% 32%, #fff, #f2eee9 55%, #e8e2d9);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--c-gold-dark, #7d6648);
}

.door-frame__crest i {
    font-style: normal;
    font-family: var(--font-script);
    font-size: 0.92rem;
    color: var(--c-gold, #a68b67);
}

.door-frame__names {
    margin: 0;
    font-family: var(--font-script);
    font-size: clamp(1.65rem, 5.4vw, 2.2rem);
    line-height: 1.05;
    color: var(--c-dark, #2a2b26);
}

.door-frame__meta {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(42, 43, 38, 0.62);
}

.door-frame__doors {
    position: relative;
    aspect-ratio: 3 / 3.65;
    perspective: 1800px;
    perspective-origin: 50% 50%;
    border: 1px solid rgba(166, 139, 103, 0.42);
    border-top: 0;
    overflow: visible;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255, 252, 248, 0.95), rgba(196, 173, 138, 0.45) 55%, rgba(125, 102, 72, 0.32)),
        linear-gradient(180deg, #faf8f5, #ddd4c4);
}

.door-frame__doors::before {
    content: '';
    position: absolute;
    inset: 10% 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
    filter: blur(8px);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.door {
    position: absolute;
    inset: 0 0 0 50%;
    width: 50%;
    z-index: 2;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    background:
        linear-gradient(165deg, #faf8f5 0%, #efe8dc 38%, #d9cfbc 100%);
    box-shadow: inset 0 0 0 1px rgba(166, 139, 103, 0.12);
    will-change: transform;
}

.door:disabled {
    cursor: default;
}

.door:focus-visible {
    outline: 2px solid rgba(166, 139, 103, 0.8);
    outline-offset: -4px;
}

.door--left {
    left: 0;
    right: auto;
    transform-origin: left center;
    border-right: 1px solid rgba(125, 102, 72, 0.35);
}

.door--right {
    left: 50%;
    transform-origin: right center;
    border-left: 1px solid rgba(255, 255, 255, 0.65);
}

.door__inset {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(166, 139, 103, 0.42);
    border-radius: 3px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(166, 139, 103, 0.1));
    box-shadow: inset 0 0 18px rgba(125, 102, 72, 0.08);
}

.door__panel {
    position: absolute;
    left: 14%;
    right: 14%;
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(125, 102, 72, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(166, 139, 103, 0.4);
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.72), rgba(214, 202, 178, 0.35));
}

.door__panel--top {
    top: 8%;
    bottom: 54%;
}

.door__panel--bottom {
    top: 58%;
    bottom: 8%;
}

.door__handle {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 44px;
    transform: translateY(-50%);
    border-radius: 6px;
    background: linear-gradient(180deg, #e8dcc4, #a68b67 48%, #7d6648);
    box-shadow: 0 3px 8px rgba(42, 43, 38, 0.22);
}

.door__handle i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #faf8f5, #c4ad8a 55%, #7d6648);
    box-shadow: 0 2px 5px rgba(42, 43, 38, 0.25);
}

.door--left .door__handle { right: 15px; }
.door--right .door__handle { left: 15px; }

.door__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.door--left .door__shade {
    background: linear-gradient(90deg, transparent 30%, rgba(42, 43, 38, 0.28) 100%);
}

.door--right .door__shade {
    background: linear-gradient(270deg, transparent 30%, rgba(42, 43, 38, 0.28) 100%);
}

.door__seam {
    position: absolute;
    top: 2%;
    bottom: 2%;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    z-index: 4;
    border-radius: 3px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.98), transparent);
    box-shadow: 0 0 22px 5px rgba(196, 173, 138, 0.75);
    opacity: 0;
    pointer-events: none;
}

.door__glow {
    position: absolute;
    inset: 8% 42%;
    z-index: 1;
    border-radius: 40%;
    background: radial-gradient(circle, rgba(255, 252, 248, 0.9), rgba(196, 173, 138, 0.35), transparent 70%);
    filter: blur(10px);
    opacity: 0.55;
    pointer-events: none;
}

.door-frame__sill {
    height: 11px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(166, 139, 103, 0.72), rgba(125, 102, 72, 0.55));
    box-shadow: 0 8px 18px rgba(42, 43, 38, 0.18);
}

.door-intro__hint {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(42, 43, 38, 0.55);
    opacity: 0;
    animation: door-hint-pulse 2.6s ease-in-out infinite;
}

@keyframes door-hint-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.85; }
}

.door-intro__tagline {
    margin: 0;
    max-width: 28em;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.65;
    font-weight: 300;
    color: rgba(42, 43, 38, 0.48);
    opacity: 0;
}

.door-intro__skip {
    position: absolute;
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    right: 1.25rem;
    z-index: 12;
    border: 0;
    background: transparent;
    color: rgba(42, 43, 38, 0.45);
    font: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: color 0.25s ease;
}

.door-intro__skip:hover {
    color: rgba(42, 43, 38, 0.85);
}

@media (max-width: 640px) {
    .door-intro {
        padding: 64px 14px 120px;
    }

    .door-scene {
        width: min(360px, 88vw);
    }

    .door-frame__names {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .door-intro__tagline {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .door-intro__rays {
        animation: none !important;
    }

    .door-intro__hint {
        animation: none !important;
        opacity: 0.75 !important;
    }
}

/* Eski 3D / PNG sahne (kullanılmıyor; geriye dönük) */
.hero-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 40%, #3a3b32 0%, #2a2b26 45%, #1a1b17 100%);
    overflow: hidden;
    transition: opacity 1.2s var(--ease-smooth);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.hero-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-stage.is-3d .hero-canvas {
    pointer-events: auto;
}

.hero-stage .is-fallback-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hero-stage.dimmed {
    opacity: 0;
    pointer-events: none;
    filter: brightness(0.7) saturate(0.85);
}

.hero-stage.is-opening:not(.is-3d) .hero-stage-img.active {
    transform: scale(1.12) translateY(2%);
    filter: brightness(1.08) contrast(1.05);
}

.hero-stage.is-opening.is-3d .hero-canvas {
    transform: scale(1.04);
    transition: transform 1.2s var(--ease-smooth), opacity 1s ease;
}

.hero-stage.is-handoff:not(.is-3d) .hero-stage-img.active {
    opacity: 0;
    transform: scale(1.28) translateY(4%);
    filter: brightness(1.35) saturate(1.1);
    transition: opacity 1s ease, transform 1.2s var(--ease-smooth), filter 1s ease;
}

.hero-stage.is-handoff.is-3d .hero-canvas {
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1s ease, transform 1.2s var(--ease-smooth);
    pointer-events: none;
}

.hero-stage-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    opacity: 0;
    transition: opacity 1.1s var(--ease-smooth), transform 1.4s var(--ease-smooth);
    transform: scale(1.02);
}

.hero-stage-img.active { opacity: 1; }
.hero-stage-img.fade-out { opacity: 0; }

.hero-stage-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.42) 0%, transparent 20%, transparent 58%, rgba(0,0,0,.62) 100%);
}

/* Yanıp sönen ışık noktaları */
.hero-twinkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-twinkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffe6b0;
    box-shadow: 0 0 8px 2px rgba(255, 200, 120, 0.65);
    animation: twinkle-pulse 2.4s ease-in-out infinite;
}

@keyframes twinkle-pulse {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 0.95; transform: scale(1.35); }
}

/* Mühür hotspot — fotoğraftaki zarfa tıklama alanı */
.envelope-theater {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.seal-hotspot {
    position: absolute;
    left: 50%;
    top: 48%;
    width: clamp(72px, 12vw, 96px);
    height: clamp(72px, 12vw, 96px);
    transform: translate(-50%, -50%);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    z-index: 6;
    border-radius: 50%;
}

.seal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(232, 200, 120, 0.75);
    box-shadow: 0 0 0 0 rgba(166, 139, 103, 0.45);
    animation: seal-pulse 2.2s ease-out infinite;
}

.seal-core {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c4ad8a, #a68b67 45%, #7d6648 100%);
    opacity: 0.08;
    transition: opacity .35s ease, transform .35s ease;
}

.seal-hotspot:hover .seal-core,
.seal-hotspot:focus-visible .seal-core {
    opacity: 0.22;
    transform: scale(1.05);
}

.seal-hotspot.is-pressed {
    pointer-events: none;
    animation: seal-break 0.7s var(--ease-smooth) forwards;
}

@keyframes seal-pulse {
    0% { box-shadow: 0 0 0 0 rgba(166, 139, 103, 0.5); opacity: 1; }
    70% { box-shadow: 0 0 0 18px rgba(166, 139, 103, 0); opacity: 0.55; }
    100% { box-shadow: 0 0 0 0 rgba(166, 139, 103, 0); opacity: 0.9; }
}

@keyframes seal-break {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -62%) scale(0.4); opacity: 0; }
}

.envelope-theater.is-done {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* Overlay UI — kapı intro sırasında logo + müzik; sonra krem chrome */
.hero-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    grid-template-rows: auto;
    padding: 18px 28px 0;
    height: auto;
    bottom: auto;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s var(--ease-smooth);
}

.hero-overlay.is-intro-chrome {
    background: linear-gradient(180deg, rgba(242, 238, 233, 0.88), rgba(242, 238, 233, 0.2) 85%, transparent);
}

.hero-overlay.is-intro-chrome:not(.is-chrome-only) .hero-logo {
    color: var(--c-dark, #2a2b26);
}

.hero-overlay.is-intro-chrome:not(.is-chrome-only) .hero-music-label,
.hero-overlay.is-intro-chrome:not(.is-chrome-only) .hero-music-ico {
    color: rgba(42, 43, 38, 0.7);
}

.hero-overlay.visible { opacity: 1; }

.hero-overlay.is-chrome-only {
    background: linear-gradient(180deg, rgba(242, 238, 233, 0.96), rgba(242, 238, 233, 0.55) 70%, transparent);
}

.hero-overlay.is-chrome-only .hero-topbar {
    pointer-events: auto;
}

/* Kapı intro: menü gizle, logo + müzik kalsın */
.hero-overlay.is-intro-chrome:not(.is-chrome-only) .hero-topnav {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Üst bar */
.hero-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: auto;
}

.hero-logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: 0.14em;
    color: #fff;
    text-decoration: none;
    min-width: 64px;
}

body.invite-ready .hero-logo {
    color: var(--c-dark);
}

.hero-topnav {
    display: flex;
    gap: clamp(12px, 2vw, 26px);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-topnav a {
    position: relative;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    padding: 6px 0;
}

.hero-topnav a:hover,
.hero-topnav a.active { color: #fff; }

.hero-topnav a.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 1px;
    background: #a68b67;
}

.hero-music {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    appearance: none;
    border: 1px solid rgba(166, 139, 103, 0.45);
    background: rgba(255, 255, 255, 0.55);
    color: var(--c-dark, #2a2b26);
    font: inherit;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 36px;
}

.lang-toggle:hover {
    background: rgba(166, 139, 103, 0.18);
}

body.invite-ready .lang-toggle {
    border-color: rgba(166, 139, 103, 0.4);
    color: var(--c-dark);
}

.hero-music-ico {
    color: var(--c-gold);
    font-size: 0.75rem;
}

.hero-music-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}

.hero-music-toggle {
    width: 44px;
    height: 24px;
    border-radius: 20px;
    border: 1px solid rgba(166,139,103,.55);
    background: rgba(166,139,103,.35);
    position: relative;
    cursor: pointer;
    padding: 0;
}

.hero-music-toggle[aria-checked="false"] {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
}

.hero-music-knob {
    position: absolute;
    top: 2px;
    left: 22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: left .25s var(--ease-smooth);
}

.hero-music-toggle[aria-checked="false"] .hero-music-knob { left: 3px; }

.hero-music-volume {
    width: 0;
    opacity: 0;
    accent-color: var(--c-gold);
    transition: width .3s ease, opacity .3s ease;
}

.hero-music:hover .hero-music-volume {
    width: 70px;
    opacity: 1;
}

/* Merkez — görselde gömülü yazıyı örter, HTML isimleri okunur kalır */
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(18px, 4vh, 40px) 28px 12px;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 65% at 50% 42%, rgba(4, 3, 6, 0.72) 0%, rgba(4, 3, 6, 0.28) 55%, transparent 78%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-center.is-fading {
    opacity: 0;
    transform: translateY(-16px);
}

.hero-ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.85);
}

.hero-ornament i { font-size: .65rem; color: #fff; }
.hero-ornament-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,.4);
}

.hero-names {
    margin: 0 0 12px;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 5.4rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.hero-amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: .5em;
    margin: 0 .1em;
}

.hero-tagline {
    max-width: 440px;
    margin: 0 auto 20px;
    font-size: clamp(.68rem, 1.3vw, .78rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,248,235,.82);
    line-height: 1.75;
}

.hero-hint {
    margin-top: 12px;
    font-size: .68rem;
    letter-spacing: .08em;
    color: rgba(244,233,209,.5);
    opacity: 0;
    transition: opacity .6s ease;
}

.hero-hint.visible { opacity: 1; }

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 6px 0 12px;
    color: rgba(255,255,255,.5);
    font-size: .66rem;
    letter-spacing: .12em;
    opacity: 0;
}

.hero-scroll.visible {
    opacity: 1;
    animation: hero-scroll-bounce 2.2s ease-in-out infinite;
}

.hero-scroll i {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .6rem;
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Sabit alt menü kaldırıldı — üst fixed menü kullanılıyor */
.site-dock {
    display: none !important;
}

body.invite-ready .hero-topbar {
    position: relative;
    z-index: 41;
    padding: 10px 0;
    pointer-events: auto;
}

body.invite-ready .hero-overlay.is-chrome-only .hero-topnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.invite-ready .hero-topnav a {
    color: rgba(42, 43, 38, 0.62);
}

body.invite-ready .hero-topnav a:hover,
body.invite-ready .hero-topnav a.active {
    color: var(--c-dark);
}

/* Sol sabit karşılama — yatay plaka */
.guest-welcome-rail {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    top: 50%;
    transform: translateY(-50%);
    z-index: 36;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: min(11.5rem, 22vw);
    padding: 1rem 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease 0.15s;
    background:
        linear-gradient(165deg, rgba(255, 252, 248, 0.92), rgba(242, 238, 233, 0.88));
    border: 1px solid rgba(166, 139, 103, 0.38);
    box-shadow:
        0 14px 36px rgba(42, 43, 38, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.guest-welcome-rail:not([hidden]) {
    opacity: 0;
}

body.invite-ready .guest-welcome-rail:not([hidden]) {
    opacity: 1;
}

.guest-welcome-rail__ornament {
    display: block;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(166, 139, 103, 0.75), transparent);
}

.guest-welcome-rail__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.guest-welcome-rail__label {
    margin: 0;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold-dark, #7d6648);
    line-height: 1.35;
    writing-mode: horizontal-tb;
    transform: none;
}

.guest-welcome-rail__name {
    margin: 0;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--c-dark, #2a2b26);
    line-height: 1.3;
    writing-mode: horizontal-tb;
    transform: none;
    max-width: 100%;
    word-break: break-word;
}

body.invite-ready .hero-music-label {
    color: rgba(42, 43, 38, 0.55);
}

body.invite-ready .hero-music-toggle[aria-checked="false"] {
    background: rgba(42, 43, 38, 0.08);
    border-color: rgba(166, 139, 103, 0.4);
}

body.invite-ready #music-player {
    pointer-events: auto;
}

.hero-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    padding: 12px 6px 10px;
    min-height: 0;
    min-width: 0;
    border-radius: 10px;
    background: rgba(42, 43, 38, 0.88);
    border: 1px solid rgba(166, 139, 103, 0.4);
    box-shadow: 0 10px 28px rgba(42, 43, 38, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f2eee9;
    text-decoration: none;
    transition: border-color .3s ease, background .3s ease, transform .3s ease;
}

.hero-dock-ico {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    color: #a68b67;
    filter: drop-shadow(0 0 6px rgba(166, 139, 103, 0.35));
    flex-shrink: 0;
}

.hero-dock-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-dock-item strong {
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-dock-item small {
    font-size: .58rem;
    color: rgba(255,255,255,.5);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-dock-item:hover {
    border-color: rgba(166, 139, 103, 0.8);
    background: rgba(166, 139, 103, 0.22);
    transform: translateY(-3px);
}

.hero-dock-item.active {
    border-color: rgba(166, 139, 103, 0.85);
    background: rgba(166, 139, 103, 0.28);
}

/* İçerik — tek sayfa dikey akış */
#content-wrapper.page-carousel {
    position: relative;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s var(--ease-smooth);
    background: transparent;
    padding: 0;
    overflow: visible;
    min-height: 100%;
}

#content-wrapper.page-carousel.revealed {
    opacity: 1;
    pointer-events: auto;
}

#page-track {
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    transition: none;
    padding-bottom: 24px;
}

#page-track.no-anim {
    transition: none;
}

.page-slide {
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 96px 0 64px;
    box-sizing: border-box;
    opacity: 1;
    scroll-margin-top: 88px;
}

.page-slide#davetiye {
    padding: 0;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
}

.page-slide#galeri {
    padding: 88px 0 72px;
}

@media (max-width: 640px) {
    .page-slide#galeri {
        padding: 64px 0 100px;
    }
}

body.invite-ready .page-slide#davetiye {
    padding-top: 0;
}

.page-slide.is-active {
    opacity: 1;
}

.page-slide .section,
.page-slide.invite-page {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 24px;
}

.page-slide#davetiye.invite-page {
    padding: 0;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
}

.page-slide .container {
    max-width: 1100px;
}

.page-nav-btn {
    position: fixed;
    top: 50%;
    z-index: 42;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(166, 139, 103, 0.45);
    border-color: color-mix(in srgb, var(--c-gold) 45%, transparent);
    background: rgba(255, 255, 255, 0.85);
    color: var(--c-gold, #a68b67);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

body.invite-ready .page-nav-btn { display: none !important; }

.page-nav-btn:hover {
    background: var(--c-gold, #a68b67);
    border-color: var(--c-gold, #a68b67);
    color: var(--c-white, #faf8f5);
    transform: translateY(-50%) scale(1.05);
}

.page-nav-prev { left: 14px; }
.page-nav-next { right: 14px; }

body.invite-ready {
    background: var(--c-cream);
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
}

@media (min-width: 641px) {
    body.invite-ready #content-wrapper {
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    /* Hoş geldiniz bandı fixed; içerik eşit ortalanır */
    body.invite-ready .page-slide:not(#davetiye) {
        padding-left: clamp(16px, 4vw, 40px);
        padding-right: clamp(16px, 4vw, 40px);
        box-sizing: border-box;
    }
}

@media (max-width: 960px) {
    .hero-topbar {
        flex-wrap: wrap;
        gap: 10px 12px;
        align-items: center;
    }

    .hero-logo {
        order: 1;
        min-width: auto;
        font-size: 1.15rem;
    }

    .hero-music {
        order: 2;
        margin-left: auto;
    }

    .hero-topnav {
        order: 3;
        display: flex;
        flex: 1 1 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 0 4px;
        max-width: 100%;
    }

    .hero-topnav::-webkit-scrollbar { display: none; }

    .hero-topnav a {
        flex: 0 0 auto;
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }

    .page-nav-btn { width: 38px; height: 38px; }
    .page-nav-prev { left: 6px; }
    .page-nav-next { right: 6px; }

    .guest-welcome-rail {
        left: max(10px, env(safe-area-inset-left));
        width: min(10.5rem, 28vw);
        padding: 0.85rem 0.7rem;
    }

    .guest-welcome-rail__label { font-size: 0.58rem; letter-spacing: 0.18em; }
    .guest-welcome-rail__name { font-size: 0.88rem; }
}

@media (max-width: 640px) {
    .hero-overlay { padding: 10px 12px 0; }
    .page-slide#davetiye { padding: 0; }
    .hero-music-label { display: none; }
    .hero-stage-img { object-position: center 62%; }
    .seal-hotspot { width: 84px; height: 84px; }
    .page-slide { padding: 84px 0 56px; }

    .guest-welcome-rail {
        left: 50%;
        top: calc(78px + env(safe-area-inset-top, 0px));
        bottom: auto;
        transform: translateX(-50%);
        flex-direction: row;
        width: auto;
        max-width: calc(100% - 24px);
        padding: 0.45rem 0.85rem;
        gap: 0.5rem;
        border-radius: 2px;
    }

    .guest-welcome-rail__ornament {
        width: 1px;
        height: 16px;
        background: linear-gradient(180deg, transparent, rgba(166, 139, 103, 0.75), transparent);
    }

    .guest-welcome-rail__text {
        flex-direction: row;
        align-items: baseline;
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .guest-welcome-rail__label { font-size: 0.52rem; letter-spacing: 0.14em; }
    .guest-welcome-rail__name { font-size: 0.76rem; }
}

/* ---------------------------------------------------------------------
   WhatsApp floating button
--------------------------------------------------------------------- */
.wa-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 46;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 14px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body, Poppins, sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(42, 43, 38, 0.18);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s var(--ease-smooth, cubic-bezier(0.16, 1, 0.3, 1)), background 0.2s ease, box-shadow 0.2s ease;
}

body.invite-ready .wa-float {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-float i {
    font-size: 1.35rem;
    line-height: 1;
}

.wa-float:hover {
    background: #1ebe57;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.42), 0 4px 12px rgba(42, 43, 38, 0.2);
    color: #fff;
}

.wa-float:focus-visible {
    outline: 2px solid var(--c-gold, #a68b67);
    outline-offset: 3px;
}

.wa-float-label {
    padding-right: 2px;
}

@media (max-width: 640px) {
    .wa-float {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        padding: 13px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }

    .wa-float-label { display: none; }
    .wa-float i { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float { transition: none; }
}
