@charset "UTF-8";

/* ==========================================================================
   CipherVault — public theme
   Three visual directions: Signal, Neon Grid, Paper Archive.
   ========================================================================== */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    --font-sans: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --container: 1240px;
    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------ Theme tokens ----------------------------- */

body.theme-signal {
    --bg: #0d0c09;
    --bg-2: #100f0b;
    --surface: #14120d;
    --surface-2: #1a1711;
    --surface-3: #221e15;
    --line: #2a261c;
    --line-strong: #443b2a;
    --text: #f2ecdc;
    --text-soft: #d7ceba;
    --muted: #a49a84;
    --faint: #807660;
    --accent: #ff5a36;
    --accent-2: #d7ff3f;
    --accent-ink: #1d0b05;
    --danger: #ff5a36;
    --warning: #f6c445;
    --success: #c2e36a;
    --header-bg: rgba(13, 12, 9, .86);
    --terminal-bg: #080704;
    --terminal-line: #2b251a;
    --grid-opacity: .3;
    --shadow: 0 30px 80px rgba(0, 0, 0, .55);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .35);
    --selection: rgba(255, 90, 54, .28);
    --sheet-bg: #f2ecdc;
    --sheet-text: #17140e;
    --sheet-muted: #6f6756;
    --sheet-line: #cfc4ad;
    --sheet-accent: var(--accent);
    --ledger-bg: #f2ecdc;
    --ledger-text: #17140e;
    --ledger-line: #cfc4ad;
    --ledger-accent: var(--accent);
}

body.theme-neon {
    --bg: #070912;
    --bg-2: #090c18;
    --surface: #0c1020;
    --surface-2: #11162a;
    --surface-3: #171e38;
    --line: #202a4a;
    --line-strong: #33426c;
    --text: #eef2ff;
    --text-soft: #cbd4f4;
    --muted: #8d98bc;
    --faint: #65709a;
    --accent: #22d3ee;
    --accent-2: #a78bfa;
    --accent-ink: #04151a;
    --danger: #fb7185;
    --warning: #fbbf24;
    --success: #34d399;
    --header-bg: rgba(7, 9, 18, .8);
    --terminal-bg: #060812;
    --terminal-line: #1c2440;
    --grid-opacity: .65;
    --shadow: 0 24px 80px rgba(0, 0, 0, .48);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, .28);
    --selection: rgba(34, 211, 238, .28);
    --sheet-bg: #e9edff;
    --sheet-text: #0b1024;
    --sheet-muted: #5d6788;
    --sheet-line: #b8c2e6;
    --sheet-accent: var(--accent);
    --ledger-bg: #e9edff;
    --ledger-text: #0b1024;
    --ledger-line: #b8c2e6;
    --ledger-accent: var(--accent);
}

body.theme-paper {
    --bg: #f4f1e8;
    --bg-2: #eee9dc;
    --surface: #fffdf7;
    --surface-2: #f8f4e9;
    --surface-3: #ede7d8;
    --line: #ddd5c4;
    --line-strong: #c4b9a3;
    --text: #1c1b17;
    --text-soft: #3c3a32;
    --muted: #655f52;
    --faint: #7c7566;
    --accent: #0f766e;
    --accent-2: #b45309;
    --accent-ink: #ffffff;
    --danger: #b42318;
    --warning: #a16207;
    --success: #0f766e;
    --header-bg: rgba(244, 241, 232, .86);
    --terminal-bg: #10130f;
    --terminal-line: #2a342b;
    --grid-opacity: .4;
    --shadow: 0 26px 70px rgba(50, 45, 32, .11);
    --shadow-soft: 0 10px 28px rgba(50, 45, 32, .08);
    --selection: rgba(15, 118, 110, .18);
    --sheet-bg: #171611;
    --sheet-text: #f2ecdc;
    --sheet-muted: #a39a88;
    --sheet-line: #3b352a;
    --sheet-accent: var(--accent);
    --ledger-bg: #171611;
    --ledger-text: #f2ecdc;
    --ledger-line: #3b352a;
    --ledger-accent: var(--accent);
}

body {
    --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
    --accent-line: color-mix(in srgb, var(--accent) 35%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 24%, transparent);
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 0%, transparent 78%);
    opacity: var(--grid-opacity);
}

::selection {
    background: var(--selection);
    color: var(--text);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    color: inherit;
}

h1, h2, h3, h4, p {
    margin-top: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
}

h1 {
    font-size: clamp(3rem, 6.7vw, 5.9rem);
    font-weight: 800;
    margin-bottom: 22px;
}

h2 {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    margin-bottom: 12px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.mono {
    font-family: var(--font-mono);
    font-size: .78em;
    letter-spacing: .02em;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    transform: translateY(-150%);
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    transition: transform .2s;
}

.skip-link:focus {
    transform: translateY(0);
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

.icon-sm {
    width: 17px;
    height: 17px;
}

.live-dot {
    position: relative;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    flex: none;
}

.cat-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cat, var(--accent));
    box-shadow: 0 0 12px color-mix(in srgb, var(--cat, var(--accent)) 60%, transparent);
    flex: none;
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}

.btn:hover {
    transform: translate(-2px, -2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, white);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.btn-sm {
    padding: 9px 14px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
    transition: color .2s, gap .2s;
}

.text-link:hover {
    color: var(--accent);
    gap: 11px;
}

/* -------------------------------- Header --------------------------------- */

.topline {
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .04em;
    color: var(--muted);
}

.topline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 34px;
}

.topline-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
}

.topline-note a {
    color: var(--accent);
    margin-left: 5px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background:
        linear-gradient(145deg, var(--accent-soft), transparent 70%),
        var(--surface);
    color: var(--accent);
    box-shadow: inset 0 0 18px var(--accent-soft), 0 0 28px var(--accent-soft);
}

.brand-mark .icon {
    width: 21px;
    height: 21px;
}

.brand-dot {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.04em;
    background: linear-gradient(92deg, var(--text) 35%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy strong span {
    color: var(--accent);
}

.brand-copy small {
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--faint);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color .2s, background .2s;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-dark .nav-link {
    color: var(--muted);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    cursor: pointer;
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary .icon {
    transition: transform .2s;
}

.nav-dropdown[open] summary .icon {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: -8px;
    width: 294px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
    animation: panel-in .18s var(--ease);
}

.nav-dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.nav-dropdown-panel a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-dropdown-panel small {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--faint);
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 224px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--faint);
    transition: border-color .2s, box-shadow .2s;
}

.header-search:focus-within {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12.5px;
}

.header-search input::placeholder {
    color: var(--faint);
}

.header-search kbd {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--faint);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: inline-flex;
}

.mobile-search,
.mobile-cta {
    display: none;
}

/* -------------------------------- Flash ---------------------------------- */

