/* ============================================================
   Tarihçe — yatay ray tasarımı (hakkımızda)
   Site fontu: Akkaya Nexa XBold · Site rengi: --rs-theme-orange
   Tüm sınıflar akk-th- ile prefix'li (genel .history/.nav/.rail/.ms
   ile çakışmasın diye).
   ============================================================ */
.akk-th {
    --akk-th-ink: var(--rs-title-primary, #1f1f1f);
    --akk-th-paper: #f7f7f7;
    --akk-th-steel: var(--rs-text-primary, #616161);
    --akk-th-line: rgba(16, 21, 26, 0.15);
    --akk-th-brand: var(--rs-theme-orange, #e22a2a);
    --akk-th-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --akk-th-ff: var(--rs-ff-body, "Akkaya Nexa XBold", sans-serif);
    --akk-th-pad: clamp(20px, 5vw, 64px);
    --akk-th-item: clamp(240px, 27vw, 340px);
    --akk-th-media: 215px;

    padding: clamp(72px, 10vw, 140px) 0;
    background: var(--akk-th-paper);
    color: var(--akk-th-ink);
}

/* ---------- Başlık ---------- */
.akk-th__head {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--akk-th-pad);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.akk-th__title {
    font-family: var(--akk-th-ff);
    font-size: clamp(30px, 4.6vw, 54px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    color: var(--akk-th-ink);
}
.akk-th__rule {
    display: block;
    width: 74px;
    height: 4px;
    background: var(--akk-th-brand);
    margin-top: 18px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--akk-th-ease);
}
.akk-th.is-in .akk-th__rule {
    transform: scaleX(1);
}

.akk-th-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.akk-th-nav__btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--akk-th-line);
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        opacity 0.3s ease;
}
.akk-th-nav__btn svg {
    width: 15px;
    height: 15px;
    stroke: var(--akk-th-ink);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}
.akk-th-nav__btn:hover:not(:disabled) {
    background: var(--akk-th-ink);
    border-color: var(--akk-th-ink);
}
.akk-th-nav__btn:hover:not(:disabled) svg {
    stroke: #fff;
}
.akk-th-nav__btn:focus-visible {
    outline: 2px solid var(--akk-th-brand);
    outline-offset: 3px;
}
.akk-th-nav__btn:disabled {
    opacity: 0.25;
    cursor: default;
}

/* ---------- Ray ---------- */
.akk-th-rail {
    /* Başlık ve ilerleme çubuğuyla aynı 1240px'lik kapta hizalanır;
       önceden tek başına tam genişlikte akıyordu. */
    max-width: 1240px;
    margin: clamp(40px, 6vw, 72px) auto 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 var(--akk-th-pad);
    list-style: none;
    cursor: grab;
}
.akk-th-rail::-webkit-scrollbar {
    display: none;
}
.akk-th-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.akk-th-ms {
    flex: 0 0 var(--akk-th-item);
    width: var(--akk-th-item);
    scroll-snap-align: center;
    display: grid;
    grid-template-rows: 1fr auto auto;
    text-align: center;
}

/* metin */
.akk-th-ms__text {
    align-self: end;
    font-size: 14px;
    line-height: 1.7;
    color: var(--akk-th-steel);
    margin: 0 auto 32px;
    padding: 0 14px;
    max-width: 30ch;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.7s ease,
        transform 0.7s var(--akk-th-ease),
        color 0.4s ease;
    transition-delay: var(--d, 0ms);
}
.akk-th.is-in .akk-th-ms__text {
    opacity: 0.5;
    transform: none;
}
.akk-th.is-in .akk-th-ms.is-active .akk-th-ms__text {
    opacity: 1;
    color: var(--akk-th-ink);
}

/* eksen + nokta (fotoğraflar ayrı şeritte — .akk-th-gallery) */
.akk-th-ms__axis {
    position: relative;
    height: 48px;
    display: grid;
    place-items: center;
}
.akk-th-ms__axis::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: 50%;
    height: 1px;
    background: var(--akk-th-line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--akk-th-ease);
    transition-delay: var(--d, 0ms);
}
.akk-th.is-in .akk-th-ms__axis::before {
    transform: scaleX(1);
}
.akk-th-ms__dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--akk-th-paper);
    box-shadow: inset 0 0 0 2px rgba(16, 21, 26, 0.28);
    opacity: 0;
    transform: scale(0.4);
    transition:
        opacity 0.5s ease,
        transform 0.55s var(--akk-th-ease),
        background 0.4s ease,
        box-shadow 0.4s ease;
    transition-delay: var(--d, 0ms);
}
.akk-th.is-in .akk-th-ms__dot {
    opacity: 1;
    transform: scale(1);
}
.akk-th.is-in .akk-th-ms.is-active .akk-th-ms__dot {
    background: var(--akk-th-brand);
    box-shadow: 0 0 0 6px rgba(226, 42, 42, 0.15);
    transform: scale(1.3);
    transition-delay: 0ms;
}

