:root {
    /* Design terms: IntersectionObserver `threshold: 0.15` IntersectionObserver`. This border-animate effect primary signature entire site. Interval` Space Grotesk (a technical sans-serif with monospaced DNA uppercase (letter-spacing 0.2em via `<link rel="preload">` with `font-display: swap`. Libre Baskerville loaded asynchronously. "SIGNAL: ACTIVE" Space Grotesk" (Google Fonts */
    --deep-briefing: #1e1e24;
    --charcoal-depth: #2a2a2a;
    --slate-ink: #3d3d3d;
    --aged-ivory: #f5eed6;
    --warm-parchment: #ede4cc;
    --amber-signal: #c9973a;
    --burnt-honey: #a67b28;
    --copper-wire: #8b6914;
    --headline: "EB Garamond", Garamond, Georgia, serif;
    --body: "Libre Baskerville", Georgia, serif;
    --ui: "Space Grotesk", Inter, Arial, sans-serif;
    --grid-gap: clamp(16px, 2.5vw, 32px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--aged-ivory);
    color: var(--slate-ink);
    font-family: var(--body);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    font-feature-settings: 'liga' 1, 'onum' 1;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
}

.hud-frame {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    border: 0 solid rgba(201, 151, 58, 0.28);
    animation: hudOuterTop .2s ease-out forwards, hudOuterRight .2s ease-out .2s forwards, hudOuterBottom .2s ease-out .4s forwards, hudOuterLeft .2s ease-out .6s forwards;
}

.hud-frame::before,
.hud-frame::after {
    content: "";
    position: absolute;
    inset: 40px;
    opacity: .34;
    background-image: linear-gradient(var(--amber-signal), var(--amber-signal)), linear-gradient(var(--amber-signal), var(--amber-signal)), linear-gradient(var(--amber-signal), var(--amber-signal)), linear-gradient(var(--amber-signal), var(--amber-signal));
    background-repeat: no-repeat;
    background-size: 0 1px, 1px 0, 0 1px, 1px 0;
    background-position: left top, right top, right bottom, left bottom;
    animation: innerFrame 1.2s ease-out .25s forwards;
}

.hud-frame::after {
    inset: auto 3vw 54px 3vw;
    height: 1px;
    opacity: .18;
    background-image: repeating-linear-gradient(90deg, var(--amber-signal) 0 18px, transparent 18px 28px);
    background-size: 100% 1px;
    animation: none;
}

.hud-corner {
    position: fixed;
    width: 40px;
    height: 40px;
    opacity: .35;
}

.hud-corner::before,
.hud-corner::after {
    content: "";
    position: absolute;
    background: var(--amber-signal);
    transform-origin: inherit;
}

.hud-corner::before {
    width: 0;
    height: 1px;
    animation: bracketH 1.8s ease-out forwards;
}

.hud-corner::after {
    width: 1px;
    height: 0;
    animation: bracketV 1.8s ease-out forwards;
}

.hud-corner-tl { top: 20px; left: 20px; }
.hud-corner-tr { top: 20px; right: 20px; }
.hud-corner-br { right: 20px; bottom: 20px; }
.hud-corner-bl { bottom: 20px; left: 20px; }
.hud-corner-tl::before, .hud-corner-tl::after { top: 0; left: 0; }
.hud-corner-tr::before, .hud-corner-tr::after { top: 0; right: 0; }
.hud-corner-br::before, .hud-corner-br::after { right: 0; bottom: 0; }
.hud-corner-bl::before, .hud-corner-bl::after { bottom: 0; left: 0; }

@keyframes hudOuterTop { to { border-top-width: 1px; } }
@keyframes hudOuterRight { to { border-right-width: 1px; } }
@keyframes hudOuterBottom { to { border-bottom-width: 1px; } }
@keyframes hudOuterLeft { to { border-left-width: 1px; } }
@keyframes innerFrame { to { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; } }
@keyframes bracketH { to { width: 40px; } }
@keyframes bracketV { to { height: 40px; } }

.narrative-entry {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    background: var(--aged-ivory);
    animation: entryExit .7s ease-in 3.6s forwards;
}

.entry-content {
    width: min(76vw, 980px);
    text-align: center;
}

.wordmark {
    opacity: 0;
    color: var(--charcoal-depth);
    font-family: var(--headline);
    font-size: 5vw;
    font-style: italic;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    animation: wordmarkIn .6s ease-out 1.2s forwards;
}

.divider-line {
    width: 0;
    height: 1px;
    margin: clamp(22px, 4vw, 44px) auto clamp(18px, 3vw, 28px);
    background: var(--amber-signal);
    animation: dividerDraw .8s ease-in-out 2s forwards;
}

