/* ==========================================================================
   GTA6Intel — "Intel Dossier Terminal"
   1 tokens · 2 base · 3 controls · 4 stamps · 5 header · 6 filter bar · 7 hero
   8 sections · 9 carousel · 10 cards · 11 featured · 12 case files · 13 index
   14 page head · 15 layout/sidebar · 16 single · 17 comments · 18 ads · 19 FAQ
   20 footer · 21 misc · 22 light refinements · 23 responsive · 24 reduced motion
   ========================================================================== */

/* ---------- 0. Self-hosted fonts (SIL OFL 1.1, see assets/fonts/) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched fallback: while the condensed font loads, Arial is scaled to the same text width (measured: 0.69), so wrapping — and layout — does not change on swap. */
@font-face { font-family: "Barlow Condensed Fallback"; font-weight: 700 800; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("DejaVu Sans Bold"); size-adjust: 69%; }
@font-face { font-family: "Barlow Condensed Fallback"; font-weight: 400 600; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto"), local("Liberation Sans"), local("LiberationSans"), local("DejaVu Sans"); size-adjust: 72%; }

/* ---------- 1. Tokens ---------- */
:root {
	--font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
	--font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
	--r-xs: 2px; --r-sm: 3px; --r-md: 4px; --r-lg: 6px;

	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--ease-slide: cubic-bezier(0.22, 0.61, 0.36, 1);
	--t-fast: 140ms; --t-ui: 220ms; --t-slow: 480ms;

	--container: 1240px;
	--narrow: 780px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* Dark — "Classified Charcoal" (default for everyone) */
:root,
:root[data-theme="dark"] {
	--bg-base: #0E0F12;
	--bg-raised: #16181D;
	--bg-overlay: #1C1F26;
	--bg-subtle: #23262E;
	--border: #2A2E37;
	--border-strong: #3A3F4B;
	--text-primary: #E7E5E4;
	--text-secondary: #A8A29E;
	--text-muted: #78716C;
	--crimson: #DC2626;
	--crimson-hover: #EF4444;
	--crimson-text: #F87171;
	--crimson-muted: rgba(220, 38, 38, 0.12);
	--on-crimson: #FFFFFF;
	--gold: #E0B341;
	--gold-muted: rgba(224, 179, 65, 0.12);
	--stone: #A8A29E;
	--redact: #050506;
	--focus: #F87171;
	--ok: #4ADE80;
	--err: #F87171;
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 30px -20px rgba(0, 0, 0, 0.9);
	--shadow-hover: 0 0 0 1px rgba(220, 38, 38, 0.5), 0 18px 36px -22px rgba(220, 38, 38, 0.45);
	--overlay: linear-gradient(180deg, rgba(14, 15, 18, 0.15) 0%, rgba(14, 15, 18, 0.35) 40%, rgba(14, 15, 18, 0.94) 100%);
	--grain: rgba(255, 255, 255, 0.018);
	--file-bg: #1C1F26;
	--file-text: #E7E5E4;
	--file-edge: #3A3F4B;
	--radar: rgba(220, 38, 38, 0.18);
	--strip-bg: #0A0B0D;
	--strip-text: #F87171;
}

/* Light — "Declassified Paper" */
:root[data-theme="light"] {
	--bg-base: #F4F1EA;
	--bg-raised: #FFFDF8;
	--bg-overlay: #FFFDF8;
	--bg-subtle: #EAE4D6;
	--border: #D9D1BF;
	--border-strong: #BFB49C;
	--text-primary: #1C1917;
	--text-secondary: #57534E;
	--text-muted: #78716C;
	--crimson: #B91C1C;
	--crimson-hover: #991B1B;
	--crimson-text: #B91C1C;
	--crimson-muted: rgba(185, 28, 28, 0.08);
	--on-crimson: #FFFFFF;
	--gold: #8A6A0B;
	--gold-muted: rgba(138, 106, 11, 0.1);
	--stone: #57534E;
	--redact: #1C1917;
	--focus: #B91C1C;
	--ok: #15803D;
	--err: #B91C1C;
	--shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 10px 24px -18px rgba(28, 25, 23, 0.35);
	--shadow-hover: 0 0 0 1px rgba(185, 28, 28, 0.45), 0 16px 30px -20px rgba(28, 25, 23, 0.45);
	--overlay: linear-gradient(180deg, rgba(28, 25, 23, 0.1) 0%, rgba(28, 25, 23, 0.3) 40%, rgba(28, 25, 23, 0.9) 100%);
	--grain: rgba(120, 90, 30, 0.035);
	--file-bg: #F1E6C8;
	--file-text: #1C1917;
	--file-edge: #CDBB8E;
	--radar: rgba(185, 28, 28, 0.12);
	--strip-bg: #B91C1C;
	--strip-text: #FFFFFF;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-base);
	background-image: repeating-linear-gradient(0deg, var(--grain) 0 1px, transparent 1px 4px);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--s4);
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.005em;
	color: var(--text-primary);
	overflow-wrap: anywhere;
}
p { margin: 0 0 var(--s4); }
a { color: var(--crimson-text); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--crimson-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--crimson); color: var(--on-crimson); }

.mono { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--narrow); }
.site-main { display: block; }
.media { position: relative; overflow: hidden; background: var(--bg-subtle); }
.media__img { width: 100%; height: 100%; object-fit: cover; }
.stretched { color: inherit; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }

.redact { display: block; height: 10px; margin-top: 6px; background: var(--redact); border-radius: 1px; }
.redact--w45 { width: 45%; } .redact--w50 { width: 50%; } .redact--w60 { width: 60%; } .redact--w70 { width: 70%; } .redact--w80 { width: 80%; }
.redact--inline { display: inline-block; width: 3.5em; height: 0.85em; margin: 0 2px; vertical-align: -1px; }

/* ---------- 3. Controls ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
	min-height: 44px; padding: 10px 20px;
	border: 1px solid transparent; border-radius: var(--r-sm);
	font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
	cursor: pointer; text-decoration: none;
	transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 50px; padding: 12px 24px; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--crimson); color: var(--on-crimson); }
.btn--primary:hover { background: var(--crimson-hover); color: var(--on-crimson); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--crimson); color: var(--crimson-text); }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--border); border-radius: var(--r-sm);
	background: var(--bg-raised); color: var(--text-primary); cursor: pointer;
	transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.icon-btn:hover { border-color: var(--crimson); color: var(--crimson-text); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 20px; height: 20px; }
.input {
	width: 100%; min-height: 44px; padding: 10px 14px;
	border: 1px solid var(--border-strong); border-radius: var(--r-sm);
	background: var(--bg-subtle); color: var(--text-primary); font: inherit; font-size: 1rem;
	transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-muted); }

.cat-badge {
	display: inline-flex; align-items: center; max-width: 100%;
	padding: 5px 10px; border-radius: var(--r-xs);
	background: var(--crimson); color: #fff;
	font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.cat-badge:hover { color: #fff; background: var(--crimson-hover); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px;
	border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--bg-subtle);
	color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.75rem;
}
.chip:hover { color: var(--crimson-text); border-color: var(--crimson); }
.meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0;
	color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.meta__sep { color: var(--crimson-text); opacity: 0.7; }

/* ---------- 4. Status stamps (text label always present — never colour alone) ---------- */
.stamp {
	--c: var(--stone);
	display: inline-flex; align-items: center; flex: none;
	padding: 3px 8px;
	border: 2px solid var(--c); border-radius: var(--r-xs);
	color: var(--c);
	background: color-mix(in srgb, var(--c) 10%, transparent);
	font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2;
	transform: rotate(-3deg);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
}
.stamp--confirmed { --c: var(--gold); }
.stamp--rumour { --c: var(--stone); border-style: dashed; }
.stamp--leak { --c: var(--crimson-text); }
.stamp--analysis { --c: var(--text-secondary); border-width: 1px; transform: none; }

/* ---------- 5. Header (normal flow — never fixed/sticky) ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg-base); border-bottom: 1px solid var(--border); }
.classified-strip {
	display: flex; align-items: center; justify-content: center; gap: var(--s3);
	padding: 5px var(--gutter);
	background: var(--strip-bg); color: var(--strip-text);
	font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
	line-height: 16px; height: 26px; white-space: nowrap; overflow: hidden;
}
.classified-strip__redact { display: inline-block; width: 64px; height: 8px; background: currentColor; opacity: 0.55; }
.site-header__bar { display: flex; align-items: center; gap: var(--s6); min-height: 68px; padding-block: var(--s2); }
.site-header__brand { flex: none; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.brand:hover { color: var(--text-primary); }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--crimson); border-radius: var(--r-xs); color: var(--crimson-text); }
.brand__mark .icon { width: 20px; height: 20px; }
.brand__accent { color: var(--crimson-text); }
.custom-logo-link img { max-height: 44px; width: auto; }

.site-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.site-nav__list { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.site-nav__list a {
	position: relative; display: block; padding: 10px 12px;
	color: var(--text-secondary); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.site-nav__list a:hover { color: var(--text-primary); }
.site-nav__list .current-menu-item > a, .site-nav__list a[aria-current="page"] { color: var(--text-primary); }
.site-nav__list .current-menu-item > a::after, .site-nav__list a[aria-current="page"]::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--crimson);
}
.site-header__actions { flex: none; display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.header-search { padding-block: var(--s4); border-top: 1px solid var(--border); background: var(--bg-raised); }
.header-search[hidden] { display: none; }

/* collapsed mode (breakpoint below, or JS whenever the nav would not fit on one line) */
.site-header.is-collapsed .menu-toggle { display: inline-grid; }
.site-header.is-collapsed .site-header__bar { flex-wrap: wrap; }
.site-header.is-collapsed .site-nav { display: none; order: 10; flex: 1 0 100%; justify-content: flex-start; padding-bottom: var(--s3); }
.site-header.is-collapsed.is-open .site-nav { display: block; }
.site-header.is-collapsed .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
.site-header.is-collapsed .site-nav__list a { padding: 14px 2px; border-bottom: 1px solid var(--border); white-space: normal; }
.site-header.is-collapsed .site-nav__list a::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }

.search-form { position: relative; display: flex; gap: var(--s2); }
.search-form__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; color: var(--text-muted); pointer-events: none; }
.search-form__input { padding-left: 40px; }
.search-form__btn { flex: none; }

/* ---------- 6. Filter bar (hidden scrollbar + fade edges, never a browser scrollbar) ---------- */
.filter-bar { border-top: 1px solid var(--border); background: var(--bg-raised); }
.filter-bar__wrap {
	position: relative;
	--fade-l: 0px; --fade-r: 40px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.filter-bar__wrap.is-scrolled { --fade-l: 40px; }
.filter-bar__wrap.is-end { --fade-r: 0px; }
.filter-bar__wrap.no-overflow { --fade-l: 0px; --fade-r: 0px; }
.filter-bar__list {
	display: flex; gap: var(--s2); margin: 0; padding: 10px 0; list-style: none;
	overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
	scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.filter-bar__list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.filter-bar__list li { flex: none; }
.filter-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px;
	border: 1px solid var(--border); border-radius: var(--r-xs);
	color: var(--text-secondary); background: var(--bg-base);
	font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
	transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--crimson); color: var(--text-primary); }
