:root {
    --bg: #0a0f12;
    --ink: hsl(190 16% 95%);
    --ink-muted: hsl(195 10% 70%);
    --accent: #38e0cf;
    --accent-soft: rgba(56, 224, 207, 0.16);
    --card: rgba(13, 19, 24, 0.46);
    --card-strong: rgba(13, 19, 24, 0.62);
    --card-bd: rgba(255, 255, 255, 0.1);
    --card-bd-hover: rgba(56, 224, 207, 0.45);
    --radius: 24px;
    --radius-lg: 32px;
    --shadow: 0 26px 70px rgba(4, 10, 14, 0.4);
    --font: "Victor Mono", ui-monospace, monospace;
}

body.flat {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
}

.bg-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

body.flat::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(7, 12, 15, 0.62) 0%,
        rgba(7, 12, 15, 0.42) 32%,
        rgba(7, 12, 15, 0.46) 66%,
        rgba(7, 12, 15, 0.64) 100%
    );
}

#sequence {
    background: transparent;
    transition: opacity 0.2s linear;
}

/* ── NAV ── */
.g-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(16px, 4vw, 40px);
}

.g-brand {
    font-style: italic;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 18px rgba(6, 14, 18, 0.7);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.g-nav.show-brand .g-brand {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.g-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 24px;
    font-family: var(--font);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
        transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--card-strong);
    border: 1px solid var(--card-bd);
    color: #fff;
}

.btn-primary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 15px;
}

/* ── HERO OVERLAY ── */
.hero-ui {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    will-change: opacity;
}

.hero-ui__tl {
    position: absolute;
    top: clamp(86px, 16vh, 150px);
    left: clamp(20px, 5vw, 60px);
    max-width: 40vw;
}

.hero-ui__brand {
    font-weight: 700;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 28px rgba(8, 20, 28, 0.6);
}

.hero-ui__catch {
    margin-top: 16px;
    font-size: clamp(15px, 1.6vw, 20px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 18px rgba(8, 20, 28, 0.65);
}

.hero-ui__catch em { font-style: italic; color: var(--accent); }

.hero-ui__br {
    position: absolute;
    right: clamp(20px, 5vw, 60px);
    bottom: clamp(34px, 7vh, 64px);
    text-align: right;
}

.hero-ui__meta {
    font-size: clamp(12px, 1.2vw, 15px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 16px rgba(8, 20, 28, 0.6);
}

.hero-ui__scroll {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.95; }
}

/* ── PANELS ── */
.panel {
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: clamp(132px, 18vh, 200px) clamp(20px, 5vw, 60px) clamp(64px, 10vh, 110px);
    background: transparent;
}

.panel__inner {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.panel__inner--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.4vh, 28px);
    text-align: center;
}

/* ── SECTION HEADER ── */
.sec-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: clamp(34px, 5vh, 56px);
    flex-wrap: wrap;
}

.sec-index {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.75;
}

.kicker {
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.sec-note {
    flex-basis: 100%;
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-muted);
}

.sec-title {
    font-weight: 700;
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 22px;
    text-shadow: 0 2px 26px rgba(6, 14, 18, 0.5);
}

.sec-title--xl { font-size: clamp(32px, 4.6vw, 60px); max-width: 16ch; }
.sec-title--cta { font-size: clamp(32px, 5vw, 62px); margin-bottom: 16px; }

.sec-title em { font-style: italic; font-weight: 500; color: var(--accent); }

.eyebrow {
    display: inline-block;
    font-style: italic;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 16px;
}

.lead {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 58ch;
    text-shadow: 0 1px 18px rgba(6, 14, 18, 0.45);
}

/* ── SOFT CARD BASE ── */
.video-frame,
.def,
.stat,
.row,
.member,
.step,
.news-item,
.cta {
    background: var(--card);
    border: 1px solid var(--card-bd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--shadow);
}

/* ── VIDEO ── */
.video-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: #05080a;
    display: flex;
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62vh;
    object-fit: contain;
    border-radius: calc(var(--radius) - 1px);
}

.tick-list {
    list-style: none;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tick-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-soft);
}

