/* Updated: 2026-01-22 - Responsive breakpoints */
:root {
    --bg-dark: #0a0a0c;
    --text-white: #f5f5f7;
    --accent-gold: #c5a059;
    --accent-gold-bright: #e2c07d;
    --border-warm: rgba(197, 160, 89, 0.2);
    --flux-sepia: rgba(197, 160, 89, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.site-wrapper {
    position: relative;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4), var(--bg-dark)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 0.8s ease-out;
}

.hero:hover .hero-background {
    transform: scale(1);
}

/* Navigation */
.top-nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.studio-logo {
    letter-spacing: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0.6;
    color: var(--text-white);
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.studio-logo:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    margin-left: 3rem;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    padding-bottom: 6rem;
    z-index: 10;
}

.eyebrow {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.main-title {
    font-family: 'Crimson Pro', serif;
    font-size: 5.5rem;
    font-weight: 200;
    line-height: 0.95;
    margin-bottom: 2.5rem;
}

.main-title span.the,
.main-title span.of {
    font-size: 0.4em;
    vertical-align: middle;
    margin: 0 0.2em;
    font-style: italic;
    font-weight: 400;
}

/* Codex Page Styles */
.codex-page {
    background-color: var(--bg-dark);
}

.codex-content,
.chronicle-content,
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10rem 2rem;
}

.codex-header,
.chronicle-header {
    margin-bottom: 6rem;
}

.codex-title,
.chronicle-title {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

.codex-intro,
.chronicle-intro {
    font-size: 1.2rem;
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.8;
}

.codex-sections {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.codex-category {
    scroll-margin-top: 100px;
}

.category-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-warm);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0.8;
}

.category-title span {
    font-size: 0.8rem;
    border: 1px solid var(--accent-gold);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
}

.nav-links a.active {
    opacity: 1;
    color: var(--accent-gold);
}

.codex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.codex-record {
    border: 1px solid var(--border-warm);
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.codex-record:hover {
    border-color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.03);
    transform: translateY(-5px);
}

.record-header {
    margin-bottom: 2rem;
}

.record-id {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--accent-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.record-header h2,
.entry-header h2,
.about-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.3;
}

/* Modal Readability Enhancements */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.8;
}

.modal-body strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.modal-body ul {
    margin-bottom: 2rem;
    list-style: none;
}

.modal-body li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.modal-body h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--accent-gold);
}

