/* ── Reset & variables ───────────────────────────────── */

* {
    box-sizing: border-box;
}

:root {
    --color-bg: #000;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.68);
    --font-body: Helvetica, Arial, sans-serif;
    --font-display: HelveticaNeue, serif;
    --nav-pad-v: 22px;
    --nav-pad-h: 28px;
    --nav-font-size: 18px;
    --nav-letter-spacing: 2px;
    --nav-line-height: 1.9;
    --footer-font-size: 13px;
    --footer-letter-spacing: 1.5px;
    --content-max: 760px;
    --prose-max: 42rem;
    --content-pad-v: 140px;
    --content-pad-h: 32px;
    --content-pad-bottom: 80px;
}

/* ── Base ────────────────────────────────────────────── */
html {
    background-color: #000;
}
body {
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    background: transparent;
    transition: background-color 0.3s ease;
}

body.content-mode {
    background: var(--color-bg);
}

body.nav-open {
    overflow: hidden;
}

/* ── Vanta background ────────────────────────────────── */

#vanta-bg {
    position: fixed;
    z-index: -1;
    inset: 0;
    min-height: 100lvh;
    width: 100vw;
    transition: opacity 0.3s ease;
}

#vanta-bg.is-hidden {
    opacity: 0;
}

#vanta-bg,
#vanta-bg canvas {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

/* ── Navigation ──────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--nav-pad-v) var(--nav-pad-h);
    font-size: var(--nav-font-size);
    letter-spacing: var(--nav-letter-spacing);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-item-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nav-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s ease;
}

.nav-item-right a::after {
    left: auto;
    right: 0;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    font-weight: bold;
}

/* ── Hamburger button ────────────────────────────────── */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    position: relative;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--color-text);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile nav overlay ──────────────────────────────── */

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 90;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    list-style: none;
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 3px;
    font-family: var(--font-body);
    padding: 14px 0;
    text-align: center;
    transition: opacity 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    text-decoration: underline;
}

.mobile-nav-links a.active {
    font-weight: bold;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px var(--nav-pad-h);
    font-size: var(--footer-font-size);
    letter-spacing: var(--footer-letter-spacing);
    z-index: 10;
    text-align: center;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* ── Main ────────────────────────────────────────────── */

.main {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.main-inner {
    width: 100%;
    text-align: center;
}

.main h1,
.main h2 {
    position: relative;
    z-index: 2;
    letter-spacing: 10px;
    font-family: var(--font-display);
    font-weight: bold;
}

.main h1 {
    font-size: 8vw;
    line-height: 0.71;
}

.main h2 {
    font-size: 4vw;
}

#main-content {
    scrollbar-width: none;
    width: 100%;
    transition: opacity 0.2s ease;
}

#main-content::-webkit-scrollbar {
    display: none;
}

#main-content.is-fading {
    opacity: 0;
}

/* ── Home ────────────────────────────────────────────── */

.home-main {
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--content-pad-v) var(--content-pad-h) var(--content-pad-bottom);
}

.home-logo {
    display: block;
    width: min(880px, 90%);
    height: auto;
    filter: brightness(0) invert(1);
}

/* ── Page shell (content pages) ──────────────────────── */

.page-shell,
.content-block {
    width: min(var(--content-max), 100%);
    margin: 0 auto;
}

.page-shell {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--content-pad-v) var(--content-pad-h) var(--content-pad-bottom);
}

.content-kicker {
    margin: 0 0 16px;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.content-kicker-home {
    margin: 0;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--color-text-muted);
}

.content-lead,
.content-body {
    max-width: var(--prose-max);
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1.75;
}

.content-body + .content-body,
.content-lead {
    margin-top: 18px;
}

.policy-copy {
    align-self: flex-start;
    width: min(var(--prose-max), 100%);
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.page-shell h2 {
    margin: 0 0 20px;
    max-width: 12ch;
    line-height: 0.95;
}

.page-shell h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
}

.page-shell h4,
.page-shell h5 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--color-text);
}

.content-block-home h1,
.content-block-home .home-logo {
    margin: 0 auto;
}

.page-shell a,
.content-block a {
    color: var(--color-text);
}

.email-link {
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* ── Content list ────────────────────────────────────── */

.content-list {
    width: min(100%, var(--prose-max));
    margin: 0 auto;
    padding: 0;
    list-style: none;
    color: var(--color-text-muted);
    text-align: center;
}

.content-list li + li {
    margin-top: 14px;
}

.content-list a {
    display: inline-block;
    padding: 6px 0;
    letter-spacing: 1px;
    text-decoration: none;
}

.content-list a:hover {
    text-decoration: underline;
}

/* ── Table ───────────────────────────────────────────── */

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 18px;
}

th,
td {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

th {
    color: var(--color-text);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Divider ─────────────────────────────────────────── */

.section-divider {
    width: min(100%, var(--prose-max));
    height: 1px;
    margin: 36px auto 30px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.55), rgba(255,255,255,0));
}

/* ── Links in content ────────────────────────────────── */

.home-more-text a,
.contact-block a,
.side a {
    color: var(--color-text);
    text-decoration: none;
}

.release-big .icon {
    color: var(--color-text);
    text-decoration: none;
}

.icon:hover svg,
.release-big .icon:hover svg {
    color: var(--color-text);
    fill: var(--color-text);
}

/* ── Cookie consent ──────────────────────────────────── */

#cc-main {
    --cc-modal-border-radius: 0rem;
    --cc-btn-border-radius: 0rem;
    --cc-btn-primary-bg: #68b8d7;
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-hover-bg: #fff;
    --cc-btn-primary-hover-color: #000;
}

/* ── Tablet (≤900px) ─────────────────────────────────── */

@media (max-width: 900px) {
    :root {
        --nav-font-size: 14px;
        --nav-pad-h: 20px;
    }
}

/* ── Mobile (≤768px) ─────────────────────────────────── */

@media (max-width: 768px) {
    :root {
        --nav-pad-v: 18px;
        --nav-pad-h: 20px;
        --content-pad-v: 90px;
        --content-pad-h: 20px;
        --content-pad-bottom: 70px;
    }

    /* hide desktop nav columns, show hamburger */
    .nav-item-left,
    .nav-item-right {
        display: none;
    }

    .nav {
        align-items: center;
        justify-content: flex-end;
    }

    .nav-hamburger {
        display: flex;
    }

    /* show mobile overlay (starts hidden via opacity/pointer-events) */
    .mobile-nav {
        display: flex;
    }

    .main h1 {
        font-size: 14vw;
        letter-spacing: 5px;
    }

    .main h2 {
        font-size: 7vw;
    }

    .home-logo {
        width: min(480px, 88%);
    }

    .content-lead,
    .content-body {
        font-size: 16px;
        line-height: 1.7;
    }

    table {
        width: 100%;
        table-layout: fixed;
    }

    th,
    td {
        padding: 10px 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    td:first-child,
    th:first-child {
        width: 45%;
    }

    .footer {
        font-size: 11px;
        padding: 14px var(--nav-pad-h);
    }
}

/* ── Very small screens (≤400px) ─────────────────────── */

@media (max-width: 400px) {
    .mobile-nav-links a {
        font-size: 17px;
        padding: 12px 0;
    }

    .home-logo {
        width: 92%;
    }
}
