:root {
    --fw: 300;
    --fw-strong: 500;
    --bg: rgb(15, 17, 21);
    --fg: rgb(250, 250, 250);
    --muted: rgb(180, 180, 180);
    --accent: #81aca6;
    --card: rgba(30, 30, 30, 0.55);
    --border: rgba(255, 255, 255, 0.10);
    --border_thickness: 0px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --radius: 10px;

    /* header heights used for layout + intersection observer offset */
    --header-h: 160px;
    --content-max: 1400px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
    font-weight: var(--fw);
    background:
    radial-gradient(1200px 700px at 20% 10%, rgba(129, 172, 166, 0.10), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(179, 202, 199, 0.08), transparent 55%),
    radial-gradient(900px 700px at 35% 90%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg);
    color: var(--fg);
    scroll-behavior: smooth;
}

/* Connected network canvas (used as HOME background) */
#net-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 1;
}

.home-hero {
    position: relative;
    width: 100%;
    min-height: calc(100svh - 2 * clamp(20px, 4vw, 40px));
    display: grid;
    align-content: center;
    padding: clamp(100px, 5vw, 128px);
    z-index: 1;
}

.home-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 4vw, 40px);
    display: inline-grid;
    place-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transform: translateX(-50%);
    transition: opacity 180ms ease;
    z-index: 2;
}

.home-scroll-cue:hover {
    opacity: 1;
}

.home-scroll-cue-text {
    font-size: 1.0rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-scroll-cue-icon {
    width: 20px;
    height: 20px;
    animation: homeScrollCueBob 1.8s ease-in-out infinite;
}

@keyframes homeScrollCueBob {

    0%,
    100% {
    transform: translateY(0);
    opacity: 0.72;
    }

    50% {
    transform: translateY(8px);
    opacity: 1;
    }
}

.home-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* readability overlay */
    background: none;
}

#section-home .container {
    margin-top: calc(-2 * var(--header-h) + 64px);
    max-width: none;
}

#section-home .Panel {
    padding: 0;
}

/* Make anchor jumps land below the fixed header */
section {
    scroll-margin-top: calc(var(--header-h));
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #8cb7b1;
}

/* ===== Fixed Header ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 1000;
    overflow: visible;
    background: rgba(80, 80, 80, 0.20);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: flex-start;
    min-width: 220px;
    overflow: visible;
}

#logo {
    /* The logo image is square with the text centered.
        Make it larger, allow overflow, and shift slightly right to align with the motto. */
    height: calc(var(--header-h) + 70px);
    width: auto;
    max-width: min(520px, 78vw);
    display: block;
    margin: -72px 0 -28px 0;
    margin-left: 18px;
    object-fit: contain;
    object-position: center 58%;
    transform: translate(6px, 6px);
    pointer-events: none;
    user-select: none;
}

#motto {
    margin: 0;
    padding-left: 64px;
    margin-top: -45px;
    color: var(--fg);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: rgba(30, 30, 30, 0.25);
    color: var(--fg);
    cursor: pointer;
    flex: 0 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55em 1.05em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 5px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
    line-height: 1;
}

nav li.special-button {
    padding-left: 40px;
}

nav li.special-button>a {
    background: rgba(236, 135, 144, 0.5);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    transform: translateY(-1px);
}

nav li.special-button>a:hover {
    background: rgba(251, 150, 159, 0.5);
    box-shadow: 0 0 30px rgba(255, 174, 183, 0.4);
}

nav li.is-active>a {
    color: #0f1115;
    background-color: #b3cac7;
    border-color: rgba(255, 255, 255, 0.18);
}

nav li.special-button.is-active>a {
    background: rgba(255, 200, 200, 0.6);
}

/* ===== Layout ===== */
.PageContent {
    padding-top: var(--header-h);
}

.Panel {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 40px) 0;
    text-align: justify;
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
}

/* animations */
[data-animate] {
    opacity: 0;
    transform: translateY(0);
}

