/* ============================================================
   ABOUT PAGE — "BREATH"
   Editorial chapter layout on the Monsoon Mist palette.
   Mobile-first, desktop compatible. No photo assets required
   except the product shot in the Engineering chapter.
   ============================================================ */

.about-main {
    background: var(--mist);
    overflow-x: clip;
}

/* Header starts transparent over the light mist hero (background is added
   by .scrolled on scroll, same as index.html) — but unlike the dark video
   hero on index, the logo and menu icon must stay dark here. */
.about-page .header:not(.scrolled) .logo-img {
    filter: none;
}

.about-page .header:not(.scrolled) .hamburger-line {
    background: var(--ink);
}

.ab-container {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

/* ---------- Shared editorial pieces ---------- */
.ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal-deep);
}

.ab-chapter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal-deep);
    margin-bottom: 24px;
}

.ab-chapter-label::after {
    content: '';
    flex: 0 0 48px;
    height: 1px;
    background: var(--teal-deep);
    opacity: 0.4;
}

.ab-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 20px;
}

.ab-section-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

/* ---------- Scroll reveal (gated behind .ab-js) ---------- */
.ab-js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--rd, 0s);
}

.ab-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ============================================================
   1. HERO — mist, breathing rings, drifting particles
   ============================================================ */
.ab-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 110px;
    background: var(--mist);
    overflow: hidden;
}

.ab-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Soft ambient orbs */
.ab-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.ab-orb-1 {
    width: 46vw;
    height: 46vw;
    min-width: 320px;
    min-height: 320px;
    top: -12%;
    left: -10%;
    background: rgba(30, 124, 113, 0.14);
    animation: ab-drift 18s ease-in-out infinite alternate;
}

.ab-orb-2 {
    width: 38vw;
    height: 38vw;
    min-width: 260px;
    min-height: 260px;
    bottom: -14%;
    right: -8%;
    background: rgba(30, 124, 113, 0.10);
    animation: ab-drift 22s ease-in-out infinite alternate-reverse;
}

.ab-orb-3 {
    width: 24vw;
    height: 24vw;
    min-width: 180px;
    min-height: 180px;
    top: 30%;
    right: 12%;
    background: var(--mist-deeper);
    opacity: 0.55;
    animation: ab-drift 16s ease-in-out infinite alternate;
}

@keyframes ab-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(4vw, -3vh) scale(1.08); }
}

/* Breathing rings — the purifier's 360° intake as a motif */
.ab-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--ink-line);
    border-radius: 50%;
    opacity: 0.55;
    animation: ab-breathe 9s ease-in-out infinite;
}

.ab-ring-1 { width: min(420px, 90vw);  height: min(420px, 90vw); }
.ab-ring-2 { width: min(660px, 130vw); height: min(660px, 130vw); animation-delay: 1.4s; }
.ab-ring-3 { width: min(920px, 170vw); height: min(920px, 170vw); animation-delay: 2.8s; }

@keyframes ab-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.35; }
    50%      { transform: translate(-50%, -50%) scale(1.05); opacity: 0.7; }
}

/* Purified-air particles drifting upward */
.ab-particle {
    position: absolute;
    bottom: -12px;
    left: var(--x, 50%);
    width: var(--s, 5px);
    height: var(--s, 5px);
    border-radius: 50%;
    background: var(--teal-deep);
    opacity: 0;
    animation: ab-float var(--d, 12s) linear infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes ab-float {
    0%   { transform: translateY(0) translateX(0);        opacity: 0; }
    12%  { opacity: 0.35; }
    55%  { transform: translateY(-46vh) translateX(14px); opacity: 0.22; }
    100% { transform: translateY(-90vh) translateX(-8px); opacity: 0; }
}

.ab-hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.ab-hero-content .ab-eyebrow {
    margin-bottom: 24px;
}

.ab-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 7vw, 4.75rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
}

.ab-hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal-deep);
}

.ab-hero-sub {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto;
}

/* Scroll cue */
.ab-scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.ab-scroll-cue span {
    display: block;
    width: 1px;
    height: 48px;
    background: var(--ink-line);
    position: relative;
    overflow: hidden;
}

.ab-scroll-cue span::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--teal-deep);
    animation: ab-cue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes ab-cue {
    0%   { top: -50%; }
    100% { top: 110%; }
}

/* ============================================================
   2. MARQUEE RIBBON
   ============================================================ */
.ab-marquee {
    background: var(--mist-deep);
    border-top: 1px solid var(--ink-line-soft);
    border-bottom: 1px solid var(--ink-line-soft);
    padding: 26px 0;
    overflow: hidden;
}

.ab-marquee-track {
    display: flex;
    width: max-content;
    animation: ab-marquee 30s linear infinite;
}

.ab-marquee:hover .ab-marquee-track {
    animation-play-state: paused;
}

@keyframes ab-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ab-marquee-group {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px;
}

.ab-marquee-word {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 3.2vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
}

.ab-marquee-word.is-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(18, 49, 44, 0.45);
}

.ab-marquee-word.is-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal-deep);
}

.ab-marquee-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-deep);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ============================================================
   3. CHAPTER 01 — MISSION (paper)
   ============================================================ */
.ab-mission {
    background: var(--paper);
    padding: 88px 20px;
    position: relative;
    overflow: hidden;
}

.ab-mission .ab-container {
    max-width: 860px;
}

.ab-mission-text {
    position: relative;
    z-index: 1;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.ab-mission-text em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal-deep);
    white-space: normal;
}

/* ============================================================
   4. STATS BAND — the single dark moment (ink)
   ============================================================ */
