:root {
    /* Colors */
    --bg-primary: #080808;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --separator: #2a2a2a;
    --text-body: #c4c4c4;
    --text-muted: #8a8a8a;
    --text-ghost: #444444;
    --text-white: #f4f2ef;
    --accent: #a89060;
    --accent-doctrine: #d4c9b8;
    --danger: #8b2020;

    /* Spacing Units */
    --margin-desktop: 48px;
    --margin-mobile: 24px;
    --gutter: 24px;
    --padding-top: 96px;
    --padding-bottom: 72px;

    /* Fonts */
    --font-display: 'Barlow Condensed', sans-serif;
    --font-doctrine: 'DM Serif Display', serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-body: 'Barlow', sans-serif;

    /* Easing */
    --ease-heavy: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--text-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 200ms ease, height 200ms ease, background-color 200ms ease, border 200ms ease;
}

.custom-cursor.hover {
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: 1px solid var(--text-white);
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    /* Static noise per requirement: "No looping particle systems/animations" */
}

/* Page Entry Transition */
.page-wrapper {
    opacity: 0;
    animation: pageEntry 1800ms var(--ease-heavy) forwards;
}

@keyframes pageEntry {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Global Container & Grid */
.container {
    max-width: 100%;
    padding: var(--padding-top) var(--margin-desktop) var(--padding-bottom) var(--margin-desktop);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}

/* Typography Utilities */
.section-meta {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-ghost);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    grid-column: 1 / 6;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-meta::before {
    content: '';
    width: 32px;
    height: 1px;
    background-color: var(--danger);
    opacity: 0.6;
}

.section-headline {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 72px;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 0.88;
    grid-column: 1 / 10;
    margin-bottom: 72px;
    border-top: 0.5px solid var(--separator);
    padding-top: 40px;
}

.body-text {
    max-width: 56ch; /* Approx 60 characters max line length */
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px var(--margin-desktop);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms var(--ease-heavy), background-color 400ms ease, border-color 400ms ease;
}

.site-nav.scrolled {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 0.5px solid var(--separator);
}

.nav-left {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--text-white);
}

.nav-right {
    display: flex;
    align-items: center;
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    transition: color 300ms ease;
    position: relative;
    text-transform: uppercase;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 300ms ease;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link:hover::after {
    width: 100%;
}

.mobile-menu-trigger {
    display: none;
}

/* Hero Section (01) */
.section-silence {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: var(--margin-desktop);
    position: relative;
    background-color: var(--bg-primary);
}

.hero-content {
    transform: translateY(-60px);
}

.hero-headline {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 96px;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 0.88;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-body);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
}

.hero-subheadline.revealed {
    opacity: 1;
    transition: opacity 1200ms var(--ease-heavy);
}

.hero-rule {
    width: 48px;
    height: 1px;
    background-color: var(--accent);
    margin-top: 48px;
}

.hero-cta-container {
    margin-top: 48px;
    display: flex;
    gap: 24px;
}

.button-primary {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--text-white);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background-color 300ms ease, transform 300ms var(--ease-heavy);
}

.button-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.card-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 0.5px solid var(--separator);
}

.inline-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 300ms ease;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background-color: var(--text-ghost);
    opacity: 0; /* JS handles appearance delay */
    transition: opacity 600ms ease;
}

/* Section 02 & 03: Friction & Protocol */
.section-friction { background-color: var(--bg-primary); }
.section-protocol { background-color: var(--bg-secondary); }

.content-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}

.content-grid.align-center {
    align-items: center;
}

.doctrine-block {
    grid-column: 1 / 6;
    border-left: 1px solid var(--danger);
    background-color: rgba(139, 32, 32, 0.04);
    padding: 24px 32px;
}

.doctrine-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--danger);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.doctrine-statement {
    font-family: var(--font-doctrine);
    font-style: italic;
    font-size: 22px;
    color: var(--text-white);
    line-height: 1.4;
}

