/* =========================================================
   GRAPHIKA — ABOUT (visual story)
   A vertical scroll through 7 chapters, each a collage +
   text pairing, alternating sides for rhythm. Text reveals
   as each chapter scrolls into view; a side rail tracks
   progress. The final chapter is centered, text-only, and
   doubles as the page's closing CTA.
   ========================================================= */

.about-page {
    background: var(--color-surface);
    color: var(--color-text-dark);
}

/* This page's background is light, unlike the dark hero/story
   pages the nav defaults for, so force dark nav text here. */
.site-header:has(+ main.about-page) .site-nav a,
.site-header:has(+ main.about-page) .availability,
.site-header:has(+ main.about-page) .nav-icon {
    color: var(--color-text-dark);
}

/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.about-intro {
    padding: 160px var(--page-padding) 60px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.about-intro h1 {
    margin: 0;
    font-size: clamp(38px, 5.2vw, 76px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--story-accent, #7A2B26);
    max-width: 620px;
}

/* ---------------------------------------------------------
   PROGRESS RAIL (desktop only)
   --------------------------------------------------------- */

.about-rail {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-rail-item {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(36, 31, 28, 0.35);

    transition: color 240ms var(--ease-standard);
}

.about-rail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    transition: transform 240ms var(--ease-standard);
}

.about-rail-item.is-active {
    color: #7A2B26;
}

.about-rail-item.is-active .about-rail-dot {
    transform: scale(1.6);
}

.about-rail-label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 240ms var(--ease-standard), max-width 240ms var(--ease-standard);
}

.about-rail-item.is-active .about-rail-label {
    opacity: 1;
    max-width: 140px;
}

@media (max-width: 1100px) {
    .about-rail { display: none; }
}

/* ---------------------------------------------------------
   CHAPTER
   --------------------------------------------------------- */

.about-chapter {
    padding: 40px var(--page-padding);
    max-width: var(--content-max-width);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.about-chapter--reverse .about-chapter-visual {
    order: 2;
}

.about-chapter--reverse .about-chapter-text {
    order: 1;
}

/* Text in the left column reads right-aligned, so it sits
   snug against the collage beside it rather than floating
   with a loose gap between them. */
.about-chapter--reverse .about-chapter-text {
    text-align: right;
}

.about-chapter--reverse .about-chapter-body p {
    margin-left: auto;
}

.about-chapter-text,
.about-chapter-visual {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard);
}

.about-chapter.is-visible .about-chapter-text,
.about-chapter.is-visible .about-chapter-visual {
    opacity: 1;
    transform: translateY(0);
}

.about-chapter.is-visible .about-chapter-visual {
    transition-delay: 100ms;
}

.about-chapter-title {
    margin: 0 0 18px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #7A2B26;
}

.about-chapter-subtitle {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(36, 31, 28, 0.75);
}

.about-chapter-body p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(36, 31, 28, 0.78);
    max-width: 460px;
}

.about-chapter--reverse .about-chapter-body p {
    margin-right: 0;
}

.about-chapter-body p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   VISUAL (collage)
   --------------------------------------------------------- */

.about-chapter-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
}

.about-chapter--reverse .about-chapter-visual {
    justify-content: flex-start;
}

.about-chapter:not(.about-chapter--reverse) .about-chapter-visual {
    justify-content: flex-end;
}

.about-collage {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------------------------------------------------------
   FINAL CHAPTER (centered, text-only, doubles as closing CTA)
   --------------------------------------------------------- */

.about-chapter--final {
    display: block;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 140px;
}

.about-chapter--final .about-chapter-text {
    max-width: 640px;
    margin: 0 auto;
}

.about-chapter--final .about-chapter-title {
    text-align: center;
}

.about-chapter--final .about-chapter-subtitle {
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.about-chapter--final .about-chapter-body p {
    max-width: none;
    text-align: center;
}

.about-chapter--final .about-chapter-body em {
    font-style: italic;
}

.about-chapter-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;

    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #7A2B26;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .about-chapter {
        grid-template-columns: 1fr;
        padding: 40px var(--page-padding);
        gap: 24px;
    }

    .about-chapter--reverse .about-chapter-visual,
    .about-chapter--reverse .about-chapter-text {
        order: initial;
    }

    .about-chapter-body p { max-width: none; }

    .about-chapter--reverse .about-chapter-text {
        text-align: left;
    }

    .about-chapter--reverse .about-chapter-body p {
        margin-left: 0;
        margin-right: 0;
    }

    .about-chapter-visual,
    .about-chapter--reverse .about-chapter-visual,
    .about-chapter:not(.about-chapter--reverse) .about-chapter-visual {
        height: auto;
        justify-content: center;
    }
}