.modal-body code {
    background: rgba(197, 160, 89, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Large screen optimization */
@media (min-width: 1201px) {
    /* Homepage hero */
    .main-title {
        font-size: 6.5rem;
    }

    .hero-content {
        max-width: 1100px;
    }

    .summary {
        font-size: 1.4rem;
        max-width: 700px;
    }

    .hero-tagline {
        font-size: 1.15rem;
        max-width: 650px;
    }

    /* Premise section */
    .premise-content {
        max-width: 1000px;
    }

    .premise-label {
        font-size: 1.4rem;
    }

    .premise-block p {
        font-size: 1.25rem;
    }

    /* All content pages - uniform sizing */
    .codex-content,
    .chronicle-content,
    .about-content {
        max-width: 1100px;
    }

    /* Codex page */
    .codex-grid {
        gap: 3rem;
    }

    .codex-title,
    .chronicle-title {
        font-size: 5rem;
    }

    .codex-intro,
    .chronicle-intro {
        font-size: 1.35rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .record-header h2,
    .entry-header h2,
    .about-section h2 {
        font-size: 2.8rem;
    }

    .record-body p,
    .entry-excerpt p,
    .about-section p {
        font-size: 1.25rem;
    }

    /* About page */
    .about-section .lead {
        font-size: 1.6rem;
    }

    /* Wing cards */
    .wings-grid {
        max-width: 1400px;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }
}

/* Extra large screen optimization */
@media (min-width: 1601px) {
    /* Homepage hero */
    .main-title {
        font-size: 7.5rem;
    }

    .hero-content {
        max-width: 1200px;
    }

    .summary {
        font-size: 1.5rem;
        max-width: 800px;
    }

    .hero-tagline {
        font-size: 1.25rem;
        max-width: 700px;
    }

    /* Premise section */
    .premise-content {
        max-width: 1100px;
    }

    .premise-label {
        font-size: 1.5rem;
    }

    .premise-block p {
        font-size: 1.35rem;
    }

    /* All content pages - uniform sizing */
    .codex-content,
    .chronicle-content,
    .about-content {
        max-width: 1300px;
    }

    /* Codex page */
    .codex-grid {
        gap: 3.5rem;
    }

    .codex-title,
    .chronicle-title {
        font-size: 6rem;
    }

    .codex-intro,
    .chronicle-intro {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .record-header h2,
    .entry-header h2,
    .about-section h2 {
        font-size: 3.2rem;
    }

    .record-body p,
    .entry-excerpt p,
    .about-section p {
        font-size: 1.35rem;
    }

    .about-section .lead {
        font-size: 1.75rem;
    }

    /* Wing cards */
    .wings-grid {
        max-width: 1500px;
    }

    .section-title {
        font-size: 4rem;
    }

    .section-subtitle {
        font-size: 1.35rem;
    }
}

@media (max-width: 900px) {
    .codex-grid {
        grid-template-columns: 1fr;
    }

    .codex-title,
    .chronicle-title {
        font-size: 3rem;
    }

    .category-title {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }

    .record-header h2,
    .entry-header h2,
    .about-section h2 {
        font-size: 1.8rem;
    }

    .record-body p,
    .entry-excerpt p,
    .about-section p {
        font-size: 1rem;
    }
}

.highlight {
    font-weight: 600;
    color: var(--accent-gold);
    text-shadow: 0 0 40px rgba(197, 160, 89, 0.2);
}

.summary {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn.primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    transition: all 0.4s ease;
}

.btn.primary:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.hint {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    opacity: 0.4;
    font-style: italic;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(5px);
    }
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.3rem;
    color: var(--accent-gold);
}

/* Chronicle Teaser Section */
.chronicle-teaser {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-warm);
}

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

.chronicle-teaser .section-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.chronicle-preview {
    border: 1px solid var(--border-warm);
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    transition: border-color 0.3s ease;
}

.chronicle-preview:hover {
    border-color: var(--accent-gold);
}

.preview-header {
    margin-bottom: 1.5rem;
}

.preview-header .entry-date {
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
    opacity: 0.4;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.preview-header h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 400;
}

.preview-excerpt {
    opacity: 0.6;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.chronicle-link {
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.chronicle-link:hover {
    border-color: var(--accent-gold);
    padding-left: 5px;
}

@media (max-width: 1100px) {
    .main-title {
        font-size: 4rem;
    }
}

@media (max-width: 900px) {
    .main-title {
        font-size: 3.5rem;
    }

    .top-nav {
        padding: 2rem;
    }

    .chronicle-preview {
        padding: 2rem;
    }

    .hero-content {
        padding-bottom: 7rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

/* Chronicle Page Styles */
.chronicle-page {
    background-color: var(--bg-dark);
}

/* Chronicle Month Filter */
.chronicle-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-warm);
}

.filter-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.5;
}

.month-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08rem;
    color: var(--accent-gold);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-warm);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    min-width: 220px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23c5a059' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color 0.3s, box-shadow 0.3s;
    border-radius: 0;
}

.month-select:hover,
.month-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
    outline: none;
}

.month-select option {
    background-color: #0a0a0c;
    color: #c5a059;
    padding: 0.5rem;
}

.entry-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-primary);
    opacity: 0.4;
    margin-left: auto;
}