.filter-chip.is-active { border-color: var(--crimson); color: var(--text-primary); box-shadow: inset 3px 0 0 var(--crimson); }
.filter-chip__count { color: var(--text-muted); font-size: 0.6875rem; }

/* ---------- 7. Hero: 3D dossier + stats ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center;
	min-height: min(72vh, 640px);
	max-height: none;
	padding-block: clamp(28px, 5vh, 56px);
	border-bottom: 1px solid var(--border);
	background: radial-gradient(60% 70% at 70% 45%, var(--crimson-muted), transparent 70%);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(200px, 230px);
	grid-template-areas: "copy stage stats";
	align-items: center;
	gap: clamp(20px, 3vw, 44px);
}
.hero__copy { grid-area: copy; position: relative; z-index: 2; }
.hero__label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s4); padding: 6px 10px; border: 1px solid var(--border-strong); color: var(--text-secondary); font-size: 0.6875rem; }
.hero__label-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-muted); animation: gi-blink 1.6s steps(2, start) infinite; }
.hero__title {
	font-size: clamp(2.6rem, 1.5rem + 3.3vw, 4.5rem);
	font-weight: 800; line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase;
	margin-bottom: var(--s4); text-wrap: balance;
	overflow-wrap: normal; word-break: normal; hyphens: manual;
}
.hero__text { max-width: 48ch; color: var(--text-secondary); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); margin-bottom: var(--s6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero__stage { grid-area: stage; position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1 / 1; perspective: 1200px; perspective-origin: 50% 40%; pointer-events: none; }
.radar {
	position: absolute; inset: 4%; border-radius: 50%; overflow: hidden;
	border: 1px solid var(--radar);
	background:
		linear-gradient(var(--radar), var(--radar)) center / 100% 1px no-repeat,
		linear-gradient(90deg, var(--radar), var(--radar)) center / 1px 100% no-repeat,
		repeating-radial-gradient(circle at center, transparent 0 18%, var(--radar) 18% calc(18% + 1px));
	opacity: 0.9;
}
.radar__sweep {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(from 0deg, color-mix(in srgb, var(--crimson) 38%, transparent), transparent 70deg, transparent);
	animation: gi-spin 6s linear infinite;
}
.radar__blip { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson-text); box-shadow: 0 0 10px var(--crimson); animation: gi-blip 3s ease-out infinite; }
.radar__blip--1 { left: 68%; top: 28%; }
.radar__blip--2 { left: 24%; top: 70%; animation-delay: 1.5s; }
.scanlines { position: absolute; inset: 0; overflow: hidden; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); -webkit-mask-image: radial-gradient(circle at center, #000 45%, transparent 72%); mask-image: radial-gradient(circle at center, #000 45%, transparent 72%); }
.scanlines::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--crimson) 14%, transparent)); animation: gi-scan 5s linear infinite; }

.dossier {
	position: absolute; inset: 0;
	transform-style: preserve-3d;
	transform: rotateX(12deg) rotateY(-14deg);
	animation: gi-sway 22s ease-in-out infinite alternate;
}
.file-card {
	--x: 20%; --y: 26%; --tz: 0px; --ry: 0deg; --rz: 0deg;
	position: absolute; left: var(--x); top: var(--y); width: 62%;
	padding: 26px 18px 18px;
	border: 1px solid var(--file-edge); border-radius: var(--r-md);
	background: var(--file-bg); color: var(--file-text);
	box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.75);
	transform: translateZ(var(--tz)) rotateY(var(--ry)) rotateZ(var(--rz));
	animation: gi-float 9s ease-in-out infinite alternate;
	backface-visibility: hidden;
}
.file-card::before { content: ""; position: absolute; left: 14px; top: -12px; width: 42%; height: 13px; border: 1px solid var(--file-edge); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--file-bg); }
.file-card--1 { --x: 2%; --y: 8%; --tz: 70px; --ry: -8deg; --rz: -4deg; z-index: 3; }
.file-card--2 { --x: 36%; --y: 34%; --tz: -30px; --ry: -14deg; --rz: 3deg; z-index: 1; animation-duration: 11s; animation-delay: -3s; }
.file-card--3 { --x: 4%; --y: 66%; --tz: 40px; --ry: -6deg; --rz: -2deg; z-index: 2; animation-duration: 13s; animation-delay: -6s; }
.file-card__tab { position: absolute; left: 22px; top: -10px; margin: 0; font-size: 0.5625rem; color: var(--crimson-text); z-index: 1; }
.file-card__label { margin: 0 0 4px; color: color-mix(in srgb, var(--file-text) 65%, transparent); font-size: 0.625rem; }
.file-card__value { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.3vw, 2.1rem); line-height: 1; letter-spacing: 0.02em; color: var(--gold); }
.file-card__value--sm { font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem); color: var(--file-text); }
.file-card__sub { margin: 0 0 6px; font-size: 0.625rem; color: color-mix(in srgb, var(--file-text) 70%, transparent); }
.file-card__stamp { position: absolute; right: 12px; top: 12px; transform: rotate(-8deg); font-size: 0.5625rem; }

.hero__stats { grid-area: stats; display: grid; gap: 0; margin: 0; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--bg-raised) 88%, transparent); position: relative; z-index: 2; }
.stat { display: grid; padding: var(--s4) var(--s4) var(--s4) 18px; border-bottom: 1px solid var(--border); position: relative; }
.stat:last-child { border-bottom: 0; }
.stat::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--crimson); }
.stat:first-child::before { background: var(--gold); }
.stat__label { color: var(--text-secondary); font-size: 0.625rem; margin-bottom: 2px; }
.stat__value { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.stat__pre { color: var(--gold); }
.stat__note { margin: 4px 0 0; color: var(--text-muted); font-size: 0.5625rem; }

@keyframes gi-sway { 0% { transform: rotateX(14deg) rotateY(-20deg); } 100% { transform: rotateX(8deg) rotateY(6deg); } }
@keyframes gi-float {
	0% { transform: translateZ(var(--tz)) rotateY(var(--ry)) rotateZ(var(--rz)); }
	100% { transform: translate3d(0, -8px, calc(var(--tz) + 18px)) rotateY(calc(var(--ry) + 4deg)) rotateZ(calc(var(--rz) - 1.5deg)); }
}
@keyframes gi-spin { to { transform: rotate(360deg); } }
@keyframes gi-blip { 0%, 100% { opacity: 0; transform: scale(0.6); } 20% { opacity: 1; transform: scale(1); } 60% { opacity: 0.2; } }
@keyframes gi-scan { from { transform: translateY(-100%); } to { transform: translateY(560%); } }
@keyframes gi-blink { to { opacity: 0.25; } }

/* ---------- 8. Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); padding-bottom: var(--s3); border-bottom: 2px solid var(--text-primary); }
.sec-head__text { min-width: 0; }
.sec-head__code { margin: 0 0 6px; color: var(--crimson-text); font-size: 0.6875rem; }
.sec-head__title { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); font-weight: 800; text-transform: uppercase; line-height: 1; }
.sec-head__link { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.sec-head__link .icon { transition: transform var(--t-fast) var(--ease-out); }
.sec-head__link:hover .icon { transform: translateX(3px); }

/* ---------- 9. Carousel ---------- */
.carousel__nav { display: flex; gap: var(--s2); flex: none; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track { --spv: 1; display: flex; margin-inline: calc(var(--s2) * -1); transition: transform 640ms var(--ease-slide); will-change: transform; }
.carousel__track.no-anim, .carousel__track.is-dragging { transition: none; }
.carousel__slide { flex: 0 0 calc(100% / var(--spv)); min-width: 0; padding-inline: var(--s2); }
.slide { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-raised); }
.slide__media { position: absolute; inset: 0; }
.slide__media .media__img { transition: transform var(--t-slow) var(--ease-out); }
.slide:hover .media__img { transform: scale(1.04); }
.slide__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--s6); background: var(--overlay); }
.slide__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); position: relative; z-index: 2; pointer-events: none; }
.slide__bottom { display: flex; flex-direction: column; gap: var(--s2); }
.slide__file { margin: 0; color: #FCA5A5; font-size: 0.625rem; }
.slide__title { margin: 0; color: #FAFAF9; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.05; text-wrap: balance; }
.slide__title a { color: inherit; }
.slide .meta { color: #D6D3D1; }
.slide .stamp { background: rgba(14, 15, 18, 0.7); }
.carousel__dots { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s6); }
.carousel__dot { position: relative; width: 26px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: width var(--t-ui) var(--ease-out); }
.carousel__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--border-strong); }
.carousel__dot.is-active { width: 60px; }
.carousel__bar { position: absolute; left: 0; top: 50%; width: 100%; height: 4px; margin-top: -2px; background: var(--crimson); transform: scaleX(0); transform-origin: left center; }
.carousel__dot.is-active .carousel__bar { transform: scaleX(1); }
.carousel.is-auto .carousel__dot.is-active .carousel__bar { animation: gi-progress var(--interval, 5000ms) linear forwards; }
.carousel.is-paused .carousel__dot.is-active .carousel__bar { animation-play-state: paused; }
@keyframes gi-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 10. Cards ---------- */
.card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--border); border-radius: var(--r-md);
	background: var(--bg-raised); box-shadow: var(--shadow);
	transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card__media { aspect-ratio: 16 / 10; }