.flash-stack {
    position: fixed;
    top: 90px;
    left: 50%;
    z-index: 80;
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    width: min(560px, calc(100% - 32px));
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    color: var(--text-soft);
    pointer-events: auto;
    animation: flash-in .25s var(--ease);
}

.flash .icon {
    color: var(--accent);
}

.flash-warning .icon {
    color: var(--warning);
}

.flash-error .icon {
    color: var(--danger);
}

.flash-close {
    margin-left: auto;
    display: inline-flex;
    padding: 3px;
    border: 0;
    background: transparent;
    color: var(--faint);
    cursor: pointer;
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 44px;
}

.hero-aurora {
    position: absolute;
    inset: -20% -10% auto;
    height: 720px;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 45% at 72% 22%, var(--accent-glow), transparent 68%),
        radial-gradient(ellipse 36% 36% at 20% 12%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%);
    filter: blur(10px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    align-items: center;
    gap: 54px;
}

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow-slash {
    color: var(--faint);
}

.eyebrow-muted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--faint);
}

.eyebrow-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--surface);
    letter-spacing: .1em;
}

.eyebrow-category:hover {
    border-color: var(--cat, var(--accent));
}

.hero h1 {
    max-width: 760px;
    background: linear-gradient(180deg, var(--text) 20%, color-mix(in srgb, var(--text) 62%, var(--muted)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    max-width: 570px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(620px, 100%);
    padding: 7px 7px 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft), inset 0 1px 0 color-mix(in srgb, white 4%, transparent);
    transition: border-color .2s, box-shadow .2s;
}

.hero-search:focus-within {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-soft);
}

.hero-search > .icon {
    color: var(--faint);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.hero-search input::placeholder {
    color: var(--faint);
}

.hero-search .btn {
    height: 40px;
    padding-inline: 20px;
}

.quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--faint);
}

.quick-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.quick-tags a {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    transition: color .2s, border-color .2s;
}

.quick-tags a:hover {
    color: var(--accent);
    border-color: var(--accent-line);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-proof .icon {
    color: var(--accent);
}

.hero-visual {
    position: relative;
    padding: 18px 10px 38px;
}

.terminal-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid var(--terminal-line);
    border-radius: 16px;
    background: var(--terminal-bg);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--accent) 5%, transparent);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid var(--terminal-line);
    background: color-mix(in srgb, var(--terminal-bg) 80%, var(--accent) 4%);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .08em;
    color: #6f8576;
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27352b;
}

.terminal-dots i:first-child {
    background: #ff5f56;
}

.terminal-dots i:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dots i:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    color: #8ba294;
}

.terminal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--accent);
    text-transform: uppercase;
}

.terminal-status .live-dot {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 8px var(--accent);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #c3d7c8;
}

.terminal-command {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #e4f2e6;
}

.prompt {
    color: var(--accent);
    font-weight: 700;
}

.caret {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: var(--accent);
    animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-results {
    display: grid;
    gap: 5px;
}

.terminal-result {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 10px;
    padding: 10px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background .2s, border-color .2s;
}

.terminal-result:hover {
    background: rgba(255, 255, 255, .035);
    border-color: var(--terminal-line);
}

.terminal-index {
    color: #4e6355;
    font-size: 10px;
}

.terminal-result-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.terminal-result-main strong {
    overflow: hidden;
    color: #e5f3e7;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-result-main small {
    overflow: hidden;
    color: #6f8576;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-result-meta {
    color: #6f8576;
    font-size: 9.5px;
}

.terminal-result-arrow {
    color: #4e6355;
    transition: color .2s, transform .2s;
}

.terminal-result:hover .terminal-result-arrow {
    color: var(--accent);
    transform: translate(1px, -1px);
}

.terminal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--terminal-line);
    color: #526758;
    font-size: 9px;
    letter-spacing: .04em;
}

.terminal-cursor {
    margin-left: auto;
    color: var(--accent);
}

.terminal-empty {
    padding: 20px 8px;
    color: #526758;
}

.visual-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.visual-badge strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.3;
}

.visual-badge small {
    display: block;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .04em;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

.visual-badge-top {
    top: -2px;
    right: -6px;
    animation: float 6s ease-in-out infinite;
}

.visual-badge-bottom {
    bottom: -20px;
    left: 24px;
    animation: float 7s ease-in-out infinite reverse;
}

.pulse-ring {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-soft);
}

.pulse-ring::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(.45); opacity: .8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ------------------------------- Stat strip ------------------------------- */

.stat-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 42px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.stat {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--accent);
}

.stat strong {
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.stat small {
    display: block;
    margin-top: 2px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* -------------------------------- Sections -------------------------------- */

.section {
    padding: 90px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.section-note {
    max-width: 390px;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 12.5px;
    text-align: right;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tool-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 1px 0 color-mix(in srgb, white 3%, transparent);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-soft), 0 0 0 1px var(--accent-soft);
}

.tool-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}

.tool-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease), filter .3s;
}

.tool-card:hover .tool-card-media img {
    transform: scale(1.035);
    filter: saturate(1.1);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, transparent 46%, rgba(0, 0, 0, .58) 100%);
    pointer-events: none;
}

.tool-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--cat) 35%, transparent), transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--cat) 12%, var(--surface-2)), var(--surface-2));
}

.tool-cover-fallback span {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -.08em;
    color: color-mix(in srgb, var(--cat) 80%, white);
    opacity: .85;
}

.cat-pill,
.featured-flag {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    top: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(5, 8, 6, .64);
    color: #e8f1ea;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
}

.cat-pill {
    left: 12px;
}

.featured-flag {
    right: 12px;
    color: #fff3c4;
}

.featured-flag .icon {
    color: #fbbf24;
}

.tool-card-body {
    padding: 19px 20px 16px;
}

.tool-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--faint);
    font-size: 10.5px;
}

.tool-card-meta .mono {
    color: var(--accent);
    font-size: 10px;
}

.meta-sep {
    color: var(--line-strong);
}

.tool-card h3 {
    margin-bottom: 7px;
    font-size: 21px;
    letter-spacing: -.03em;
}

.tool-card h3 a {
    transition: color .2s;
}

.tool-card h3 a:hover {
    color: var(--accent);
}

.tool-card-body > p {
    display: -webkit-box;
    min-height: 42px;
    margin-bottom: 16px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tool-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.platform-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    color: var(--text-soft);
    font-size: 10.5px;
    font-weight: 650;
}

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

/* ------------------------------- Categories ------------------------------- */

.section-categories {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent) 20%, transparent);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 196px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cat), transparent 75%);
    opacity: .7;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cat) 45%, var(--line));
    background: var(--surface-2);
}

.category-number {
    position: absolute;
    right: 14px;
    bottom: 2px;
    color: color-mix(in srgb, var(--cat) 10%, transparent);
    font-family: var(--font-mono);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.08em;
    pointer-events: none;
}

