/* ==========================================================================
   Siyoro — "About" founder story page.
   A self-contained cinematic stylesheet (does not depend on main.css).
   Direction: matte black documentary, warm flame-orange accent, a dashed
   "route line" spine that runs the length of the page and draws itself as
   the visitor scrolls — the founders' journey rendered as a Siyoro route.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink:        #0a0a08;
    --ink-raised: #131310;
    --ink-card:   #1b1b15;
    --paper:      #f3ecdd;
    --paper-dim:  #b3ab97;
    --paper-faint:#77715f;
    --flame:      #ff5a2e;
    --flame-soft: #ffb08c;
    --rust:       #c84a3a;
    --line:       rgba(243, 236, 221, 0.14);
    --line-strong:rgba(243, 236, 221, 0.28);

    --font-display: 'Fraunces', ui-serif, Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --rail-w: 64px;
    --container: 1180px;

    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.about-page {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* fine film-grain wash over the whole page, very low opacity, purely atmospheric */
body.about-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.75rem;
}

a { color: inherit; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.about-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.75rem;
    padding-left: calc(var(--rail-w) + 1rem);
    background: linear-gradient(to bottom, rgba(10,10,8,0.85), transparent);
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.about-header.is-scrolled {
    background: rgba(10, 10, 8, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.about-header__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--paper);
}
.about-header__brand img { height: 24px; width: 24px; }
.about-header__brand em { color: var(--flame); font-style: normal; }
.about-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper-dim);
    text-decoration: none;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.about-header__back:hover {
    color: var(--paper);
    border-color: var(--flame);
    background: rgba(255, 90, 46, 0.08);
}
.about-header__back svg { width: 14px; height: 14px; }

/* -------------------------------------------------------------------------
   The route-line rail — signature element.
   Fixed left column running the full viewport height. A dashed line marks
   the untraveled route; a solid flame line fills in as the visitor scrolls;
   a dot sits at each scene, lighting up as its scene becomes active.
   ------------------------------------------------------------------------- */
.route-rail {
    position: fixed;
    top: 0; left: 0;
    width: var(--rail-w);
    height: 100vh;
    z-index: 55;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.route-rail__track {
    position: relative;
    width: 2px;
    height: 100%;
    background-image: linear-gradient(var(--line-strong) 60%, transparent 0%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
}
.route-rail__fill {
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--rust), var(--flame));
    transition: height 0.08s linear;
}
.route-rail__stops {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14vh 0 10vh;
}
.route-rail__stop {
    position: relative;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--ink);
    border: 1.5px solid var(--line-strong);
    transform: translateX(-4.5px);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.route-rail__stop.is-visited {
    border-color: var(--flame);
    background: var(--flame);
    box-shadow: 0 0 0 3px rgba(255, 90, 46, 0.16);
}
.route-rail__stop.is-active {
    transform: translateX(-4.5px) scale(1.35);
    box-shadow: 0 0 0 5px rgba(255, 90, 46, 0.2);
}

@media (max-width: 900px) {
    .route-rail { display: none; }
    .about-header { padding-left: 1.5rem; }
    .mobile-progress {
        position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 61;
        background: rgba(255,255,255,0.06);
    }
    .mobile-progress__fill {
        height: 100%; width: 0%;
        background: linear-gradient(to right, var(--rust), var(--flame));
        transition: width 0.08s linear;
    }
}
@media (min-width: 901px) { .mobile-progress { display: none; } }

/* -------------------------------------------------------------------------
   Shared scene scaffolding
   ------------------------------------------------------------------------- */
.scene {
    position: relative;
    padding: 9rem 0 9rem calc(var(--rail-w));
}
@media (max-width: 900px) {
    .scene { padding: 5.5rem 0 5.5rem 0; }
}

.scene__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--flame);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}
.scene__eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--flame);
    display: inline-block;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: opacity 0.4s ease; transform: none; }
}

