/* ============================================
   TOKENS — Editorial & Monolithic Sandstone Theme
   Disruptive Warm Typography, Fullscreen Depth, Raw Dune & Charcoal
   ============================================ */
:root {
    /* Main Warm Sandstone & Calcite Canvas */
    --ink: #F2ECE1;          /* Warm Sand Main Background */
    --ink-2: #F9F5EE;        /* Raw Calcite Monolith Surface */
    --ink-3: #E6DDD0;        /* Deep Pressed Paper Surface */
    --ink-4: #D8CCC0;        /* Soft Mineral Trait Line */
    
    /* Charcoal & Graphite High-Contrast Monoliths */
    --charcoal: #171513;     /* Onyx Mineral (Deep Dark) */
    --charcoal-surface: #221F1C;
    
    /* Typography Palette */
    --platinum: #171513;     /* Giant Editorial Text */
    --platinum-2: #4A443C;   /* Warm Slate Body Text */
    --steel: #7A7063;        /* Muted Sandstone Subtitle */
    --steel-2: #A39686;      /* Subtle Caption */
    
    /* High Impact Accents */
    --brass: #D49B4B;        /* Dune Sun / Golden Ochre */
    --brass-2: #B07A33;      /* Deep Ochre */
    --sand-orange: #C06C4C;   /* Terracotta Accent */
    --sand-green: #4A7A48;    /* Mineral Sage (Status SLA) */

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --r: 16px;
    --shadow: 0 20px 60px rgba(23, 21, 19, 0.08), 0 2px 10px rgba(212, 155, 75, 0.06);
    --shadow-hover: 0 30px 80px rgba(23, 21, 19, 0.16), 0 4px 20px rgba(212, 155, 75, 0.18);
    --max: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--platinum);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.45s ease;
    position: relative;
    overflow-x: hidden;
}
body.ready { opacity: 1; }
body > * { position: relative; z-index: 2; }

/* Fullscreen Background Canvas Container */
#hero-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}
#hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* Giant Parallax Watermark Logo (In-Flow Absolute, NOT Fixed, Scroll-Driven) */
.watermark-logo {
    position: absolute;
    right: -4vw;
    bottom: -150px;
    top: auto; left: auto;
    width: clamp(550px, 65vw, 1050px);
    height: auto;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(100%);
    will-change: transform, opacity, filter;
}

::selection { background: rgba(212, 155, 75, 0.3); color: var(--platinum); }

/* ============================================
   EDITORIAL TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--platinum);
}

.mono, .eyebrow, .status-tag, .version-tag, .subsidiary-badge, .tech, .model-k,
.about-meta .about-k, .contact-card input, .contact-card textarea,
.footer-bottom, .terminal-head, .editorial-num {
    font-family: 'JetBrains Mono', monospace;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--sand-orange);
}
.eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--sand-orange);
}

/* ============================================
   MONOLITHIC HERO SECTION (WITH IN-FLOW PARALLAX LOGO)
   ============================================ */
