/* ============================================================
   Кожуховский.рф — Technical Mono edition (2026)
   Monospace-first, terminal vibes, grid overlay, cyan accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* --- Tokens ----------------------------------------------- */
:root {
  --bg:         #07090b;
  --bg-2:       #0a0d11;
  --panel:      #0b0f14;
  --line:       rgba(255,255,255,0.08);
  --line-2:     rgba(255,255,255,0.16);
  --grid:       rgba(255,255,255,0.035);
  --text:       #e6ecef;
  --text-dim:   #8a9199;
  --text-mute:  #565c64;
  --accent:     #7cf0ff;
  --accent-2:   #00d1ff;
  --accent-soft:rgba(124,240,255,0.10);
  --accent-line:rgba(124,240,255,0.45);
  --danger:     #ff6b6b;

  --font-mono:   "Fira Code", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-display:"Fira Code", "JetBrains Mono", ui-monospace, Menlo, monospace;
  
  --maxw: 1280px;
  --pad:  clamp(16px, 3.2vw, 28px);
  --radius: 0px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --grid-step: 56px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 300;
  font-variant-ligatures: contextual;
  font-feature-settings: "calt" 1, "ss01" 1;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
    radial-gradient(1000px 600px at 90% -10%, rgba(124,240,255,0.06), transparent 60%),
    var(--bg);
}

::selection { background: var(--accent); color: #05070a; }

/* --- Scanline noise overlay (very subtle) ----------------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.5;
  will-change: opacity;
  transform: translateZ(0);
}

/* --- Utility ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0;
  border: 0;
  background: transparent;
}
.eyebrow::before { content: "["; color: var(--text-mute); margin-right: 2px; }
.eyebrow::after  { content: "]"; color: var(--text-mute); margin-left: 2px; }
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border-radius: 0;
}

.h-display {
  font-family: var(--font-mono);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--text);
  text-transform: none;
}
.h-display em { color: inherit; font-weight: inherit; font-style: normal; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ASCII divider */
.ascii-rule {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  overflow: hidden;
  white-space: nowrap;
}

/* Frame w/ corner ticks */
.frame {
  position: relative;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / var(--grid-step) var(--grid-step),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 40%);
}
.frame > .t-l, .frame > .t-r, .frame > .b-l, .frame > .b-r {
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--accent);
  border-style: solid;
  content: "";
  pointer-events: none;
}
.frame > .t-l { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.frame > .t-r { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.frame > .b-l { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.frame > .b-r { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* --- Header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px var(--pad);
  background: rgba(7,9,11,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.brand .mark {
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  background: var(--accent-soft);
}
.nav-links {
  display: none;
  gap: 22px;
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-dim);
}
.nav-links a { transition: color .2s var(--ease); position: relative; }
.nav-links a::before { content: "./"; color: var(--text-mute); margin-right: 2px; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: #05070a; }

@media (min-width: 780px) { .nav-links { display: inline-flex; } }

/* --- Hero ------------------------------------------------- */
.hero {
  padding: clamp(28px, 6vw, 56px) var(--pad) clamp(40px, 6vw, 72px);
}
.hero-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  position: relative;
  padding: clamp(24px, 4vw, 44px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.hero-name::before { content: "$ "; color: var(--accent); }
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 60ch;
  line-height: 1.6;
}
.hero-role::before { content: "// "; color: var(--text-mute); }
.hero-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero-title em { color: inherit; font-weight: inherit; font-style: normal; }
/* blinking caret */
.hero-title::after {
  content: "_";
  display: inline-block;
  color: var(--accent);
  margin-left: 6px;
  animation: caret 1s steps(1) infinite;
  font-weight: 400;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-sub {
  margin-top: 24px;
  max-width: 56ch;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.65;
}
.hero-sub::before { content: "> "; color: var(--accent); }

.hero-cta {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #05070a;
}
.btn-primary:hover { background: transparent; color: var(--accent); }

.hero-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  width: 96px;
  max-width: 96px;
  justify-self: start;
  align-self: start;
  margin-top: 4px;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(0.2) contrast(1.05);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(124,240,255,0.06), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.08) 2px 3px);
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 96px;
    gap: clamp(40px, 5vw, 64px);
  }
}

/* hero stats strip */
.hero-stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}
.stat {
  padding: 20px 18px;
  background: var(--bg);
  position: relative;
}
.stat::before {
  content: "▸";
  position: absolute;
  top: 18px; left: 16px;
  color: var(--accent);
  font-size: 10px;
  opacity: 0;
}
.stat .k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.stat .v {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--text);
}
.stat .v em { color: inherit; font-weight: inherit; font-style: normal; }

@media (min-width: 720px) { .hero-stats-inner { grid-template-columns: repeat(4, 1fr); } }