.content-grid .body-text {
    grid-column: 7 / 13;
}

/* Section 03 Protocol specific grid */
.attribute-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 72px;
    border-top: 0.5px solid var(--separator);
    border-left: 0.5px solid var(--separator);
}

.grid-cell {
    padding: 40px;
    border-right: 0.5px solid var(--separator);
    border-bottom: 0.5px solid var(--separator);
    background-color: var(--bg-secondary);
}

.cell-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cell-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
}

/* Operational Proof Fragments */
.operational-diagram {
    grid-column: 1 / -1;
    height: 300px;
    border: 0.5px solid var(--separator);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(var(--separator) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--separator) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    opacity: 0.2;
}

.diagram-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
}

.diagram-log {
    position: absolute;
    top: 10%;
    left: 10%;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-ghost);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.nav-loc {
    color: var(--text-ghost);
    margin-left: 8px;
    font-weight: 300;
}

/* Section 04: Infrastructure */
.section-infrastructure {
    background-color: var(--bg-primary);
}

.section-infrastructure .section-headline {
    font-size: 56px;
}

.products-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-card {
    border-left: 3px solid var(--accent);
    background-color: var(--bg-secondary);
    padding: 40px;
    transition: background-color 400ms ease;
}

.product-header {
    margin-bottom: 28px;
}

.product-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    color: var(--text-white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: letter-spacing 400ms ease;
}

.product-card:hover .product-name {
    letter-spacing: 0.1em; /* Breathes outward under pressure */
}

.product-type {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.product-tagline {
    font-family: var(--font-doctrine);
    font-style: italic;
    font-size: 20px;
    color: var(--accent-doctrine);
    margin-bottom: 16px;
}

.product-body {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 50ch;
}

.product-specs {
    list-style: none;
}

.product-specs li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 16px 0;
    border-bottom: 0.5px solid var(--separator);
    display: flex;
    align-items: center;
}

.product-specs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-arrow {
    color: var(--accent);
    margin-right: 12px;
    font-family: var(--font-mono);
}

/* Section 05: Expansion */
.section-expansion {
    background-color: var(--bg-secondary);
}

.section-expansion .section-headline {
    font-size: 64px;
    grid-column: 1 / 10;
}

.content-grid-expansion {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}

.content-grid-expansion .body-text {
    grid-column: 1 / 6;
}

.attribute-list {
    grid-column: 7 / -1;
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 0.5px solid var(--separator);
}

.list-item:first-child {
    padding-top: 0;
}

.item-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-white);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    width: 240px;
    flex-shrink: 0;
}

.item-separator {
    color: var(--accent);
    margin: 0 16px;
    font-family: var(--font-mono);
}

.item-desc {
    color: var(--text-muted);
}

/* Section 06: Conviction */
.section-conviction {
    background-color: var(--bg-primary);
}

.section-conviction .section-headline {
    font-size: 56px;
    margin-bottom: 96px;
}

.conviction-wrapper {
    grid-column: 1 / -1;
    max-width: 680px;
}

.large-doctrine-quote {
    font-family: var(--font-doctrine);
    font-style: italic;
    font-size: 24px;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 32px;
}

.quote-attribution {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-ghost);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Section 07: Final Frame */
.section-final {
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.final-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-ghost);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.final-headline {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 72px;
    color: var(--text-white);
    line-height: 0.92;
    margin-bottom: 40px;
}

.final-visual {
    height: 80px;
    width: 1px;
    background: linear-gradient(to bottom, var(--danger), transparent);
    margin-bottom: 40px;
}

.final-contact {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 40px;
    position: relative;
    transition: color 300ms ease;
    text-transform: uppercase;
}

.final-contact::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 300ms ease;
}

.final-contact:hover {
    color: var(--accent);
}

.final-contact:hover::after {
    width: 100%;
}

