:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-elevated: #080808;
    --surface: #111111;
    --surface-alt: #141414;
    --surface-strong: #181818;
    --surface-glass: rgba(10, 10, 10, 0.72);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --text-secondary: #b3b3b3;
    --text-muted: #8c8c8c;
    --text-faint: #7a7a7a;
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.18);
    --accent-strong: #38bdf8;
    --accent-secondary: #10b981;
    --accent-secondary-soft: rgba(16, 185, 129, 0.16);
    --warning: #f59e0b;
    --high: #fb7185;
    --critical: #ef4444;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 30px;
    --container: 1240px;
    --reading: 780px;
    --nav-height: 82px;
    --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="graphite"] {
    --bg: #0b0b0b;
    --bg-elevated: #101010;
    --surface: #151515;
    --surface-alt: #191919;
    --surface-strong: #202020;
    --surface-glass: rgba(17, 17, 17, 0.72);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.07), transparent 24%),
        radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.05), transparent 20%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.65), transparent 72%);
    opacity: 0.45;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(34, 211, 238, 0.22);
    color: var(--text);
}

.page-shell {
    position: relative;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 16px 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--nav-height);
    padding: 16px 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-glass);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background:
        radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.4), transparent 58%),
        linear-gradient(160deg, rgba(17, 24, 39, 0.8), rgba(5, 5, 5, 0.98));
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-tag {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link,
.icon-button,
.theme-toggle,
.mobile-toggle {
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-link {
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.theme-toggle,
.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-color: var(--border);
}

.icon-button:hover,
.theme-toggle:hover,
.mobile-toggle:hover,
.button:hover,
.chip:hover,
.note-card:hover,
.story-card:hover,
.brief-card:hover,
.archive-item:hover {
    transform: translateY(-1px);
}

.theme-toggle span:last-child,
.search-trigger span:last-child {
    font-size: 0.88rem;
}

.mobile-toggle {
    display: none;
}

.page-hero,
.subpage-hero {
    position: relative;
    padding: 44px 0 48px;
}

.page-hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 36px;
    align-items: stretch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
}

.hero-title,
.subpage-title,
.article-title {
    margin: 18px 0 18px;
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero-title {
    max-width: 11ch;
    font-size: clamp(3.3rem, 7vw, 6.3rem);
}

.hero-lead,
.subpage-lead {
    max-width: 63ch;
    color: var(--text-secondary);
    font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.hero-meta,
.article-meta,
.mini-meta,
.brief-meta,
.archive-meta,
.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-pill,
.tag,
.severity,
.stat-label,
.toc-link,
.search-chip {
    border: 1px solid var(--border);
    border-radius: 999px;
}

.meta-pill,
.tag,
.severity,
.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.severity.low {
    color: #86efac;
}

.severity.medium {
    color: #fcd34d;
}

.severity.high {
    color: #fda4af;
}

.severity.critical {
    color: #f87171;
}

.hero-actions,
.subpage-actions,
.ioc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.chip.active {
    border-color: rgba(34, 211, 238, 0.26);
    background: rgba(34, 211, 238, 0.1);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.08);
}

.button-primary {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(16, 185, 129, 0.12));
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 16px 36px rgba(10, 12, 14, 0.3);
}

.button-secondary:hover,
.button-primary:hover {
    border-color: rgba(34, 211, 238, 0.32);
    box-shadow: 0 16px 32px rgba(34, 211, 238, 0.08);
}

.hero-panel,
.story-card,
.brief-card,
.note-card,
.archive-item,
.stat-card,
.article-figure,
.article-callout,
.toc,
.iocs-panel,
.author-card,
.mission-panel,
.values-grid .value-card,
.process-step,
.article-aside-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.96));
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    min-height: 560px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-panel::before,
.article-figure::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.18), transparent 22%),
        radial-gradient(circle at 24% 75%, rgba(16, 185, 129, 0.12), transparent 18%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 38px 38px, 38px 38px;
    opacity: 0.8;
}

.hero-panel::after,
.article-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 78% 62%, rgba(34, 211, 238, 0.18) 2px, transparent 3px),
        radial-gradient(circle at 58% 24%, rgba(16, 185, 129, 0.18) 1.5px, transparent 2px);
    background-size: 240px 240px, 220px 220px, 280px 280px;
    animation: drift 20s linear infinite;
    opacity: 0.5;
}

.hero-panel-content,
.hero-illustration,
.article-figure-inner {
    position: relative;
    z-index: 1;
}

