/* =========================================================
   SERVOMIX — ABOUT
   File: css/pages/about.css
   Used by: about/. Markup and copy are the originals; this
   file only lays them out. Every value is a token.
========================================================= */

/* ---------------------------------------------------------
   SHARED
--------------------------------------------------------- */

.about-container{
    width:min(var(--container), 100% - var(--gutter) * 2);
    margin-inline:auto;
}

.about-story,
.about-middle,
.about-principles,
.about-foundation,
.about-future,
.about-cta{
    position:relative;
    padding-block:var(--s-7);
    scroll-margin-top:var(--nav-h);
}

@media (min-width:1024px){

    .about-story,
    .about-middle,
    .about-principles,
    .about-foundation,
    .about-future,
    .about-cta{
        padding-block:var(--s-8);
    }
}

.about-hero-glow,
.about-info-back{
    display:none;
}

.about-label,
.about-section-label{
    display:inline-flex;
    align-items:center;
    gap:var(--s-2);
    width:max-content;
    max-width:100%;
    min-height:32px;
    padding:0 var(--s-3);
    border:1px solid var(--line);
    border-radius:var(--r-pill);
    background:var(--surface);
    color:var(--accent-strong);
    font-size:var(--t-small);
    font-weight:var(--w-strong);
    letter-spacing:.04em;
}

.about-section-heading{
    display:grid;
    justify-items:start;
    gap:var(--s-3);
    max-width:760px;
    margin-bottom:var(--s-6);
}

.about-section-heading.centered{
    justify-items:center;
    margin-inline:auto;
    text-align:center;
}

.about-section-heading h2,
.about-name-section h2,
.about-ecosystem-section h2,
.about-mission h2,
.future-content h2,
.about-cta-box h2{
    font-size:var(--t-h1);
    line-height:var(--lh-heading);
    font-weight:var(--w-h1);
}

.about-section-heading p,
.about-middle-description,
.future-content > p{
    max-width:60ch;
    color:var(--ink-2);
    font-size:var(--t-lead);
}

:where(main[class*="page-"]) small{
    font-size:var(--t-small);
}

.about-primary-btn,
.about-secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:var(--s-2);
    min-height:var(--btn-h);
    padding:0 var(--btn-pad-x);
    border:1px solid var(--line-strong);
    border-radius:var(--r-pill);
    background:var(--surface);
    color:var(--ink);
    font-weight:var(--w-strong);
    text-decoration:none;
    transition:background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.about-primary-btn{
    border-color:transparent;
    background:var(--accent);
    color:var(--ink-on-accent);
}

.about-primary-btn:hover{
    background:var(--accent-strong);
    color:var(--ink-on-accent);
}

.about-secondary-btn:hover{
    border-color:var(--accent);
    color:var(--accent-strong);
}

:where(.about-primary-btn, .about-secondary-btn, .about-info-arrow, .about-progress-dot):focus-visible{
    outline:none;
    box-shadow:var(--focus-ring);
}


/* ---------------------------------------------------------
   BREADCRUMB + HERO
--------------------------------------------------------- */

.about-breadcrumb{
    padding-top:var(--s-5);
}

.breadcrumb-inner{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:var(--s-2);
    color:var(--ink-2);
    font-size:var(--t-small);
}

.breadcrumb-inner a{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    color:var(--ink-2);
    text-decoration:none;
}

.breadcrumb-inner a:hover{
    color:var(--accent-strong);
}

.breadcrumb-inner > span:not(:last-child){
    color:var(--ink-3);
}

.breadcrumb-inner > span:last-child{
    color:var(--ink);
    font-weight:var(--w-strong);
}

.about-hero{
    padding-block:var(--s-6) var(--s-7);
}

.about-hero-container{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-7);
    align-items:center;
}

@media (min-width:1024px){

    .about-hero-container{
        grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);
        gap:var(--s-8);
    }
}

.about-hero-content{
    display:grid;
    justify-items:start;
    gap:var(--s-4);
    min-width:0;
}

.about-hero-title{
    font-size:min(var(--t-display), 11vw);
    line-height:1;
    font-weight:var(--w-display);
    font-stretch:var(--wd-display);
}

.about-hero-title span{
    color:var(--accent);
}

.about-hero-subtitle{
    font-size:var(--t-h3);
    line-height:var(--lh-h3);
    font-weight:var(--w-h3);
}

.about-hero-description{
    max-width:52ch;
    color:var(--ink-2);
    font-size:var(--t-lead);
    line-height:1.55;
}

/* founder / base / year card */
.about-info-wrapper{
    min-width:0;
}