@media (max-width: 600px) {
    .chronicle-filter {
        flex-wrap: wrap;
    }

    .month-select {
        flex: 1;
        min-width: 200px;
    }

    .entry-count {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-entry {
    border-left: 1px solid var(--border-warm);
    padding-left: 3rem;
    padding-bottom: 4rem;
    position: relative;
}

.blog-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-date {
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
    opacity: 0.4;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.entry-excerpt p {
    margin-bottom: 0.5rem;
}

.entry-excerpt .category-header {
    opacity: 0.9;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-excerpt .category-header:first-child {
    margin-top: 0;
}

.entry-excerpt .commit-list {
    margin: 0 0 0.5rem 1.5rem;
    padding: 0;
    opacity: 0.7;
    font-size: 1.1rem;
}

.entry-excerpt .commit-list li {
    margin-bottom: 0.3rem;
}

.read-more {
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.read-more:hover {
    border-color: var(--accent-gold);
    padding-left: 5px;
}

/* Wings Section */
.wings {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 12, 10, 1) 50%, var(--bg-dark) 100%);
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.5;
    margin-bottom: 4rem;
    font-weight: 300;
}

.wings-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.wing-card {
    border: 1px solid var(--border-warm);
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.wing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.05);
}

.wing-card:hover::before {
    opacity: 1;
}

.wing-number {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--accent-gold);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.wing-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.wing-status {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.wing-card p {
    font-size: 0.95rem;
    opacity: 0.6;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .wings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wings-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Monocle Demo Section */
.monocle-demo {
    padding: 8rem 2rem;
    background: var(--bg-dark);
}

.reality-slider-container {
    max-width: 900px;
    margin: 0 auto;
}

.reality-comparison {
    position: relative;
    width: 100%;
    border: 1px solid var(--border-warm);
    /* No fixed height - let content dictate */
    overflow: hidden;
    user-select: none;
}

.image-wrapper {
    width: 100%;
    position: relative;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.image-wrapper.underdrawing {
    position: relative;
    z-index: 1;
}

.image-wrapper.paint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Initial state - clipped to half */
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

/* Layer Labels */
.label-overlay {
    position: absolute;
    top: 2rem;
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.label-overlay.left {
    left: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.label-overlay.right {
    right: 2rem;
    color: var(--accent-gold);
}

.reality-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: ew-resize;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    transition: transform 0.2s ease;
}

.divider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.handle-icon {
    color: var(--bg-dark);
    font-size: 1.2rem;
}

.demo-explanation {
    margin-top: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.demo-explanation p {
    opacity: 0.6;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.demo-explanation .term {
    color: var(--accent-gold);
    font-weight: 500;
}

.demo-explanation .hint-text {
    font-size: 0.9rem;
    opacity: 0.4;
    font-style: italic;
}

.demo-explanation .hint-text em {
    color: var(--accent-gold);
    font-style: normal;
}

@media (max-width: 768px) {
    .label-overlay {
        font-size: 1rem;
        top: 1rem;
        left: 1rem;
        right: auto;
    }

    .label-overlay.right {
        right: 1rem;
        left: auto;
    }
}

@media (max-width: 600px) {

    /* Mobile Navigation */
    .top-nav {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-left: 0;
        /* Reset the auto margin */
    }

    /* Adjust typography for small screens */
    .main-title {
        font-size: 3.5rem;
    }

    .fragment-card {
        padding: 2rem 1.5rem;
    }
}

/* =============================================
   WORLD AT A GLANCE SECTION
   ============================================= */
.world-glance {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 18, 15, 1) 50%, var(--bg-dark) 100%);
    text-align: center;
    border-top: 1px solid var(--border-warm);
    border-bottom: 1px solid var(--border-warm);
}

.world-glance .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.world-glance-content {
    max-width: 750px;
    margin: 0 auto;
}

.world-glance-content .lead {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 200;
    font-style: italic;
    color: var(--accent-gold-bright);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.world-glance-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 245, 247, 0.85);
    margin-bottom: 1.2rem;
}

.world-glance-content strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* =============================================
   MODAL SYSTEM
   ============================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1a1816 0%, #0f0e0d 100%);
    border: 1px solid var(--border-warm);
    border-radius: 4px;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-warm);
}

.modal-header .modal-id {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-white);
}

.modal-body {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245, 245, 247, 0.9);
}

.modal-body p {
    margin-bottom: 1.2rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.modal-body em {
    font-style: italic;
    color: var(--accent-gold-bright);
}

/* Wing card clickable state */
.wing-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
}

/* Codex card clickable state */
.codex-record {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.codex-record:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
}

/* Modal responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .world-glance-content .lead {
        font-size: 1.4rem;
    }
}

/* =============================================
   GENRE TAG (Hero)
   ============================================= */
.genre-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* =============================================
   WHAT IS THIS SECTION
   ============================================= */
.what-is-this {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    text-align: center;
    border-bottom: 1px solid var(--border-warm);
}

.what-is-this .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: block;
}

.what-is-this-content {
    max-width: 750px;
    margin: 0 auto;
}

.what-is-this-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(245, 245, 247, 0.85);
    margin-bottom: 1.2rem;
}

.what-is-this-content strong {
    color: var(--accent-gold);
}

/* =============================================
   HOW IT PLAYS SECTION
   ============================================= */
.how-it-plays {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 18, 15, 1) 50%, var(--bg-dark) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-warm);
}

.how-it-plays .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: block;
}

.how-it-plays-content {
    max-width: 650px;
    margin: 0 auto;
}

.gameplay-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.gameplay-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 245, 247, 0.85);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.gameplay-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.gameplay-list strong {
    color: var(--accent-gold);
}

.philosophy {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-gold-bright);
    margin-top: 1.5rem;
}

/* =============================================
   STATUS & PLATFORMS SECTION
   ============================================= */
.status-platforms {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    text-align: center;
    border-bottom: 1px solid var(--border-warm);
}

.status-platforms .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: block;
}

.status-content {
    max-width: 600px;
    margin: 0 auto;
}

.status-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold-bright);
    margin-bottom: 1.5rem;
}