.category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.category-count {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .05em;
}

.category-card strong {
    position: relative;
    z-index: 1;
    max-width: 90%;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.category-desc {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    max-width: 95%;
    overflow: hidden;
    color: var(--faint);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--faint);
    transition: color .2s, border-color .2s, transform .2s;
}

.category-card:hover .category-arrow {
    color: var(--cat);
    border-color: color-mix(in srgb, var(--cat) 45%, var(--line));
    transform: translate(1px, -1px);
}

/* ------------------------------- Vault rows ------------------------------- */

.vault-list {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.vault-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 152px 74px 88px 32px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .2s, padding .25s var(--ease);
}

.vault-row:last-child {
    border-bottom: 0;
}

.vault-row:hover {
    background: var(--surface-2);
    padding-left: 20px;
}

.vault-thumb {
    width: 72px;
    height: 50px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
}

.vault-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vault-thumb .tool-cover-fallback span {
    font-size: 15px;
}

.vault-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vault-title {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-star {
    color: #fbbf24;
    display: inline-flex;
}

.vault-desc {
    overflow: hidden;
    color: var(--faint);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vault-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .02em;
}

.vault-version {
    color: var(--faint);
    font-size: 9.5px;
}

.vault-downloads {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.vault-arrow {
    display: inline-flex;
    justify-content: flex-end;
    color: var(--faint);
    transition: color .2s, transform .2s;
}

.vault-row:hover .vault-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* ------------------------------- Principles ------------------------------- */

.principles-section {
    padding-top: 20px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, var(--accent-soft), transparent 40%),
        var(--surface);
}

.principle {
    padding: 4px 24px 4px 0;
    border-right: 1px solid var(--line);
}

.principle:last-child {
    padding-right: 0;
    border-right: 0;
}

.principle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.principle h3 {
    margin-bottom: 6px;
    font-size: 15px;
}

.principle p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

/* ---------------------------------- CTA ---------------------------------- */

.cta-section {
    padding-top: 30px;
}

.cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 46px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse 50% 120% at 100% 0%, var(--accent-glow), transparent 65%),
        linear-gradient(120deg, var(--surface-2), var(--surface));
}

.cta-panel::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -130px;
    width: 300px;
    height: 300px;
    border: 1px solid var(--accent-line);
    border-radius: 50%;
    opacity: .45;
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.cta-copy h2 {
    margin-bottom: 10px;
}

.cta-copy p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: none;
}

.cta-command {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--bg);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.cta-command span {
    color: var(--accent);
}

/* ------------------------------ Disclaimer ------------------------------- */

.disclaimer-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.disclaimer-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding-block: 12px;
}

.disclaimer-inner > .icon {
    color: var(--accent);
}

.disclaimer-inner p {
    margin: 0;
    color: var(--faint);
    font-size: 11.5px;
}

.disclaimer-inner strong {
    color: var(--text-soft);
}

.disclaimer-inner a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.disclaimer-inner a:hover {
    color: var(--accent);
}

/* -------------------------------- Footer --------------------------------- */

.site-footer {
    padding: 62px 0 24px;
    background: var(--bg-2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr;
    gap: 44px;
    padding-bottom: 46px;
}

.footer-brand p {
    max-width: 320px;
    margin: 20px 0 14px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .04em;
}

.footer-badge .icon {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    transition: color .2s, border-color .2s;
}

.footer-socials a:hover {
    color: var(--accent);
    border-color: var(--accent-line);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-col h2 {
    margin-bottom: 8px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-col a,
.footer-col p {
    color: var(--faint);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-soft) !important;
    font-family: var(--font-mono);
    font-size: 10.5px !important;
}

.footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.footer-bottom a {
    margin-left: auto;
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-stack {
    margin-left: auto;
}

.footer-bottom a + a {
    margin-left: 0;
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .25s, transform .25s, color .2s;
}

.to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

/* ------------------------------- Page heads ------------------------------- */

.page-head {
    position: relative;
    padding: 44px 0 38px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 45% 100% at 78% 0%, var(--accent-soft), transparent 65%),
        var(--bg-2);
}

.page-head .container {
    position: relative;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .03em;
}

.breadcrumbs a {
    color: var(--muted);
}

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

.breadcrumb-chevron {
    width: 11px;
    height: 11px;
    transform: rotate(-90deg);
    opacity: .55;
}

.page-head-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.page-head h1 {
    max-width: 820px;
    margin-bottom: 14px;
    font-size: clamp(2.4rem, 4.8vw, 4rem);
}

.page-lede {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.page-head-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: none;
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.page-head-mark .cat-dot {
    margin-bottom: 10px;
}

.page-head-mark strong {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.06em;
}

.page-head-mark small {
    margin-top: 5px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-head-mark-neutral {
    color: var(--text-soft);
}

.mark-code {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
}

/* --------------------------------- Index --------------------------------- */

.index-section {
    padding: 36px 0 92px;
}

.tool-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 170px auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--faint);
}

.filter-search:focus-within {
    border-color: var(--accent-line);
}

.filter-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12.5px;
}

.filter-search input::placeholder {
    color: var(--faint);
}

.filter-clear {
    display: inline-flex;
    padding: 3px;
    color: var(--faint);
}

.filter-clear:hover {
    color: var(--text);
}

.filter-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-select label {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.filter-select select {
    width: 100%;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    background: var(--bg-2);
    color: var(--text-soft);
    font-size: 11.5px;
    cursor: pointer;
}

.filter-select select:focus {
    border-color: var(--accent-line);
}

.filter-submit {
    height: 44px;
}

.chip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 18px 0 26px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 10.5px;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
}

.chip span:last-child {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.chip:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.chip.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.chip.is-active span:last-child {
    color: var(--accent);
}

.index-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    color: var(--faint);
    font-size: 11px;
}

.result-count strong {
    color: var(--text-soft);
    font-weight: 600;
}

.reset-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10.5px;
}

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 76px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--surface);
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--faint);
}

.empty-state h2 {
    font-size: 24px;
}

.empty-state p {
    max-width: 420px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
}

/* ------------------------------- Pagination ------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 44px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    transition: color .2s, border-color .2s, background .2s;
}

.page-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.page-btn.is-current {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.page-btn.is-disabled {
    opacity: .35;
}

.page-gap {
    padding: 0 3px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* ------------------------------- Tool detail ------------------------------ */

.tool-detail-head {
    padding: 40px 0 40px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 42% 120% at 82% 0%, var(--accent-soft), transparent 68%),
        var(--bg-2);
}

.detail-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.detail-intro-copy {
    max-width: 800px;
}

.detail-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
}

.detail-lede {
    max-width: 680px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .02em;
}

.meta-chip .icon {
    color: var(--faint);
}

.detail-intro-actions {
    display: flex;
    gap: 8px;
    flex: none;
    padding-bottom: 4px;
}