.card__media .media__img { transition: transform var(--t-slow) var(--ease-out); }
.card:hover .card__media .media__img { transform: scale(1.04); }
.card__stamp { position: absolute; right: 12px; top: 12px; z-index: 2; background: color-mix(in srgb, var(--bg-base) 82%, transparent); }
.card__body { display: flex; flex-direction: column; gap: var(--s3); flex: 1; padding: var(--s4) var(--s4) var(--s6); }
.card__kicker { display: flex; gap: 10px; margin: 0; color: var(--text-muted); font-size: 0.625rem; min-width: 0; }
.card__cat { color: var(--crimson-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__title { margin: 0; font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.5rem); line-height: 1.1; }
.card__title a:hover { color: var(--crimson-text); }
.card__excerpt { margin: 0; color: var(--text-secondary); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

.row-card {
	position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: var(--s4); align-items: center;
	padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-base);
	transition: border-color var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.row-card:hover, .row-card:focus-within { border-color: var(--crimson); transform: translateX(3px); }
.row-card__media { aspect-ratio: 4 / 3; border-radius: var(--r-xs); }
.row-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.row-card__title { margin: 0; font-size: 1.2rem; line-height: 1.1; }
.row-card__title a:hover { color: var(--crimson-text); }
.row-card .stamp { font-size: 0.5625rem; padding: 2px 6px; }

.grid { display: grid; gap: var(--s6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.grid--3 .card__title { font-size: 1.2rem; }

/* ---------- 11. Featured grid ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.card--lead { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.card--lead .card__media { aspect-ratio: auto; min-height: 100%; }
.card--lead .card__media .media__img { position: absolute; inset: 0; }
.card--lead .card__body { justify-content: center; padding: clamp(20px, 3vw, 40px); gap: var(--s4); }
.card--lead .card__title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1; }
.card--lead .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }

/* ---------- 12. Case files (category sections) ---------- */
.case-panel { position: relative; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--border); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); background: var(--bg-raised); }
.case-panel::before { content: ""; position: absolute; left: -1px; top: -14px; width: 180px; height: 14px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg-raised); }
.sec-head--case { border-bottom-width: 1px; border-color: var(--border-strong); }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.case-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.case-layout__rows { display: flex; flex-direction: column; gap: var(--s3); }
.card--case { background: var(--bg-base); }

/* ---------- 13. Numbered index ---------- */
.index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.index-row {
	position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s4); align-items: center;
	padding: var(--s4) var(--s3); border-bottom: 1px dashed var(--border-strong);
	transition: background-color var(--t-fast) var(--ease-out);
}
.index-row:hover, .index-row:focus-within { background: var(--crimson-muted); }
.index-row__num { color: var(--crimson-text); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; }
.index-row__main { min-width: 0; }
.index-row__title { margin: 0 0 4px; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.1; }
.index-row__title a:hover { color: var(--crimson-text); }
.index-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--text-secondary); font-size: 0.625rem; }
.index-row__cat { color: var(--text-primary); }

