/* =============================================
   STRANGE COUNTRY — Ghost Theme
   A Field Guide to Antipodean Horror
   ============================================= */

/* --- VARIABLES --- */
:root {
    --black:        #0a0a0a;
    --dark:         #111111;
    --dark-mid:     #1a1a1a;
    --dark-surface: #222222;
    --border:       #2a2a2a;
    --cream:        #e8dfc8;
    --cream-dim:    #b8ad98;
    --red:          #8b1a1a;
    --red-bright:   #a02020;
    --gold:         #8a7450;
    --white:        #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, sans-serif;
    --max-width:    1200px;
    --nav-height:   72px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
}

/* --- LAYOUT --- */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.view-all {
    font-size: 0.85rem;
    color: var(--cream-dim);
    transition: color 0.2s;
}
.view-all:hover { color: var(--cream); }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--red);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); }

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(232,223,200,0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--cream); background: rgba(232,223,200,0.05); }

/* --- NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: transparent;
    transition: background 0.3s;
}

.site-header.scrolled {
    background: rgba(10,10,10,0.97);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-home {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.nav-logo {
    height: 28px;
    width: auto;
    display: block;
}

.nav-left a, .nav-right a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cream-dim);
    transition: color 0.2s;
}
.nav-left a:hover, .nav-right a:hover { color: var(--cream); }

.nav-btn {
    padding: 0.5rem 1.2rem !important;
    border: 1px solid var(--red) !important;
    border-radius: 6px !important;
    color: var(--cream) !important;
    transition: background 0.2s !important;
}
.nav-btn:hover { background: var(--red) !important; }

.site-logo {
    height: 44px;
    width: auto;
    display: block;
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.3) 0%,
        rgba(10,10,10,0.2) 40%,
        rgba(10,10,10,0.7) 80%,
        rgba(10,10,10,1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.hero-logo {
    width: min(500px, 85vw);
    margin: 0 auto;
    margin-top: calc(15vh - 60px);
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
}

.hero-tagline {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: absolute;
    bottom: 12vh;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-dim);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- LATEST EPISODE --- */
.latest-episode {
    padding: 6rem 0;
    background: var(--dark);
}

.latest-ep-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.latest-ep-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.ep-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-bright);
    display: block;
    margin-bottom: 1rem;
}

.latest-ep-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 1.2rem;
}

.latest-ep-title a { color: var(--cream); transition: color 0.2s; }
.latest-ep-title a:hover { color: var(--white); }

.latest-ep-excerpt {
    color: var(--cream-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- EPISODES GRID --- */
.episodes-section {
    padding: 6rem 0;
    background: var(--black);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ep-card {
    background: var(--dark-surface);
    transition: transform 0.2s;
}
.ep-card:hover { transform: translateY(-4px); }

.ep-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.ep-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.ep-card:hover .ep-card-image img { transform: scale(1.04); }

.ep-card-body {
    padding: 1.2rem;
}

.ep-number {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-bright);
    display: block;
    margin-bottom: 0.5rem;
}

.ep-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.ep-card-title a { color: var(--cream); transition: color 0.2s; }
.ep-card-title a:hover { color: var(--white); }

.ep-card-excerpt {
    font-size: 0.85rem;
    color: var(--cream-dim);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.ep-card-meta time {
    font-size: 0.75rem;
    color: var(--gold);
}

/* --- DATABASE PROMO --- */
.database-promo {
    background: var(--black);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vault-promo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 520px;
}

.vault-promo-image {
    line-height: 0;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.vault-promo-content {
    padding: 5rem 5rem 5rem 4rem;
}

.vault-promo-content .section-label {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-display);
}

.vault-promo-content h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.vault-promo-content p {
    font-size: 1rem;
    color: var(--cream-dim);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    max-width: 480px;
}

.vault-promo-content .btn-primary {
    margin-top: 0.75rem;
    display: inline-block;
}

/* --- FILMMAKER SUBMISSION --- */
.filmmaker-section {
    background: var(--black);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.filmmaker-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 480px;
    max-width: 1200px;
    margin: 0 auto;
}

.filmmaker-content {
    padding: 5rem 5rem 5rem 4rem;
}

.filmmaker-content .section-label {
    margin-bottom: 1.5rem;
}

.filmmaker-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.filmmaker-content p {
    font-size: 1rem;
    color: var(--cream-dim);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 480px;
}

.filmmaker-content .btn-primary {
    margin-top: 0.75rem;
    display: inline-block;
}

/* STATS PANEL — full bleed like vault image */
.filmmaker-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--dark);
    border-left: 1px solid var(--border);
    padding: 4rem 5rem;
}

.filmmaker-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fstat {
    padding: 1.75rem 0;
    border-bottom: 0.5px solid rgba(232,223,200,0.08);
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.fstat:first-child { padding-top: 0; }
.fstat:last-child { border-bottom: none; padding-bottom: 0; }

.fstat-num {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1;
    flex-shrink: 0;
    min-width: 7rem;
}

.fstat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-dim);
    line-height: 1.6;
}

