/* LLMGaurd — operator-console design system */

@font-face { font-family: "Inter Tight"; src: url("/fonts/InterTight-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #07090c;
  --bg-1: #0b0e12;
  --panel: #0e1217;
  --panel-2: #131820;
  --line: #1b222b;
  --line-2: #26303b;
  --text: #e8edf2;
  --text-2: #b5bfca;
  --muted: #7b8794;
  --dim: #56616d;
  --accent: #c8f031;        /* signal lime */
  --accent-ink: #0b0f02;
  --accent-soft: rgba(200, 240, 49, 0.1);
  --bad: #ff5a4f;
  --bad-soft: rgba(255, 90, 79, 0.12);
  --warn: #ffb547;
  --info: #62c8ff;
  --ok: #7ee08a;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --r: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 640px; line-height: 1.55; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }

/* grid background */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: .7;
}

/* mono atoms */
.label, .kicker, .pill, .tag, .crumbs, .btn, .nav a, .brand-tag, dt, .log-date, .log-read, .module-head, .cov-id, .k, .threat-code, .footer-grid h3, .footer-base, .panel-bar, .console, .steps span, .form label > span { font-family: var(--mono); }
.label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label-n { color: var(--accent); }
.kicker { font-size: .85rem; color: var(--text-2); margin-bottom: 22px; }
.prompt { color: var(--accent); margin-right: 8px; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 4px; vertical-align: -2px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hl-text { color: var(--accent); }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 8px; vertical-align: 1px; }
.pill { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2); white-space: nowrap; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .7rem; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: .85rem; font-weight: 500; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text); background: var(--panel); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--muted); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { background: #d6f85a; border-color: #d6f85a; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: .78rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 12, .82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.header-inner { height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.brand-name { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-tag { font-size: .66rem; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { font-size: .8rem; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 4px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"]::before { content: "▸ "; color: var(--accent); }
@media (max-width: 760px) { .header-cta, .brand-tag { display: none; } .header-inner { gap: 12px; } .nav a { padding: 6px 7px; font-size: .74rem; } .nav a[aria-current="page"]::before { content: ""; } }
@media (max-width: 400px) { .brand-name { display: none; } }

/* hero */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 60%; height: 90%; background: radial-gradient(closest-side, rgba(200, 240, 49, .07), transparent); pointer-events: none; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 40px; }
.hero-specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-specs div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.hero-specs div:last-child { border: 0; margin: 0; }
.hero-specs dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.hero-specs dd { margin: 4px 0 0; font-size: .9rem; color: var(--text-2); }
@media (max-width: 620px) { .hero-specs { grid-template-columns: 1fr; gap: 12px; } .hero-specs div { border: 0; margin: 0; padding: 0; } }

/* console demo */
.console { background: linear-gradient(180deg, var(--panel), var(--bg-1)); border: 1px solid var(--line-2); border-radius: 8px; font-size: .78rem; line-height: 1.6; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; min-width: 0; }
.demo-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs button { position: relative; flex: 1 0 auto; font: .7rem var(--mono); color: var(--muted); background: none; border: 0; border-right: 1px solid var(--line); padding: 10px 12px; cursor: pointer; white-space: nowrap; text-align: left; }
.demo-tabs button:last-child { border-right: 0; }
.demo-tabs button span { color: var(--dim); margin-right: 4px; }
.demo-tabs button:hover { color: var(--text); }
.demo-tabs button[aria-selected="true"] { color: var(--text); background: var(--panel); }
.demo-tabs button[aria-selected="true"] span { color: var(--accent); }
.demo-tabs i { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); font-size: .72rem; }
.cb-title { color: var(--text); white-space: nowrap; }
.cb-file { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cb-state { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; padding: 2px 8px; border-radius: 3px; color: var(--info); border: 1px solid rgba(98, 200, 255, .35); white-space: nowrap; }
.console[data-phase="blocked"] .cb-state { color: var(--bad); border-color: rgba(255, 90, 79, .45); background: var(--bad-soft); }
.console[data-phase="done"] .cb-state { color: var(--accent); border-color: rgba(200, 240, 49, .4); background: var(--accent-soft); }
.console-doc { position: relative; height: 190px; padding: 16px 16px 14px; overflow: hidden; color: var(--text-2); border-bottom: 1px dashed var(--line-2); }
.console-doc p { margin: 0; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(98, 200, 255, .14), transparent); border-bottom: 1px solid rgba(98, 200, 255, .5); opacity: 0; pointer-events: none; }
.console[data-phase="scanning"] .scanline { opacity: 1; animation: scan 1.8s ease-in-out forwards; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(var(--scan-h, 150px)); } }
.hit { border-radius: 2px; padding: 0 2px; transition: background .3s, color .3s; color: var(--text); background: rgba(255, 255, 255, .04); word-break: break-word; }
.console[data-phase="blocked"] .hit, .console[data-phase="done"] .hit { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 -1px 0 var(--bad); }
.hit.is-redacted { background: var(--accent-soft) !important; color: var(--accent) !important; box-shadow: inset 0 -1px 0 var(--accent) !important; }
.hit-tag { display: inline-block; margin-left: 8px; font-size: .62rem; padding: 0 6px; border-radius: 2px; background: var(--bad); color: #fff; white-space: nowrap; vertical-align: 1px; animation: fadein .25s ease both; }
.console-log { padding: 12px 16px; height: 160px; overflow: hidden; }
.console-log div { white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: fadein .25s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(2px); } }
.console-log .t { color: var(--dim); }
.console-foot { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--line); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.c-ok { color: var(--ok); } .c-bad { color: var(--bad); } .c-warn { color: var(--warn); } .c-info { color: var(--info); } .c-acc { color: var(--accent); }

