/* =====================================================================
   HERO V4 — FIX #2
   - Başlık küçültüldü, satırlar arası açıldı
   - Marquee başlıktan uzaklaştırıldı
   - Meta satırı ayrı bloğa taşındı
   - Layout grid tabanlı, taşma yok
   ===================================================================== */

.hero-v4 {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #14120E;
    color: #FFFFFF;
}

/* Canvas fallback */
.hero-v4__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-v4__canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Video */
.hero-v4__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.45) contrast(1.15) saturate(0.85);
    pointer-events: none;
}

/* Koyu overlay — okunurluk */
.hero-v4::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(20, 18, 14, 0.75) 0%,
            rgba(20, 18, 14, 0.55) 30%,
            rgba(20, 18, 14, 0.65) 70%,
            rgba(20, 18, 14, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hafif vignette */
.hero-v4::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(232, 254, 91, 0.06), transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* ÜST BAR (grid row 1) */
.hero-v4__top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(80px, 10vh, 100px) var(--page-pad-x, 32px) 0;
    max-width: var(--container, 1440px);
    margin-inline: auto;
    width: 100%;
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.hero-v4__top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-v4__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #E8FE5B;
    box-shadow: 0 0 10px #E8FE5B;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ANA İÇERİK (grid row 2 - büyük, flex 1) */
.hero-v4__container {
    position: relative;
    z-index: 3;
    padding: clamp(40px, 6vh, 80px) var(--page-pad-x, 32px);
    max-width: var(--container, 1440px);
    margin-inline: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 4vh, 48px);
}

/* BAŞLIK — küçültüldü, satırlar arası açıldı, taşma yok */
.hero-v4__headline {
    font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
    /* Daha küçük boyut — 3 satır rahat sığar */
    font-size: clamp(2.4rem, 6.5vw, 6.5rem);
    line-height: 1.0;               /* 0.92 yerine 1.0 — satırlar nefes alsın */
    letter-spacing: -0.025em;
    font-weight: 400;
    color: #FFFFFF !important;
    max-width: 15ch;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-v4__headline em {
    font-style: italic;
    color: #E8FE5B !important;
    text-shadow: 0 2px 20px rgba(232, 254, 91, 0.2);
}

/* Her satır ayrı blok — aralarında boşluk */
.hero-v4__headline-line {
    display: block;
    overflow: hidden;
    line-height: 1.1;
    padding-bottom: 0.08em;
    margin-bottom: 0.05em;           /* satırlar arası ek boşluk */
}
.hero-v4__headline-line:last-child {
    margin-bottom: 0;
}
.hero-v4__headline-line span {
    display: inline-block;
    transform: translateY(110%);
    animation: heroLineUp 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-v4__headline-line:nth-child(1) span { animation-delay: 300ms; }
.hero-v4__headline-line:nth-child(2) span { animation-delay: 480ms; }
.hero-v4__headline-line:nth-child(3) span { animation-delay: 660ms; }
@keyframes heroLineUp { to { transform: translateY(0); } }

/* Açıklama */
.hero-v4__desc {
    max-width: 52ch;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 900ms cubic-bezier(.2,.7,.2,1) 1s forwards;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
@keyframes heroFadeUp { to { opacity: 1; transform: none; } }

/* META ALT BAR — ayrı satır, ferah */
.hero-v4__meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 56px);
    padding-top: clamp(24px, 3vh, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: heroFadeUp 900ms cubic-bezier(.2,.7,.2,1) 1.3s forwards;
}
.hero-v4__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;                    /* taşmayı engelle */
    flex: 1 1 auto;
    max-width: 300px;
}
.hero-v4__meta-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.hero-v4__meta-value {
    color: #FFFFFF;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    word-break: break-word;          /* uzun email vs. kırılsın */
}

/* SCROLL İPUCU (grid row 3) */
.hero-v4__scroll {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 0 clamp(20px, 3vh, 40px);
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    justify-self: center;
}
.hero-v4__scroll::after {
    content: "";
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(0.6); }
}

/* MARQUEE (grid row 4) — başlıktan uzakta, ferah */
.hero-v4__marquee {
    position: relative;
    z-index: 3;
    padding: clamp(18px, 2.5vh, 28px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    margin: 0;
}
.hero-v4__marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 40s linear infinite;
    font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}
.hero-v4__marquee em {
    font-style: italic;
    color: #E8FE5B;
}
.hero-v4__marquee-dot {
    color: rgba(255, 255, 255, 0.35);
    align-self: center;
    font-size: 0.8em;
}
@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- MOBİL ---------- */
@media (max-width: 720px) {
    .hero-v4__top {
        padding-top: clamp(60px, 8vh, 80px);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .hero-v4__headline {
        font-size: clamp(2.2rem, 9vw, 4rem);
        max-width: 14ch;
    }
    .hero-v4__desc {
        font-size: 0.95rem;
    }
    .hero-v4__meta {
        flex-direction: column;
        gap: 18px;
    }
    .hero-v4__meta-item {
        max-width: 100%;
    }
    .hero-v4__scroll {
        display: none;    /* mobilde scroll ipucu gereksiz */
    }
}

/* ---------- ÇOK KISA EKRAN (dikey) ---------- */
@media (max-height: 700px) {
    .hero-v4__headline {
        font-size: clamp(2rem, 5.5vw, 4.5rem);
    }
    .hero-v4__top {
        padding-top: 60px;
    }
    .hero-v4__scroll {
        display: none;
    }
}
