:root {
    /* Compliance lexicon: IntersectionObserver` to trigger the reveal: when a section enters the viewport at 20% threshold. Playfair Display" (Google Fonts and Source Serif 4" (Google Fonts. Playfair Display" and "Source Serif 4" — classical serifs that deliberately position the content as academic literature rather than tech documentation. The contrast between scholarly typography and industrial chrome surfaces creates a unique intellectual tension. */
    --chrome-light: #e8e8ee;
    --chrome-mid: #b0b0be;
    --chrome-soft: #dcdce6;
    --chrome-edge: #c0c0d0;
    --graphite-dark: #1a1a24;
    --graphite-mid: #2a2a34;
    --accent-blue: #4a9eff;
    --accent-warm: #ff6b3d;
    --text-light: #d4d4de;
    --text-dark: #2a2a34;
    --display: "Playfair Display", Georgia, serif;
    --body: "Source Serif 4", Georgia, serif;
    --ui: "DM Sans", Arial, sans-serif;
    --offset: 60px;
    --chrome: linear-gradient(135deg, #b0b0be 0%, #e8e8ee 40%, #dcdce6 60%, #b0b0be 100%);
    --seam: linear-gradient(135deg, #c0c0d0, #e8e8ee, #c0c0d0);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #1a1a24;
    color: #d4d4de;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.75;
}

.diagonal-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(7deg, transparent 0 79px, rgba(176, 176, 190, 0.03) 79px 80px);
}

.control-pill {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    overflow: hidden;
    padding: 13px;
    border: 1px solid #c0c0d0;
    border-radius: 2px;
    background: var(--chrome);
    background-size: 180% 180%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: max-width 300ms ease, background-position 300ms ease;
}
.control-pill:hover { max-width: 250px; background-position: 60% 40%; }
.control-face { display: grid; gap: 5px; min-width: 28px; padding-top: 3px; }
.control-face span {
    display: block;
    width: 24px;
    height: 5px;
    border: 1px solid rgba(42,42,52,0.45);
    background: #2a2a34;
    box-shadow: inset 12px 0 0 #4a9eff;
}
.control-links { display: grid; gap: 8px; margin-left: 16px; min-width: 170px; }
.control-link {
    border: 0;
    background: transparent;
    color: #2a2a34;
    cursor: pointer;
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
}
.control-link.active, .control-link:hover { color: #4a9eff; }
.control-link.active::before { content: "◆ "; color: #ff6b3d; }

.progress-rail {
    position: fixed;
    right: 16px;
    top: 50%;
    z-index: 40;
    width: 4px;
    height: 40vh;
    transform: translateY(-50%);
    background: var(--chrome);
    box-shadow: 0 0 0 1px rgba(192,192,208,0.35), 0 12px 28px rgba(0,0,0,0.25);
}
.progress-dot {
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid #c0c0d0;
    background: #1a1a24;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: background 250ms ease, box-shadow 250ms ease;
}
.progress-dot.active {
    background: #4a9eff;
    box-shadow: 0 0 6px rgba(74, 158, 255, 0.6), 0 0 18px rgba(74, 158, 255, 0.35);
    animation: markerPulse 1.5s ease-in-out infinite alternate;
}

main { position: relative; z-index: 1; }
.diagonal-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92vh;
    margin-top: -60px;
    padding: clamp(6rem, 10vw, 10rem) clamp(1.25rem, 5vw, 5rem);
    overflow: hidden;
    will-change: transform;
}
.diagonal-section:first-child { margin-top: 0; padding-top: clamp(7rem, 12vw, 11rem); }
.diagonal-down { clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%); }
.diagonal-up { clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px)); }
.diagonal-section:first-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%); }
.dark { background: linear-gradient(135deg, #1a1a24 0%, #2a2a34 100%); color: #d4d4de; }
.light { background: linear-gradient(135deg, #b0b0be 0%, #e8e8ee 42%, #dcdce6 62%, #b0b0be 100%); color: #2a2a34; }
.seam {
    position: absolute;
    top: 0;
    left: -5vw;
    width: 110vw;
    height: 2px;
    background: var(--seam);
    transform: rotate(-3.4deg);
    transform-origin: left center;
    opacity: 0.9;
}

.section-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 2.2rem);
    width: min(1180px, 100%);
    margin: 0 auto;
}
.primary-column { grid-column: 2 / 6; }
.title-span { grid-column: 1 / 6; }
.annotation { grid-column: 6 / 8; align-self: center; }
.tilted { transform: rotate(-7deg); }
.tilted-reverse { transform: rotate(7deg); }

.kicker, .label {
    color: #4a9eff;
    font-family: var(--ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
h1, h2, h3 {
    font-family: var(--display);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
h1 { max-width: 980px; font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 900; }
h2 { max-width: 820px; font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 700; }
.dark h1, .dark h2 { color: #e8e8ee; text-shadow: 0 0 28px rgba(74,158,255,0.18); }
.light h2 { color: #1a1a24; }
p { max-width: 740px; margin-top: 1.35rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #d4d4de; }
.light p { color: #2a2a34; }

.chrome-card {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border: 1px solid #c0c0d0;
    border-radius: 2px;
    background: var(--chrome);
    background-size: 180% 180%;
    color: #2a2a34;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: background-position 300ms ease, transform 300ms ease;
}
.chrome-card:hover { background-position: 80% 20%; }
.chrome-card p { margin-top: .6rem; color: #2a2a34; }
.incident-card { border-color: #ff6b3d; box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 18px rgba(255,107,61,0.22), inset 0 1px 0 rgba(255,255,255,0.3); }

.instrument-row, .debate-panel, .risk-stack, .lexicon-grid, .timeline-ledger {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.instrument-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.instrument-row.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.instrument, .debate-panel div, .risk-stack div, .lexicon-grid div, .timeline-ledger div {
    border: 1px solid rgba(176,176,190,0.55);
    border-radius: 2px;
    padding: 1rem;
    background: rgba(26,26,36,0.35);
}
.light .instrument, .light .debate-panel div { background: rgba(232,232,238,0.45); border-color: rgba(42,42,52,0.18); }
.instrument strong, .debate-panel b, .lexicon-grid dt {
    display: block;
    color: #4a9eff;
    font-family: var(--ui);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.instrument span, .debate-panel span, .timeline-ledger span, .lexicon-grid dd { display: block; margin-top: .45rem; font-size: .94rem; line-height: 1.55; }
.timeline-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline-ledger time { color: #4a9eff; font-family: var(--ui); font-weight: 500; letter-spacing: 0.05em; }
.timeline-ledger .warning { border-color: #ff6b3d; box-shadow: inset 3px 0 0 #ff6b3d; }
.risk-stack div { display: flex; gap: 1rem; align-items: center; }
.risk-stack span { color: #ff6b3d; font-family: var(--ui); letter-spacing: 0.05em; }
.lexicon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.core-rings {
    position: absolute;
    z-index: 1;
    width: 466px;
    height: 466px;
    opacity: 1;
    pointer-events: none;
}
.rings-a { right: 6vw; top: 15vh; }
.rings-b { left: -70px; bottom: 10vh; }
.rings-c { right: -110px; bottom: 12vh; }
.rings-d { left: 8vw; top: 10vh; }
.rings-e { right: 12vw; top: 18vh; }
.rings-f { left: -80px; top: 22vh; }
.rings-g { right: -90px; top: 8vh; }
.core-rings span, .core-rings b {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.core-rings span { border: 1px solid rgba(176,176,190,0.08); }
.light .core-rings span { border-color: rgba(42,42,52,0.08); }
.core-rings span:nth-child(1) { width: 68px; height: 68px; }
.core-rings span:nth-child(2) { width: 110px; height: 110px; }
.core-rings span:nth-child(3) { width: 178px; height: 178px; }
.core-rings span:nth-child(4) { width: 288px; height: 288px; }
.core-rings span:nth-child(5) { width: 466px; height: 466px; }
.core-rings b { width: 6px; height: 6px; background: #4a9eff; box-shadow: 0 0 8px rgba(74, 158, 255, 0.4); }

.skeleton-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    align-content: center;
    gap: 18px;
    padding-left: clamp(2rem, 18vw, 16rem);
    padding-right: 18vw;
    background: inherit;
    transition: opacity 400ms ease, visibility 400ms ease;
}
.skeleton-layer i {
    display: block;
    height: 22px;
    background: linear-gradient(90deg, #b0b0be 25%, #d0d0de 50%, #b0b0be 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    box-shadow: 0 0 0 1px rgba(192,192,208,0.25);
}
.skeleton-layer i:nth-child(1) { width: min(760px, 85%); height: 54px; }
.skeleton-layer i:nth-child(2) { width: min(620px, 76%); }
.skeleton-layer i:nth-child(3) { width: min(700px, 82%); }
.skeleton-layer i:nth-child(4) { width: min(420px, 55%); }
.real-content { opacity: 0; transition: opacity 400ms ease; }
.diagonal-section.loaded .skeleton-layer { opacity: 0; visibility: hidden; }
.diagonal-section.loaded .real-content { opacity: 1; }

.footer-section {
    position: relative;
    z-index: 2;
    min-height: 330px;
    overflow: hidden;
    padding: 7rem 1.5rem 9rem;
    background: #1a1a24;
    color: #d4d4de;
    text-align: center;
}
.footer-content { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; }
.footer-content p { margin-left: auto; margin-right: auto; }
.skyline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: #2a2a34;
    clip-path: polygon(0 86%, 3% 86%, 3% 70%, 7% 70%, 7% 61%, 10% 61%, 10% 76%, 14% 76%, 14% 52%, 18% 52%, 18% 65%, 21% 65%, 21% 35%, 24% 35%, 24% 58%, 29% 58%, 29% 43%, 33% 43%, 33% 72%, 37% 72%, 37% 50%, 42% 50%, 42% 28%, 46% 28%, 46% 64%, 50% 64%, 50% 47%, 55% 47%, 55% 57%, 60% 57%, 60% 39%, 64% 39%, 64% 74%, 69% 74%, 69% 55%, 73% 55%, 73% 69%, 78% 69%, 78% 44%, 81% 44%, 81% 80%, 86% 80%, 86% 62%, 91% 62%, 91% 77%, 96% 77%, 96% 67%, 100% 67%, 100% 100%, 0 100%);
}
.beacon { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #4a9eff; animation: beacon 2s infinite alternate; }
.b1 { left: 22.5%; top: 36px; }
.b2 { left: 44%; top: 28px; animation-delay: .7s; }
.b3 { left: 79.5%; top: 45px; animation-delay: 1.3s; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes markerPulse { from { transform: translate(-50%, -50%) rotate(45deg) scale(.9); } to { transform: translate(-50%, -50%) rotate(45deg) scale(1.25); } }
@keyframes beacon { from { opacity: .35; box-shadow: 0 0 0 rgba(74,158,255,0); } to { opacity: 1; box-shadow: 0 0 12px rgba(74,158,255,.8); } }

@media (max-width: 900px) {
    .section-grid { grid-template-columns: 1fr; }
    .primary-column, .title-span, .annotation { grid-column: 1; }
    .annotation, .tilted, .tilted-reverse { transform: none; }
    .instrument-row, .instrument-row.wide, .timeline-ledger, .lexicon-grid { grid-template-columns: 1fr; }
    .core-rings { opacity: .65; }
}

@media (max-width: 620px) {
    :root { --offset: 40px; }
    body { font-size: 16px; }
    .diagonal-section { min-height: 100vh; padding: 6rem 1rem; }
    .progress-rail { display: none; }
    .control-pill:hover { max-width: calc(100vw - 44px); }
    .skeleton-layer { padding: 1rem; }
    .core-rings { width: 300px; height: 300px; }
}