[data-animate].in-view {
    animation: fadeInUp 1200ms ease forwards;
}

@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(32px);
    }

    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
    transition: none;
    transform: none;
    opacity: 1;
    }

    .home-scroll-cue-icon {
    animation: none;
    }
}

/* ===== Type system (keeps your existing class names) ===== */
.TextLarge,
.Text,
.TextSmall,
.TextSmaller {
    font-weight: var(--fw);
}

.TextLarge {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: var(--fw-strong);
    font-variant: small-caps;
    color: white;
    text-shadow: 0 0 1.7rem rgb(150, 150, 200);
    line-height: 1.05;
    text-align: left;
}

.Text {
    font-size: clamp(1.05rem, 2.1vw, 1.55rem);
    line-height: 1.38;
    letter-spacing: 0.005em;
}

.TextSmall {
    font-size: clamp(0.98rem, 2.0vw, 1.18rem);
    line-height: 1.42;
}

.TextSmaller {
    font-size: 1.0rem;
    line-height: 1.42;
}

.Title {
    font-weight: var(--fw);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    color: var(--accent);
    letter-spacing: 0.015em;
}

.ContentTextLarge,
.ContentText,
.ContentTextSmall {
    font-weight: var(--fw);
}

.ContentTextLarge {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.ContentText {
    font-size: clamp(1.0rem, 2.1vw, 1.35rem);
    color: var(--muted);
    line-height: 1.46;
}

.ContentTextSmall {
    font-size: clamp(0.95rem, 2.1vw, 1.25rem);
    color: var(--muted);
}

/* ===== Home ===== */
/* (Removed the "card" hero container; text now sits directly over the animated network background.) */
.home-map-section {
    min-height: calc(260svh + var(--header-h));
    padding: 0;
    position: relative;
}

.home-map-scroll {
    position: relative;
    min-height: calc(260svh + var(--header-h));
}

.home-map-stage {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    display: grid;
    overflow: hidden;
    scroll-margin-top: 0;
}

.home-map-stage::before {
    content: "";
    position: absolute;
    inset: 8% 10%;
    border-radius: 50%;
    background:
    radial-gradient(circle at center, rgba(129, 172, 166, 0.18), rgba(129, 172, 166, 0.05) 34%, transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.home-map-layout {
    position: relative;
    z-index: 1;
    width: min(1400px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(420px, 2fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.home-map-copy {
    max-width: 30rem;
    display: grid;
    gap: 18px;
    align-self: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 180ms linear, transform 240ms ease-out;
}

.home-map-copy .Title,
.home-map-copy .Text {
    margin: 0;
    text-align: left;
}

.home-map-field {
    --field-size: min(54vw, 68vh);
    position: relative;
    width: var(--field-size);
    height: var(--field-size);
    max-width: 820px;
    max-height: 820px;
    justify-self: end;
}

.home-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.home-map-line {
    stroke: rgba(179, 202, 199, 0.34);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    transition: opacity 160ms linear;
}

.constellation-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    will-change: transform, opacity;
    opacity: 0;
    text-align: center;
}

.constellation-node.is-ready {
    opacity: 1;
}

.constellation-core {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.96), rgba(179, 202, 199, 0.82) 45%, rgba(129, 172, 166, 0.18) 72%, transparent 100%);
    box-shadow:
    0 0 18px rgba(179, 202, 199, 0.55),
    0 0 38px rgba(129, 172, 166, 0.18);
}

.constellation-node[data-node="natural-intelligence"] .constellation-core {
    width: 32px;
    height: 32px;
    box-shadow:
    0 0 22px rgba(179, 202, 199, 0.62),
    0 0 46px rgba(129, 172, 166, 0.24);
}

.constellation-label {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(var(--label-x), var(--label-y));
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(12, 16, 23, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
    transform-origin: left center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.home-map-section.is-static .constellation-node,
.home-map-section.is-static .home-map-line,
.home-map-section.is-static .home-map-copy {
    transition: none;
}

/* ===== Highlights (Movie Cards) ===== */
.highlights-wrap {
    width: 100%;
    display: grid;
    gap: clamp(18px, 2.8vw, 28px);
}

.highlights-head {
    display: grid;
    gap: 10px;
    text-align: left;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: clamp(36px, 5.6vw, 52px);
    align-items: stretch;
}

.movie-card {
    background: var(--card);
    border: var(--border_thickness) solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-media {
    position: relative;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.70));
    padding: 14px;
}

.movie-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius) - 10px);
    aspect-ratio: 16 / 9;
    background: black;
    transform: scale(1);
    transition: transform 280ms ease, filter 280ms ease;
}

.movie-actions {
    position: absolute;
    inset: 14px;
    display: grid;
    align-items: stretch;
    pointer-events: none;
}

.movie-actions-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    height: 100%;
}

