/* === FONTS === */

/* GT Super Display — serif/display headings */
@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GT-Super-Display-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GT-Super-Display-Light-Italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GT-Super-Display-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GT-Super-Display-Regular-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GT-Super-Display-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Super Display';
    src: url('fonts/GT-Super-Display-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* GT Era Display — sans-serif body */
@font-face {
    font-family: 'GT Era Display';
    src: url('fonts/GT-Era-Display-Light-Trial.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Era Display';
    src: url('fonts/GT-Era-Display-Regular-Trial.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Era Display';
    src: url('fonts/GT-Era-Display-Medium-Trial.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Era Display';
    src: url('fonts/GT-Era-Display-Bold-Trial.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: rgb(9, 50, 236);
    --cream: #f5f0e8;
    --dark: #1a1a1a;
    --white: #ffffff;
    --white-60: rgba(255, 255, 255, 0.6);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);
    --font-serif: 'GT Era Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'GT Era Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--blue);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === BACKGROUND BLOBS === */
.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--white-05);
    filter: blur(60px);
}

.blob-1 {
    width: 320px;
    height: 320px;
    top: -160px;
    right: -160px;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 240px;
    height: 240px;
    top: 33%;
    left: -80px;
    animation: float-slow 8s ease-in-out infinite;
    animation-delay: 2s;
}

.blob-3 {
    width: 288px;
    height: 288px;
    bottom: -80px;
    right: 25%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* === HEADER === */
header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.logo-img {
    height: 18px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.btn-outline {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--white-40);
    border-radius: 9999px;
    transition: border-color 0.3s;
}

.btn-outline:hover {
    border-color: var(--white);
}

/* === HERO === */
.hero {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.01em;
    animation: fade-in 1s ease-out;
}

.hero-title em {
    font-style: italic;
}

.hero-subtitle {
    margin-top: 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--white-60);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.link-underline {
    background: none;
    border: none;
    color: var(--white-60);
    font-family: var(--font-sans);
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.3s;
}

.link-underline:hover {
    color: var(--white);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === BUILDERS SECTION (interactive) === */
.builders-section {
    position: relative;
    z-index: 10;
    background: var(--cream);
    color: var(--dark);
    padding: 80px 24px 40px;
}

.builders-header {
    text-align: center;
    margin-bottom: 40px;
}

.builders-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 28px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.builders-but {
    font-style: italic;
    font-weight: 400;
    opacity: 0.5;
}

.builders-canvas-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

#builders-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    border-radius: 16px;
}

.builders-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(0, 0, 0, 0.3);
    transition: opacity 0.6s;
    pointer-events: none;
}

.builders-hint.hidden {
    opacity: 0;
}

/* === STORY SECTION === */
.story {
    position: relative;
    z-index: 10;
    padding: 80px 32px 80px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.story-line {
    transition: opacity 0.4s ease;
}

.story-line em {
    font-style: italic;
}

.story-line.faded {
    opacity: 0.2;
}

.story-line.visible {
    opacity: 1;
}

/* === GALLERY / MEMBERS === */
.gallery {
    position: relative;
    z-index: 10;
    padding: 48px 0;
    overflow: hidden;
}

.gallery-marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 16px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.member-card {
    flex-shrink: 0;
    width: 200px;
}

.member-card img {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.member-card:hover img {
    transform: scale(1.03);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === WAITING LIST === */
.waiting-list {
    position: relative;
    z-index: 10;
    padding: 120px 24px;
    text-align: center;
}

.wl-content {
    max-width: 500px;
    margin: 0 auto;
}

.wl-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-60);
    margin-bottom: 24px;
}

.waiting-list h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.waiting-list p {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--white-60);
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--blue);
    background: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 9999px;
    transition: opacity 0.3s, transform 0.3s;
}

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

/* === FOOTER === */
footer {
    position: relative;
    z-index: 10;
    background: #0a0a0a;
    padding: 0;
    overflow: hidden;
}

.footer-logo-wrap {
    padding: 60px 24px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-link {
    text-decoration: none;
    display: block;
}

.footer-logo-img {
    width: 70%;
    max-width: 900px;
    height: auto;
    opacity: 0.08;
    transition: opacity 0.4s;
    display: block;
    margin: 0 auto;
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 0.15;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 24px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* === RESPONSIVE === */
.mobile-only { display: block; }
.desktop-only { display: none; }

.hero-title {
    font-size: 36px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .mobile-only { display: none; }
    .desktop-only { display: block; }

    header {
        padding: 24px 40px;
    }

    .logo-img {
        height: 22px;
    }

    .nav-link,
    .btn-outline {
        font-size: 16px;
    }

    nav {
        gap: 24px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 1.15;
    }

    .hero-subtitle {
        margin-top: 32px;
        font-size: 16px;
    }

    .builders-title {
        font-size: 40px;
    }

    .builders-section {
        padding: 100px 40px 60px;
    }

    .story {
        padding: 128px 64px 128px;
    }

    .story-text {
        font-size: 32px;
    }

    .member-card {
        width: 240px;
    }

    .member-card img {
        width: 240px;
        height: 320px;
    }

    .waiting-list h2 {
        font-size: 48px;
    }

    .waiting-list p {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }

    .builders-title {
        font-size: 52px;
    }

    .builders-section {
        padding: 120px 64px 80px;
    }

    .story {
        padding: 160px 96px;
    }

    .story-text {
        font-size: 40px;
    }

    .waiting-list {
        padding: 160px 24px;
    }

    .waiting-list h2 {
        font-size: 56px;
    }
}

/* nav button span display */
.nav-link .mobile-only { display: inline; }
.nav-link .desktop-only { display: none; }

@media (min-width: 768px) {
    .nav-link .mobile-only { display: none; }
    .nav-link .desktop-only { display: inline; }
}
