/* About · four scroll-driven scenes (design/about) */
:root {
    --ab-navy: #060a14;
    --ab-navy-2: #0b1222;
    --ab-blue: #6e9bff;
    --ab-cobalt: #3d6df2;
    --ab-amber: #ffbf47;
    --ab-green: #3ee08f;
    --ab-aqua: #3fe0d0;
    --ab-paper: #f4eee3;
    --ab-ink: #151711;
    --ab-text: #f3f6ff;
    --ab-muted: rgba(243, 246, 255, 0.62);
    --ab-line: rgba(110, 155, 255, 0.22);
    --ab-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --ab-body: "Inter", system-ui, sans-serif;
    --ab-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

/* The old page scrolled inside a snap container; scenes need the window to scroll. */
html { scroll-behavior: auto !important; }
html, body { height: auto !important; overflow-x: clip !important; overflow-y: visible !important; }
.about-page { height: auto !important; overflow: visible !important; scroll-snap-type: none !important; }
.about-section { scroll-snap-align: none !important; }

.ab-scene { position: relative; color: var(--ab-text); font-family: var(--ab-body); }
.ab-pin {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 96px 0 64px;
}
.ab-wrap { width: min(1320px, 100% - 176px); margin: 0 auto; position: relative; z-index: 2; }
.ab-h {
    font-family: var(--ab-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 6.4vw, 6.4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
    color: var(--ab-text);
}
.ab-h em { font-style: normal; color: var(--ab-amber); }
.ab-lede { font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ab-muted); margin: 0; }

/* Chapter index */
.ab-index {
    position: fixed;
    right: clamp(16px, 2.4vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font: 500 13px/1 var(--ab-mono);
    color: rgba(243, 246, 255, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease, color .4s ease;
}
.ab-index.is-on { opacity: 1; }
.ab-index.is-paper { color: rgba(21, 23, 17, 0.5); }
.ab-index__now { color: var(--ab-blue); font-size: 16px; }
.ab-index.is-paper .ab-index__now { color: var(--ab-cobalt); }
.ab-index__bar { width: 1px; height: 56px; background: currentColor; opacity: .35; position: relative; }
.ab-index__bar span { position: absolute; inset: 0 0 auto; height: 0; background: var(--ab-blue); }

/* 01 · Manifesto */
.ab-manifesto .ab-pin {
    background:
        radial-gradient(50% 60% at 0% 40%, rgba(61, 109, 242, .32), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, rgba(255, 191, 71, .14), transparent 70%),
        radial-gradient(35% 45% at 85% 0%, rgba(61, 109, 242, .28), transparent 70%);
}
.ab-thread { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ab-thread svg { width: 100%; height: 100%; }
.ab-thread path {
    fill: none;
    stroke: var(--ab-aqua);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(63, 224, 208, .8));
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.ab-manifesto__title {
    margin: 0;
    font-family: var(--ab-display);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: .92;
    font-size: clamp(3rem, 9.2vw, 9.4rem);
}
.ab-line { display: block; }
.ab-strike-wrap { position: relative; display: inline-block; }
.ab-strike { text-decoration: none; transition: opacity .3s; }
.ab-strike__bar {
    position: absolute;
    left: -4%;
    right: -6%;
    top: 52%;
    height: .07em;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(110, 155, 255, 0), #8fb4ff 20%, #fff 70%, rgba(110, 155, 255, 0));
    box-shadow: 0 0 18px #3d6df2, 0 0 40px rgba(61, 109, 242, .8);
    transform: scaleX(1);
    transform-origin: left center;
}
.ab-runs {
    color: #2f6bff;
    font-size: 1.16em;
    text-shadow: 0 0 40px rgba(47, 107, 255, .45);
    margin-top: .02em;
}
.ab-manifesto__sub { margin-top: clamp(28px, 4vw, 48px); max-width: 720px; }
.ab-manifesto__sub p { font: 400 clamp(.95rem, 1.35vw, 1.2rem)/1.55 var(--ab-mono); color: var(--ab-text); margin: 0; }
.ab-manifesto__sub .ab-echo {
    margin-top: 18px;
    padding-left: 16px;
    border-left: 2px solid var(--ab-green);
    color: var(--ab-muted);
    font-size: clamp(.85rem, 1.1vw, 1rem);
}

/* 02 · Origin */
.ab-origin .ab-pin { background: radial-gradient(45% 55% at 85% 50%, rgba(61, 109, 242, .2), transparent 70%); }
.ab-origin__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.ab-origin .ab-lede { max-width: 30ch; }
.ab-origin .ab-h em { color: var(--ab-blue); }
.ab-path { list-style: none; margin: 0; padding: 0 0 0 32px; position: relative; }
.ab-path::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px; background: var(--ab-line); }
.ab-path::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 14px;
    width: 1px;
    height: calc((100% - 28px) * var(--p, 1));
    background: var(--ab-blue);
    box-shadow: 0 0 10px var(--ab-blue);
}
.ab-path li {
    position: relative;
    padding: 18px 0;
    font: 500 clamp(1.1rem, 2.2vw, 1.9rem)/1.15 var(--ab-display);
    letter-spacing: -0.02em;
    color: rgba(243, 246, 255, .3);
    transition: color .4s ease;
}
.ab-path li::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 50%;
    width: 13px;
    height: 13px;
    margin-top: -6.5px;
    border-radius: 50%;
    background: var(--ab-navy);
    box-shadow: inset 0 0 0 1.5px rgba(110, 155, 255, .4);
    transition: background .4s, box-shadow .4s;
}
.ab-path li.is-on { color: var(--ab-text); }
.ab-path li.is-on::before { background: var(--ab-blue); box-shadow: 0 0 0 4px rgba(110, 155, 255, .2), 0 0 14px var(--ab-blue); }
.ab-path li.ab-path__now.is-on { color: var(--ab-blue); font-size: clamp(1.5rem, 3.2vw, 2.8rem); }

/* 03 · 24 hours */
.ab-day .ab-pin {
    background: radial-gradient(45% 55% at 68% 55%, rgba(61, 109, 242, .22), transparent 70%);
}
.ab-day__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ab-dial { position: relative; width: min(620px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ab-dial__svg { width: 100%; height: 100%; overflow: visible; }
.ab-dial__ring { fill: none; stroke: rgba(110, 155, 255, .22); stroke-width: 2; }
.ab-dial__progress {
    fill: none;
    stroke: var(--ab-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transform: rotate(-90deg);
    transform-origin: 300px 300px;
    filter: drop-shadow(0 0 8px rgba(61, 109, 242, .9));
}
.ab-dial__ticks line { stroke: rgba(243, 246, 255, .28); stroke-width: 1.5; }
.ab-dial__ticks line.is-major { stroke: rgba(243, 246, 255, .7); stroke-width: 2; }
.ab-dial__hr { fill: rgba(243, 246, 255, .7); font: 500 20px var(--ab-mono); text-anchor: middle; }
.ab-dial__hand {
    stroke: var(--ab-amber);
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: 300px 300px;
    filter: drop-shadow(0 0 6px rgba(255, 191, 71, .8));
}
.ab-dial__core {
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 6px;
    background: radial-gradient(circle, rgba(11, 18, 34, .92) 55%, rgba(11, 18, 34, .2));
    box-shadow: inset 0 0 0 1px rgba(110, 155, 255, .18), 0 0 60px rgba(61, 109, 242, .18);
}
.ab-dial__time { font: 600 clamp(2rem, 4.2vw, 3.4rem)/1 var(--ab-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ab-dial__unit { font: 500 12px/1.35 var(--ab-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ab-muted); max-width: 18ch; margin: 0 auto; }
.ab-moments { list-style: none; margin: 0; padding: 0; }
.ab-moment {
    position: absolute;
    left: calc(50% + 41.667% * sin(var(--a)));
    top: calc(50% - 41.667% * cos(var(--a)));
    width: 0;
    height: 0;
    outline: none;
    font: 400 14px/1.35 var(--ab-mono);
    color: rgba(243, 246, 255, .4);
    transition: color .35s ease;
}
.ab-moment::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: -6px;
    top: -6px;
    border-radius: 50%;
    background: #1a2747;
    box-shadow: 0 0 0 2px rgba(110, 155, 255, .35);
    transition: background .35s, box-shadow .35s;
}
.ab-moment b { display: block; font-weight: 500; color: inherit; }
.ab-moment > span, .ab-moment { white-space: normal; }
.ab-moment__label {
    position: absolute;
    top: -22px;
    left: 26px;
    width: 190px;
}
.ab-moment.is-left .ab-moment__label { left: auto; right: 26px; text-align: right; }
.ab-moment.is-lit, .ab-moment:focus-visible { color: var(--ab-text); }
.ab-moment.is-lit b { color: var(--ab-blue); }
.ab-moment.is-human.is-lit b { color: var(--ab-green); }
.ab-moment.is-lit::before { background: var(--ab-blue); box-shadow: 0 0 0 4px rgba(110, 155, 255, .25), 0 0 18px var(--ab-blue); }
.ab-moment.is-human.is-lit::before { background: var(--ab-green); box-shadow: 0 0 0 4px rgba(62, 224, 143, .25), 0 0 18px var(--ab-green); }
.ab-moment:focus-visible::before { box-shadow: 0 0 0 4px var(--ab-amber); }

/* 04 · AIOS runs on AIOS */
.ab-company .ab-pin {
    background:
        radial-gradient(60% 40% at 65% 115%, rgba(61, 109, 242, .45), transparent 70%),
        radial-gradient(30% 30% at 64% 50%, rgba(255, 191, 71, .1), transparent 70%);
}
.ab-company__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ab-role-card {
    margin-top: 40px;
    max-width: 420px;
    padding: 20px 0 0;
    border-top: 1px solid var(--ab-line);
    min-height: 120px;
}
.ab-role-card__name { font: 500 13px var(--ab-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ab-blue); }
.ab-role-card__text { margin: 10px 0 0; font-size: 1.08rem; line-height: 1.5; color: var(--ab-text); }
.ab-orbit { position: relative; width: min(520px, 100% - 220px); aspect-ratio: 1; margin: 0 auto; }
.ab-orbit__svg { width: 100%; height: 100%; overflow: visible; }
.ab-orbit__ring {
    fill: none;
    stroke: var(--ab-blue);
    stroke-width: 1.5;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 6px rgba(61, 109, 242, .8));
}
.ab-orbit__inner { fill: none; stroke: rgba(110, 155, 255, .25); stroke-dasharray: 2 6; }
.ab-orbit__spokes line { stroke: rgba(243, 246, 255, .2); stroke-dasharray: 2 5; }
.ab-sun {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-content: center;
    gap: 2px;
    color: #fff;
    font: 600 clamp(1rem, 1.7vw, 1.4rem)/1.1 var(--ab-display);
    background: radial-gradient(circle at 40% 35%, #ffd27a, #e98a1c 55%, #8a3d06 100%);
    box-shadow: 0 0 60px rgba(255, 170, 60, .55), 0 0 140px rgba(255, 140, 30, .25);
}
.ab-sun small { font: 500 11px var(--ab-mono); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.ab-sun:focus-visible, .ab-star:focus-visible { outline: 2px solid var(--ab-amber); outline-offset: 6px; }
.ab-stars { list-style: none; margin: 0; padding: 0; }
.ab-stars li {
    --a: calc(var(--i) * 51.4286deg);
    position: absolute;
    left: calc(50% + 38.333% * sin(var(--a)));
    top: calc(50% - 38.333% * cos(var(--a)));
}
.ab-star {
    position: absolute;
    left: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #2a5cf0;
    box-shadow: 0 0 0 3px rgba(110, 155, 255, .35), 0 0 16px rgba(61, 109, 242, .9);
    transition: transform .25s, background .25s;
}
.ab-star span {
    position: absolute;
    top: 50%;
    left: 34px;
    transform: translateY(-50%);
    white-space: nowrap;
    font: 500 13px var(--ab-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(243, 246, 255, .78);
    transition: color .25s;
}
.ab-stars li.is-left .ab-star span { left: auto; right: 34px; }
.ab-stars li.is-top .ab-star span { left: 50%; top: -24px; transform: translateX(-50%); }
.ab-stars li.is-bottom .ab-star span { left: 50%; top: 40px; transform: translateX(-50%); }
.ab-star:hover, .ab-star.is-active { transform: scale(1.35); background: #fff; }
.ab-star:hover span, .ab-star.is-active span { color: #fff; }

/* 05 · Human chapter */
.ab-human .ab-pin {
    background:
        linear-gradient(rgba(21, 23, 17, .06) 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(90deg, rgba(21, 23, 17, .05) 1px, transparent 1px) 0 0 / 25% 100%,
        var(--ab-paper);
    color: var(--ab-ink);
}
.ab-human__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.ab-principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.ab-principles li {
    font: 700 clamp(2rem, 5.4vw, 5.4rem)/1.08 var(--ab-display);
    letter-spacing: -0.035em;
    color: var(--ab-ink);
}
.ab-principles li:nth-child(even) { padding-left: .5em; }
.ab-principles .ab-principles__home {
    color: #1f5bf0;
    font-size: clamp(1.7rem, 3.5vw, 3.8rem);
    margin-top: .25em;
    display: inline-block;
    background: linear-gradient(var(--ab-amber), var(--ab-amber)) 0 100% / 100% 3px no-repeat;
    padding-bottom: .12em;
}
.ab-seal { position: relative; width: clamp(160px, 18vw, 260px); aspect-ratio: 1; }
.ab-seal svg { width: 100%; height: 100%; }
.ab-seal circle { fill: none; stroke: rgba(21, 23, 17, .22); stroke-width: 1.2; }
.ab-seal text { font: 500 13px var(--ab-mono); letter-spacing: .32em; fill: rgba(21, 23, 17, .45); }
.ab-seal img {
    position: absolute;
    inset: 33%;
    width: 34%;
    filter: brightness(0);
    opacity: .4;
    object-fit: contain;
}
.ab-human__label {
    position: absolute;
    left: max(24px, calc((100% - 1320px) / 2));
    bottom: 28px;
    font: 500 12px var(--ab-mono);
    letter-spacing: .4em;
    text-transform: uppercase;
    color: rgba(21, 23, 17, .6);
}

/* Close */
.ab-close { position: relative; z-index: 2; padding: clamp(80px, 12vw, 140px) 0; background: var(--ab-navy); color: var(--ab-text); text-align: center; }
.ab-close__kicker { margin: 0 auto 28px; max-width: 46ch; font: 400 clamp(.85rem, 1.1vw, 1rem)/1.6 var(--ab-mono); color: var(--ab-muted); }
.ab-close__sub { margin: 0 0 36px; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ab-muted); }
.ab-close__line { margin: 0 0 22px; font: 700 clamp(2.2rem, 5vw, 4.6rem)/1 var(--ab-display); letter-spacing: -0.035em; }
.ab-close__links { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ab-btn {
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--ab-cobalt);
    color: #fff !important;
    font: 600 15px var(--ab-body);
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(61, 109, 242, .4);
    transition: background .2s;
}
.ab-btn:hover { background: #2f5ee0; }
.ab-link { color: var(--ab-text) !important; font: 500 15px var(--ab-body); text-decoration: none; opacity: .8; }
.ab-link:hover { opacity: 1; }

/* Phone */
@media (max-width: 860px) {
    .ab-pin { padding: 88px 0 40px; align-items: flex-start; }
    .ab-wrap { width: auto; margin: 0 36px 0 16px; }
    .ab-index { right: 10px; font-size: 11px; }
    .ab-index__now { font-size: 13px; }
    .ab-index__bar { height: 36px; }
    .ab-manifesto .ab-pin { align-items: center; }
    .ab-manifesto__title { font-size: clamp(2.6rem, 13.4vw, 4.4rem); }
    .ab-runs { font-size: 1em; }
    .ab-day__grid, .ab-company__grid, .ab-origin__grid { grid-template-columns: 1fr; gap: 28px; }
    .ab-dial { width: min(88vw, 420px); }
    .ab-moment__label { display: none; }
    .ab-dial__unit { font-size: 10px; letter-spacing: .12em; max-width: 16ch; }
    .ab-dial__hr { font-size: 26px; }
    .ab-orbit { width: min(80vw, 420px); }
    .ab-star span { font-size: 10px; letter-spacing: .1em; }
    .ab-stars li .ab-star span { left: 50% !important; right: auto !important; top: 30px; transform: translateX(-50%); }
    .ab-stars li.is-top .ab-star span { top: -22px; }
    .ab-role-card { margin-top: 16px; min-height: 0; }
    .ab-company__copy { display: contents; }
    .ab-company__copy .ab-role-card { order: 3; }
    .ab-company__grid { display: flex; flex-direction: column; }
    .ab-human__grid { grid-template-columns: 1fr; }
    .ab-seal { position: absolute; right: 0; top: -40px; width: 96px; opacity: .8; }
    .ab-human .ab-pin { align-items: center; }
    .ab-principles li:nth-child(even) { padding-left: 0; }
    .ab-principles li { font-size: clamp(1.9rem, 9.4vw, 3rem); }
    .ab-principles .ab-principles__home { font-size: clamp(1.6rem, 7.6vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
    .ab-moment, .ab-star, .ab-star span{ transition: none; }
}