.movie-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
}

.movie-play {
    grid-column: 2;
    place-self: center;
}

.movie-fs {
    grid-column: 3;
    justify-self: end;
    align-self: end;
}

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

@media (hover: hover) and (pointer: fine) {
    .movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    }

    .movie-card:hover .movie-media video {
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.03);
    }
}

.movie-control .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: var(--fw-strong);
    letter-spacing: 0.01em;
}

.movie-fs .pill {
    min-width: 118px;
    justify-content: center;
}

.movie-card.is-playing .movie-play {
    opacity: 0;
    pointer-events: none;
}

.movie-card.is-fullscreen .movie-fs .pill span[aria-hidden="true"] {
    letter-spacing: -0.08em;
}

/* Minimal, consistent native controls (only shown in fullscreen on most browsers) */
video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.35);
}

video::-webkit-media-controls-play-button {
    filter: brightness(1.05);
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-volume-slider {
    color: white;
}

.movie-body {
    padding: 16px 16px 18px;
    display: grid;
    gap: 10px;
}

.movie-title {
    margin: 0;
    color: white;
    font-size: 1.22rem;
    letter-spacing: 0.01em;
}

.movie-desc {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.5;
}

/* ===== About / Join backgrounds ===== */
.bg-about,
.bg-bits,
.bg-join,
.bg-highlights,
.bg-team,
.bg-contact {
    width: 100%;
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    border: 0px solid rgba(255, 255, 255, 0.08);
    color: var(--fg);
}

.bg-join {
    background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(129, 172, 166, 0.34), rgba(129, 172, 166, 0.12) 45%, rgba(10, 14, 18, 0.92));
    border: 1px solid rgba(179, 202, 199, 0.18);
}

.section-inner {
    padding: clamp(22px, 4.5vw, 56px);
    display: grid;
    gap: 22px;
}

.waitlist-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
}

.waitlist-copy {
    display: grid;
    gap: 16px;
}

.waitlist-copy .Title,
.waitlist-copy .Text,
.waitlist-copy .TextSmall {
    margin: 0;
}

.waitlist-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(12, 16, 23, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    letter-spacing: 0.02em;
}