/* yıl */
.akk-th-ms__year {
    font-family: var(--akk-th-ff);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-top: 24px;
    color: rgba(16, 21, 26, 0.24);
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.7s ease,
        transform 0.7s var(--akk-th-ease),
        color 0.4s ease;
    transition-delay: var(--d, 0ms);
}
.akk-th.is-in .akk-th-ms__year {
    opacity: 1;
    transform: none;
}
.akk-th.is-in .akk-th-ms.is-active .akk-th-ms__year {
    color: var(--akk-th-ink);
}

/* ---------- İlerleme ---------- */
.akk-th-progress {
    max-width: 1240px;
    margin: clamp(44px, 6vw, 72px) auto 0;
    padding: 0 var(--akk-th-pad);
}
.akk-th-progress__track {
    position: relative;
    height: 2px;
    background: var(--akk-th-line);
    cursor: pointer;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--akk-th-ease) 0.2s;
}
.akk-th.is-in .akk-th-progress__track {
    transform: scaleX(1);
}
.akk-th-progress__track::before {
    content: "";
    position: absolute;
    inset: -12px 0;
}
.akk-th-progress__thumb {
    position: absolute;
    top: -1px;
    left: 0;
    height: 4px;
    background: var(--akk-th-brand);
    width: 22%;
    will-change: transform;
}

/* ---------- Fotoğraf şeridi (yazılardan bağımsız kayar) ---------- */
.akk-th-gallery {
    max-width: 1240px;
    margin: clamp(56px, 8vw, 110px) auto 0;
}
.akk-th-gallery__head {
    padding: 0 var(--akk-th-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.akk-th-gallery__title {
    font-family: var(--akk-th-ff);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
    color: var(--akk-th-ink);
}
.akk-th-photos {
    display: flex;
    gap: clamp(12px, 1.6vw, 20px);
    margin: clamp(22px, 3vw, 32px) 0 0;
    padding: 0 var(--akk-th-pad);
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--akk-th-pad);
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.akk-th-photos::-webkit-scrollbar {
    display: none;
}
.akk-th-photos.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}
.akk-th-photos.is-dragging a {
    pointer-events: none;
}
.akk-th-photo {
    flex: 0 0 clamp(220px, 26vw, 320px);
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.7s ease,
        transform 0.7s var(--akk-th-ease);
    transition-delay: var(--d, 0ms);
}
.akk-th.is-in .akk-th-photo {
    opacity: 1;
    transform: none;
}
.akk-th-photo__link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(16, 21, 26, 0.07);
    box-shadow: inset 0 0 0 1px var(--akk-th-line);
}
.akk-th-photo__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    transition: transform 0.6s var(--akk-th-ease);
}
.akk-th-photo__link:hover img {
    transform: scale(1.05);
}
.akk-th-photo__link:focus-visible {
    outline: 2px solid var(--akk-th-brand);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .akk-th-photo {
        flex-basis: 72vw;
    }
    .akk-th__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .akk-th-nav {
        display: none;
    }
    .akk-th-ms__text {
        font-size: 13.5px;
        margin-bottom: 26px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .akk-th-ms__text,
    .akk-th-ms__year,
    .akk-th-ms__dot,
    .akk-th-photo,
    .akk-th-photo__link img,
    .akk-th-ms__axis::before,
    .akk-th__rule,
    .akk-th-progress__track {
        transition: none;
    }
    .akk-th-rail {
        scroll-behavior: auto;
    }
}