.about-info-card{
    display:grid;
    gap:var(--s-4);
    padding:var(--card-pad-lg);
    border:1px solid var(--glass-edge);
    border-radius:var(--r-panel);
    background:var(--glass);
    -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(160%);
    backdrop-filter:blur(var(--glass-blur)) saturate(160%);
    box-shadow:var(--shadow-float);
}

.about-info-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.about-info-count{
    color:var(--ink-2);
    font-size:var(--t-small);
    font-weight:var(--w-strong);
    font-variant-numeric:tabular-nums;
}

.about-info-count span{
    color:var(--accent-strong);
}

.about-info-navigation{
    display:flex;
    gap:var(--s-2);
}

.about-info-arrow{
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border:1px solid var(--line-strong);
    border-radius:50%;
    background:var(--surface);
    color:var(--ink);
    cursor:pointer;
}

.about-info-arrow:hover{
    border-color:var(--accent);
    color:var(--accent-strong);
}

.about-info-page{
    display:none;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:var(--s-4);
    align-items:center;
}

.about-info-page.active{
    display:grid;
}

.about-info-text{
    display:grid;
    gap:var(--s-2);
}

.about-info-text h3{
    font-size:var(--t-h3);
    line-height:var(--lh-h3);
}

.about-info-text h3 span{
    display:block;
    color:var(--accent);
}

.about-info-small{
    color:var(--ink-2);
    font-size:var(--t-small);
}

.about-info-highlight{
    font-size:var(--t-h1);
    line-height:1;
    font-weight:var(--w-h1);
    font-stretch:var(--wd-h1);
}

.about-info-highlight strong{
    display:block;
    margin-top:var(--s-1);
    color:var(--accent-strong);
    font-size:var(--t-small);
    font-stretch:normal;
}

.about-info-text > p:last-child{
    color:var(--ink-2);
    font-size:var(--t-small);
    line-height:var(--lh-small);
}

.about-info-visual{
    display:grid;
    place-items:center;
    width:96px;
    height:96px;
    border-radius:var(--r-card);
    background:var(--accent-soft);
    color:var(--accent-strong);
}

.about-info-visual .icon{
    width:40px;
    height:40px;
}

.about-founder-visual span{
    font-size:var(--t-h1);
    font-weight:var(--w-h1);
}

.about-info-progress{
    display:flex;
    align-items:center;
    gap:var(--s-2);
    padding-top:var(--s-3);
    border-top:1px solid var(--line);
}

.about-info-progress > span{
    flex:1;
    height:1px;
    background:var(--line);
}

.about-progress-dot{
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border:1px solid var(--line);
    border-radius:50%;
    background:var(--surface);
    color:var(--ink-2);
    font:inherit;
    font-size:var(--t-small);
    font-weight:var(--w-strong);
    cursor:pointer;
}

.about-progress-dot.active{
    border-color:transparent;
    background:var(--accent);
    color:var(--ink-on-accent);
}


/* ---------------------------------------------------------
   PHOTO BAND
--------------------------------------------------------- */

.about-photo__figure{
    margin:0;
}

.about-photo__figure img{
    display:block;
    width:100%;
    height:clamp(220px, 34vw, 420px);
    object-fit:cover;
    border-radius:var(--r-panel);
}

.about-photo__figure figcaption{
    margin-top:var(--s-2);
    color:var(--ink-2);
    font-size:var(--t-micro);
    text-align:right;
}


/* ---------------------------------------------------------
   STORY TIMELINE
--------------------------------------------------------- */

.story-timeline{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-4);
}