/* ── WHAT IT DOES (split) ── */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.split__right {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.def {
    padding: 24px 26px;
}

.def__tag {
    display: block;
    font-style: italic;
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 8px;
}

.def p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
}

/* ── STATS ── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 30px);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(28px, 3.4vw, 44px);
}

.stat__num {
    font-weight: 700;
    font-size: clamp(48px, 6vw, 92px);
    line-height: 0.9;
    color: #fff;
    text-shadow: 0 0 44px rgba(56, 224, 207, 0.28);
}

.stat__label { font-style: italic; font-size: 16px; color: var(--accent); }
.stat__sub { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }

/* ── ROWS (tech) ── */
.rows {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(24px, 3vw, 34px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.row:hover { border-color: var(--card-bd-hover); transform: translateY(-3px); }

.row__id {
    font-size: 22px;
    font-style: italic;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.row__body h3 {
    font-size: clamp(17px, 1.8vw, 22px);
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.row__body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 70ch;
}

/* ── TEAM ── */
.team-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.member {
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.member:hover { border-color: var(--card-bd-hover); transform: translateY(-3px); }

.member__id { font-size: 13px; color: var(--accent); margin-bottom: 16px; opacity: 0.75; }

.member h3 {
    font-size: 19px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.member__role {
    font-style: italic;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 14px;
}

.member p { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }

/* ── HOW IT WORKS ── */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 26px);
}

.step { padding: clamp(24px, 2.6vw, 34px); }

.step__num {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }

/* ── NEWS CAROUSEL ── */
.news-carousel { position: relative; }

.news-nav {
    position: absolute;
    top: -64px;
    right: 0;
    display: flex;
    gap: 10px;
}

.news-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--card-bd);
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.news-btn:hover { border-color: var(--accent); color: var(--accent); }

.news-viewport { overflow: hidden; }

.news-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item {
    flex: 0 0 calc((100% - 40px) / 3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-item:hover { border-color: var(--card-bd-hover); transform: translateY(-3px); }

.news-item__img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1014;
}

.news-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item__img--text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 34px;
    color: var(--accent);
}

.news-item__src {
    margin: 18px 22px 0;
    font-style: italic;
    font-size: 13px;
    color: var(--accent);
}

.news-item__title {
    margin: 8px 22px 0;
    font-size: 14px;
    line-height: 1.45;
    color: #fff;
    flex: 1;
}

.news-item__read {
    margin: 16px 22px 22px;
    font-size: 12px;
    color: var(--ink-muted);
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.news-dot.active { background: var(--accent); transform: scale(1.25); }

/* ── CTA ── */
.cta {
    padding: clamp(40px, 6vw, 72px) clamp(32px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 820px;
}

.join-actions { margin: 14px 0 8px; }

.fine { font-size: 12px; font-style: italic; color: var(--ink-muted); }

.footer {
    width: 100%;
    max-width: 1180px;
    margin: 28px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-muted);
}

.footer em { font-style: italic; color: var(--accent); }

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

.split__right .reveal,
.stat-row .reveal:nth-child(2) { transition-delay: 0.1s; }
.stat-row .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .video-layout,
    .split { grid-template-columns: 1fr; }
    .stat-row,
    .team-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .news-item { flex: 0 0 calc((100% - 20px) / 2); }
    .panel { min-height: auto; }
    .video-frame video { max-height: 48vh; }
}

@media (max-width: 600px) {
    .stat-row,
    .team-grid,
    .rows,
    .steps { grid-template-columns: 1fr; }
    .news-item { flex: 0 0 100%; }
    .hero-ui__tl { max-width: 80vw; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    .hero-ui__scroll { animation: none; }
}

/* ── Final CTA panel: compact so heading + button + footer fit one viewport ── */
#join {
    padding-top: clamp(92px, 12vh, 130px);
    padding-bottom: clamp(36px, 5vh, 64px);
}

#join .cta {
    padding: clamp(26px, 4vh, 46px) clamp(24px, 4vw, 56px);
}

#join .cta .lead {
    margin-top: 4px;
}

#join .footer {
    margin-top: clamp(20px, 3vh, 32px);
}