/* ============================================================
   SHORTO — Page-specific layouts
   Hero & komposisi seksi per halaman (Seksi 7).
   ============================================================ */

/* ============================================================
   Homepage — Hero (7.1)
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--color-ink);
    padding-block: var(--space-7);
}

/* Slideshow background: geser kiri → kanan */
.hero__slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(-100%);
    transition: transform 1100ms cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
    z-index: 1;
}

.hero__slide.is-active {
    transform: translateX(0);
    z-index: 2;
}

.hero__slide.is-leaving {
    transform: translateX(100%);
    z-index: 1;
}

.hero__slide.no-anim {
    transition: none;
}

/* Scrim agar teks tetap terbaca di atas foto */
.hero__slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        90deg,
        rgba(17, 17, 17, 0.82) 0%,
        rgba(17, 17, 17, 0.55) 36%,
        rgba(17, 17, 17, 0.2) 68%,
        rgba(17, 17, 17, 0.08) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 4;
}

.hero__wordmark {
    font-size: var(--text-display);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-white);
}

.hero__tagline {
    font-size: var(--text-body-lg);
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 480px;
    margin-top: var(--space-4);
}

.hero__stats {
    display: flex;
    gap: var(--space-7);
    margin-top: var(--space-6);
}

.hero .stat-inline__number {
    color: var(--color-white);
}

.hero .stat-inline__label {
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide {
        transition: none;
    }
}

/* ============================================================
   Section heading helpers
   ============================================================ */
.section-head {
    margin-bottom: var(--space-6);
}

.section-head--right {
    text-align: right;
}

.section-head--right .section-head__sub,
.section-head--right .btn-ghost {
    margin-left: auto;
}

.section-head__sub {
    font-size: var(--text-body);
    color: var(--color-gray-mid-dark);
    max-width: 540px;
    margin-top: var(--space-3);
}

.section-head__cta {
    margin-top: var(--space-4);
}

/* ============================================================
   Stats section (three columns) (7.1)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
}

@media (max-width: 1024px) {
    .stats-grid {
        gap: var(--space-5);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .hero__stats {
        gap: var(--space-5);
    }
}

/* ============================================================
   Page header (Projects, About, Career) (7.2–7.5)
   ============================================================ */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-6);
    padding-bottom: var(--space-5);
}

.page-header__count {
    font-size: var(--text-body-lg);
    color: var(--color-mid-gray);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* Load more (7.2) */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

.load-more-wrap[hidden] {
    display: none;
}

/* ============================================================
   Project detail (7.3)
   ============================================================ */
.detail-hero {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: var(--color-off-white);
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-6);
}

.detail-meta__sub {
    font-size: var(--text-body);
    color: var(--color-gray-mid-dark);
    margin-top: var(--space-3);
}

.detail-meta__area {
    font-size: var(--text-h4);
    color: var(--color-ink);
    white-space: nowrap;
}

.detail-body {
    max-width: 680px;
}

.detail-body p + p {
    margin-top: var(--space-3);
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gutter);
    margin-top: var(--space-6);
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--color-off-white);
}

.detail-gallery img.is-portrait {
    grid-column: span 2;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .detail-gallery {
        grid-template-columns: 1fr;
    }
    .detail-gallery img.is-portrait {
        grid-column: span 1;
    }
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-6);
    border-top: 1px solid var(--color-light-gray);
}

/* ============================================================
   Career (7.4)
   ============================================================ */
.openings {
    margin-top: var(--space-5);
}

.opening {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--color-light-gray);
}

.opening:last-child {
    border-bottom: 1px solid var(--color-light-gray);
}

.opening__title {
    font-size: var(--text-h3);
    font-weight: 700;
}

.opening__detail {
    font-size: var(--text-body-sm);
    color: var(--color-mid-gray);
    margin-top: var(--space-1);
}

/* ============================================================
   About (7.5)
   ============================================================ */
.lede {
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 880px;
}

.leadership-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-6);
}

.leadership-list__item {
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-light-gray);
}

.leadership-list__name {
    font-size: var(--text-h4);
    font-weight: 700;
}

.leadership-list__role {
    font-size: var(--text-body-sm);
    color: var(--color-mid-gray);
    margin-top: var(--space-1);
}

@media (max-width: 768px) {
    .leadership-list {
        grid-template-columns: 1fr;
    }
}