/* -------------------------------------------------------------------------
   SCENE 00 — HERO
   ------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-left: var(--rail-w);
    position: relative;
    overflow: hidden;
}
.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 78% 18%, rgba(255,90,46,0.12), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(200,74,58,0.10), transparent 60%),
        var(--ink);
    z-index: 0;
}
.hero__portrait {
    position: absolute;
    right: 4%;
    bottom: 0;
    height: 96vh;
    max-height: 980px;
    width: auto;
    z-index: 1;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55));
}
.hero__portrait img {
    height: 100%;
    width: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to top, black 82%, transparent 100%);
    mask-image: linear-gradient(to top, black 82%, transparent 100%);
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 0 1.75rem 6.5rem;
}
.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper-dim);
    margin-bottom: 1.6rem;
}
.hero__eyebrow strong { color: var(--flame); font-weight: 500; }
.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--paper);
    margin-bottom: 1.5rem;
}
.hero h1 em {
    font-style: italic;
    color: var(--flame);
}
.hero__sub {
    font-size: 1.05rem;
    color: var(--paper-dim);
    max-width: 480px;
    margin-bottom: 2.4rem;
}
.hero__byline {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--paper-dim);
}
.hero__byline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--flame); }
.hero__scroll {
    position: absolute;
    left: calc(var(--rail-w) + 1.75rem);
    bottom: 2.2rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--paper-faint);
}
@media (max-width: 900px) {
    .hero { padding-left: 0; align-items: stretch; flex-direction: column-reverse; min-height: auto; }
    .hero__portrait { position: relative; height: 62vh; width: 100%; right: 0; display: flex; justify-content: center; }
    .hero__portrait img { height: 100%; }
    .hero__content { padding: 3.5rem 1.5rem 2.5rem; max-width: 100%; }
    .hero__scroll { display: none; }
}

/* -------------------------------------------------------------------------
   SCENE 01 — THE PROBLEM
   ------------------------------------------------------------------------- */
.problem {
    background: var(--ink);
}
.problem__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
}
.problem blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.35;
    color: var(--paper);
    border-left: 2px solid var(--flame);
    padding-left: 1.75rem;
}
.problem__notes {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding-top: 0.5rem;
}
.problem__note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--paper-dim);
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--line);
}
.problem__note:last-child { border-bottom: none; padding-bottom: 0; }
.problem__note svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--flame);
    margin-top: 0.15rem;
}
.problem__note strong { color: var(--paper); font-weight: 600; }
@media (max-width: 900px) {
    .problem__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* -------------------------------------------------------------------------
   SCENE 02 — THE IDEA
   ------------------------------------------------------------------------- */
.idea__layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.idea__note-card {
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 2.1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--paper-dim);
    position: relative;
}
.idea__note-card::before {
    content: "";
    position: absolute;
    top: 1.6rem; left: -1px;
    width: 3px; height: calc(100% - 3.2rem);
    background: var(--flame);
    opacity: 0.7;
}
.idea__note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-faint);
    margin-bottom: 1.1rem;
}
.idea__note-card p { color: var(--paper); }
.idea__note-card p + p { margin-top: 0.9rem; }

.idea__text h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    color: var(--paper);
    line-height: 1.2;
    margin-bottom: 1.3rem;
}
.idea__text p {
    color: var(--paper-dim);
    font-size: 1.02rem;
    max-width: 46ch;
}
.idea__handoff {
    margin-top: 2.2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--flame-soft);
}
@media (max-width: 900px) {
    .idea__layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .idea__layout { display: flex; flex-direction: column-reverse; }
}

/* -------------------------------------------------------------------------
   SCENE 03 — THE PEOPLE (cast, not "team")
   ------------------------------------------------------------------------- */