.tool-detail-body {
    padding: 48px 0 80px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    align-items: start;
    gap: 46px;
}

.detail-main {
    min-width: 0;
}

.detail-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow-soft);
}

.detail-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-cover .tool-cover-large {
    height: 100%;
}

.detail-cover-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(5, 8, 6, .64);
    color: #e4eee7;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
}

.cover-slash {
    color: rgba(255, 255, 255, .35);
}

.prose {
    margin-top: 34px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.8;
}

.prose h2 {
    margin: 34px 0 12px;
    font-size: 26px;
}

.prose h3 {
    margin: 28px 0 10px;
    font-size: 19px;
}

.prose p {
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin: 0 0 20px;
    padding-left: 20px;
    color: var(--muted);
}

.prose li {
    margin-bottom: 6px;
}

.prose strong {
    color: var(--text);
    font-weight: 650;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-size: .86em;
}

.prose pre {
    margin: 0 0 20px;
    padding: 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
}

.prose pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
}

.prose blockquote {
    margin: 0 0 20px;
    padding: 12px 18px;
    border-left: 2px solid var(--accent);
    background: var(--accent-soft);
    color: var(--muted);
}

.prose hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.prose-large {
    margin-top: 0;
    font-size: 15.5px;
}

.tag-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.tag-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    padding-top: 4px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-list a {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    transition: color .2s, border-color .2s;
}

.tag-list a:hover {
    color: var(--accent);
    border-color: var(--accent-line);
}

.safety-note {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, var(--accent-soft), transparent 60%),
        var(--surface);
}

.safety-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: none;
    border: 1px solid var(--accent-line);
    border-radius: 9px;
    color: var(--accent);
}

.safety-note strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
}

.safety-note p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.detail-foot a {
    color: var(--muted);
}

.detail-foot a:hover {
    color: var(--accent);
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 12px;
}

.download-card {
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 100% 50% at 50% 0%, var(--accent-soft), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.download-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--accent-line);
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.download-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.download-card-head strong {
    font-size: 15px;
    letter-spacing: -.02em;
}