/* --- Manifesto ------------------------------------------- */
.manifesto { padding: clamp(48px, 6vw, 80px) var(--pad); }
.manifesto-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.manifesto-grid {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.m-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.m-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-k::before { content: "$ "; color: var(--text-mute); }
.m-v {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.4;
  color: var(--text);
  max-width: 60ch;
  letter-spacing: -0.01em;
}
.m-v em { color: inherit; font-weight: inherit; font-style: normal; }
@media (max-width: 720px) {
  .m-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .m-v { font-size: 17px; }
}

/* --- Section scaffolding --------------------------------- */
.section {
  padding: clamp(56px, 8vw, 110px) var(--pad);
  position: relative;
  contain: paint;
}
.section-head {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .eyebrow { justify-self: start; }
.section-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  max-width: 20ch;
  line-height: 1;
}
.section-lede {
  max-width: 56ch;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.6;
}
.section-lede::before { content: "// "; color: var(--text-mute); }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }
  .section-head .section-lede { justify-self: end; }
}
.section-body { max-width: var(--maxw); margin-inline: auto; }

/* --- Services -------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: clamp(20px, 3vw, 30px);
  min-height: 220px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background .25s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; height: 1px; width: 0;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.service:hover { background: #0a0d12; }
.service:hover::before { width: 100%; }
.service .num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.service h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.15;
  text-transform: none;
}
.service h3 em { color: inherit; font-weight: inherit; font-style: normal; }
.service p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.service .tags {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-mute);
}
.service .tags span { padding: 3px 8px; border: 1px solid var(--line-2); }
.service .tags span::before { content: "#"; color: var(--accent); opacity: 0.7; }

@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* --- Cases ------------------------------------------------ */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.case {
  background: var(--bg);
  padding: 18px;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  position: relative;
  transition: background .25s var(--ease);
  overflow: hidden;
}
.case:hover { background: #0a0d12; }
.case .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--accent);
}
.case .tag::before { content: "["; color: var(--text-mute); }
.case .tag::after  { content: "]"; color: var(--text-mute); }
.case .title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.case .title em { color: inherit; font-weight: inherit; font-style: normal; }
.case .snippet {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-dim);
  margin-top: 4px;
  max-width: 38ch;
}
.case .snippet::before { content: "// "; color: var(--text-mute); }
.case .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.case .meta .year { color: var(--accent); }

.case--a::before, .case--b::before, .case--c::before, .case--d::before,
.case--e::before, .case--f::before, .case--g::before, .case--h::before,
.case--i::before, .case--j::before, .case--k::before, .case--l::before {
  content: ""; position: absolute; inset: 0;
  opacity: 0.45; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.case:hover::before { opacity: 0.75; }
.case--a::before { background: radial-gradient(circle at 80% 10%, rgba(124,240,255,0.22), transparent 55%); }
.case--b::before { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 10px); }
.case--c::before { background: radial-gradient(ellipse at 20% 90%, rgba(124,240,255,0.18), transparent 60%); }
.case--d::before { background: linear-gradient(180deg, rgba(124,240,255,0.06), transparent 70%); }
.case--e::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px); }
.case--f::before { background: radial-gradient(circle at 30% 30%, rgba(124,240,255,0.2), transparent 55%); }
.case--g::before { background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 50%); }
.case--h::before { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px); }
.case--i::before { background: radial-gradient(circle at 50% 0%, rgba(124,240,255,0.14), transparent 60%); }
.case--j::before { background: radial-gradient(circle at 85% 15%, rgba(124,240,255,0.18), transparent 55%); }
.case--k::before { background: repeating-linear-gradient(60deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px); }
.case--l::before { background: radial-gradient(ellipse at 10% 10%, rgba(124,240,255,0.2), transparent 55%); }
.case > * { position: relative; z-index: 1; }

@media (min-width: 720px) { .cases { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(4, 1fr); } }

/* --- Process --------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.step .n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
  letter-spacing: 0.04em;
}
.step h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(17px, 2vw, 20px);
  margin-bottom: 6px;
}
.step p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.step .kicker {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.step .kicker::before { content: "~ "; color: var(--accent); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }

/* --- Fit -------------------------------------------------- */
.fit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fit-col {
  background: var(--bg);
  padding: clamp(24px, 3vw, 34px);
}
.fit-col h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 22px;
}
.fit-col h3 em { color: inherit; font-weight: inherit; font-style: normal; }
.fit-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.fit-list li:first-child { border-top: 0; }
.fit-list .mk {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  line-height: 1.6;
}
@media (min-width: 900px) { .fit { grid-template-columns: 1fr 1fr; } }