.fstat-divider { display: none; }

.filmmaker-note {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 0.5px solid rgba(232,223,200,0.08);
    font-size: 0.75rem;
    color: rgba(232,223,200,0.35);
    line-height: 1.75;
    letter-spacing: 0.3px;
}

/* --- EMAIL SIGNUP --- */
.signup-section {
    padding: 6rem 0;
    background: var(--black);
}

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

.signup-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.8rem;
}

.signup-content > p {
    color: var(--cream-dim);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.signup-form, .footer-form {
    display: flex;
    gap: 0;
    max-width: 440px;
    margin: 0 auto 0.75rem;
}

.signup-form input, .footer-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}
.signup-form input:focus, .footer-form input:focus {
    border-color: var(--red);
}
.signup-form input::placeholder, .footer-form input::placeholder {
    color: var(--cream-dim);
    opacity: 0.5;
}

.signup-form button, .footer-form button {
    padding: 0.8rem 1.5rem;
    background: var(--red);
    color: var(--cream);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.signup-form button:hover, .footer-form button:hover { background: var(--red-bright); }

.signup-note {
    font-size: 0.75rem;
    color: var(--cream-dim);
    opacity: 0.5;
}

.success-message {
    padding: 1rem;
    background: rgba(139,26,26,0.2);
    border: 1px solid var(--red);
    color: var(--cream);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* --- POSTS GRID --- */
.posts-section {
    padding: 5rem 0;
    background: var(--dark);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card { background: var(--dark-surface); }

.post-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body { padding: 1.2rem; }

.post-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-bright);
    display: block;
    margin-bottom: 0.5rem;
}

.post-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.post-card-title a { color: var(--cream); transition: color 0.2s; }
.post-card-title a:hover { color: var(--white); }

.post-card-body time {
    font-size: 0.75rem;
    color: var(--gold);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 0.75rem;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream);
}

.footer-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    opacity: 0.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--cream-dim);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-signup > p {
    font-size: 0.9rem;
    color: var(--cream-dim);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--cream-dim);
    opacity: 0.4;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a {
    font-size: 0.75rem;
    color: var(--cream-dim);
    opacity: 0.4;
    transition: opacity 0.2s;
}
.footer-bottom-links a:hover { opacity: 0.8; }

/* --- POST PAGE --- */
.post-main {
    padding-top: var(--nav-height);
}

.post-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.post-hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.3) 100%);
}

.post-header.no-image {
    min-height: auto;
    padding: 4rem 0 2rem;
    background: var(--dark);
}

.post-header-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 3rem;
    width: 100%;
}

.post-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    max-width: 800px;
}

.post-excerpt {
    font-size: 1.15rem;
    color: var(--cream-dim);
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--cream-dim);
    opacity: 0.6;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cream-dim);
}

.post-content h2 { font-size: 1.8rem; color: var(--cream); margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.4rem; color: var(--cream); margin: 2rem 0 0.75rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--white); }
.post-content blockquote {
    border-left: 3px solid var(--red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cream);
}
.post-content img { width: 100%; margin: 2rem 0; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.post-footer { max-width: 720px; margin: 0 auto; padding: 0 2rem 4rem; }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag-pill {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--cream-dim);
    transition: border-color 0.2s, color 0.2s;
}
.tag-pill:hover { border-color: var(--red); color: var(--cream); }