@media (min-width:768px){

    .story-timeline{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (min-width:1200px){

    .story-timeline{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
}

.story-line{
    display:none;
}

.story-card{
    display:flex;
    flex-direction:column;
    gap:var(--s-3);
    padding:var(--card-pad);
    border:1px solid var(--line);
    border-radius:var(--r-card);
    background:var(--surface);
}

.story-card > p{
    color:var(--ink-2);
    font-size:var(--t-small);
    line-height:var(--lh-small);
}

.story-marker span{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:50%;
    background:var(--surface-sunken);
    color:var(--ink-2);
    font-weight:var(--w-strong);
}

.story-marker img{
    width:28px;
    height:28px;
}

.story-card-heading h3{
    font-size:var(--t-h3);
}

.story-card-heading span{
    color:var(--accent-strong);
    font-size:var(--t-small);
    font-weight:var(--w-strong);
}

.story-lesson{
    margin-top:auto;
    padding:var(--s-3);
    border-left:3px solid var(--accent);
    border-radius:var(--r-control);
    background:var(--accent-tint);
}

.story-lesson span{
    color:var(--accent-strong);
    font-size:var(--t-micro);
    font-weight:var(--w-strong);
    letter-spacing:.06em;
    text-transform:uppercase;
}

.story-lesson p{
    color:var(--ink);
    font-size:var(--t-small);
    line-height:var(--lh-small);
}

.story-card-servomix{
    border-color:transparent;
    background:var(--console);
    color:var(--console-ink);
}

.story-card-servomix .story-marker span{
    background:var(--surface);
}

.story-card-servomix .story-card-heading h3{
    color:var(--console-ink);
}

.story-card-servomix .story-card-heading span,
.story-card-servomix > p{
    color:var(--console-ink-2);
}

.story-card-servomix .story-lesson{
    border-left-color:var(--console-ink);
    background:var(--on-accent-tint);
}

.story-card-servomix .story-lesson span,
.story-card-servomix .story-lesson p{
    color:var(--console-ink);
}


/* ---------------------------------------------------------
   NAME + ECOSYSTEM
--------------------------------------------------------- */

.about-middle-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-7);
}



.about-name-section,
.about-ecosystem-section{
    display:grid;
    justify-items:start;
    align-content:start;
    gap:var(--s-3);
    min-width:0;
}

.name-equation{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-2);
    width:100%;
    margin-top:var(--s-3);
}

@media (min-width:640px){

    .name-equation{
        grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr);
        align-items:stretch;
    }
}

.name-card,
.name-result-card{
    padding:var(--s-4);
    border:1px solid var(--line);
    border-radius:var(--r-card);
    background:var(--surface);
}

.name-card h3,
.name-result-card h3{
    font-size:var(--t-h3);
    letter-spacing:.04em;
}

.name-card ul{
    display:grid;
    gap:var(--s-1);
    margin:var(--s-2) 0 0;
    padding:0;
    list-style:none;
    color:var(--ink-2);
    font-size:var(--t-small);
}

.name-symbol{
    display:grid;
    place-items:center;
    color:var(--ink-3);
    font-size:var(--t-h2);
    font-weight:var(--w-h2);
}

.name-result-card{
    display:grid;
    gap:var(--s-2);
    border-color:var(--accent);
    background:var(--accent-tint);
}

.name-result-card img{
    width:120px;
    height:auto;
}

.name-result-card p{
    color:var(--ink-2);
    font-size:var(--t-small);
    line-height:var(--lh-small);
}

.ecosystem-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:var(--s-2);
    width:100%;
    margin-top:var(--s-3);
}

.ecosystem-card{
    display:flex;
    align-items:center;
    gap:var(--s-3);
    padding:var(--s-3) var(--s-4);
    border:1px solid var(--line);
    border-radius:var(--r-control);
    background:var(--surface);
}

.ecosystem-card > .icon{
    flex:none;
    width:var(--icon);
    height:var(--icon);
    color:var(--accent);
}

.ecosystem-card h3{
    font-size:var(--t-body);
    font-weight:var(--w-strong);
}

.ecosystem-card p{
    color:var(--ink-2);
    font-size:var(--t-small);
}


/* ---------------------------------------------------------
   MISSION, VALUES, NUMBERS
--------------------------------------------------------- */

.about-principles-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-4);
}

@media (min-width:1024px){

    .about-principles-grid{
        grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    }

    .about-numbers{
        grid-column:1 / -1;
    }
}

.about-mission,
.about-values,
.about-numbers{
    display:grid;
    justify-items:start;
    align-content:start;
    gap:var(--s-4);
    padding:var(--card-pad-lg);
    border:1px solid var(--line);
    border-radius:var(--r-panel);
    background:var(--surface);
}

.about-mission{
    border-color:transparent;
    background:var(--console);
    color:var(--console-ink);
}

.about-mission .about-section-label{
    border-color:transparent;
    background:var(--on-accent-tint);
    color:var(--console-ink);
}

.about-mission h2{
    color:var(--console-ink);
}

.about-mission p{
    color:var(--console-ink-2);
    font-size:var(--t-lead);
}

.values-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:var(--s-3);
    width:100%;
}

.value-item{
    display:grid;
    gap:var(--s-1);
}

.value-item > .icon{
    width:var(--icon);
    height:var(--icon);
    margin-bottom:var(--s-1);
    color:var(--accent);
}

.value-item h3{
    font-size:var(--t-body);
    font-weight:var(--w-strong);
}

.value-item p{
    color:var(--ink-2);
    font-size:var(--t-small);
    line-height:var(--lh-small);
}

.numbers-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:var(--s-4);
    width:100%;
}