/* --- Numbers / testimonials ------------------------------ */
.numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.num-cell {
  background: var(--bg);
  padding: clamp(22px, 3vw, 32px);
}
.num-cell .n {
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.num-cell .n em { color: inherit; font-weight: inherit; font-style: normal; }
.num-cell .l {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (min-width: 780px) { .numbers { grid-template-columns: repeat(4, 1fr); } }

.quotes {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quote {
  background: var(--bg);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.quote blockquote {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote blockquote::before {
  content: '"';
  color: var(--accent);
  font-size: 1.4em;
  line-height: 0;
  margin-right: 4px;
}
.quote blockquote em { color: inherit; font-weight: inherit; font-style: normal; }
.quote .who {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.quote .who b { color: var(--text); font-weight: 700; letter-spacing: 0.06em; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, 1fr); } }

/* --- FAQ -------------------------------------------------- */
.faq { border: 1px solid var(--line); }
.faq details { padding: 0; border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "? ";
  color: var(--accent);
  margin-right: 6px;
  font-weight: 700;
}
.faq summary:hover { color: var(--accent); }
.faq summary .plus {
  width: 14px; height: 14px; position: relative; flex: 0 0 14px;
  opacity: 0.7;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: currentColor; left: 0; top: 50%;
  width: 100%; height: 1px;
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); opacity: 1; color: var(--accent); }
.faq details[open] summary { color: var(--accent); }
.faq .a {
  padding: 0 var(--pad) 24px calc(var(--pad) + 20px);
  color: var(--text-dim);
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.65;
}
.faq .a::before { content: "> "; color: var(--accent); margin-left: -20px; }

/* --- Contact / form --------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-col {
  background: var(--bg);
  padding: clamp(24px, 3vw, 34px);
}
.contact-col h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 22px;
}
.contact-col h3 em { color: inherit; font-weight: inherit; font-style: normal; }

.contact-lines li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: baseline;
}
.contact-lines li:first-child { border-top: 0; }
.contact-lines .k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-lines .v {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}
.contact-lines a.v:hover { color: var(--accent); }
.contact-lines .aux {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field label::before { content: "> "; color: var(--accent); }
.field input, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-mono);
  outline: none;
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); font-family: var(--font-mono); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }

.form-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  max-width: 40ch;
}
.form-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--accent); }

.form-status {
  min-height: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-status[data-state="ok"]    { color: var(--accent); }
.form-status[data-state="error"] { color: var(--danger); }

@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

/* --- Footer ---------------------------------------------- */
.site-footer {
  padding: 40px var(--pad) 60px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: end;
}
.footer-brand {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer-brand em { color: inherit; font-weight: inherit; font-style: normal; }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-start;
}
.footer-meta a:hover { color: var(--accent); }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-meta { justify-content: flex-end; }
}

/* --- Privacy page ---------------------------------------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--pad);
}
.doc h1 {
  font-family: var(--font-mono);
  font-weight: 300;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 6px;
}
.doc .doc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.doc h2 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 36px 0 12px;
}
.doc p { color: var(--text-dim); margin-bottom: 12px; max-width: 66ch; font-size: 14.5px; line-height: 1.65; }
.doc ul { color: var(--text-dim); margin: 8px 0 16px 20px; }
.doc ul li { list-style: disc; padding: 4px 0; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--accent); }
.doc .back {
  display: inline-block; margin-top: 40px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute);
}
.doc .back:hover { color: var(--accent); }

/* --- Regalia list --------------------------------------- */
.regalia-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.regalia-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--text);
}
.regalia-list .mk {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}
.regalia-list b { color: var(--text); font-weight: 600; }

/* --- Case groups (replaces .cases grid for new layout) --- */
.cases-grouped .section-body {
  display: grid;
  gap: 0;
}
.case-group {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.case-group:last-of-type { border-bottom: 1px solid var(--line); }
.cg-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 16px;
}
.cg-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.cg-title {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.cg-title em { font-style: normal; color: var(--text-dim); font-weight: 400; }
.cg-list {
  list-style: none; padding: 0; margin: 0 0 0 76px;
}
.cg-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--text-dim);
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.cg-list li:first-child { border-top: 0; }
.cg-list li::before {
  content: "▸";
  position: absolute; left: 0; top: 10px;
  color: var(--accent);
  font-size: 11px;
}
.cg-list li b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .cg-list { margin-left: 0; }
  .regalia-list li { grid-template-columns: 40px 1fr; gap: 12px; }
  .cg-head { grid-template-columns: 40px 1fr; gap: 12px; }
}

.cases-links {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}

/* --- Contact direct (no form) ---------------------------- */
.contact-direct .contact-lines {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.contact-direct .contact-lines li {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-direct .contact-lines .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-direct .contact-lines .v {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--text);
  text-decoration: none;
}
.contact-direct .contact-lines a.v:hover { color: var(--accent); }
.contact-direct .contact-lines .aux {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
@media (max-width: 700px) {
  .contact-direct .contact-lines li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* hide deprecated hero-stats if anywhere left */
.hero-stats { display: none; }

/* --- reveal on scroll ------------------------------------ */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