.final-axiom {
    font-family: var(--font-doctrine);
    font-style: italic;
    font-size: 16px;
    color: var(--text-ghost);
}

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    padding: 40px var(--margin-desktop);
    border-top: 1px solid var(--separator);
    background-color: var(--bg-primary);
}

.footer-left, .footer-right {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-ghost);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-element {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-meta {
    opacity: 0;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 900ms var(--ease-heavy), transform 900ms var(--ease-heavy);
}

.revealed.reveal-meta {
    transition: opacity 900ms var(--ease-heavy);
}

.delay-200 { transition-delay: 200ms; }
.delay-400 { transition-delay: 400ms; }
.delay-600 { transition-delay: 600ms; }
.delay-800 { transition-delay: 800ms; }
.delay-1000 { transition-delay: 1000ms; }

/* Mobile Adaptation */
@media (max-width: 768px) {
    :root {
        --margin-mobile: 24px;
        --padding-top: 72px;
        --padding-bottom: 56px;
    }

    .container {
        padding: var(--padding-top) var(--margin-mobile) var(--padding-bottom) var(--margin-mobile);
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .content-grid, .content-grid-expansion {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .doctrine-block {
        width: 100%;
        padding: 32px 24px;
        margin-bottom: 0;
    }

    .doctrine-statement {
        font-size: 20px;
        line-height: 1.4;
    }

    .body-text {
        width: 100%;
        max-width: 100%;
    }

    .attribute-list {
        margin-top: 24px;
    }

    .site-nav {
        padding: 24px var(--margin-mobile);
    }

    .contact-link {
        display: none; /* Hide on mobile, show hamburger */
    }

    .mobile-menu-trigger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 24px;
        cursor: pointer;
    }

    .hamburger-line {
        width: 100%;
        height: 1px;
        background-color: var(--text-white);
    }

    .hero-headline {
        font-size: 52px;
    }

    .hero-subheadline {
        font-size: 16px;
        max-width: 100%;
    }
    
    .section-silence {
        padding-left: var(--margin-mobile);
    }

    .section-meta {
        grid-column: span 12;
        margin-bottom: 32px;
        letter-spacing: 0.2em;
    }

    .section-headline, .final-headline {
        font-size: 40px;
        margin-bottom: 40px;
        grid-column: span 12;
        padding-top: 24px;
    }

    .section-expansion .section-headline {
        font-size: 36px;
    }

    .attribute-grid {
        grid-template-columns: 1fr;
        border-left: none;
        margin-top: 40px;
    }

    .grid-cell {
        border-left: 0.5px solid var(--separator);
        padding: 32px 24px;
    }

    .products-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card {
        padding: 32px 24px;
    }

    .operational-diagram {
        height: 200px;
    }

    .list-item {
        flex-direction: column;
        gap: 8px;
    }

    .item-label {
        width: 100%;
    }

    .item-separator {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        padding: 40px var(--margin-mobile);
        text-align: center;
    }

    /* Disable custom cursor on mobile touch devices */
    @media (hover: none) and (pointer: coarse) {
        body, a { cursor: auto; }
        .custom-cursor { display: none; }
    }
}
/* Section 03.5: Blueprint */
.section-blueprint {
    background-color: var(--bg-primary);
}

.blueprint-stack {
    grid-column: 1 / -1;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.blueprint-item {
    display: flex;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 0.5px solid var(--separator);
    position: relative;
}

.blueprint-item:last-child {
    border-bottom: none;
}

.blueprint-num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    width: 60px;
    height: 60px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blueprint-content {
    max-width: 600px;
}

.blueprint-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 28px;
    color: var(--text-white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blueprint-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Mobile Blueprint Adaptation */
@media (max-width: 768px) {
    .blueprint-item {
        flex-direction: column;
        gap: 24px;
        padding: 40px 0;
    }

    .blueprint-num {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .blueprint-title {
        font-size: 22px;
    }
}