.pagination { margin-top: var(--s12); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.pagination li > .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-raised); color: var(--text-primary); font-family: var(--font-mono); font-size: 0.875rem; }
.pagination a.page-numbers:hover { border-color: var(--crimson); color: var(--crimson-text); }
.pagination li > .page-numbers.current { background: var(--crimson); border-color: var(--crimson); color: var(--on-crimson); font-weight: 600; }
.pagination li > .page-numbers.dots { border: 0; background: none; }

/* ---------- 14. Page head + breadcrumbs ---------- */
.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); margin-bottom: clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--crimson-muted), transparent 60%); }
.page-head__code { margin: var(--s4) 0 var(--s2); color: var(--crimson-text); }
.page-head__title { margin: 0; font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.page-head__desc { max-width: 70ch; margin-top: var(--s4); color: var(--text-secondary); }
.page-head__desc p:last-child { margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 0.6875rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--crimson-text); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--crimson-text); }
.breadcrumbs [aria-current="page"] { color: var(--text-primary); max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 15. Layout + sidebar (no internal scrollbars anywhere) ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
.site-main--single .with-sidebar { padding-top: clamp(24px, 4vw, 40px); }
.with-sidebar__main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: var(--s6); min-width: 0; overflow: visible; }
.widget { padding: var(--s6); border: 1px solid var(--border); border-top: 3px solid var(--crimson); border-radius: var(--r-md); background: var(--bg-raised); box-shadow: var(--shadow); overflow: visible; }
.widget__title, .widget .wp-block-heading, .widget .wp-block-search__label { display: block; margin: 0 0 var(--s4); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary); }
.widget__title::before { content: "▌ "; color: var(--crimson-text); }
.widget ul, .widget ol { margin: 0; padding: 0; list-style: none; }

.launch-box__count { display: flex; align-items: baseline; gap: var(--s2); margin: 0 0 var(--s4); padding: var(--s4); border: 1px dashed var(--gold); background: var(--gold-muted); }
.launch-box__num { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.launch-box__unit { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.launch-box__list { margin: 0; }
.launch-box__list div { display: flex; justify-content: space-between; gap: var(--s4); padding-block: 9px; border-bottom: 1px solid var(--border); }
.launch-box__list div:last-child { border-bottom: 0; }
.launch-box__list dt { flex: none; padding-top: 2px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.launch-box__list dd { margin: 0; text-align: right; font-weight: 600; font-size: 0.9rem; }
.launch-box__list .is-confirmed dd { color: var(--gold); }
.launch-box__legend { display: flex; align-items: center; gap: 6px; margin: var(--s3) 0 0; font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--gold { background: var(--gold); }

.cat-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover { color: var(--crimson-text); }
.cat-list__code { font-family: var(--font-mono); font-size: 0.625rem; color: var(--crimson-text); }
.cat-list__name { font-weight: 600; font-size: 0.95rem; }
.cat-list__count { min-width: 28px; padding: 2px 6px; border: 1px solid var(--border-strong); text-align: center; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-secondary); }

.popular__item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); padding-block: 10px; border-bottom: 1px solid var(--border); }
.popular__item:last-child { border-bottom: 0; }
.popular__num { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--border-strong); }
.popular__item:first-child .popular__num { color: var(--crimson-text); }
.popular__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.popular__title { color: var(--text-primary); font-weight: 600; font-size: 0.925rem; line-height: 1.35; }
.popular__title:hover { color: var(--crimson-text); }
.popular__meta { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.newsletter { display: flex; flex-direction: column; gap: var(--s2); }
.newsletter__text { margin: 0 0 var(--s2); color: var(--text-secondary); font-size: 0.925rem; }
.newsletter__label { font-weight: 600; font-size: 0.875rem; }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__msg { margin: var(--s2) 0 0; font-weight: 600; font-size: 0.9rem; }
.newsletter__msg.is-ok { color: var(--ok); }
.newsletter__msg.is-err { color: var(--err); }

/* core block widgets that WordPress places in new sidebars */
.widget .wp-block-group__inner-container > * + * { margin-top: var(--s3); }
.widget .wp-block-search__inside-wrapper { display: flex; gap: var(--s2); }
.widget .wp-block-search__input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg-subtle); color: var(--text-primary); font: inherit; }
.widget .wp-block-search__button { min-height: 44px; margin: 0; padding: 10px 16px; border: 0; border-radius: var(--r-sm); background: var(--crimson); color: #fff; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.widget .wp-block-latest-posts__list li, .widget .wp-block-categories-list li, .widget .wp-block-archives-list li, .widget .wp-block-latest-comments li { margin: 0; padding-block: 8px; border-bottom: 1px solid var(--border); }
.widget .wp-block-latest-posts__list li:last-child, .widget .wp-block-categories-list li:last-child, .widget .wp-block-archives-list li:last-child, .widget .wp-block-latest-comments li:last-child { border-bottom: 0; }
.widget .wp-block-latest-posts__post-title, .widget .wp-block-categories-list a, .widget .wp-block-archives-list a { color: var(--text-primary); font-weight: 600; font-size: 0.925rem; }
.widget .wp-block-latest-comments { padding: 0; }
.widget .wp-block-latest-comments__comment { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- 16. Single ---------- */
.entry { min-width: 0; }
.entry__head { margin-bottom: var(--s6); }
.entry__labels { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.entry__file { color: var(--text-muted); font-size: 0.6875rem; }
.entry__title { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); font-weight: 800; line-height: 0.98; text-wrap: balance; }
.entry__dek { max-width: 62ch; color: var(--text-secondary); font-size: 1.15rem; }
.entry__byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); padding-block: var(--s3); border-block: 1px solid var(--border); }
.entry__author { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; }
.entry__author img { border-radius: 50%; }
.entry__author a { color: var(--text-primary); }
.entry__updated { margin: 0; color: var(--gold); font-size: 0.6875rem; }
.entry__media { margin: 0 0 var(--s8); aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--r-md); }
.entry__media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s2) var(--s4); background: rgba(14, 15, 18, 0.8); color: #D6D3D1; font-size: 0.8125rem; }
.entry__foot { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px dashed var(--border-strong); }

