/* ==========================================================
   Vanta Chamber Interactive — shared styles
   A monochrome, light-absorbing palette taken from the logo:
   vanta black, bone white and the greys of the chamber walls.
   ========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void: #050505;
    --surface: #0b0b0b;
    --surface-raised: #111110;
    --line: rgba(237, 236, 230, 0.08);
    --line-strong: rgba(237, 236, 230, 0.18);
    --text: #edece6;
    --text-muted: #8c8b85;
    --text-dim: #5a5954;
    --light: rgba(237, 236, 230, 0.07);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-height: 4.5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

::selection {
    background: var(--text);
    color: var(--void);
}

:focus-visible {
    outline: 1px solid var(--text);
    outline-offset: 4px;
}

/* Film grain — keeps the black from feeling flat */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(5, 5, 5, 0.82);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand img {
    width: auto;
    height: 28px;
}

.brand span {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav a {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.4rem 0;
    transition: color 0.3s var(--ease);
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0.28em;
    bottom: 0;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------- Typography helpers ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.eyebrow::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: var(--line-strong);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-heading em {
    font-style: normal;
    color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 1.9rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn:hover {
    border-color: rgba(237, 236, 230, 0.55);
    background: rgba(237, 236, 230, 0.04);
}

.btn-primary {
    background: var(--text);
    border-color: var(--text);
    color: var(--void);
}

.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 48px rgba(237, 236, 230, 0.18);
}

.btn-disabled,
.btn-disabled:hover {
    color: var(--text-dim);
    border-color: var(--line);
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.tag {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--line-strong);
    color: var(--text-muted);
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(6rem, 14vw, 10rem) 0;
    border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
    transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    :root {
        --header-height: 4rem;
    }

    .brand span {
        display: none;
    }

    .nav {
        gap: 1.25rem;
    }

    .nav a {
        font-size: 0.68rem;
        letter-spacing: 0.2em;
    }

    .btn {
        width: 100%;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
