:root {
    --about-bg: #070707;
    --about-surface: #0f0f0e;
    --about-text: #f4f4ef;
    --about-muted: #9b9b93;
    --about-line: rgba(244, 244, 239, 0.16);
    --about-accent: #bdf45b;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--about-bg);
}

body {
    margin: 0;
    background: var(--about-bg);
    color: var(--about-text);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

.about-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px 40px;
    color: #ffffff;
}

.about-logo {
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.about-section-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-back {
    justify-self: end;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.about-back::after,
.resource-links a::after {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 4px;
    background: currentColor;
    content: '';
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 180ms ease;
}

.about-back:hover::after,
.resource-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.about-hero {
    position: relative;
    min-height: 760px;
    height: 92vh;
    overflow: hidden;
    background: #111111;
}

.about-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
    content: '';
    pointer-events: none;
}

.about-hero-picture,
.about-hero-media {
    width: 100%;
    height: 100%;
    display: block;
}

.about-hero-media {
    object-fit: cover;
    object-position: center center;
    animation: hero-scale 1.2s ease-out both;
}

.about-hero-copy {
    position: absolute;
    z-index: 1;
    bottom: 56px;
    left: 40px;
    width: min(760px, calc(100% - 80px));
}

.eyebrow,
.section-number {
    margin: 0;
    color: var(--about-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.about-hero h1,
h2,
h3,
p {
    margin-top: 0;
}

.about-hero h1 {
    max-width: 710px;
    margin: 16px 0 18px;
    color: #ffffff;
    font-size: 5.4rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.98;
}

.about-hero-lead {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.about-hero-index {
    position: absolute;
    right: 40px;
    bottom: 58px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.section-wrap,
.mission-inner,
.about-footer {
    width: min(1280px, calc(100% - 80px));
    margin: 0 auto;
}

.section-wrap {
    padding: 144px 0;
}

.about-intro,
.history-section {
    display: grid;
    grid-template-columns: 100px minmax(0, 0.8fr) minmax(360px, 1.2fr);
    column-gap: 32px;
}

.section-heading h2,
.mission-band h2,
.about-media h2,
.team-heading h2 {
    margin: 14px 0 0;
    font-size: 2.85rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
}

.about-prose {
    color: var(--about-muted);
    font-size: 1rem;
}

.about-prose-large {
    color: #d8d8d1;
    font-size: 1.22rem;
    line-height: 1.58;
}

.about-prose p + p {
    margin-top: 28px;
}

.about-timeline {
    grid-column: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 68px;
    padding-top: 22px;
    border-top: 1px solid var(--about-line);
}

.about-timeline span {
    color: var(--about-accent);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.about-timeline p {
    margin: 8px 0 0;
    color: var(--about-muted);
    font-size: 0.84rem;
}

.mission-band {
    padding: 116px 0;
    border-top: 1px solid var(--about-line);
    border-bottom: 1px solid var(--about-line);
    background: var(--about-surface);
}

.mission-inner {
    display: grid;
    grid-template-columns: 100px minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: 32px;
}

.mission-inner > p:last-child {
    margin: 0;
    color: #d8d8d1;
    font-size: 1.24rem;
    line-height: 1.58;
}

.about-media {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
    align-items: end;
    gap: 80px;
}

.about-media-copy {
    padding-bottom: 18px;
}

.about-media-copy > p:last-child {
    margin: 24px 0 0;
    color: var(--about-muted);
}

.about-media-frame {
    margin: 0;
}

.about-media-frame img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.about-media-frame figcaption {
    margin-top: 12px;
    color: var(--about-muted);
    font-size: 0.75rem;
}

.team-section {
    padding-top: 40px;
}

.team-heading {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 72px;
}

.team-list {
    border-top: 1px solid var(--about-line);
}

.team-item {
    display: grid;
    grid-template-columns: 100px minmax(220px, 0.7fr) minmax(360px, 1.3fr);
    gap: 32px;
    padding: 36px 0 40px;
    border-bottom: 1px solid var(--about-line);
}

.team-index,
.team-role p {
    margin: 0;
    color: var(--about-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.team-role h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.15;
}

.team-item > p:last-child {
    margin: 0;
    color: var(--about-muted);
    font-size: 0.93rem;
}

.team-note {
    max-width: 620px;
    margin: 28px 0 0 auto;
    color: var(--about-muted);
    font-size: 0.84rem;
}

.history-section {
    border-top: 1px solid var(--about-line);
}

.about-footer {
    padding-bottom: 36px;
}

.about-footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    padding: 64px 0;
    border-top: 1px solid var(--about-line);
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 36px;
}

.resource-links a {
    width: fit-content;
    color: var(--about-text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.about-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--about-line);
}

.about-footer-bottom p {
    margin: 0;
    color: var(--about-muted);
    font-size: 0.75rem;
}

.docs-hero {
    min-height: 680px;
    display: grid;
    align-items: end;
    padding: 120px 40px 80px;
    border-bottom: 1px solid var(--about-line);
    background:
        radial-gradient(circle at 74% 18%, rgba(189, 244, 91, 0.16), transparent 30rem),
        linear-gradient(135deg, #111111 0%, #070707 48%, #0f0f0e 100%);
}

.docs-hero-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.docs-hero h1 {
    max-width: 900px;
    margin: 16px 0 22px;
    color: #ffffff;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.96;
}

.docs-hero p:last-child {
    max-width: 660px;
    margin: 0;
    color: rgba(244, 244, 239, 0.72);
    font-size: 1.08rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.docs-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--about-line);
    background: rgba(255, 255, 255, 0.025);
}

.docs-card span {
    display: block;
    margin-bottom: 42px;
    color: var(--about-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.docs-card h2 {
    margin: 0 0 14px;
    color: var(--about-text);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.18;
}

.docs-card p {
    margin: 0;
    color: var(--about-muted);
    font-size: 0.94rem;
}

.docs-policy,
.docs-actions {
    display: grid;
    grid-template-columns: 100px minmax(0, 0.8fr) minmax(360px, 1.2fr);
    gap: 32px;
    border-top: 1px solid var(--about-line);
}

.docs-policy h2,
.docs-actions h2 {
    margin: 14px 0 0;
    font-size: 2.85rem;
    font-weight: 600;
    line-height: 1.05;
}

.docs-action-links {
    display: grid;
    gap: 12px;
    align-content: start;
}

.docs-action-links a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--about-line);
    padding: 0 20px;
    color: var(--about-text);
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.docs-action-links a::after {
    content: '↗';
    color: var(--about-accent);
}

.docs-action-links a:hover {
    border-color: rgba(189, 244, 91, 0.5);
    background: rgba(189, 244, 91, 0.055);
    transform: translateY(-2px);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hero-scale {
    from { transform: scale(1.04); }
    to { transform: scale(1); }
}

@media (max-width: 900px) {
    .about-header,
    .section-wrap,
    .mission-inner,
    .about-footer {
        width: min(720px, calc(100% - 48px));
    }

    .about-header {
        width: 100%;
        padding: 24px;
    }

    .about-header {
        grid-template-columns: 1fr auto 1fr;
    }

    .about-hero {
        min-height: 680px;
        height: 86vh;
    }

    .about-hero-copy {
        bottom: 44px;
        left: 24px;
        width: calc(100% - 48px);
    }

    .about-hero h1 {
        max-width: 600px;
        font-size: 4.1rem;
    }

    .about-hero-index {
        right: 24px;
        bottom: 25px;
    }

    .section-wrap {
        padding: 96px 0;
    }

    .about-intro,
    .history-section,
    .mission-inner,
    .team-item {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .about-intro .section-heading,
    .history-section .section-heading,
    .about-intro .about-prose,
    .history-section .about-prose,
    .about-timeline,
    .mission-inner > div,
    .mission-inner > p:last-child,
    .team-role,
    .team-item > p:last-child {
        grid-column: 2;
    }

    .about-intro .about-prose,
    .history-section .about-prose,
    .mission-inner > p:last-child,
    .team-item > p:last-child {
        margin-top: 28px;
    }

    .mission-band {
        padding: 88px 0;
    }

    .about-media {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .team-heading {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .team-note {
        max-width: none;
        margin-left: 70px;
    }

    .docs-hero {
        min-height: 620px;
        padding: 112px 24px 64px;
    }

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

    .docs-policy,
    .docs-actions {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .docs-policy > div,
    .docs-policy .about-prose,
    .docs-actions > div {
        grid-column: 2;
    }

    .docs-policy .about-prose,
    .docs-actions .docs-action-links {
        margin-top: 28px;
    }
}

@media (max-width: 600px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-header {
        grid-template-columns: 1fr auto;
        padding: 20px;
    }

    .about-section-name {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        margin-top: 8px;
        font-size: 0.66rem;
    }

    .about-logo {
        font-size: 0.9rem;
    }

    .about-back {
        font-size: 0.78rem;
    }

    .about-hero {
        min-height: 610px;
        height: 82vh;
    }

    .about-hero-media {
        object-position: center 50%;
    }

    .about-hero-copy {
        bottom: 34px;
        left: 20px;
        width: calc(100% - 40px);
    }

    .about-hero h1 {
        font-size: clamp(2.45rem, 12.5vw, 3.25rem);
        letter-spacing: -0.025em;
        line-height: 1;
    }

    .about-hero-lead {
        font-size: 0.94rem;
    }

    .about-hero-index {
        display: none;
    }

    .section-wrap,
    .mission-inner,
    .about-footer {
        width: calc(100% - 40px);
    }

    .section-wrap {
        padding: 74px 0;
    }

    .about-intro,
    .history-section,
    .mission-inner,
    .team-heading,
    .team-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-intro .section-heading,
    .history-section .section-heading,
    .about-intro .about-prose,
    .history-section .about-prose,
    .about-timeline,
    .mission-inner > div,
    .mission-inner > p:last-child,
    .team-role,
    .team-item > p:last-child {
        grid-column: auto;
    }

    .section-heading h2,
    .mission-band h2,
    .about-media h2,
    .team-heading h2 {
        font-size: 2.15rem;
    }

    .about-prose-large,
    .mission-inner > p:last-child {
        font-size: 1.06rem;
    }

    .about-timeline {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .mission-band {
        padding: 72px 0;
    }

    .about-media {
        gap: 28px;
    }

    .team-heading {
        padding-bottom: 44px;
    }

    .team-item {
        padding: 28px 0 32px;
    }

    .team-note {
        margin-left: 0;
    }

    .about-footer-top,
    .resource-links {
        grid-template-columns: 1fr;
    }

    .about-footer-top {
        gap: 30px;
        padding: 48px 0;
    }

    .resource-links {
        gap: 18px;
    }

    .about-footer-bottom {
        display: block;
    }

    .about-footer-bottom p {
        margin-top: 12px;
    }

    .docs-hero {
        min-height: 560px;
        padding: 104px 20px 52px;
    }

    .docs-grid,
    .docs-policy,
    .docs-actions {
        grid-template-columns: 1fr;
    }

    .docs-policy > div,
    .docs-policy .about-prose,
    .docs-actions > div {
        grid-column: auto;
    }

    .docs-card {
        min-height: 220px;
        padding: 24px;
    }

    .docs-card span {
        margin-bottom: 32px;
    }

    .docs-policy h2,
    .docs-actions h2 {
        font-size: 2.15rem;
    }
}

.docs-page {
    background: #050505;
}

.docs-page .about-header {
    position: fixed;
    background: rgba(5, 5, 5, 0.72);
    border-bottom: 1px solid rgba(244, 244, 239, 0.08);
    backdrop-filter: blur(14px);
}

.docs-page .docs-hero {
    min-height: 340px;
    align-items: end;
    padding: 108px 40px 42px;
    background:
        linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.docs-page .docs-hero-inner {
    width: min(1120px, 100%);
}

.docs-page .docs-hero h1 {
    max-width: 760px;
    margin: 14px 0 16px;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 600;
    line-height: 1.08;
}

.docs-page .docs-hero p:last-child {
    max-width: 620px;
    color: rgba(244, 244, 239, 0.68);
    font-size: 0.98rem;
    line-height: 1.65;
}

.docs-page .section-wrap {
    width: min(1120px, calc(100% - 80px));
    padding: 54px 0;
}

.docs-page .docs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--about-line);
    background: var(--about-line);
}

.docs-page .docs-card {
    min-height: 0;
    border: 0;
    padding: 24px;
    background: #080808;
}

.docs-page .docs-card span {
    margin-bottom: 28px;
    font-size: 0.68rem;
    font-weight: 700;
}

.docs-page .docs-card h2 {
    margin-bottom: 10px;
    font-size: 1.04rem;
    font-weight: 600;
}

.docs-page .docs-card p {
    font-size: 0.88rem;
    line-height: 1.58;
}

.docs-legal {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 300px;
    align-items: start;
    gap: 28px;
    border-top: 1px solid var(--about-line);
}

.docs-legal-copy {
    position: sticky;
    top: 96px;
}

.docs-legal-copy h2 {
    margin: 12px 0 14px;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.18;
}

.docs-legal-copy > p:last-child {
    margin: 0;
    color: var(--about-muted);
    font-size: 0.88rem;
    line-height: 1.58;
}

.docs-legal-view {
    min-width: 0;
    border: 1px solid var(--about-line);
    background: #090909;
}

.legal-document {
    display: none;
    padding: 34px 38px 42px;
    color: #d9d9d4;
}

.legal-document.is-active {
    display: block;
}

.legal-kicker {
    margin: 0 0 12px;
    color: var(--about-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.legal-document h3 {
    max-width: 720px;
    margin: 0 0 30px;
    color: #f4f4ef;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.28;
}

.legal-document h4 {
    margin: 28px 0 10px;
    color: #f4f4ef;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.4;
}

.legal-document p,
.legal-document li {
    color: #b8b8b0;
    font-size: 0.92rem;
    line-height: 1.72;
}

.legal-document p {
    margin: 0 0 12px;
}

.legal-document ul {
    margin: 8px 0 18px;
    padding-left: 20px;
}

.legal-document li + li {
    margin-top: 6px;
}

.docs-legal-controls {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 8px;
}

.docs-legal-controls button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--about-line);
    border-radius: 0;
    padding: 0 14px;
    background: transparent;
    color: #d9d9d4;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.docs-legal-controls button:hover,
.docs-legal-controls button.is-active {
    border-color: rgba(189, 244, 91, 0.5);
    background: rgba(189, 244, 91, 0.06);
    color: #ffffff;
}

.docs-page .docs-actions {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 40px;
    padding-top: 56px;
    border-top: 1px solid var(--about-line);
}

.docs-page .docs-actions h2 {
    max-width: 420px;
    margin: 12px 0 0;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.18;
}

.docs-page .docs-action-links {
    justify-self: end;
    width: 100%;
    max-width: 360px;
}

.docs-page .docs-action-links a {
    min-height: 48px;
    padding: 0 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

@media (max-width: 980px) {
    .docs-page .section-wrap {
        width: min(720px, calc(100% - 48px));
        padding: 58px 0;
    }

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

    .docs-legal {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .docs-legal-copy,
    .docs-legal-controls {
        position: static;
    }

    .docs-legal-controls {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-legal-view {
        order: 3;
    }

    .docs-page .docs-actions {
        grid-template-columns: 1fr;
    }

    .docs-page .docs-action-links {
        justify-self: stretch;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .docs-page .docs-hero {
        min-height: auto;
        padding: 96px 20px 42px;
    }

    .docs-page .section-wrap {
        width: calc(100% - 40px);
        padding: 44px 0;
    }

    .docs-page .docs-grid,
    .docs-legal-controls {
        grid-template-columns: 1fr;
    }

    .legal-document {
        padding: 26px 22px 32px;
    }

    .legal-document h3 {
        font-size: 1.18rem;
    }

    .legal-document p,
    .legal-document li {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