/* sections */
.section { padding: 88px 0; }
.section.tight { padding: 36px 0 88px; }
.section-line { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 720px; }
.link-arrow { font-family: var(--mono); font-size: .8rem; color: var(--accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.15fr; gap: 72px; } .split h2 { position: sticky; top: 100px; align-self: start; } }
.threats { border-top: 1px solid var(--line); }
.threat { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.threat-code { font-size: .78rem; color: var(--bad); padding-top: 3px; }
.threat p { color: var(--muted); margin: 0; }

/* modules */
.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
@media (min-width: 980px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.module { background: var(--bg-1); display: flex; flex-direction: column; min-width: 0; transition: background .2s; }
.module:hover { background: var(--panel); }
.module-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.module-id { color: var(--accent); }
.module-name { color: var(--text-2); flex: 1; }
.module-viz { padding: 18px 16px; border-bottom: 1px solid var(--line); min-height: 168px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, .015) 23px 24px); }
.module-body { padding: 20px 16px 24px; }
.module-body p { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; font-size: .9rem; }
.ticks li { padding: 6px 0 6px 22px; position: relative; border-top: 1px solid var(--line); color: var(--text-2); }
.ticks li::before { content: "+"; position: absolute; left: 2px; font-family: var(--mono); color: var(--accent); }

.term-lines { margin: 0; font: .72rem/1.75 var(--mono); color: var(--text-2); white-space: pre; overflow-x: auto; }
.term-lines .ok { color: var(--ok); } .term-lines .bad { color: var(--bad); } .term-lines .warn { color: var(--warn); } .term-lines .hl { color: var(--accent); }
.flow { display: flex; align-items: center; font: .72rem var(--mono); }
.flow .node { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2); background: var(--panel-2); }
.flow .node.guard { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 18px -6px var(--accent); }
.flow .wire { flex: 1; height: 1px; min-width: 16px; background: linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0 / 8px 1px; position: relative; }
.flow .wire::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--line-2); }
.mini-browser { border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; font: .72rem/1.6 var(--mono); background: var(--bg); }
.mb-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.mb-url { flex: 1; color: var(--muted); padding: 1px 8px; background: var(--bg); border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-ext { color: var(--accent); }
.mb-body { padding: 10px; color: var(--text-2); }
.mb-body p { margin: 0; }
.redact { background: var(--bad-soft); color: var(--bad); border-bottom: 1px dashed var(--bad); padding: 0 2px; }
.mb-toast { margin: 0 8px 8px; padding: 6px 8px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--text-2); }
.mb-toast b { color: var(--accent); font-weight: 600; }