.post-nav { background: var(--dark); padding: 3rem 0; border-top: 1px solid var(--border); }
.post-nav .section-inner { display: flex; gap: 2rem; }
.post-nav-card {
    flex: 1;
    padding: 1.5rem;
    background: var(--dark-surface);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background 0.2s;
}
.post-nav-card:hover { background: var(--border); }
.nav-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-bright); }
.nav-title { font-family: var(--font-display); font-size: 1rem; color: var(--cream); }

/* --- PAGE --- */
.page-main { padding-top: var(--nav-height); }
.page-hero-image { margin-bottom: 3rem; }
.page-header { padding: 5rem 0 2rem; background: var(--dark); border-bottom: 1px solid var(--border); }
.page-title { font-size: clamp(2rem, 4vw, 3rem); }
.page-excerpt { font-size: 1.1rem; color: var(--cream-dim); margin-top: 1rem; }
.page-content { padding: 2rem 2rem 4rem; font-size: 1.05rem; line-height: 1.8; color: var(--cream-dim); }

.page-content p { margin-bottom: 1.5rem; }

.page-content .kg-image-card { margin: 3rem auto; }
.page-content .kg-image-card img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.page-content .kg-width-normal .kg-image { max-width: 600px; margin: 0 auto; }
.page-content .kg-width-wide .kg-image { max-width: 900px; margin: 0 auto; }
.gh-content img { max-width: 100%; height: auto; }

/* --- ARCHIVE --- */
.archive-main { padding-top: var(--nav-height); }
.archive-header { padding: 5rem 0 2rem; background: var(--dark); border-bottom: 1px solid var(--border); }
.archive-desc { font-size: 1rem; color: var(--cream-dim); margin-top: 0.5rem; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .latest-ep-card { grid-template-columns: 1fr; gap: 2rem; }
    .episodes-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .vault-promo-inner { grid-template-columns: 1fr; }
    .vault-promo-image { max-height: 340px; overflow: hidden; }
    .vault-promo-content { padding: 3rem 2rem; }
    .filmmaker-inner { grid-template-columns: 1fr; }
    .filmmaker-content { padding: 3rem 2rem; }
    .filmmaker-aside { border-left: none; border-top: 1px solid var(--border); padding: 3rem 2rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .nav-left { display: none; }
    .nav-right { gap: 1rem; }
    .episodes-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .signup-form, .footer-form { flex-direction: column; }
    .signup-form input, .footer-form input { border-right: 1px solid var(--border); border-bottom: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .post-nav .section-inner { flex-direction: column; }
}

/* --- COMMUNITY PAGE --- */
.community-main { padding-top: var(--nav-height); }

.community-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(139,26,26,0.15) 0%, transparent 60%);
    border-bottom: 1px solid var(--border);
}
.community-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 1.5rem;
}
.community-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.community-subtitle {
    font-size: 1.15rem;
    color: var(--cream-dim);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.community-launch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--border);
    padding: 1rem 2.5rem;
    background: var(--dark-surface);
}
.launch-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dim);
    font-family: var(--font-body);
}
.launch-date {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cream);
}

.community-what {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.community-card {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    padding: 2rem;
}
.community-card-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.community-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 0.75rem;
}
.community-card p {
    font-size: 0.95rem;
    color: var(--cream-dim);
    line-height: 1.6;
}

.community-signup {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.community-signup-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 0.75rem;
}
.community-signup-inner > p {
    color: var(--cream-dim);
    margin-bottom: 2rem;
}
.community-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 1rem;
}
.community-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}
.community-form input[type="email"]::placeholder { color: var(--cream-dim); }
.community-form input[type="email"]:focus { border-color: var(--gold); }
.community-form .btn-primary { border-radius: 0; white-space: nowrap; }
.form-note {
    font-size: 0.8rem;
    color: var(--cream-dim);
    opacity: 0.7;
}

.community-countdown {
    padding: 4rem 0;
    text-align: center;
}
.countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.countdown-item span:first-child {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--cream);
    line-height: 1;
}
.cd-label {
    font-size: 0.65rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    font-family: var(--font-body);
    margin-top: 0.4rem;
}
.countdown-sep {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--red);
    line-height: 1;
    padding-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .community-grid { grid-template-columns: 1fr; }
    .community-form { flex-direction: column; }
    .community-form input[type="email"] { border-right: 1px solid var(--border); border-bottom: none; }
    .countdown-wrap { gap: 0.5rem; }
    .countdown-item { min-width: 60px; }
}