.tagline {
    min-height: 1.4em;
    color: var(--slate-ink);
    font-family: var(--ui);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.tagline span {
    opacity: 0;
    animation: charReveal .28s linear forwards;
}

@keyframes wordmarkIn { to { opacity: 1; } }
@keyframes dividerDraw { to { width: 60vw; } }
@keyframes charReveal { to { opacity: 1; } }
@keyframes entryExit { to { transform: translateY(-100vh); visibility: hidden; } }

.top-rule {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    height: 62px;
    padding: 0 clamp(22px, 4vw, 66px);
    border-bottom: 1px solid rgba(201, 151, 58, .32);
    background: rgba(245, 238, 214, .92);
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: interfaceIn .4s linear 3.6s forwards;
}

.nav-wordmark {
    color: var(--charcoal-depth);
    font-family: var(--headline);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
}

.nav-sections {
    display: flex;
    gap: clamp(18px, 3vw, 46px);
    margin-left: auto;
}

.nav-label {
    position: relative;
    padding: 13px 0 10px;
    cursor: pointer;
    color: var(--slate-ink);
    font-family: var(--headline);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-variant: small-caps;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-label::before,
.nav-label::after,
.story-headline::after,
.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-signal);
    transition: width .25s ease-out;
}

.nav-label::before { top: 0; }
.nav-label::after { bottom: 0; opacity: .35; }
.nav-label:hover::before,
.nav-label.active::before,
.nav-label:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    margin-left: auto;
    cursor: pointer;
    color: var(--amber-signal);
    font-family: var(--ui);
    font-size: 1.5rem;
}

.main-content {
    opacity: 0;
    padding-top: 62px;
    animation: interfaceIn .4s linear 3.6s forwards;
}

@keyframes interfaceIn { to { opacity: 1; } }

.diagonal-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: clamp(82px, 12vw, 150px) 0;
    overflow: hidden;
    background: var(--aged-ivory);
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
}

.diagonal-section:nth-of-type(even) {
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
}

.dispatch-section, .brief-section { background: var(--aged-ivory); }
.analysis-section, .signal-section { background: var(--deep-briefing); }
.dark-section {
    color: var(--aged-ivory);
    background-image: repeating-linear-gradient(transparent, transparent 2px, rgba(201,151,58,0.03) 2px, rgba(201,151,58,0.03) 3px);
}

.section-edge {
    position: absolute;
    top: 4vw;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-signal);
    transform: rotate(-2.25deg);
    transform-origin: left center;
    opacity: 0;
}

.diagonal-section:nth-of-type(even) .section-edge {
    top: 4vw;
    right: 0;
    left: auto;
    transform: rotate(2.25deg);
    transform-origin: right center;
}

.diagonal-section.in-view .section-edge {
    opacity: 1;
    animation: edgeDraw .6s ease-in-out forwards;
}

@keyframes edgeDraw { to { width: 110%; } }

.section-inner {
    position: relative;
    z-index: 2;
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 76px);
}

.section-header {
    display: grid;
    grid-template-columns: clamp(78px, 9vw, 120px) 1fr;
    column-gap: clamp(16px, 2.5vw, 32px);
    align-items: center;
    margin-bottom: clamp(32px, 5vw, 76px);
    opacity: 0;
}

.diagonal-section.in-view .section-header,
.diagonal-section.in-view .story {
    animation: contentTrace .5s ease-out forwards;
}

@keyframes contentTrace { to { opacity: 1; } }

.iso-icon {
    grid-row: span 2;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(201, 151, 58, .08));
}