.editorial-hero {
    width: 92vw;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(140px, 22vh, 240px) 0 12vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.editorial-hero .eyebrow { margin-bottom: 32px; }

.editorial-hero h1 {
    font-size: clamp(3.2rem, 9.5vw, 7.8rem);
    line-height: 0.95;
    letter-spacing: -3px;
    margin: 0 0 32px;
    max-width: 18ch;
    text-transform: uppercase;
}
.editorial-hero h1 .grad {
    background: linear-gradient(120deg, var(--platinum) 30%, var(--sand-orange) 70%, var(--brass) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.editorial-hero .lede {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    line-height: 1.45;
    color: var(--platinum-2);
    max-width: 48ch;
    margin: 0 auto 48px;
}
.editorial-hero .hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   MONOLITHIC BUTTONS
   ============================================ */
.btn-primary, .btn-secondary {
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 220ms var(--ease-out), background 220ms ease, border-color 220ms ease, box-shadow 240ms ease, color 200ms ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--charcoal);
    color: #F2ECE1;
    box-shadow: 0 10px 30px rgba(23, 21, 19, 0.2);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(23, 21, 19, 0.35);
    background: var(--brass);
    color: #171513;
}
.btn-secondary {
    background: var(--ink-2);
    color: var(--platinum);
    border-color: var(--ink-4);
    box-shadow: var(--shadow);
}
.btn-secondary:hover {
    background: var(--ink-3);
    border-color: var(--brass);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   EDITORIAL ASYMMETRICAL STEPPED SECTIONS
   ============================================ */
.editorial-timeline {
    width: 92vw;
    max-width: var(--max);
    margin: 10vh auto 16vh;
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.editorial-block {
    display: grid;
    grid-template-columns: 0.35fr 1.65fr;
    gap: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--charcoal);
    position: relative;
}
.editorial-block:nth-child(even) {
    grid-template-columns: 1.65fr 0.35fr;
}
.editorial-block:nth-child(even) .editorial-num {
    order: 2;
    text-align: right;
}
.editorial-block:nth-child(even) .editorial-content {
    order: 1;
}

.editorial-num {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--sand-orange);
    opacity: 0.85;
}
.editorial-content h2 {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--platinum);
}
.editorial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--platinum-2);
    max-width: 58ch;
    margin-bottom: 24px;
}

/* ============================================
   MONOLITHIC LLM PROMPT CONSOLE
   ============================================ */
.monolith-console-section {
    width: 92vw;
    max-width: var(--max);
    margin: 12vh auto 18vh;
}
.monolith-card {
    background: var(--charcoal);
    color: #F2ECE1;
    border-radius: calc(var(--r) * 1.5);
    padding: clamp(36px, 6vw, 64px);
    box-shadow: 0 30px 90px rgba(23, 21, 19, 0.3);
    border: 1px solid rgba(212, 155, 75, 0.3);
    position: relative;
    overflow: hidden;
}
.monolith-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brass), var(--sand-orange), var(--brass));
}
.monolith-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.monolith-head span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brass);
}

.prompt-interactive-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.prompt-input-wrapper {
    position: relative;
}
.prompt-input-wrapper input {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--r);
    color: #F2ECE1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: border-color 200ms ease, background 200ms ease;
}
.prompt-input-wrapper input:focus {
    border-color: var(--brass);
    background: rgba(255, 255, 255, 0.1);
}
.prompt-input-wrapper button {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: var(--brass);
    color: #171513;
    border: none;
    padding: 10px 20px;
    border-radius: calc(var(--r) - 4px);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 160ms ease, background 160ms ease;
}
.prompt-input-wrapper button:hover { background: #FFF; transform: translateY(-50%) scale(1.03); }

.llm-response-stream {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--r);
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    min-height: 140px;
    color: var(--brass);
}

/* ============================================
   MANIFESTO PROSE SECTION
   ============================================ */
.manifesto-section {
    width: 92vw;
    max-width: var(--max);
    margin: 12vh auto;
    padding: 8vh 0;
    border-top: 1px solid var(--ink-4);
    border-bottom: 1px solid var(--ink-4);
}
.manifesto-section h2 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 40px;
}
.manifesto-prose {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.6;
    color: var(--platinum-2);
    max-width: 54ch;
}

/* ============================================
   CTA & FOOTER
   ============================================ */
.cta-band {
    width: 92vw;
    max-width: var(--max);
    margin: 10vh auto 14vh;
    padding: clamp(70px, 12vh, 120px) 48px;
    text-align: center;
    background: var(--ink-2);
    border: 2px solid var(--charcoal);
    border-radius: calc(var(--r) * 2);
    box-shadow: var(--shadow);
}
.cta-band h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 900px) {
    .editorial-block, .editorial-block:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .editorial-block:nth-child(even) .editorial-num { order: 1; text-align: left; }
    .editorial-block:nth-child(even) .editorial-content { order: 2; }
    .watermark-logo {
        width: 85vw;
        right: -10vw;
        bottom: -80px;
    }
}