.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose h2 { margin-top: 1.8em; margin-bottom: 0.4em; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); text-transform: uppercase; border-bottom: 2px solid var(--border-strong); padding-bottom: 6px; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.3em; font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.7rem); }
.prose h4 { margin-top: 1.3em; margin-bottom: 0.3em; font-size: 1.25rem; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--crimson-text); font-family: var(--font-mono); }
.prose strong { color: var(--text-primary); }
.prose blockquote { margin-inline: 0; padding: var(--s4) var(--s6); border-left: 4px solid var(--gold); background: var(--gold-muted); font-size: 1.1rem; }
.prose blockquote p { margin: 0; }
.prose figure { margin-inline: 0; }
.prose img { border-radius: var(--r-md); }
.prose figcaption { margin-top: var(--s2); color: var(--text-secondary); font-size: 0.875rem; font-family: var(--font-mono); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; overflow-wrap: anywhere; }
.prose .wp-block-table { overflow: visible; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-subtle); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.prose code { padding: 2px 6px; background: var(--bg-subtle); font-family: var(--font-mono); font-size: 0.9em; }
.prose pre { padding: var(--s4); border: 1px solid var(--border); background: var(--bg-subtle); white-space: pre-wrap; }
.prose pre code { padding: 0; background: none; }
.prose hr { margin-block: 2em; border: 0; border-top: 1px dashed var(--border-strong); }
.page-links { margin-top: var(--s6); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s8); }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-raised); color: var(--text-secondary); }
.post-nav__link:hover { border-color: var(--crimson); color: var(--crimson-text); }
.post-nav__link--next { grid-column: 2; text-align: right; }
.post-nav__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--text-primary); }
.related { margin-top: var(--s12); }
.related__title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); text-transform: uppercase; }

