/* ==========================================================================
   10. INTRO KATMANI
   Sitenin ÜSTÜNDE duran bir katman. Zemini `var(--bg)`, yani sitenin
   zeminiyle aynı değişken: eşleşme tanım gereği birebir, tema değişse bile
   bozulmuyor. Rengi tamamen bu katman veriyor.
   ========================================================================== */
#intro {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    overflow: hidden;
    transition: opacity 0.45s var(--ease-out);
}
/* Katman sönerek çekiliyor; giriş tamamlandığında zaten
   perde devrede olduğu için sönmeye gerek kalmıyor. */
#intro.fade { opacity: 0; pointer-events: none; }
#intro.done { display: none; }

/* Ortada, dev, blok halinde. Ekrandaki tek olay bu. */
#intro-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    text-align: center;
    pointer-events: none;
}

#intro-title .big {
    display: block;
    font-family: 'Archivo Black', 'Arial Black', Helvetica, sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 15vw, 12rem);
    line-height: 0.80;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

#intro-title .big sup {
    font-size: 0.22em;
    vertical-align: super;
    letter-spacing: 0;
}

#intro-title .small {
    display: block;
    margin-top: 16px;
    font-size: clamp(0.58rem, 1.5vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    text-transform: uppercase;
    opacity: var(--muted);
}

#intro-hint {
    position: absolute;
    left: 50%;
    bottom: max(46px, calc(env(safe-area-inset-bottom) + 26px));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-size: clamp(0.72rem, 1.9vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.34em;
    text-indent: 0.34em;   /* letter-spacing'in sağda bıraktığı boşluğu dengeler */
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

#intro-hint .line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, currentColor, transparent);
    transform-origin: top;
    animation: introDrop 2.1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes introDrop {
    0%   { transform: scaleY(0); opacity: 0; }
    35%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* Kullanıcı bir süre kımıldamazsa yazı nazikçe nabız atsın. */
#intro-hint.nudge .label { animation: introPulse 1.6s ease-in-out 3; }
@keyframes introPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.42; } }

#intro-progress {
    position: absolute;
    top: 50%; right: max(20px, env(safe-area-inset-right));
    transform: translateY(-50%);
    width: 2px; height: 128px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
}
#intro-progress .fill {
    width: 100%; height: 100%;
    background: var(--text);
    transform-origin: top;
    transform: scaleY(0);
}

.intro-btn {
    position: absolute;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    border: var(--hair) solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), opacity 0.4s var(--ease-out);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.intro-btn:hover { background: var(--hover-bg); color: var(--hover-text); border-color: var(--hover-bg); }
.intro-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Hareket azaltma tercihinde görünen açık giriş. */
#intro-enter {
    left: 50%;
    bottom: max(46px, calc(env(safe-area-inset-bottom) + 26px));
    transform: translateX(-50%);
    display: none;
}