.waitlist-form-card {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    background: rgba(11, 15, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.waitlist-form {
    display: grid;
    gap: 16px;
}

.waitlist-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.waitlist-field,
.waitlist-field-full {
    display: grid;
    gap: 8px;
}

.waitlist-field-full {
    grid-column: 1 / -1;
}

.waitlist-label {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

.waitlist-required {
    color: #ff7a7a;
    margin-right: 0.28rem;
    font-weight: 700;
}

.waitlist-input,
.waitlist-textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
    padding: 0.9rem 1rem;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.waitlist-input::placeholder,
.waitlist-textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.waitlist-input:focus,
.waitlist-textarea:focus {
    outline: none;
    border-color: rgba(179, 202, 199, 0.54);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 3px rgba(129, 172, 166, 0.16);
}

.waitlist-textarea {
    min-height: 150px;
    resize: vertical;
}

.waitlist-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.waitlist-submit {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    background: linear-gradient(135deg, rgba(179, 202, 199, 0.96), rgba(129, 172, 166, 0.96));
    color: rgb(14, 18, 22);
    font: inherit;
    font-weight: var(--fw-strong);
    cursor: pointer;
    box-shadow: 0 5px 34px rgba(129, 172, 166, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.waitlist-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 38px rgba(129, 172, 166, 0.28);
}

.waitlist-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.waitlist-status {
    min-height: 1.5em;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.waitlist-status.is-success {
    color: rgb(205, 255, 232);
}

.waitlist-status.is-error {
    color: rgb(255, 203, 203);
}

.waitlist-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.waitlist-hint {
    margin: -4px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

/* Bits cards */
.bits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.6vw, 24px);
    align-items: stretch;
}

.bits-card {
    background: var(--card);
    border: var(--border_thickness) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    display: grid;
    gap: 12px;
    align-content: start;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.bits-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.bits-card h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
    text-align: left;
}

.bits-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-align: left;
}

.bits-body {
    display: grid;
    gap: 12px;
    text-align: left;
    color: var(--fg);
    line-height: 1.7;
}

.bits-body>* {
    margin: 0;
}

.bits-body ul,
.bits-body ol {
    margin: 0;
    padding-left: 1.3rem;
}

.bits-body li+li {
    margin-top: 6px;
}

.bits-body a {
    overflow-wrap: anywhere;
}

.bits-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.bits-media figure {
    margin: 0;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bits-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    cursor: zoom-in;
}

.bits-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0.75em 1em;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--fg);
    transition: background 0.2s ease, transform 0.2s ease;
}

.bits-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    transform: translateY(-1px);
}

.bits-card.is-state-card {
    place-items: start;
    min-height: 160px;
}

.bits-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 40px);
    background: rgba(4, 8, 16, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.bits-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bits-lightbox-dialog {
    position: relative;
    width: min(100%, 1120px);
    max-height: 100%;
    display: grid;
    gap: 12px;
}

.bits-lightbox-surface {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(10, 16, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.bits-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    margin: 0 auto;
    object-fit: contain;
}

.bits-lightbox-caption {
    margin: 0;
    padding: 14px 18px 18px;
    color: var(--muted);
    text-align: left;
    line-height: 1.5;
}

.bits-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 2px 5px;
    background: rgba(6, 10, 18, 0.9);
    color: white;
    cursor: pointer;
    font: inherit;
    line-height: 0.75;
    font-size: 1.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.bits-lightbox-open {
    overflow: hidden;
}


/* About cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: clamp(16px, 2.6vw, 24px);
    align-items: stretch;
}

.about-card {
    background: var(--card);
    border: var(--border_thickness) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    display: grid;
    gap: 12px;
    align-content: start;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    }
}

.about-card h3 {
    margin: 0;
    color: white;
    font-weight: var(--fw-strong);
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.about-card p,
.technology-card p {
    margin: 0;
    color: white;
    font-size: clamp(1.0rem, 2.0vw, 1.25rem);
    line-height: 1.5;
}

.about-card-cofounders {
    background-image: url("/images/co_founders.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    background-blend-mode: darken;
}

.about-card-cofounders p {
    width: 60%;
}

.technology-card .Title {
    margin: 0;
    padding: 0;
    line-height: 0.85;
    text-align: center;
    font-size: 10rem;
    font-weight: 150;
}

.technology-card .Title,
.technology-card p,
.technology-card figure {
    margin-top: clamp(48px, 8vw, 112px);
}

.technology-top-text p {
    font-size: 2rem;
    padding: 0 5rem;
}

.technology-card {
    display: grid;
    gap: clamp(28px, 4vw, 44px);
}

.technology-figure {
    margin: 0;
    text-align: center;
    background-blend-mode: darken;
    mix-blend-mode: lighten;
    opacity: 0.95;
}

.technology-figure img {
    display: block;
    width: min(100%, 1100px);
    height: auto;
    margin: 0 auto;
}

.technology-copy {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.technology-copy>.technology-title {
    grid-column: 1;
    grid-row: 1;
}

.technology-copy>.technology-text {
    grid-column: 2 / 4;
    grid-row: 1;
}

.technology-copy--reverse>.technology-title {
    grid-column: 3;
}

.technology-copy--reverse>.technology-text {
    grid-column: 1 / 3;
}

.technology-copy--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100rem;
    text-align: center;
}

.technology-copy--single>.technology-title,
.technology-copy--single>.technology-text {
    grid-column: 1;
}

.technology-text {
    display: grid;
    gap: 1.2rem;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: -16px;
    width: 100%;
    margin-top: 12px;

    position: relative;
    isolation: isolate;
}

.partner-logos img {
    max-width: 160px;
    height: auto;
    opacity: 0.95;
    margin: 16px;
    mix-blend-mode: screen;
    transition: filter 180ms ease, opacity 180ms ease, mix-blend-mode 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .partner-logos img:hover {
    /* Approximate the site accent color (#81aca6) for raster logo assets. */
    filter: brightness(0) saturate(100%) invert(71%) sepia(12%) saturate(483%) hue-rotate(124deg) brightness(91%) contrast(88%);
    opacity: 1;
    mix-blend-mode: normal;
    }
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: clamp(14px, 2.8vw, 22px);
    margin-top: 6px;
}

