/* ═══════════════════════════════════════════════════════════
   MEDIALAB — ABOUT
   Loaded after medialab-home.css (shared nav, footer, buttons,
   type, marquee, stats, CTA). Only about-specific pieces here.
   ═══════════════════════════════════════════════════════════ */

/* Performance: a static grain looks the same at 6% opacity, but the animated version
   re-composites a 200%×200% fixed layer over the whole page every step. */
.grain { animation: none; inset: 0; width: 100%; height: 100%; }
#heroCanvas, .about-hero .hero-headline { will-change: transform, opacity; }

/* Active nav link */
.nav-links a.is-active { color: var(--ink); background: var(--fg); }

/* ── HERO ─────────────────────────────────────────────────── */
.about-hero { justify-content: space-between; }
.about-hero::after {
    background: radial-gradient(ellipse at 70% 40%, transparent 30%, var(--ink) 85%), linear-gradient(to top, var(--ink) 0%, transparent 40%);
}
.about-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-index { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }

.about-hero .hero-headline { font-size: clamp(3.2rem, 10.5vw, 11.5rem); margin-top: auto; }
.about-hero .hero-headline .indent { padding-left: 18vw; }
.about-hero .hero-foot { grid-template-columns: 1fr auto auto; }

/* Rotating circular badge */
.spin-badge {
    position: relative; display: grid; place-items: center;
    width: 132px; height: 132px; flex: none;
}
.spin-badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.spin-badge text { font-size: 10.4px; letter-spacing: 3.2px; text-transform: uppercase; fill: var(--fg); font-weight: 500; }
.spin-badge .core {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: var(--ink);
    display: grid; place-items: center;
    transition: transform .5s var(--ease), background .3s;
}
.spin-badge .core svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spin-badge:hover .core { transform: scale(1.18); background: var(--fg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MANIFESTO (pinned word fill) ─────────────────────────── */
.manifesto {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center; gap: 40px;
    padding: clamp(96px, 12vw, 160px) var(--gutter);
}
.manifesto-text {
    font-size: clamp(2rem, 5.4vw, 5.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.05em;
    max-width: 1400px;
}
.manifesto-text em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: -0.02em; }
.manifesto-text .w { display: inline; }
.manifesto-foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--fg-faint); letter-spacing: .08em; text-transform: uppercase; }

/* ── STORY (sticky heading + body) ────────────────────────── */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-sticky { position: sticky; top: 120px; }
.story-sticky .heading { margin-top: 28px; font-size: clamp(2.4rem, 5.2vw, 5rem); }
.story-body { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.story-body p { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--fg-muted); line-height: 1.5; }
.story-body p strong { color: var(--fg); font-weight: 600; }
.story-quote {
    margin-top: 24px; padding: clamp(28px, 3vw, 44px);
    border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line);
}
.story-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.08; color: var(--fg); letter-spacing: -0.02em; }
.story-quote blockquote::before { content: '\201C'; display: block; font-size: 2.4em; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.story-quote cite { display: block; margin-top: 20px; font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }

/* ── MISSION / VISION (circle reveal) ─────────────────────── */
.mv-wrap { position: relative; }
.mv-reveal {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 100vh; min-height: 100svh;
    color: var(--ink);
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(96px, 12vh, 140px) var(--gutter) clamp(56px, 8vh, 96px);
}
/* Paper disc that scales up behind the content (transform = GPU-composited, no repaints) */
.mv-disc {
    position: absolute; z-index: -1; left: 50%; top: 50%;
    width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
    border-radius: 50%; background: var(--paper);
    will-change: transform;
}
.mv-reveal .eyebrow { color: rgba(2, 20, 23, .6); }
.mv-title { margin-top: 24px; font-size: clamp(2.6rem, 7vw, 7rem); }
.mv-title .serif { color: var(--deep); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(2, 20, 23, .14); }
.mv-item { padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 48px) 0 0; display: flex; flex-direction: column; gap: 20px; }
.mv-item + .mv-item { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid rgba(2, 20, 23, .14); }
.mv-label { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(2, 20, 23, .55); }
.mv-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--deep); }
.mv-item h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.045em; }
.mv-item h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--deep); }
.mv-item p { color: rgba(2, 20, 23, .64); font-size: 1.05rem; max-width: 460px; }

/* ── VALUES (stacking sticky cards) ───────────────────────── */
.values-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.values-header .eyebrow { grid-column: 1 / -1; }
.values-header .sub { justify-self: end; }

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-card {
    --bg: var(--ink-2); --fg-card: var(--fg); --muted: var(--fg-muted); --stroke: var(--fg-faint);
    position: sticky; top: calc(96px + var(--i, 0) * 18px);
    display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 64px);
    min-height: min(70vh, 560px);
    padding: clamp(28px, 4vw, 56px);
    border-radius: 28px; border: 1px solid var(--line);
    background: var(--bg); color: var(--fg-card);
    transform-origin: center top;
    will-change: transform;
}
.stack-shade { position: absolute; inset: -1px; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.stack-card.is-accent { --bg: var(--accent); --fg-card: var(--ink); --muted: rgba(2, 20, 23, .7); --stroke: rgba(2, 20, 23, .5); border-color: transparent; }
.stack-card.is-paper  { --bg: var(--paper); --fg-card: var(--ink); --muted: rgba(2, 20, 23, .64); --stroke: var(--deep); border-color: transparent; }
.stack-card.is-deep   { --bg: var(--deep); --muted: rgba(233, 243, 241, .7); --stroke: var(--accent-2); border-color: transparent; }

.stack-num {
    align-self: end;
    font-size: clamp(7rem, 17vw, 17rem); font-weight: 700; line-height: .78; letter-spacing: -0.075em;
    color: transparent; -webkit-text-stroke: 1.5px var(--stroke);
}
.stack-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.stack-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stack-icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; color: var(--fg-card); }
.stack-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stack-card h3 { font-size: clamp(2.2rem, 5vw, 5rem); font-weight: 600; line-height: .95; letter-spacing: -0.055em; }
.stack-card h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.stack-card p { margin-top: 20px; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 440px; }

/* ── CTA tweak ────────────────────────────────────────────── */
.about-cta .cta-title { font-size: clamp(3rem, 11vw, 11rem); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-hero .hero-headline .indent { padding-left: 0; }
    .about-hero .hero-foot { grid-template-columns: 1fr auto; }
    .hero-index { display: none; }
    .spin-badge { width: 108px; height: 108px; }

    .manifesto { min-height: 0; }
    .story-grid, .mv-grid, .values-header { grid-template-columns: 1fr; }
    .story-sticky { position: static; }
    .values-header { gap: 24px; }
    .values-header .sub { justify-self: start; }
    .mv-item, .mv-item + .mv-item { padding: 32px 0; border-left: 0; }
    .mv-item + .mv-item { border-top: 1px solid rgba(2, 20, 23, .14); }

    .stack-card { grid-template-columns: 1fr; min-height: 0; top: calc(84px + var(--i, 0) * 12px); }
    .stack-num { order: 2; align-self: start; font-size: clamp(5rem, 28vw, 9rem); }
}

@media (max-width: 560px) {
    .about-hero .hero-foot { grid-template-columns: 1fr; }
    .spin-badge { display: none; }
    .stack-card { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .spin-badge svg.ring { animation: none; }
}