.ab-stats {
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(79, 196, 184, 0.08), transparent 70%),
        var(--ink);
    padding: 88px 20px;
}

.ab-stats-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal-on-dark);
    margin-bottom: 16px;
}

.ab-stats-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--on-ink);
    margin-bottom: 48px;
}

.ab-stats-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal-on-dark);
}

.ab-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(234, 240, 236, 0.14);
    border-left: 1px solid rgba(234, 240, 236, 0.14);
}

.ab-stat {
    padding: 28px 20px 32px;
    border-right: 1px solid rgba(234, 240, 236, 0.14);
    border-bottom: 1px solid rgba(234, 240, 236, 0.14);
}

.ab-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--on-ink);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.ab-stat-value .ab-stat-accent {
    color: var(--teal-on-dark);
}

.ab-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(234, 240, 236, 0.62);
    max-width: 24ch;
}

/* ============================================================
   5. CHAPTER 02 — ENGINEERING (mist, product visual)
   ============================================================ */
.ab-story {
    background: var(--mist);
    padding: 88px 20px;
    position: relative;
    overflow: hidden;
}

.ab-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.ab-story-copy {
    position: relative;
    z-index: 1;
}

.ab-story-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.ab-story-text:last-child {
    margin-bottom: 0;
}

.ab-story-visual {
    position: relative;
    z-index: 1;
    padding: 0 12px 12px 0;
}

/* Offset teal plate behind the product card */
.ab-story-visual::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: -12px;
    bottom: -12px;
    border-radius: 28px;
    background: var(--teal-tint);
    z-index: 0;
}

.ab-story-card {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--ink-line-soft);
    aspect-ratio: 1 / 1;
}

.ab-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ab-story-chip {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9999px;
    background: var(--ink);
    color: var(--on-ink);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================================
   6. CHAPTER 03 — TEAM (mist-deep)
   ============================================================ */
.ab-team {
    background: var(--mist-deep);
    padding: 88px 20px;
    position: relative;
    overflow: hidden;
}

.ab-team-header {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
    max-width: 640px;
}

.ab-team-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.ab-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ab-founder-card {
    background: var(--paper);
    border: 1px solid var(--ink-line-soft);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-founder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-tint-sm);
}

.ab-founder-monogram {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-tint), rgba(30, 124, 113, 0.2));
    color: var(--teal-deep);
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.ab-founder-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.ab-founder-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal-deep);
    margin-bottom: 14px;
}

.ab-founder-bio {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* ============================================================
   7. CHAPTER 04 — VALUES (mist, editorial rows)
   ============================================================ */
.ab-values {
    background: var(--mist);
    padding: 88px 20px;
    position: relative;
    overflow: hidden;
}

.ab-values-header {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    max-width: 640px;
}

.ab-values-list {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--ink-line);
}

.ab-value-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 8px;
    border-bottom: 1px solid var(--ink-line);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.ab-value-row:hover {
    background: var(--teal-tint-soft);
}

.ab-value-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.ab-value-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* ============================================================
   8. CTA BAND — teal-deep card
   ============================================================ */
.ab-cta {
    background: var(--mist);
    padding: 0 20px 88px;
}

.ab-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(90% 120% at 85% -10%, rgba(242, 250, 248, 0.12), transparent 60%),
        var(--teal-deep);
    padding: 64px 28px;
    text-align: center;
}

/* Decorative intake rings in the card corners */
.ab-cta-ring {
    position: absolute;
    border: 1px solid rgba(242, 250, 248, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.ab-cta-ring-1 { width: 300px; height: 300px; top: -140px;  right: -100px; }
.ab-cta-ring-2 { width: 460px; height: 460px; top: -220px;  right: -180px; }
.ab-cta-ring-3 { width: 260px; height: 260px; bottom: -150px; left: -90px; }

.ab-cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--on-teal);
    margin-bottom: 16px;
}

.ab-cta-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}

.ab-cta-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(242, 250, 248, 0.75);
    max-width: 440px;
    margin: 0 auto 36px;
}

.ab-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.ab-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 9999px;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ab-cta-btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.25s ease;
}

.ab-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 34, 30, 0.35);
}

.ab-cta-btn:hover svg {
    transform: translateX(3px);
}

.ab-cta-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(242, 250, 248, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 250, 248, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ab-cta-link:hover {
    color: var(--on-teal);
    border-color: var(--on-teal);
}

/* ============================================================
   RESPONSIVE — tablet & desktop
   ============================================================ */
@media (min-width: 768px) {
    .ab-mission,
    .ab-stats,
    .ab-story,
    .ab-team,
    .ab-values {
        padding: 112px 24px;
    }

    .ab-cta {
        padding: 0 24px 112px;
    }

    .ab-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ab-stat {
        padding: 32px 24px 36px;
    }

    .ab-story-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 64px;
    }

    /* Visual on the left at desktop, copy on the right */
    .ab-story-visual {
        order: -1;
    }

    .ab-team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .ab-founder-card {
        padding: 32px 28px;
    }

    .ab-value-row {
        grid-template-columns: 320px 1fr;
        gap: 32px;
        padding: 34px 12px;
        align-items: start;
    }

    .ab-cta-card {
        padding: 88px 48px;
    }
}

@media (min-width: 1024px) {
    .ab-value-row {
        grid-template-columns: 380px 1fr;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ab-orb,
    .ab-ring,
    .ab-particle,
    .ab-scroll-cue span::after,
    .ab-marquee-track {
        animation: none;
    }

    .ab-particle {
        display: none;
    }

    .ab-js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ab-founder-card:hover,
    .ab-cta-btn:hover {
        transform: none;
    }
}