@media (min-width:768px){

    .numbers-grid{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
}

.number-item strong,
.number-item span{
    display:block;
}

.number-item strong{
    font-size:var(--t-h1);
    line-height:1.1;
    font-weight:var(--w-h1);
}

.number-item span{
    color:var(--ink-2);
    font-size:var(--t-small);
}


/* ---------------------------------------------------------
   FOUNDATION
--------------------------------------------------------- */

.foundation-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-3);
}

@media (min-width:640px){

    .foundation-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (min-width:1024px){

    .foundation-grid{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }
}

.foundation-item{
    display:grid;
    align-content:start;
    gap:var(--s-2);
    padding:var(--card-pad);
    border:1px solid var(--line);
    border-radius:var(--r-card);
    background:var(--surface);
}

.foundation-icon{
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    margin-bottom:var(--s-2);
    border-radius:var(--r-control);
    background:var(--accent-soft);
    color:var(--accent-strong);
}

.foundation-item h3{
    font-size:var(--t-body);
    font-weight:var(--w-strong);
}

.foundation-item p{
    color:var(--ink-2);
    font-size:var(--t-small);
    line-height:var(--lh-small);
}


/* ---------------------------------------------------------
   FUTURE
--------------------------------------------------------- */

.about-future-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-6);
    align-items:center;
}

@media (min-width:1024px){

    .about-future-grid{
        grid-template-columns:minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap:var(--s-8);
    }
}

.future-content{
    display:grid;
    justify-items:start;
    gap:var(--s-4);
}

.future-content h2{
    font-size:var(--t-h1);
    line-height:var(--lh-heading);
    font-weight:var(--w-h1);
}

.future-content h2 span{
    display:block;
    color:var(--accent);
}

.future-content p{
    color:var(--ink-2);
    font-size:var(--t-lead);
    line-height:1.6;
    max-width:48ch;
}

.future-brand-badge{
    display:inline-flex;
    align-items:center;
    gap:var(--s-3);
    padding:var(--s-2) var(--s-4);
    border:1px solid var(--line-strong);
    border-radius:var(--r-pill);
    background:var(--surface);
    margin-top:var(--s-2);
}

.future-brand-badge img{
    height:22px;
    width:auto;
}

.future-brand-badge span{
    font-size:var(--t-small);
    color:var(--ink-2);
    border-left:1px solid var(--line);
    padding-left:var(--s-3);
}

@media (max-width:540px){

    .future-brand-badge{
        flex-direction:column;
        align-items:flex-start;
        border-radius:var(--r-card);
    }

    .future-brand-badge span{
        border-left:none;
        padding-left:0;
    }
}

.future-roadmap{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-4);
    width:100%;
}

@media (min-width:640px){

    .future-roadmap{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

.future-item{
    display:flex;
    align-items:flex-start;
    gap:var(--s-3);
    padding:var(--s-5);
    border:1px solid var(--line-strong);
    border-radius:var(--r-card);
    background:var(--surface);
    box-shadow:var(--shadow-card);
    transition:transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.future-item:hover{
    transform:translateY(-3px);
    border-color:var(--accent);
    box-shadow:var(--shadow-float), 0 0 20px rgba(0, 212, 255, 0.08);
}

.future-item-icon{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:var(--r-control);
    background:var(--accent-soft);
    color:var(--accent);
    flex-shrink:0;
}

.future-item-icon .icon{
    width:var(--icon);
    height:var(--icon);
}

.future-item-body{
    display:grid;
    gap:var(--s-1);
}

.future-item h3{
    font-size:var(--t-body);
    font-weight:var(--w-strong);
    color:var(--ink);
    line-height:1.3;
}

.future-item p{
    color:var(--ink-2);
    font-size:var(--t-small);
    line-height:1.5;
    margin:0;
}

.about-badge-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 8px var(--accent);
}


/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */

.about-cta-box{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:var(--s-5);
    align-items:center;
    padding:var(--card-pad-lg);
    border-radius:var(--r-panel);
    background:var(--console);
    color:var(--console-ink);
}

@media (min-width:1024px){

    .about-cta-box{
        grid-template-columns:minmax(0, 1fr) auto;
        padding:var(--s-8);
    }
}

.about-cta-box h2{
    color:var(--console-ink);
}

.about-cta-box p{
    max-width:52ch;
    margin-top:var(--s-3);
    color:var(--console-ink-2);
    font-size:var(--t-lead);
}

.about-cta-actions{
    display:flex;
    flex-wrap:wrap;
    gap:var(--s-3);
}

.about-cta .about-secondary-btn{
    border-color:var(--console-ink-2);
    background:transparent;
    color:var(--console-ink);
}

.about-cta .about-secondary-btn:hover{
    border-color:var(--console-ink);
    color:var(--console-ink);
}