.platforms-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.platform {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-warm);
    background: rgba(255, 255, 255, 0.02);
}

.platform em {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: normal;
    display: block;
}

.target-info {
    font-size: 0.95rem;
    color: rgba(245, 245, 247, 0.7);
}

/* =============================================
   WHY THIS EXISTS SECTION
   ============================================= */
.why-this-exists {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 12, 10, 1) 50%, var(--bg-dark) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-warm);
}

.why-this-exists .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
    margin-bottom: 2rem;
    display: block;
}

.inspiration-content {
    max-width: 700px;
    margin: 0 auto;
}

.inspiration-content p {
    font-family: 'Crimson Pro', serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(245, 245, 247, 0.8);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* =============================================
   ABOUT PAGE STYLES
   ============================================= */
.page-header {
    padding: 12rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.95) 0%, var(--bg-dark) 100%);
}

.page-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--text-white);
}

.about-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-warm);
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-section h2 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section strong {
    color: var(--accent-gold);
}

.about-section .lead {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-gold-bright);
    margin-bottom: 1.5rem;
}

/* Gameplay Pillars */
.gameplay-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.pillar {
    padding: 2rem;
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.3s ease;
}

.pillar:hover {
    background: rgba(197, 160, 89, 0.05);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

.pillar-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.pillar-desc {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: rgba(245, 245, 247, 0.8) !important;
    margin-bottom: 0 !important;
}

.gameplay-footer {
    margin-top: 3rem;
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-gold-bright);
    opacity: 0.8;
}

@media (max-width: 600px) {
    .gameplay-pillars {
        grid-template-columns: 1fr;
    }
}

/* Status section on About page */
.about-section .status-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold-bright);
    margin-bottom: 1.5rem;
    display: block;
}

/* Consolidated platforms-list styles above */

.about-section .target-info {
    font-size: 1rem;
    color: rgba(245, 245, 247, 0.7);
    margin-top: 1rem;
}

@media (max-width: 900px) {

    .platforms-list,
    .gameplay-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .platforms-list,
    .gameplay-pillars {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 10rem 1.5rem 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .about-content {
        padding: 8rem 1.5rem 4rem;
    }

    .about-section h2 {
        font-size: 1.6rem;
    }
}

/* ============================================
   Quick Wins: Hero Enhancements & Footer
   ============================================ */

/* Development Status Tag */
.status-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.25rem;
    color: var(--accent-gold);
    border: 1px solid var(--border-warm);
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Genre Tag (More Prominent) */
.genre-tag {
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1rem;
    letter-spacing: 0.05rem;
    color: var(--accent-gold);
    opacity: 0.7;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 2.5rem auto;
}

/* CTA Email Link */
.cta-email {
    font-size: 0.85rem;
    margin-top: 1.5rem;
    opacity: 0.5;
}

.cta-email a {
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    transition: color 0.3s, border-color 0.3s;
}

.cta-email a:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Site Footer */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-warm);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-email {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.footer-email a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    transition: color 0.3s, border-color 0.3s;
}

.footer-email a:hover {
    color: var(--accent-gold-bright);
    border-color: var(--accent-gold-bright);
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.4;
    letter-spacing: 0.1rem;
}

/* ============================================
   Premise Section (Narrative Bridge)
   ============================================ */

.premise {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 18, 15, 1) 50%, var(--bg-dark) 100%);
    border-top: 1px solid var(--border-warm);
}

.premise-content {
    max-width: 800px;
    margin: 0 auto;
}

.premise-block {
    margin-bottom: 3rem;
}

.premise-block:last-child {
    margin-bottom: 0;
}

.premise-label {
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.premise-block p,
.record-body p,
.entry-excerpt p,
.about-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.premise-block p:last-child {
    margin-bottom: 0;
}

.premise-block strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.premise-block em {
    color: var(--accent-gold-bright);
    font-style: italic;
}

.premise-footer {
    margin-top: 5rem;
    padding: 3rem;
    border: 1px solid rgba(197, 160, 89, 0.1);
    background: rgba(197, 160, 89, 0.02);
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.codex-link {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: transparent;
}

.codex-link:hover {
    color: var(--bg-dark);
    background: var(--accent-gold-bright);
    border-bottom-color: var(--accent-gold-bright);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.premise-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.3;
}

/* Global Footer */
.site-footer {
    padding: 4rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-warm);
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-motto {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.6;
    margin-bottom: 2rem;
    letter-spacing: 0.1rem;
}

.footer-nav {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.footer-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.footer-contact {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    opacity: 0.5;
}

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

.footer-copyright {
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    opacity: 0.3;
}