/* ---------- 17. Comments ---------- */
.comments { margin-top: var(--s12); padding-top: var(--s8); border-top: 2px solid var(--text-primary); }
.comments__title, .comment-reply-title { font-size: 1.8rem; text-transform: uppercase; }
.comment-list { margin: 0 0 var(--s8); padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: clamp(12px, 4vw, 40px); }
.comment-body { margin-bottom: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-raised); }
.comment-meta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s2); color: var(--text-secondary); font-size: 0.875rem; }
.comment-author img { float: left; margin-right: var(--s2); border-radius: 50%; }
.comment-author .says { display: none; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg-subtle); color: var(--text-primary); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-muted); }
.comment-form-cookies-consent { display: flex; gap: var(--s2); align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- 18. Ads (reserved space) ---------- */
.ad { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-block: var(--s8); padding: var(--s6) var(--s2) var(--s2); border: 1px dashed var(--border); overflow: hidden; text-align: center; }
.ad__label { position: absolute; top: 6px; left: 0; right: 0; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.ad--after-title { min-height: 120px; margin-block: 0 var(--s6); }
.ad--mid-content { min-height: 300px; }
.ad--after-content { min-height: 280px; }
.ad--sidebar { min-height: 620px; margin: 0; }
.ad > ins, .ad > div { width: 100%; }

/* ---------- 19. FAQ — dossier panels, directly above the footer ---------- */
.faq { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-raised), var(--bg-base)); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq__intro .sec-head__title { margin-bottom: var(--s4); }
.faq__lede { color: var(--text-secondary); }
.faq__list { display: flex; flex-direction: column; gap: var(--s4); }
.faq__item { position: relative; margin-top: 12px; border: 1px solid var(--border); border-radius: 0 var(--r-md) var(--r-md) var(--r-md); background: var(--bg-raised); transition: border-color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out); }
.faq__item.is-open { border-color: var(--border-strong); border-left: 4px solid var(--crimson); box-shadow: var(--shadow); }
.faq__h { margin: 0; font-size: 1rem; }
.faq__btn { display: flex; align-items: center; gap: var(--s4); width: 100%; min-height: 60px; padding: var(--s4) var(--s6); border: 0; background: transparent; color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem); text-align: left; cursor: pointer; }
.faq__tab { position: absolute; left: -1px; top: -13px; padding: 1px 10px; border: 1px solid var(--border); border-bottom: 0; background: var(--bg-raised); color: var(--crimson-text); font-size: 0.625rem; line-height: 12px; }
.faq__item.is-open .faq__tab { border-color: var(--border-strong); left: -4px; border-left: 4px solid var(--crimson); }
.faq__q { flex: 1; }
.faq__btn:hover .faq__q { color: var(--crimson-text); }
.faq__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border-strong); color: var(--crimson-text); }
.faq__icon .icon { transition: transform var(--t-ui) var(--ease-out); }
.faq__btn[aria-expanded="true"] .faq__icon { border-color: var(--crimson); }
.faq__btn[aria-expanded="true"] .faq__icon .icon { transform: rotate(45deg); }
.faq__panel { padding: 0 var(--s6) var(--s6); color: var(--text-secondary); }
.faq__panel p { margin: 0; padding-top: var(--s4); border-top: 1px dashed var(--border-strong); line-height: 1.7; }
.faq__item.is-open .faq__panel { animation: gi-open var(--t-ui) var(--ease-out); }
html:not(.js) .faq__panel[hidden] { display: block; }
@keyframes gi-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 20. Footer (charcoal in both modes, like a file's back cover) ---------- */
.site-footer { background: #0A0B0D; color: #D6D3D1; border-top: 4px solid var(--crimson); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 6vw, 64px); }
.site-footer__title { margin: 0 0 var(--s4); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #F87171; }
.site-footer__brand { margin-bottom: var(--s4); }
.site-footer .brand { color: #FAFAF9; }
.site-footer .brand__accent, .site-footer .brand__mark { color: #F87171; }
.site-footer__about p { max-width: 42ch; color: #A8A29E; font-size: 0.95rem; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list a { display: inline-flex; align-items: center; min-height: 34px; color: #A8A29E; font-size: 0.95rem; }
.footer-list a:hover { color: #F87171; }
.footer-info { margin: 0; }
.footer-info div { display: flex; justify-content: space-between; gap: var(--s3); padding-block: 7px; border-bottom: 1px solid #23262E; }
.footer-info dt { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: #78716C; }
.footer-info dd { margin: 0; text-align: right; font-size: 0.875rem; color: #E7E5E4; }
.social { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3A3F4B; color: #A8A29E; transition: all var(--t-fast) var(--ease-out); }
.social a:hover { border-color: #F87171; color: #F87171; }
.site-footer__bottom { border-top: 1px solid #23262E; padding-block: var(--s6); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s8); }
.site-footer__bottom p { margin: 0; color: #A8A29E; font-size: 0.8125rem; }
.site-footer__bottom .mono { font-size: 0.6875rem; }
.site-footer__disclaimer { max-width: 80ch; }
.site-footer :focus-visible { outline-color: #F87171; }

/* ---------- 21. Misc: empty, 404, back to top, reveal ---------- */
.empty { padding: var(--s12) var(--s6); border: 1px dashed var(--border-strong); text-align: center; color: var(--text-secondary); }
.empty__code { color: var(--crimson-text); }
.empty__title { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; color: var(--text-primary); }
.empty .search-form { max-width: 520px; margin: var(--s6) auto 0; }
.err { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.err__code { color: var(--crimson-text); }
.err__title { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.err__redact { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.err__redact .redact { height: 14px; }
.err__text { color: var(--text-secondary); }
.err .search-form { max-width: 560px; margin: var(--s6) auto; }
.err__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: 0 0 var(--s8); padding: 0; list-style: none; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--r-sm); background: var(--crimson); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(12px); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--crimson-hover); }

html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: var(--d, 0ms); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .card.reveal.is-visible:hover, html.js .card.reveal.is-visible:focus-within { transform: translateY(-3px); transition-delay: 0ms; }
html.js .row-card.reveal.is-visible:hover, html.js .row-card.reveal.is-visible:focus-within { transform: translateX(3px); transition-delay: 0ms; }

/* ---------- 22. Light-mode refinements (declassified paper) ---------- */
[data-theme="light"] .site-header { background: var(--bg-raised); }
[data-theme="light"] .filter-bar { background: var(--bg-subtle); }
[data-theme="light"] .filter-chip { background: var(--bg-raised); }
[data-theme="light"] .hero { background: radial-gradient(60% 70% at 70% 45%, rgba(185, 28, 28, 0.06), transparent 70%); }
[data-theme="light"] .file-card { box-shadow: 0 24px 40px -22px rgba(60, 40, 10, 0.5); }
[data-theme="light"] .scanlines { background: repeating-linear-gradient(0deg, rgba(28, 25, 23, 0.04) 0 1px, transparent 1px 3px); }
[data-theme="light"] .stamp { mix-blend-mode: multiply; transform: rotate(-4deg); }
[data-theme="light"] .stamp--analysis { transform: none; }
[data-theme="light"] .card__stamp { background: rgba(255, 253, 248, 0.92); mix-blend-mode: normal; }
[data-theme="light"] .slide .stamp { mix-blend-mode: normal; }
[data-theme="light"] .case-panel, [data-theme="light"] .case-panel::before { background: #FBF7EC; }
[data-theme="light"] .card--case, [data-theme="light"] .row-card { background: var(--bg-raised); }
[data-theme="light"] .widget { border-top-color: var(--crimson); }
[data-theme="light"] .faq { background: linear-gradient(180deg, #EFE9DC, var(--bg-base)); }

/* ---------- 23. Responsive ---------- */
@media (min-width: 768px) { .carousel__track { --spv: 2; } }

/* nav collapses early (JS also collapses whenever it would not fit on one line) */
@media (max-width: 1180px) {
	.site-header .menu-toggle { display: inline-grid; }
	.site-header .site-header__bar { flex-wrap: wrap; }
	.site-header .site-nav { display: none; order: 10; flex: 1 0 100%; justify-content: flex-start; padding-bottom: var(--s3); }
	.site-header.is-open .site-nav { display: block; }
	.site-header .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
	.site-header .site-nav__list a { padding: 14px 2px 14px 12px; border-bottom: 1px solid var(--border); white-space: normal; }
	.site-header .site-nav__list .current-menu-item > a::after, .site-header .site-nav__list a[aria-current="page"]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
}

/* tablet: stats move under, 2 cards, gentler motion */
@media (max-width: 1199px) {
	.hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "copy stage" "stats stats"; }
	.hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stat { border-bottom: 0; border-right: 1px solid var(--border); }
	.stat:last-child { border-right: 0; }
	.file-card--3 { display: none; }
	.file-card--1 { --x: 4%; --y: 14%; }
	.file-card--2 { --x: 32%; --y: 50%; }
	.dossier { animation-name: gi-sway-soft; animation-duration: 28s; }
	.file-card { animation-duration: 14s; }
}
@keyframes gi-sway-soft { 0% { transform: rotateX(12deg) rotateY(-14deg); } 100% { transform: rotateX(9deg) rotateY(-4deg); } }

@media (max-width: 1100px) {
	.with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.ad--sidebar { grid-column: 1 / -1; min-height: 280px; }
}

@media (max-width: 1023px) {
	.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
	.card--lead .card__media { aspect-ratio: 16 / 9; min-height: 0; }
	.featured-grid > .card:nth-child(4) { display: none; }
	.case-layout { grid-template-columns: minmax(0, 1fr); }
	.case-layout__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.faq__grid { grid-template-columns: minmax(0, 1fr); }
}

/* mobile: a single static card, faint static radar; copy + CTAs first */
@media (max-width: 767px) {
	.classified-strip { font-size: 0.5625rem; letter-spacing: 0.16em; }
	.site-header__bar { min-height: 62px; gap: var(--s3); }
	.brand { font-size: 1.35rem; }
	.brand__mark { width: 32px; height: 32px; }
	.site-header__actions { gap: 6px; }

	.hero { min-height: 0; padding-block: 28px 36px; }
	.hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "stats"; gap: var(--s6); }
	.hero__ctas .btn { flex: 1 1 auto; }
	.hero__stage { aspect-ratio: auto; max-width: none; perspective: none; padding-block: var(--s3); }
	.radar { inset: auto; left: 50%; top: 50%; width: 260px; height: 260px; transform: translate(-50%, -50%); opacity: 0.45; }
	.radar__sweep, .radar__blip, .scanlines { display: none; }
	.dossier { position: relative; inset: auto; transform: none; animation: none; }
	.file-card--2, .file-card--3 { display: none; }
	.file-card--1 { position: relative; left: auto; top: auto; width: 100%; max-width: 360px; margin: 12px auto 0; transform: rotate(-1.5deg); animation: none; }
	.hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stat { padding: var(--s3) var(--s2) var(--s3) 12px; }
	.stat__value { font-size: 1.9rem; }

	.sec-head { flex-direction: column; align-items: flex-start; }
	.section--carousel .sec-head { flex-direction: row; align-items: flex-end; }
	.slide { aspect-ratio: 4 / 3.4; }
	.slide__overlay { padding: var(--s4); }
	.featured-grid, .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
	.featured-grid > .card:nth-child(4) { display: flex; }
	.case-panel { padding: var(--s4); }
	.case-layout__rows { grid-template-columns: minmax(0, 1fr); }
	.row-card { grid-template-columns: 96px minmax(0, 1fr); }
	.index-row { grid-template-columns: 44px minmax(0, 1fr); padding-inline: var(--s2); }
	.index-row .stamp { grid-column: 2; justify-self: start; }
	.index-row__num { font-size: 0.875rem; }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav__link--next { grid-column: auto; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.faq__btn { padding: var(--s4); gap: var(--s3); }
	.faq__panel { padding: 0 var(--s4) var(--s4); }
	.search-form { flex-wrap: wrap; }
	.search-form__input { flex: 1 1 200px; }
	.back-to-top { right: 14px; bottom: 14px; }
}

/* ---------- 24. Reduced motion: static fallback ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.dossier { animation: none !important; transform: rotateX(12deg) rotateY(-14deg); }
	.file-card { animation: none !important; }
	.radar__sweep, .radar__blip, .scanlines::after, .hero__label-dot { animation: none !important; }
	.radar__sweep { opacity: 0.5; }
	.carousel__bar { animation: none !important; }
	.filter-bar__list { scroll-behavior: auto; }
	html.js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) { .dossier { transform: none; } }

@media print {
	.site-header, .sidebar, .site-footer, .faq, .ad, .back-to-top, .post-nav, .related, .comments { display: none !important; }
	body { background: #fff; color: #000; }
}