/* coverage */
.coverage { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-1); }
.cov-legend { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }
.cov-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); }
.cov-cell { background: var(--bg-1); padding: 16px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 12px; transition: background .2s; }
.cov-cell:hover { background: var(--panel); }
.cov-id { font-size: .72rem; color: var(--accent); }
.cov-name { grid-column: 1; font-size: .92rem; color: var(--text); line-height: 1.3; }
.cov-keys { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 4px; align-self: center; }
.k { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: .66rem; font-style: normal; font-weight: 600; border-radius: 3px; background: var(--accent); color: var(--accent-ink); }
.k.k-S { background: var(--info); }
.k.k-R { background: var(--warn); }
.k.off { background: transparent; color: var(--dim); border: 1px solid var(--line-2); }
.cov-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* research log */
.log { border-top: 1px solid var(--line); }
.log-header { display: grid; grid-template-columns: 120px 1fr 220px; gap: 24px; padding: 0 0 10px; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.log-row { display: grid; grid-template-columns: 120px 1fr 220px 24px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; }
.log-row::before { content: ""; position: absolute; inset: 0 -16px; background: var(--panel); opacity: 0; transition: opacity .15s; z-index: -1; border-radius: 4px; }
.log-row:hover::before { opacity: 1; }
.log-row:hover .log-title { color: var(--accent); }
.log-row:hover .log-arrow { transform: translateX(4px); color: var(--accent); }
.log-date { font-size: .78rem; color: var(--muted); }
.log-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.log-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; transition: color .15s; }
.log-desc { color: var(--muted); font-size: .92rem; }
.log-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.log-read { font-size: .72rem; color: var(--dim); }
.log-arrow { font-family: var(--mono); color: var(--dim); transition: transform .15s, color .15s; }
@media (max-width: 860px) {
  .log-header { display: none; }
  .log-row { grid-template-columns: 1fr; gap: 8px; }
  .log-arrow { display: none; }
}

/* cta panel */
.cta-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding: 48px 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-1); overflow: hidden; }
.cta-panel h2 { margin: 0; }
.cta-panel p.muted { margin: 12px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-panel { padding: 32px 20px; } }

/* page head */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 900px; }
.page-head .lead { margin-top: 18px; }

/* post */
.post-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.post-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.post-meta div { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.post-meta div:last-child { border: 0; }
.post-meta dt, .kv dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.post-meta dd { margin: 4px 0 0; font-size: .88rem; color: var(--text-2); }
@media (max-width: 560px) { .post-meta { flex-direction: column; gap: 12px; } .post-meta div { border: 0; } }
.prose { padding-bottom: 96px; font-size: 1.07rem; line-height: 1.75; color: var(--text-2); }
.prose > p:first-child { font-size: 1.15rem; color: var(--text); }
.prose h2 { font-size: 1.55rem; color: var(--text); margin: 2.2em 0 .7em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h3 { color: var(--text); margin: 1.8em 0 .5em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--accent); font-family: var(--mono); font-size: .9em; }
.prose code { font: .86em var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; color: var(--accent); }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; overflow-x: auto; font-size: .85rem; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--text-2); }
.prose blockquote { margin: 1.6em 0; padding: 14px 18px; background: var(--bad-soft); border-left: 2px solid var(--bad); color: var(--text); font-family: var(--mono); font-size: .88rem; line-height: 1.6; border-radius: 0 4px 4px 0; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--panel); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; }
.sources { margin-top: 56px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-1); }
.sources h2 { margin: 0; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sources ol { margin: 0; padding: 8px 16px 12px 40px; }
.sources li { font-size: .92rem; padding: 4px 0; }
.sources li::marker { color: var(--accent); }
.src-host { display: block; font: .7rem var(--mono); color: var(--dim); }
.disclosure { margin-top: 24px; font: .78rem var(--mono); color: var(--muted); }
.next-post { display: block; margin-top: 48px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.1rem; transition: border-color .15s; }
.next-post .dim { display: block; font: 400 .72rem var(--mono); margin-bottom: 6px; }
.next-post:hover { border-color: var(--accent); }

/* contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.kv { margin: 28px 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 100px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.kv dd { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; color: var(--text-2); }
.steps li { padding: 8px 0; }
.steps span { color: var(--accent); font-size: .78rem; margin-right: 14px; }
.panel { border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-1); overflow: hidden; }
.panel-bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); font-size: .72rem; color: var(--text-2); }
.form-body { padding: 24px 20px; display: grid; gap: 18px; }
.form .row.two { display: grid; gap: 18px; }
@media (min-width: 620px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; }
.form label > span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form label > span i { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0; }
.form input, .form select, .form textarea { width: 100%; font: .98rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 11px 12px; transition: border-color .15s; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 320px; margin-top: 12px; }
.footer-grid h3 { font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 12px; }
.footer-grid div > a:not(.brand) { display: block; color: var(--text-2); text-decoration: none; font-size: .9rem; padding: 3px 0; word-break: break-word; }
.footer-grid div > a:not(.brand):hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .7rem; color: var(--dim); }
.sys { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* related research */
.related { margin-top: 56px; }
.related h2 { margin: 0 0 12px; padding: 0; border: 0; font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.related .next-post { margin-top: 10px; }
a.tag { text-decoration: none; }
a.tag:hover { background: var(--accent); color: var(--accent-ink); }