.people__cast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
.cast-card {
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.cast-card__media {
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,90,46,0.16), transparent 60%),
        linear-gradient(160deg, #1c1b14 0%, #100f0b 100%);
}
.cast-card__media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
}
.cast-card__monogram {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 5.5rem;
    color: var(--paper);
    opacity: 0.9;
}
.cast-card__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,8,0.92) 0%, rgba(10,10,8,0.05) 55%);
}
.cast-card__caption {
    position: absolute;
    left: 1.4rem; right: 1.4rem; bottom: 1.2rem;
    z-index: 2;
}
.cast-card__role {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--flame);
    margin-bottom: 0.35rem;
}
.cast-card__name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.7rem;
    color: var(--paper);
}
.cast-card__body {
    padding: 1.3rem 1.4rem 1.5rem;
    color: var(--paper-dim);
    font-size: 0.92rem;
}

.cast-card--lead .cast-card__name { font-size: 2rem; }

.people__supporting {
    max-width: 420px;
}
.cast-card--supporting {
    flex-direction: row;
    align-items: center;
}
.cast-card--supporting .cast-card__media {
    aspect-ratio: 1 / 1;
    width: 110px;
    flex-shrink: 0;
}
.cast-card--supporting .cast-card__monogram { font-size: 2.6rem; }
.cast-card--supporting .cast-card__caption { position: static; padding: 1rem 1.2rem 0.2rem; }
.cast-card--supporting .cast-card__body { padding: 0 1.2rem 1.2rem; }
.cast-card--supporting .cast-card__name { font-size: 1.25rem; }

@media (max-width: 900px) {
    .people__cast { grid-template-columns: 1fr; }
    .people__supporting { max-width: 100%; }
}

/* -------------------------------------------------------------------------
   SCENE 04 — BUILDING WHILE STUDYING
   ------------------------------------------------------------------------- */
.dual {
    background: var(--ink-raised);
}
.dual__timelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.dual__col {
    padding: 2.4rem 2.2rem;
}
.dual__col + .dual__col { border-left: 1px solid var(--line); }
.dual__tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-faint);
    margin-bottom: 0.9rem;
}
.dual__col h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--paper);
    margin-bottom: 0.8rem;
}
.dual__col p {
    color: var(--paper-dim);
    font-size: 0.95rem;
}
.dual__col--build .dual__tag { color: var(--flame); }
@media (max-width: 900px) {
    .dual__timelines { grid-template-columns: 1fr; }
    .dual__col + .dual__col { border-left: none; border-top: 1px solid var(--line); }
}

/* -------------------------------------------------------------------------
   SCENE 05 — WHY WE'RE BUILDING SIYORO
   ------------------------------------------------------------------------- */
.vision {
    text-align: left;
    padding-top: 10rem;
    padding-bottom: 10rem;
}
.vision blockquote {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--paper);
    max-width: 15ch;
}
.vision blockquote em { color: var(--flame); font-style: italic; }
.vision__foot {
    margin-top: 2rem;
    color: var(--paper-dim);
    max-width: 46ch;
    font-size: 1rem;
}

/* -------------------------------------------------------------------------
   SCENE 06 — THE FUTURE / closing
   ------------------------------------------------------------------------- */
.future {
    background: var(--ink-raised);
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
}
.future__line {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    color: var(--paper);
    max-width: 20ch;
    margin: 0 auto 1rem;
}
.future__trail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.4rem 0 3rem;
}
.future__trail .dash {
    width: 22px; height: 1px;
    background: var(--line-strong);
}
.future__trail .dash.lit { background: var(--flame); }
.future__trail .end-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--flame);
    box-shadow: 0 0 0 5px rgba(255,90,46,0.16);
}
.future__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--flame);
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), background-color 0.25s ease;
}
.future__cta:hover { background: var(--flame-soft); transform: translateY(-2px); }
.future__cta:active { transform: scale(0.98); }

.about-footer {
    padding: 2.5rem 1.75rem 3rem calc(var(--rail-w) + 1.75rem);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--paper-faint);
    letter-spacing: 0.05em;
}
@media (max-width: 900px) {
    .about-footer { padding-left: 1.75rem; flex-direction: column; gap: 0.6rem; text-align: center; }
}

/* -------------------------------------------------------------------------
   Focus states
   ------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--flame);
    outline-offset: 3px;
}