/* --- GHOST PORTAL OVERRIDES --- */
.gh-portal-triggerbtn { display: none !important; }

/* --- JOIN MODAL --- */
.join-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.join-modal.is-open {
    display: flex;
}
.join-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
.join-modal-box {
    position: relative;
    z-index: 1;
    background: var(--dark-mid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    margin: 1rem;
    text-align: center;
}
.join-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--cream-dim);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.join-modal-close:hover { color: var(--cream); }
.join-modal-logo {
    width: 336px;
    height: 336px;
    object-fit: contain;
    margin: 0 auto 1.2rem;
    border-radius: 16px;
}
.join-modal-title {
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 0.6rem;
}
.join-modal-subtitle {
    font-size: 0.95rem;
    color: var(--cream-dim);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.join-modal-tier {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.join-modal-tier-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--red-bright);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}
.join-modal-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.join-modal-perks li {
    font-size: 0.88rem;
    color: var(--cream-dim);
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.join-modal-perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-bright);
    font-size: 0.8rem;
}
.join-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.join-modal-form input[type="email"] {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s;
}
.join-modal-form input[type="email"]:focus {
    outline: none;
    border-color: var(--red);
}
.join-modal-form input[type="email"]::placeholder { color: var(--cream-dim); opacity: 0.6; }
.join-modal-form button[type="submit"] {
    background: var(--red);
    border: none;
    border-radius: 3px;
    color: var(--cream);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.8rem 1rem;
    text-transform: uppercase;
    transition: background 0.2s;
    width: 100%;
}
.join-modal-form button[type="submit"]:hover { background: var(--red-bright); }
.join-modal-success {
    color: var(--cream);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}
.join-modal-note {
    font-size: 0.8rem;
    color: var(--cream-dim);
    opacity: 0.7;
    margin-bottom: 0.8rem;
}
.join-modal-signin {
    font-size: 0.85rem;
    color: var(--cream-dim);
}
.join-modal-signin a {
    color: var(--red-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.join-modal-signin a:hover { color: var(--cream); }

/* --- REQUIRED GHOST CLASSES --- */
.kg-width-wide {
    margin-left: calc(50% - min(45vw, 680px));
    margin-right: calc(50% - min(45vw, 680px));
    width: auto;
    max-width: min(90vw, 1360px);
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.kg-image { max-width: 100%; }
.kg-image-card { margin: 2rem 0; }
.kg-image-card img { margin: 0 auto; }
.kg-gallery-container { display: flex; flex-direction: column; max-width: 1040px; width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; margin: 2rem 0; }
.kg-embed-card iframe { max-width: 100%; }
.kg-bookmark-card { background: var(--dark-surface); border: 1px solid var(--border); margin: 2rem 0; }
.kg-bookmark-container { display: flex; color: var(--cream); text-decoration: none; }
.kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-weight: 600; margin-bottom: 0.25rem; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--cream-dim); }
.kg-bookmark-thumbnail img { width: 140px; object-fit: cover; }
.kg-callout-card { display: flex; gap: 1rem; padding: 1.5rem; background: var(--dark-surface); border-left: 3px solid var(--red); margin: 2rem 0; }
.kg-toggle-card { border: 1px solid var(--border); margin: 2rem 0; }
.kg-toggle-heading { padding: 1rem; cursor: pointer; }
.kg-toggle-content { padding: 0 1rem 1rem; }
.kg-video-card { margin: 2rem 0; }
.kg-video-card video { width: 100%; }
.kg-audio-card { background: var(--dark-surface); border: 1px solid var(--border); padding: 1rem; margin: 2rem 0; display: flex; align-items: center; gap: 1rem; }
.kg-product-card { border: 1px solid var(--border); padding: 1.5rem; margin: 2rem 0; }
.kg-header-card { padding: 4rem 2rem; text-align: center; background: var(--dark-surface); margin: 2rem 0; }
.kg-header-card h2 { font-size: 2rem; margin-bottom: 1rem; }
.kg-file-card { border: 1px solid var(--border); padding: 1rem; margin: 2rem 0; display: flex; align-items: center; gap: 1rem; }
.kg-button-card { margin: 2rem 0; text-align: center; }
.kg-button-card a { display: inline-block; padding: 0.75rem 2rem; background: var(--red); color: var(--cream); font-weight: 600; }