.download-note {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.download-card .btn-block {
    margin-bottom: 7px;
}

.download-specs {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.download-specs > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.download-specs > div:last-child {
    border-bottom: 0;
}

.download-specs dt {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.download-specs dd {
    margin: 0;
    color: var(--text-soft);
    font-size: 10.5px;
    text-align: right;
}

.download-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.download-trust .icon {
    color: var(--accent);
}

.copy-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    font-size: 10.5px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.copy-link:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.copy-feedback {
    display: none;
    margin-left: auto;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
}

.copy-link.is-copied .copy-feedback {
    display: inline;
}

.sidebar-note {
    padding: 15px 16px;
    border: 1px dashed var(--line);
    border-radius: 10px;
}

.sidebar-note .mono {
    color: var(--faint);
    font-size: 9px;
}

.sidebar-note p {
    margin: 8px 0 10px;
    color: var(--faint);
    font-size: 10.5px;
    line-height: 1.6;
}

.sidebar-note a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.sidebar-note a:hover {
    color: var(--accent);
}

.related-section {
    border-top: 1px solid var(--line);
}

/* --------------------------------- Charter -------------------------------- */

.charter-section {
    padding-top: 55px;
}

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

.charter-values {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}

.charter-value {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.charter-value .principle-icon {
    margin-bottom: 0;
    flex: none;
}

.charter-value h3 {
    margin-bottom: 4px;
    font-size: 15px;
}

.charter-value p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.charter-callout {
    margin-top: 36px;
    padding: 30px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, var(--accent-soft), transparent 65%),
        var(--surface);
}

.charter-callout .mono {
    color: var(--accent);
    font-size: 9px;
}

.charter-callout h2 {
    margin: 10px 0 8px;
    font-size: 28px;
}

.charter-callout p {
    max-width: 600px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
}

.charter-sidebar {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 100px;
}

.charter-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.charter-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.charter-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.charter-stat strong {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.charter-stat span {
    color: var(--faint);
    font-size: 10.5px;
}

.charter-principles ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.charter-principles li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.charter-principles .icon {
    color: var(--accent);
}

.charter-signoff {
    background: var(--bg-2);
}

.charter-signoff .mono {
    color: var(--accent);
    font-size: 9px;
}

.charter-signoff p {
    margin: 10px 0 16px;
    color: var(--faint);
    font-size: 11px;
}

.signoff-line {
    display: block;
    width: 54px;
    height: 1px;
    background: var(--accent-line);
}

/* --------------------------------- 404 ----------------------------------- */

.not-found {
    padding: 90px 0 110px;
}

.not-found-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.not-found-code {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 28px;
    font-family: var(--font-mono);
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 700;
    line-height: .8;
    letter-spacing: -.1em;
    color: var(--surface-3);
    -webkit-text-stroke: 1px var(--line-strong);
}

.not-found-code .zero {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}

.not-found h1 {
    max-width: 620px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.not-found p {
    max-width: 500px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 14px;
}

.not-found-actions {
    display: flex;
    gap: 8px;
}

.not-found-terminal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--terminal-bg);
    color: #c3d7c8;
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: left;
}

.not-found-terminal small {
    color: #526758;
    font-size: 9px;
}

/* -------------------------------- Reveal --------------------------------- */

/* Content stays visible if JavaScript is unavailable. The JS observer still
   adds .is-visible for browsers that support it, but it is not required. */
.reveal {
    opacity: 1;
    transform: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy,
    .hero-visual {
        animation: rise-in .65s var(--ease) both;
    }

    .hero-visual {
        animation-delay: .08s;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .caret, .pulse-ring::after, .visual-badge, .live-dot { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 1120px) {
    .header-search {
        width: 178px;
    }

    .header-search kbd {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
        gap: 34px;
    }

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

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

    .vault-row {
        grid-template-columns: 64px minmax(0, 1fr) 130px 66px 32px;
    }

    .vault-downloads {
        display: none;
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
    }
}

@media (max-width: 950px) {
    .topline-note {
        display: none;
    }

    .topline-inner {
        justify-content: center;
    }

    .header-inner {
        gap: 16px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 14px 24px 22px;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
        animation: panel-in .2s var(--ease);
    }

    .nav-link {
        justify-content: space-between;
        padding: 12px 10px;
        font-size: 14px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-panel {
        position: static;
        width: 100%;
        margin: 4px 0 8px;
        border-color: var(--line);
        box-shadow: none;
        background: var(--surface-2);
    }

    .header-search,
    .header-cta {
        display: none;
    }

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

    .mobile-search {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 12px 0 6px;
        padding: 0 12px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--surface);
        color: var(--faint);
    }

    .mobile-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-size: 13px;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 6px;
    }

    .hero {
        padding-top: 56px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-visual {
        max-width: 620px;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 26px;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .section {
        padding: 70px 0;
    }

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

    .principles-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .principle {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .principle:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        padding: 34px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 34px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .page-head-grid {
        align-items: flex-start;
    }

    .page-head-mark {
        display: none;
    }

    .tool-filter {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-submit {
        grid-column: 2;
        justify-self: end;
        padding-inline: 26px;
    }

    .detail-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .detail-intro-actions {
        padding-bottom: 0;
    }

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

    .detail-sidebar {
        position: static;
    }

    .download-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    .download-card-head,
    .download-note,
    .download-card .btn-block,
    .download-specs,
    .download-trust {
        grid-column: 1;
    }

    .download-specs {
        grid-row: 3 / span 3;
    }

    .detail-sidebar .copy-link,
    .sidebar-note {
        display: none;
    }

    .charter-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .charter-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .charter-signoff {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 36px, var(--container));
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .hero {
        padding: 46px 0 30px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.4rem);
    }

    .hero-lede {
        font-size: 15px;
    }

    .hero-search {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }

    .hero-search > .icon {
        margin-left: 4px;
    }

    .hero-search input {
        height: 36px;
        flex-basis: calc(100% - 50px);
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero-proof {
        gap: 12px;
        font-size: 10.5px;
    }

    .visual-badge-top {
        right: -2px;
        top: -10px;
    }

    .visual-badge-bottom {
        left: 2px;
        bottom: -8px;
    }

    .stat {
        padding: 16px;
    }

    .stat strong {
        font-size: 18px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .section {
        padding: 58px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-note {
        text-align: left;
    }

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

    .tool-card-media {
        aspect-ratio: 16 / 9;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        min-height: 172px;
        padding: 16px;
    }

    .category-number {
        font-size: 48px;
    }

    .category-desc {
        display: none;
    }

    .vault-row {
        grid-template-columns: 58px minmax(0, 1fr) 28px;
        gap: 12px;
        padding: 10px 12px;
    }

    .vault-thumb {
        width: 58px;
        height: 42px;
    }

    .vault-cat,
    .vault-version {
        display: none;
    }

    .vault-row:hover {
        padding-left: 12px;
    }

    .cta-panel {
        padding: 26px;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .disclaimer-inner {
        align-items: flex-start;
    }

    .disclaimer-inner a {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .footer-stack {
        margin-left: 0;
    }

    .footer-bottom a {
        margin-left: 0;
    }

    .page-head {
        padding: 30px 0 28px;
    }

    .breadcrumbs {
        margin-bottom: 22px;
    }

    .page-head h1 {
        font-size: clamp(2.1rem, 10vw, 2.8rem);
    }

    .tool-filter {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .filter-search,
    .filter-submit {
        grid-column: 1;
    }

    .filter-submit {
        width: 100%;
    }

    .tool-filter {
        padding: 10px;
    }

    .detail-intro h1 {
        font-size: clamp(2.3rem, 12vw, 3.3rem);
    }

    .detail-intro-actions {
        width: 100%;
    }

    .detail-intro-actions .btn {
        flex: 1;
    }

    .download-card {
        display: block;
    }

    .detail-cover {
        aspect-ratio: 16 / 9;
    }

    .prose {
        font-size: 14px;
    }

    .charter-sidebar {
        grid-template-columns: 1fr;
    }

    .not-found {
        padding: 60px 0 80px;
    }

    .not-found-actions {
        flex-direction: column;
        width: 100%;
    }

    .not-found-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .topline {
        font-size: 9px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-proof span:nth-child(3) {
        display: none;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .stat:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

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

    .category-desc {
        display: -webkit-box;
    }

    .tag-block {
        flex-direction: column;
        gap: 10px;
    }

    .detail-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .footer-brand,
    .footer-contact {
        grid-column: 1;
    }

    .cta-command {
        font-size: 9px;
    }
}

/* ==========================================================================
   Signal — editorial ops direction
   Deliberately sharper, warmer and more typographic than the terminal vault.
   ========================================================================== */

/* ------------------------------- Brand / chrome --------------------------- */

.topline {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.topline-badge {
    color: var(--text-soft);
    letter-spacing: .12em;
}

.signal-mark {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: none;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-header {
    border-bottom: 1px solid var(--line-strong);
}

.brand {
    gap: 13px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--sheet-line);
    border-radius: 1px;
    background: var(--sheet-bg);
    color: var(--sheet-text);
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 55%, transparent);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.brand:hover .brand-mark {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 65%, transparent);
}

.brand-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}

.brand-monogram span {
    margin: 0 1px;
    color: var(--accent);
    font-weight: 600;
}

.brand-copy strong {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--faint);
    font-size: 8px;
    letter-spacing: .19em;
}

.nav-link {
    gap: 7px;
    padding: 9px 8px;
    border-radius: 1px;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.is-active {
    background: transparent;
    color: var(--text);
}

.nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-index {
    color: var(--faint);
    font-size: 7.5px;
    letter-spacing: 0;
}

.nav-link.is-active .nav-index {
    color: var(--accent);
}

.nav-dropdown-panel {
    border-radius: 1px;
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent) 18%, transparent);
}

.nav-dropdown-panel a {
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .02em;
}

.header-search {
    height: 37px;
    border-radius: 1px;
    background: transparent;
}

.header-search input {
    font-family: var(--font-mono);
    font-size: 10px;
}

.header-search kbd {
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 8px;
}

.header-cta {
    border-radius: 1px;
}

.nav-toggle {
    border-radius: 1px;
}

.flash {
    border-radius: 1px;
    box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
    padding: 82px 0 0;
    overflow: hidden;
}

.hero-aurora {
    inset: -20% -10% auto;
    height: 760px;
    background:
        radial-gradient(ellipse 36% 42% at 76% 18%, var(--accent-glow), transparent 66%),
        radial-gradient(ellipse 32% 34% at 20% 6%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
    filter: blur(4px);
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    align-items: center;
    gap: 58px;
}

.eyebrow {
    gap: 10px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .14em;
}

.hero h1 {
    max-width: 820px;
    margin-bottom: 28px;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: var(--text);
    font-size: clamp(3.3rem, 7.7vw, 7rem);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -.065em;
}

.hero-outline {
    display: block;
    max-width: 100%;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    text-stroke: 1.5px var(--text);
    overflow-wrap: anywhere;
}

@supports not ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
    .hero-outline {
        color: var(--text);
        -webkit-text-fill-color: currentColor;
    }
}

.hero-lede {
    max-width: 560px;
    margin-bottom: 30px;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.65;
}

.hero-search {
    width: min(650px, 100%);
    padding: 6px 6px 6px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 1px;
    background: transparent;
    box-shadow: none;
}

.hero-search:focus-within {
    border-color: var(--accent);
    box-shadow: 4px 4px 0 var(--accent-soft);
}

.hero-search input {
    height: 42px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.hero-search .btn {
    height: 42px;
    border-radius: 1px;
}

.quick-tags {
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 9px;
}

.quick-label {
    color: var(--accent);
}

.quick-tags a {
    padding: 2px 7px;
    border-radius: 1px;
    border-color: var(--line);
    font-family: var(--font-mono);
    font-size: 9px;
}

.hero-proof {
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .02em;
}

.hero-proof .icon {
    color: var(--accent);
}

/* ------------------------------- Index sheet ------------------------------ */

.hero-visual {
    padding: 10px 0 34px;
}

.sheet-stack {
    position: relative;
    width: min(100%, 470px);
    margin-left: auto;
}

.sheet-back {
    position: absolute;
    inset: 18px -14px -18px 18px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    transform: rotate(2.2deg);
}

.index-sheet {
    position: relative;
    z-index: 1;
    padding: 22px;
    border: 1px solid var(--sheet-line);
    background: var(--sheet-bg);
    color: var(--sheet-text);
    transform: rotate(-1.2deg);
    box-shadow: 16px 16px 0 rgba(0, 0, 0, .34);
}

.sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sheet-line);
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sheet-top span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sheet-top .signal-mark {
    width: 5px;
    height: 5px;
    background: var(--sheet-accent);
    box-shadow: none;
}

.sheet-count {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--sheet-line);
}

.sheet-number {
    color: var(--sheet-accent);
    font-family: var(--font-display);
    font-size: 96px;
    font-weight: 800;
    line-height: .76;
    letter-spacing: -.09em;
}

.sheet-count-label {
    margin-top: 3px;
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheet-list {
    display: grid;
    margin-top: 4px;
}

.sheet-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    border-bottom: 1px solid var(--sheet-line);
    color: var(--sheet-text);
    transition: padding-left .2s var(--ease), background .2s;
}

.sheet-row:hover {
    padding-left: 5px;
    background: color-mix(in srgb, var(--sheet-text) 5%, transparent);
}

.sheet-row-index {
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.sheet-row-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.sheet-row-main strong {
    overflow: hidden;
    color: var(--sheet-text);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-row-main small {
    overflow: hidden;
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.sheet-row-version {
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.sheet-row > .icon {
    color: var(--sheet-muted);
}

.sheet-row:hover > .icon {
    color: var(--sheet-accent);
}

.sheet-empty {
    padding: 20px 0;
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 9px;
}

.sheet-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    color: var(--sheet-muted);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sheet-foot b {
    color: var(--sheet-text);
    font-weight: 500;
}

.sheet-barcode {
    width: 58px;
    height: 16px;
    margin-left: auto;
    background: repeating-linear-gradient(90deg, var(--sheet-text) 0 1px, transparent 1px 3px, var(--sheet-text) 3px 4px, transparent 4px 7px);
    opacity: .55;
}

.sheet-stamp {
    position: absolute;
    right: 16px;
    bottom: 52px;
    padding: 5px 8px;
    border: 2px solid var(--sheet-accent);
    color: var(--sheet-accent);
    font-family: var(--font-mono);
    font-size: 7.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .08em;
    text-align: center;
    transform: rotate(-7deg);
    opacity: .85;
    pointer-events: none;
}

/* --------------------------------- Ticker --------------------------------- */

.hero-ticker {
    position: relative;
    margin-top: 6px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 36s linear infinite;
}

.hero-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-item i {
    width: 6px;
    height: 6px;
    background: var(--cat, var(--accent));
    flex: none;
}

.ticker-item b {
    color: var(--faint);
    font-weight: 400;
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* --------------------------------- Ledger --------------------------------- */

.stat-strip {
    margin-top: 34px;
    border: 1px solid var(--ledger-line);
    border-radius: 0;
    background: var(--ledger-bg);
    color: var(--ledger-text);
    box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent) 10%, transparent);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 20px 22px 18px;
    border-right: 1px solid var(--ledger-line);
}

.stat:last-child {
    border-right: 0;
}

.stat-index {
    color: var(--ledger-accent);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .1em;
}

.stat strong {
    color: var(--ledger-text);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.06em;
}

.stat-percent {
    font-size: 22px;
    letter-spacing: -.02em;
}

.stat-label {
    color: color-mix(in srgb, var(--ledger-text) 62%, transparent);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* -------------------------------- Sections -------------------------------- */

.section {
    padding: 94px 0;
}

.section-head {
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 34px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-kicker {
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 9px;
    letter-spacing: .18em;
}

.section-head h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 4.2vw, 3.7rem);
}

.section-note {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: .02em;
    text-align: right;
}

.text-link {
    gap: 7px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .07em;
    text-transform: uppercase;
}

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

/* ------------------------------- Featured -------------------------------- */

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
    align-items: stretch;
    gap: 16px;
}

.featured-side {
    display: grid;
    gap: 16px;
}

.tool-card {
    border-radius: 0;
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
}

.tool-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--accent);
}

.tool-card-media {
    border-bottom: 1px solid var(--line);
}

.tool-card--lead .tool-card-media {
    aspect-ratio: 16 / 8.2;
}

.tool-card--lead .tool-card-body {
    padding: 24px 24px 20px;
}

.tool-card--lead h3 {
    margin-bottom: 9px;
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
}

.tool-card--lead .tool-card-body > p {
    max-width: 620px;
    min-height: 0;
    font-size: 13.5px;
}

.tool-card--lead .tool-card-meta {
    margin-bottom: 12px;
}

.tool-card--compact {
    display: grid;
    grid-template-columns: 43% minmax(0, 1fr);
    min-height: 212px;
}

.tool-card--compact .tool-card-media {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
}

.tool-card--compact .tool-card-body {
    display: flex;
    flex-direction: column;
    padding: 17px 18px 15px;
}

.tool-card--compact h3 {
    font-size: 22px;
}

.tool-card--compact .tool-card-body > p {
    display: none;
}

.tool-card--compact .tool-card-meta {
    margin-bottom: 8px;
}

.tool-card--compact .tool-card-foot {
    margin-top: auto;
}

.tool-card--compact .platform-label {
    display: none;
}

.tool-card--compact .card-link {
    margin-left: auto;
}

.cat-pill,
.featured-flag {
    top: 10px;
    padding: 4px 7px;
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .03em;
}

.cat-pill {
    left: 10px;
}

.featured-flag {
    right: 10px;
}

.tool-card-body {
    padding: 18px 19px 15px;
}

.tool-card-meta {
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: -.035em;
}

.tool-card-body > p {
    color: var(--muted);
    font-size: 12px;
}

.tool-card-foot {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.platform-label {
    font-size: 8px;
}

.card-link {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ------------------------------- Disciplines ------------------------------ */

.discipline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 38px;
    border-top: 1px solid var(--line);
}

.discipline-row {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 66px 24px;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    transition: background .2s, padding-left .25s var(--ease);
}

.discipline-row::before {
    content: "";
    position: absolute;
    top: 19px;
    bottom: 19px;
    left: -14px;
    width: 2px;
    background: var(--cat);
    opacity: .85;
}

.discipline-row:hover {
    padding-left: 6px;
    background: color-mix(in srgb, var(--cat) 4%, transparent);
}

.discipline-number {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
}

.discipline-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.discipline-main strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.discipline-main small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discipline-count {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    text-align: right;
    text-transform: uppercase;
}

.discipline-count b {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-right: 2px;
}

.discipline-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    color: var(--faint);
    transition: color .2s, border-color .2s, transform .2s;
}

.discipline-row:hover .discipline-arrow {
    color: var(--cat);
    border-color: var(--cat);
    transform: translate(1px, -1px);
}

/* -------------------------------- Rows ----------------------------------- */

.vault-list {
    border-radius: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.vault-row {
    gap: 15px;
    padding: 12px 15px;
}

.vault-row:hover {
    background: var(--surface-2);
    box-shadow: inset 3px 0 0 var(--accent);
}

.vault-thumb {
    border-radius: 0;
}

.vault-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.vault-cat,
.vault-version,
.vault-downloads {
    font-family: var(--font-mono);
    font-size: 8px;
}

/* ------------------------------- Principles ------------------------------- */

.principles-section {
    padding-top: 20px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.principle {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 26px;
    border-right: 1px solid var(--line);
}

.principle:last-child {
    border-right: 0;
}

.principle-index {
    flex: none;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 800;
    line-height: .75;
    letter-spacing: -.07em;
}

.principle h3 {
    margin-bottom: 6px;
    font-size: 20px;
}

.principle p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

/* ---------------------------------- CTA ---------------------------------- */

.cta-section {
    padding-top: 34px;
}

.cta-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 44px;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 12px 12px 0 color-mix(in srgb, var(--accent) 16%, transparent);
}

.cta-panel::after {
    right: -90px;
    bottom: -180px;
    width: 400px;
    height: 400px;
    border-color: color-mix(in srgb, var(--accent-ink) 22%, transparent);
}

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

.cta-copy .section-kicker {
    color: color-mix(in srgb, var(--accent-ink) 62%, transparent);
}

.cta-copy h2 {
    color: var(--accent-ink);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    letter-spacing: -.06em;
}

.cta-copy p {
    color: color-mix(in srgb, var(--accent-ink) 74%, transparent);
    font-size: 13px;
}

.cta-actions .btn-primary {
    background: var(--accent-ink);
    color: var(--accent);
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-ink) 20%, transparent);
}

.cta-command {
    border-color: color-mix(in srgb, var(--accent-ink) 28%, transparent);
    background: transparent;
    color: color-mix(in srgb, var(--accent-ink) 68%, transparent);
    font-size: 9px;
}

.cta-command span {
    color: var(--accent-ink);
}

/* -------------------------------- Page heads ------------------------------ */

.page-head {
    padding: 42px 0 34px;
    border-bottom: 1px solid var(--line-strong);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
        var(--bg-2);
    background-size: 80px 80px, auto;
}

.page-head h1 {
    max-width: 900px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: .92;
    letter-spacing: -.06em;
}

.page-lede {
    max-width: 650px;
    color: var(--muted);
    font-size: 14px;
}

.page-head-mark {
    border-left-color: var(--line-strong);
}

.page-head-mark strong {
    font-family: var(--font-display);
    font-size: 46px;
    letter-spacing: -.06em;
}

.mark-code,
.page-head-mark small {
    font-family: var(--font-mono);
    font-size: 8px;
}

.breadcrumbs {
    font-size: 8.5px;
    letter-spacing: .05em;
}

/* --------------------------------- Index --------------------------------- */

.index-section {
    padding-top: 32px;
}

.tool-filter {
    border-radius: 0;
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent) 6%, transparent);
}

.filter-search,
.filter-select select {
    border-radius: 1px;
}

.filter-search input {
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.filter-select label {
    font-size: 7.5px;
}

.filter-select select {
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.filter-submit {
    border-radius: 1px;
}

.chip {
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .02em;
}

.chip.is-active {
    background: var(--accent);
    color: var(--accent-ink);
}

.chip.is-active span:last-child {
    color: color-mix(in srgb, var(--accent-ink) 60%, transparent);
}

.result-count,
.reset-link {
    font-family: var(--font-mono);
    font-size: 9px;
}

.pagination .page-btn {
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 9px;
}

.page-btn.is-current {
    border-color: var(--accent);
    background: var(--accent);
}

.empty-state {
    border-radius: 0;
}

.empty-icon {
    border-radius: 0;
}

/* ------------------------------- Tool detail ------------------------------ */

.tool-detail-head {
    border-bottom: 1px solid var(--line-strong);
    background:
        radial-gradient(ellipse 40% 120% at 84% 0%, var(--accent-soft), transparent 66%),
        var(--bg-2);
}

.detail-intro h1 {
    font-size: clamp(3rem, 6.5vw, 5.6rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.detail-lede {
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    font-size: 15px;
}

.meta-chip {
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.detail-cover {
    border-radius: 0;
    border-color: var(--line-strong);
}

.detail-cover-label {
    border-radius: 0;
    font-family: var(--font-mono);
}

.detail-grid {
    grid-template-columns: minmax(0, 1fr) 354px;
}

.prose {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 14px;
}

.prose h2,
.prose h3 {
    font-family: var(--font-display);
}

.tag-list a {
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: 8px;
}

.safety-note {
    border-radius: 0;
}

.safety-icon {
    border-radius: 1px;
}

.download-card {
    border-radius: 0;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(135deg, var(--accent-soft), transparent 42%),
        var(--surface);
    box-shadow: 7px 7px 0 color-mix(in srgb, var(--accent) 8%, transparent);
}

.download-icon {
    border-radius: 0;
}

.download-specs dt {
    font-family: var(--font-mono);
}

.copy-link {
    border-radius: 0;
}

.sidebar-note {
    border-radius: 0;
}

/* --------------------------------- Footer -------------------------------- */

.disclaimer-band {
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, var(--accent) 4px, transparent 4px),
        var(--bg-2);
}

.disclaimer-inner {
    padding-left: 16px;
}

.disclaimer-inner p {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .01em;
}

.site-footer {
    padding-top: 64px;
    background: var(--bg);
}

.footer-col h2 {
    color: var(--accent);
    font-size: 8px;
}

.footer-badge {
    border-radius: 1px;
    font-family: var(--font-mono);
}

.footer-socials a {
    border-radius: 1px;
}

.footer-bottom {
    font-family: var(--font-mono);
    font-size: 8px;
}

.to-top {
    border-radius: 1px;
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ------------------------------- Responsive ------------------------------ */

@media (max-width: 1120px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr);
        gap: 34px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 7.4vw, 5.8rem);
    }

    .featured-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 950px) {
    .hero {
        padding-top: 56px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-copy {
        max-width: 780px;
    }

    .hero-visual {
        width: min(100%, 600px);
    }

    .sheet-stack {
        margin-left: 0;
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 28px;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--ledger-line);
    }

    .featured-layout {
        grid-template-columns: 1fr;
    }

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

    .tool-card--compact {
        min-height: 190px;
    }

    .discipline-grid {
        gap: 0 26px;
    }

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

    .principle {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .principle:last-child {
        border-bottom: 0;
    }

    .cta-panel {
        display: block;
        padding: 34px;
    }

    .cta-actions {
        margin-top: 24px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .page-head-mark {
        display: none;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 42px;
    }

    .section {
        padding: 62px 0;
    }

    .section-head {
        align-items: flex-start;
        text-align: left;
    }

    .section-note {
        text-align: left;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 11vw, 3.9rem);
        line-height: .92;
    }

    .hero-outline {
        -webkit-text-stroke-width: 1px;
    }

    .hero-lede {
        font-size: 14.5px;
    }

    .hero-search {
        flex-wrap: wrap;
        padding: 8px;
    }

    .hero-search > .icon {
        margin-left: 6px;
    }

    .hero-search input {
        flex-basis: calc(100% - 54px);
    }

    .hero-search .btn {
        width: 100%;
    }

    .hero-visual {
        padding-bottom: 30px;
    }

    .index-sheet {
        padding: 18px;
        transform: rotate(-.7deg);
        box-shadow: 10px 10px 0 rgba(0, 0, 0, .32);
    }

    .sheet-number {
        font-size: 76px;
    }

    .sheet-stamp {
        bottom: 46px;
    }

    .hero-ticker {
        margin-top: 0;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--ledger-line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .featured-side {
        grid-template-columns: 1fr;
    }

    .tool-card--compact {
        grid-template-columns: 40% minmax(0, 1fr);
        min-height: 170px;
    }

    .tool-card--lead .tool-card-body {
        padding: 18px;
    }

    .tool-card--lead h3 {
        font-size: 2.2rem;
    }

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

    .discipline-row {
        grid-template-columns: 28px minmax(0, 1fr) 58px 24px;
        gap: 10px;
    }

    .discipline-row::before {
        left: -8px;
    }

    .discipline-main strong {
        font-size: 20px;
    }

    .principle {
        padding: 22px 4px;
    }

    .principle-index {
        font-size: 42px;
    }

    .cta-panel {
        padding: 24px;
        box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent) 16%, transparent);
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .page-head h1 {
        font-size: clamp(2.5rem, 11.5vw, 3.6rem);
    }

    .detail-intro-actions .btn {
        flex: 1;
    }

    .download-card {
        box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent) 8%, transparent);
    }
}

@media (max-width: 480px) {
    .brand-copy small {
        display: none;
    }

    .hero-proof span:nth-child(3) {
        display: none;
    }

    .sheet-foot {
        gap: 9px;
        font-size: 7px;
    }

    .sheet-barcode {
        width: 40px;
    }

    .sheet-stamp {
        right: 10px;
        bottom: 42px;
        font-size: 6.5px;
    }

    .discipline-count {
        display: none;
    }

    .discipline-row {
        grid-template-columns: 26px minmax(0, 1fr) 24px;
    }

    .principle {
        gap: 12px;
    }
}

/* Compact cards use the wide cover as an atmospheric texture; showing a
   portrait crop of the artwork would cut the large left-aligned type. */
.tool-card--compact .tool-card-media {
    overflow: hidden;
}

.tool-card--compact .tool-card-media img {
    filter: blur(7px) saturate(1.15);
    transform: scale(1.14);
    opacity: .8;
}

.tool-card--compact:hover .tool-card-media img {
    transform: scale(1.18);
}

.tool-card--compact .cover-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .7));
}

.tool-card--compact .tool-card-body {
    min-width: 0;
}

.tool-card--compact h3 {
    overflow-wrap: anywhere;
    font-size: 21px;
    line-height: 1.02;
}

.tool-card--compact .tool-card-body > p {
    display: -webkit-box;
    min-height: 0;
    margin-bottom: 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* --------------------------- Download grid screen ------------------------ */

.downloads-screen {
    padding: 40px 0 84px;
}

.downloads-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 10px 0 24px;
    border-bottom: 1px solid var(--line-strong);
}

.downloads-head-copy h1 {
    margin-bottom: 8px;
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    line-height: .92;
}

.downloads-head-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.downloads-head-meta {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    flex: none;
    padding-bottom: 4px;
}

.downloads-head-meta span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.downloads-head-meta strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.04em;
}

.downloads-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 24px;
}

.downloads-toolbar .chip-row {
    flex: 1;
    margin: 0;
}

.downloads-shown {
    flex: none;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 8px;
    white-space: nowrap;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.download-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}

.download-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--accent);
}

.download-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.download-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease);
}