.hero-panel-kicker {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel-title,
.section-title,
.story-title,
.archive-title,
.brief-title,
.article-section h2,
.article-section h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.hero-panel-title {
    max-width: 11ch;
    margin: 10px 0 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1;
}

.hero-panel-summary,
.story-summary,
.archive-summary,
.brief-summary,
.article-summary,
.article-section p,
.article-section li,
.toc p,
.mission-panel p,
.value-card p,
.process-step p,
.author-card p,
.article-aside-card p {
    color: var(--text-secondary);
}

.hero-illustration {
    align-self: stretch;
    min-height: 220px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(115deg, rgba(34, 211, 238, 0.06), transparent 48%),
        radial-gradient(circle at 72% 35%, rgba(56, 189, 248, 0.3), transparent 25%),
        radial-gradient(circle at 30% 72%, rgba(16, 185, 129, 0.22), transparent 22%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.32), rgba(8, 8, 8, 0.85));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
    opacity: 0.72;
}

.section {
    padding: 36px 0 72px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-copy {
    max-width: 60ch;
    color: var(--text-secondary);
}

.stats-grid,
.story-grid,
.brief-grid,
.values-grid,
.process-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    padding: 24px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

.stat-label {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.story-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.story-card {
    padding: 22px;
}

.story-card.featured {
    min-height: 520px;
}

.story-card.featured .story-visual {
    min-height: 240px;
}

.story-visual,
.brief-visual,
.archive-visual {
    position: relative;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.3), transparent 22%),
        radial-gradient(circle at 24% 76%, rgba(16, 185, 129, 0.18), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(8, 8, 8, 0.95));
}

.story-visual {
    min-height: 180px;
}

.archive-visual {
    width: 92px;
    min-width: 92px;
    height: 92px;
    margin: 0;
}

.story-visual::before,
.brief-visual::before,
.archive-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
}

.story-card:hover,
.brief-card:hover,
.note-card:hover,
.archive-item:hover {
    border-color: rgba(34, 211, 238, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.story-title,
.archive-title,
.brief-title {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.1;
}

.story-summary,
.brief-summary,
.archive-summary {
    margin: 0 0 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    min-height: 32px;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mini-meta,
.archive-meta,
.brief-meta {
    margin-top: 18px;
}

.compact-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.archive-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px;
}

.archive-copy {
    flex: 1;
}

.brief-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brief-card,
.note-card {
    padding: 18px;
}

.brief-visual {
    min-height: 88px;
}

.notes-board {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.note-list {
    display: grid;
    gap: 14px;
}

.note-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.note-stamp {
    min-width: 74px;
    font-family: var(--font-heading);
    font-size: 0.94rem;
    color: var(--text-muted);
}

.subpage-hero {
    padding-top: 26px;
}

.subpage-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.toc {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
    padding: 22px;
}

.toc-title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.toc-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.toc-link {
    padding: 12px 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
}

.toc-link.active,
.toc-link:hover {
    color: var(--text);
    border-color: rgba(34, 211, 238, 0.18);
    background: rgba(34, 211, 238, 0.08);
}

.article-shell {
    display: grid;
    gap: 24px;
}

.article-hero {
    padding-top: 24px;
}

.article-title {
    font-size: clamp(3rem, 6vw, 5.4rem);
    max-width: 12ch;
}

.article-summary {
    max-width: 68ch;
    font-size: 1.08rem;
}

.article-figure {
    min-height: 380px;
    padding: 26px;
}

.article-figure-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.figure-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.figure-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.3);
}

.article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, var(--reading));
    justify-content: center;
    gap: 28px;
    padding-bottom: 80px;
}

.article-content {
    display: grid;
    gap: 24px;
}

.article-section {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.92));
}

.article-section h2 {
    margin: 0 0 16px;
    font-size: 2rem;
}

.article-section h3 {
    margin: 28px 0 10px;
    font-size: 1.24rem;
}

.article-section blockquote {
    margin: 24px 0;
    padding: 22px 24px;
    border-left: 2px solid rgba(34, 211, 238, 0.32);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    font-size: 1.08rem;
}

.article-callout {
    padding: 20px;
    margin: 22px 0;
}

.article-callout strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.article-section ul,
.article-section ol {
    margin: 12px 0;
    padding-left: 20px;
}

.signal-grid,
.artifact-grid,
.author-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.signal-grid {
    margin-top: 18px;
}