.section-kicker,
.story-rubric,
.story-meta,
.status-bar {
    font-family: var(--ui);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-kicker {
    align-self: end;
    color: var(--burnt-honey);
}

.dark-section .section-kicker { color: rgba(201, 151, 58, .82); }

.section-title {
    align-self: start;
    color: var(--charcoal-depth);
    font-family: var(--headline);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.dark-section .section-title,
.dark-section .story-headline { color: var(--aged-ivory); }

.content-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.story {
    position: relative;
    min-height: 100%;
    padding: clamp(24px, 3.2vw, 44px);
    border: 1px solid rgba(42, 42, 42, .16);
    background: rgba(237, 228, 204, .44);
    opacity: 0;
    transition: border-color .3s ease, background-color .3s ease;
}

.dark-section .story {
    border-color: rgba(201, 151, 58, .24);
    background: rgba(245, 238, 214, .035);
}

.story::before,
.story::after {
    content: "";
    position: absolute;
    background: var(--amber-signal);
    opacity: 0;
    transition: opacity .2s ease, width .3s ease, height .3s ease;
}

.story::before {
    top: -1px;
    left: -1px;
    width: 0;
    height: 1px;
}

.story::after {
    right: -1px;
    bottom: -1px;
    width: 1px;
    height: 0;
}

.story:hover {
    border-color: rgba(201, 151, 58, .4);
    background: rgba(245, 238, 214, .68);
}

.dark-section .story:hover { background: rgba(245, 238, 214, .07); }
.story:hover::before { width: calc(100% + 2px); opacity: 1; }
.story:hover::after { height: calc(100% + 2px); opacity: 1; }

.lead-story { grid-column: span 4; }
.secondary-story, .brief-story { grid-column: span 2; }
.reverse-grid .secondary-story { order: 1; }
.reverse-grid .lead-story { order: 2; }

.story:nth-child(2) { animation-delay: .2s !important; }
.story:nth-child(3) { animation-delay: .4s !important; }

.story-rubric {
    margin-bottom: 1.1rem;
    color: var(--burnt-honey);
    font-size: clamp(.62rem, .78vw, .74rem);
}

.dark-section .story-rubric { color: rgba(201, 151, 58, .75); }

.story-headline {
    position: relative;
    display: inline;
    color: var(--charcoal-depth);
    font-family: var(--headline);
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    background-image: linear-gradient(var(--amber-signal), var(--amber-signal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease-out, color .3s ease;
}

.lead-story .story-headline { font-size: clamp(2rem, 4.5vw, 4rem); }
.story:hover .story-headline { color: var(--burnt-honey); background-size: 100% 1px; }
.dark-section .story:hover .story-headline { color: var(--amber-signal); }
.first-word { font-variant: small-caps; }

.story-excerpt {
    margin-top: 1rem;
    color: var(--slate-ink);
    font-family: var(--body);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.72;
}

.dark-section .story-excerpt { color: rgba(245, 238, 214, .72); }

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: clamp(18px, 2vw, 28px);
    color: var(--burnt-honey);
    font-size: clamp(.62rem, .78vw, .74rem);
}

.dark-section .story-meta { color: rgba(201, 151, 58, .68); }

.crosshair-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 20px;
    height: 20px;
    opacity: .15;
    transform: translate(-50%, -50%);
}

.crosshair-reticle::before,
.crosshair-reticle::after {
    content: "";
    position: absolute;
    background: var(--amber-signal);
}

.crosshair-reticle::before { top: 9px; left: 0; width: 20px; height: 1px; }
.crosshair-reticle::after { top: 0; left: 9px; width: 1px; height: 20px; }

.document-stack:hover .doc-one { transform: translate(1px, 1px); }
.document-stack:hover .doc-two { transform: translate(.5px, .5px); }
.document-stack .doc { transition: transform .25s ease; }
.globe-spin { transform-origin: 60px 60px; animation: globeRotate 20s linear infinite; }
.signal-arc { animation: signalPulse 3s ease-in-out infinite; }
.arc-two { animation-delay: .45s; }
.arc-three { animation-delay: .9s; }

@keyframes globeRotate { to { transform: rotate(360deg); } }
@keyframes signalPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.radar-card { overflow: hidden; }
.radar-sweep {
    position: absolute;
    right: clamp(18px, 2vw, 30px);
    top: clamp(18px, 2vw, 30px);
    width: 72px;
    height: 72px;
    border: 1px solid rgba(201, 151, 58, .22);
    border-radius: 50%;
    opacity: .55;
}

.radar-sweep::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 35px;
    height: 1px;
    background: var(--amber-signal);
    transform-origin: left center;
    animation: radarRotate 4s linear infinite;
}

.radar-sweep::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(201, 151, 58, .16);
    border-radius: 50%;
}

@keyframes radarRotate { to { transform: rotate(360deg); opacity: 0; } }

.status-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 170;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 clamp(20px, 4vw, 66px);
    border-top: 1px solid rgba(201,151,58,.3);
    background: var(--deep-briefing);
    backdrop-filter: blur(4px);
    color: rgba(201,151,58,.6);
    font-size: clamp(.6rem, .75vw, .7rem);
    opacity: 0;
    animation: interfaceIn .4s linear 3.6s forwards;
}

@media (max-width: 820px) {
    .wordmark { font-size: clamp(3rem, 13vw, 5rem); }
    .top-rule { padding: 0 22px; }
    .nav-toggle { display: block; }
    .nav-sections {
        position: fixed;
        top: 62px;
        right: 0;
        display: flex;
        flex-direction: column;
        width: min(72vw, 280px);
        padding: 22px;
        border-left: 1px solid rgba(201,151,58,.32);
        border-bottom: 1px solid rgba(201,151,58,.32);
        background: rgba(245,238,214,.97);
        transform: translateX(100%);
        transition: transform .32s ease;
    }
    .nav-sections.open { transform: translateX(0); }
    .diagonal-section,
    .diagonal-section:nth-of-type(even) {
        min-height: auto;
        padding: 92px 0;
        clip-path: polygon(0 2vw, 100% 0, 100% calc(100% - 2vw), 0 100%);
    }
    .section-header { grid-template-columns: 72px 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .lead-story, .secondary-story, .brief-story { grid-column: 1; }
    .reverse-grid .secondary-story, .reverse-grid .lead-story { order: initial; }
    .status-bar { height: auto; min-height: 40px; gap: 12px; padding: 10px 18px; font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