.download-card:hover .download-card-cover img {
    transform: scale(1.035);
}

.download-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1px;
    background: rgba(8, 7, 4, .72);
    color: #f2ecdc;
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: .03em;
    backdrop-filter: blur(8px);
}

.download-card-version {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1px;
    background: rgba(8, 7, 4, .72);
    color: #f2ecdc;
    font-family: var(--font-mono);
    font-size: 7.5px;
    backdrop-filter: blur(8px);
}

.download-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px 16px 14px;
}

.download-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: .02em;
}

.download-card-pick {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    color: var(--warning);
}

.download-card h2 {
    margin-bottom: 6px;
    font-size: 23px;
    line-height: 1.02;
    letter-spacing: -.04em;
}

.download-card h2 a {
    transition: color .2s;
}

.download-card h2 a:hover {
    color: var(--accent);
}

.download-card-body > p {
    display: -webkit-box;
    min-height: 34px;
    margin-bottom: 13px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.download-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
}

.download-card-platform,
.download-card-license {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-card-license {
    flex: none;
    max-width: 38%;
}

.download-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 1px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s, transform .2s;
}

.download-button:hover {
    background: color-mix(in srgb, var(--accent) 88%, white);
    transform: translateY(-1px);
}

.download-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

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

.downloads-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 950px) {
    .downloads-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .downloads-head-meta {
        padding-bottom: 0;
    }

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

@media (max-width: 720px) {
    .downloads-screen {
        padding: 28px 0 60px;
    }

    .downloads-head-meta {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .downloads-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-top: 14px;
    }

    .downloads-toolbar .chip-row {
        width: 100%;
    }

    .downloads-shown {
        order: -1;
    }

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

    .download-card h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .downloads-head-meta strong {
        font-size: 20px;
    }

    .downloads-head-meta span {
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}