.team-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;

    display: grid;
    gap: 18px;
    align-items: center;
    background: var(--card);
    border: var(--border_thickness) solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
    }
}

.ImageBox {
    width: 240px;
    height: 240px;
    overflow: hidden;
    /* ensures circular crop */
    margin: 0;
    flex-shrink: 0;
    padding: 10px;
}

.ImageBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* defensive: keep circle even if wrapper changes */
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 6px;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===== Mobile tweaks ===== */
@media (max-width: 1000px) {
    :root {
    --header-h: 96px;
    }

    .header-inner {
    align-items: center;
    padding: 10px 14px;
    }

    #logo {
    height: calc(var(--header-h) + 18px);
    max-width: min(360px, 74vw);
    margin: -18px 0 -18px 0;
    margin-left: 14px;
    object-position: center 58%;
    transform: translate(5px, 4px);
    }

    #motto {
    display: none;
    }

    .nav-toggle {
    display: inline-flex;
    }

    nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-header.nav-open nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    }

    nav ul {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    }

    nav a {
    width: 100%;
    justify-content: flex-start;
    }

    nav li.special-button {
    padding-left: 0;
    }


    .team-card,
    .bits-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    }

    .contact-grid,
    .bits-grid,
    .waitlist-shell,
    .waitlist-form-grid {
    grid-template-columns: 1fr;
    }

    .bg-about,
    .bg-bits,
    .bg-join,
    .bg-contact {
    background-size: cover;
    }

    .about-card-cofounders {
    background-position: center;
    }

    .about-card-cofounders p {
    width: 100%;
    }

}

.contact-grid {
    grid-template-columns: 1fr;
}

.bg-about,
.bg-bits,
.bg-join,
.bg-contact {
    background-size: cover;
}

@media (max-width: 420px) {

    .home-map-section,
    .home-map-scroll {
    min-height: calc(290svh + var(--header-h));
    }

    .home-map-field {
    --field-size: min(88vw, 58vh);
    }

    .constellation-label {
    font-size: 0.78rem;
    padding: 0.42rem 0.68rem;
    }

    .movie-body {
    padding: 14px;
    }

    .movie-grid {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-map-layout {
    grid-template-columns: 1fr;
    align-content: center;
    }

    .home-map-copy {
    max-width: none;
    }

    .home-map-field {
    --field-size: min(86vw, 54vh);
    justify-self: center;
    }

    .technology-copy {
    grid-template-columns: 1fr;
    }

    .technology-top-text p {
    font-size: 1.2rem;
    padding: 0;
    }

    .technology-card .Title {
    font-size: 2rem;
    line-height: 1;
    }
}