.signal-card {
    flex: 1 1 180px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

pre,
code {
    font-family: var(--font-mono);
}

pre {
    margin: 18px 0 0;
    padding: 18px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #070707;
    color: #d6f8ff;
    font-size: 0.92rem;
}

code {
    color: #8be9ff;
}

.code-block {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 14px;
    right: 14px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(17, 17, 17, 0.92);
    color: var(--text-secondary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.ioc-search {
    min-height: 46px;
    width: min(100%, 340px);
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.copyable {
    cursor: pointer;
}

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

.author-card,
.mission-panel {
    padding: 24px;
}

.author-row {
    display: flex;
    gap: 18px;
    align-items: center;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    background:
        radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.35), transparent 54%),
        linear-gradient(180deg, #151515, #090909);
}

.footer {
    padding: 24px 0 44px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card,
.process-step {
    padding: 22px;
}

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

.search-dialog {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 16px 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.search-dialog.open {
    display: flex;
}

.search-panel {
    width: min(820px, 100%);
    padding: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.98));
    box-shadow: var(--shadow);
}

.search-header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.search-input {
    flex: 1;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.search-results {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.search-result {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.search-result:hover {
    border-color: rgba(34, 211, 238, 0.18);
    background: rgba(34, 211, 238, 0.06);
}

.search-result.hidden,
.search-empty.hidden,
[data-filter-item].hidden,
[data-ioc-row].hidden {
    display: none;
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
}

.search-result-meta,
.search-empty {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.iocs-panel {
    padding: 24px;
}

.minimal-home {
    min-height: 100vh;
}

.minimal-header {
    padding-bottom: 0;
}

.minimal-nav {
    min-height: 72px;
    padding: 14px 18px;
}

.minimal-hero {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    padding: 32px 0 56px;
}

.minimal-shell {
    display: grid;
    gap: 34px;
}

.minimal-copy {
    max-width: 760px;
}

.minimal-title {
    margin: 18px 0 14px;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.minimal-lead {
    max-width: 56ch;
    color: var(--text-secondary);
    font-size: clamp(1.02rem, 2vw, 1.16rem);
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.workspace-card {
    display: block;
    text-align: left;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.96));
    color: var(--text);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.workspace-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.workspace-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-title {
    margin: 0 0 14px;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.workspace-summary {
    margin: 0;
    color: var(--text-secondary);
}

.workspace-link {
    display: inline-flex;
    margin-top: 24px;
    color: var(--text);
    font-size: 0.92rem;
}

.top-back-button {
    flex-shrink: 0;
}

.story-section {
    scroll-margin-top: 110px;
}

.story-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 22px;
}

.full-article-hero {
    padding: 38px 0 24px;
}

.full-article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: end;
}

.full-article-title {
    margin: 18px 0 16px;
    max-width: 12ch;
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.full-article-lead {
    max-width: 68ch;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.full-article-summary {
    align-self: stretch;
}

.full-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.full-article-content {
    display: grid;
    gap: 20px;
}

.full-article-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--nav-height) + 28px);
}

.reader-code {
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.reader-code pre {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.reader-aside {
    display: grid;
    gap: 16px;
}

.reader-side-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.workspace-side-title {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.workspace-side-copy {
    color: var(--text-muted);
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-12px, 10px, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .content-grid,
    .notes-board,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .workspace-grid,
    .reader-layout,
    .full-article-grid,
    .full-article-layout {
        grid-template-columns: 1fr;
    }

    .full-article-sidebar {
        position: static;
    }

    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brief-grid,
    .stats-grid,
    .values-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toc {
        position: static;
    }
}

@media (max-width: 840px) {
    .site-nav {
        align-items: flex-start;
        border-radius: 28px;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .site-nav.menu-open .nav-menu,
    .site-nav.menu-open .nav-actions {
        display: flex;
        width: 100%;
    }

    .site-nav.menu-open {
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-actions {
        order: 4;
    }

    .story-grid,
    .brief-grid,
    .stats-grid,
    .values-grid,
    .process-grid,
    .figure-grid {
        grid-template-columns: 1fr;
    }

    .archive-item,
    .note-card {
        flex-direction: column;
    }

    .archive-visual {
        width: 100%;
        height: 140px;
    }

    .hero-title,
    .article-title,
    .subpage-title {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .site-header {
        padding: 10px 0;
    }

    .site-nav,
    .hero-panel,
    .story-card,
    .article-section,
    .toc,
    .brief-card,
    .note-card,
    .archive-item,
    .mission-panel,
    .author-card,
    .value-card,
    .process-step {
        border-radius: 22px;
    }

    .hero-actions,
    .subpage-actions,
    .ioc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .chip {
        width: 100%;
    }

    .hero-panel,
    .article-figure {
        min-height: auto;
    }
}
