/* =========================================================================
   Ihor Herasymovych — operator console
   A dark, terminal-flavored showcase. One hot accent (terminal green),
   mono display type, scanlines + grain, targeting-reticle cards.
   ========================================================================= */

:root {
  color-scheme: dark;

  --bg:       #080b0a;
  --bg-2:     #0b100e;
  --panel:    #0e1413;
  --panel-2:  #121a18;
  --line:     rgba(126,142,134,.16);
  --line-2:   rgba(126,142,134,.30);

  --ink:      #e9f1ec;
  --ink-soft: #c6d2cb;
  --muted:    #84938b;
  --faint:    #57655d;

  --accent:     #3df58a;          /* terminal green */
  --accent-ink: #04130b;
  --accent-dim: rgba(61,245,138,.12);
  --accent-glow: rgba(61,245,138,.45);

  --warn: #ffce4d;                /* console-only semantic colors */
  --bad:  #ff6470;
  --cool: #57d2ff;

  --maxw: 1240px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, "Liberation Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, 1, .22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.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;
}

/* ---- typographic helpers ------------------------------------------------ */
.mono  { font-family: var(--mono); }
.ac    { color: var(--accent); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- ambient overlays: scanlines + grain + vignette --------------------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.fx.scan {
  opacity: .5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .025) 0,
    rgba(255, 255, 255, .025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
.fx.grain {
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx.vignette {
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

/* ---- navigation --------------------------------------------------------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.brand b { font-weight: 700; }
.brand .at { color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.lnk { position: relative; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.nav-links a.lnk::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a.lnk:hover::after, .nav-links a.lnk:focus-visible::after { width: 100%; }
@media (max-width: 760px) { .nav-links a.lnk { display: none; } }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 8px;
  border: 1.5px solid var(--line-2); color: var(--ink); background: transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.btn.solid {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 14px 40px -16px var(--accent-glow);
}
.btn.solid:hover { background: var(--accent); filter: brightness(1.07); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---- hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; padding: 58px 0 26px; overflow: hidden; }
.hero::before {                       /* perspective grid floor */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(0deg,  var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(100% 80% at 78% 18%, #000 0%, transparent 72%);
          mask-image: radial-gradient(100% 80% at 78% 18%, #000 0%, transparent 72%);
  opacity: .55;
}
.hero::after {                        /* slow radar scan sweep */
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 70%; z-index: -2;
  background: linear-gradient(180deg, transparent, var(--accent-dim) 60%, transparent);
  animation: sweep 7s linear infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { transform: translateY(-20%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(220%); opacity: 0; } }

.hero-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.status { display: inline-flex; align-items: center; gap: 9px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 1px var(--accent-glow); }
.hero-top .right { color: var(--faint); }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero-h {
  font-family: var(--mono); font-weight: 800;
  font-size: clamp(58px, 13vw, 132px); line-height: .9; letter-spacing: -.05em;
  text-transform: uppercase;
}
.hero-h .row { display: block; overflow: hidden; }
.hero-h .row > span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease); transition-delay: var(--d, 0s);
}
.hero-h .row.in > span { transform: none; }
.hero-h .dim { color: var(--faint); }
.hero-h em { font-style: normal; color: var(--accent); text-shadow: 0 0 36px var(--accent-glow); }

.manifesto {
  margin-top: 30px; max-width: 46ch;
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--ink-soft);
}
.manifesto b { color: var(--ink); font-weight: 600; }
.manifesto .name { color: var(--accent); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.meta-row span::before { content: "▸ "; color: var(--accent); }

/* ---- operator profile card (hero, right) ------------------------------- */
.card {
  position: relative;
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 50px 120px -60px #000, inset 0 0 0 1px rgba(255, 255, 255, .02);
}
/* targeting-reticle corners */
.reticle::before, .reticle::after,
.reticle > .tl, .reticle > .tr { content: ""; position: absolute; width: 13px; height: 13px; border: 1.5px solid var(--accent); opacity: .55; z-index: 2; pointer-events: none; }
.reticle::before { left: 9px; top: 9px; border-right: 0; border-bottom: 0; }
.reticle::after  { right: 9px; bottom: 9px; border-left: 0; border-top: 0; }
.reticle > .tr   { right: 9px; top: 9px; border-left: 0; border-bottom: 0; }
.reticle > .tl   { left: 9px; bottom: 9px; border-right: 0; border-top: 0; }

.card-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .22);
  font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .04em;
}
.card-bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.card-bar .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 1px var(--accent-glow); }
.card-body { padding: 24px 22px; }
.card-name { font-family: var(--mono); font-weight: 800; font-size: clamp(22px, 2.7vw, 30px); letter-spacing: -.03em; line-height: 1.05; }
.card-role { margin-top: 7px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card-dl { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; font-family: var(--mono); font-size: 13.5px; }
.card-dl dt { color: var(--faint); padding: 10px 18px 10px 0; border-top: 1px solid var(--line); letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; white-space: nowrap; }
.card-dl dd { margin: 0; color: var(--ink-soft); padding: 9px 0; border-top: 1px solid var(--line); }
.card-dl dd .ac { color: var(--accent); }
.card-foot { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.card-foot .ac { color: var(--accent); }

/* ---- metrics ------------------------------------------------------------ */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 46px 0 4px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.metrics div { padding: 22px 22px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.metrics div:last-child { border-right: 0; }
.metrics dt { font-family: var(--mono); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; color: var(--ink); }
.metrics dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (max-width: 720px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(1), .metrics div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---- ticker ------------------------------------------------------------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 15px 0; margin-top: 60px; }
.ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marq 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(14px, 2.1vw, 22px); padding: 0 .5em; color: var(--ink-soft); }
.ticker-track .sep { color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---- generic section ---------------------------------------------------- */
section { padding: 104px 0; }
@media (max-width: 680px) { section { padding: 74px 0; } }
.sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sec-h { font-family: var(--mono); font-weight: 800; font-size: clamp(28px, 5vw, 52px); line-height: 1.02; letter-spacing: -.04em; max-width: 20ch; }
.sec-lead { margin: 22px 0 0; max-width: 48ch; color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55; }

/* ---- work / field operations ------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }

.op {
  position: relative; padding: 26px 24px 24px; min-height: 232px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.op::after {                          /* scanning glow that crosses on hover */
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px 180px at var(--mx, 50%) -10%, var(--accent-dim), transparent 70%);
  transition: opacity .3s ease;
}
.op:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--panel-2); }
.op:hover::after { opacity: 1; }
.op:hover .op-corner { color: var(--accent); }
.op:hover .feat-link { color: var(--accent); }
.op:hover .feat-link .arr { transform: translateX(3px); }

.op-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.op-idx { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .1em; }
.op-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
.op-tag[data-k="security"], .op-tag[data-k="osint"] { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim); }
.op h3 { font-family: var(--mono); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; margin-bottom: 10px; }
.op p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.op-corner { position: absolute; right: 18px; bottom: 16px; font-family: var(--mono); font-size: 12px; color: var(--faint); transition: color .25s ease; }

/* featured flagship card — spans the full row */
.op.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr .92fr; gap: 34px; align-items: center; min-height: 0; padding: 30px; }
@media (max-width: 820px) { .op.featured { grid-template-columns: 1fr; gap: 22px; } }
.op.featured .op-head { margin-bottom: 16px; }
.op.featured .op-tag { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-dim); }
.op.featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.op.featured p { font-size: 15px; line-height: 1.6; max-width: 54ch; }
.feat-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); transition: color .2s var(--ease); }
.feat-link .arr { transition: transform .2s var(--ease); }
.op.featured:hover .feat-link { color: var(--accent); }
.op.featured:hover .feat-link .arr { transform: translateX(3px); }
.feat-side { border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .2); padding: 4px 18px; }
.feat-side dl { margin: 0; font-family: var(--mono); }
.feat-side dt { color: var(--faint); padding: 13px 0 3px; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; }
.feat-side dd { margin: 0; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.feat-side dd:last-child { border-bottom: 0; }
.feat-side dd .ac { color: var(--accent); }

/* ---- engagements / pricing ---------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 940px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; background: var(--panel);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.svc:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--panel-2); }
.svc.feature { border-color: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-dim); }

.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.svc-idx { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .1em; }

.svc h3 { font-family: var(--mono); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }

.svc-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; flex-wrap: wrap; }
.svc-price .pre { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.svc-price .amt { font-family: var(--mono); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }
.svc-price .per { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.svc-sub { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.svc-list { list-style: none; margin: 20px 0 0; padding: 0; }
.svc-list li { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.svc-list li::before { content: "›"; color: var(--accent); font-family: var(--mono); line-height: 1.5; }

.svc-cta { margin-top: auto; padding-top: 22px; }
.svc-cta .btn { width: 100%; justify-content: center; }

/* ---- inverted statement ------------------------------------------------- */
.statement { position: relative; background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.statement::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: repeating-linear-gradient(135deg, #000 0 2px, transparent 2px 9px);
}
.statement .wrap { position: relative; }
.statement .label { color: rgba(4, 19, 11, .6); }
.statement .big {
  font-family: var(--mono); font-weight: 800; letter-spacing: -.045em; line-height: .96;
  font-size: clamp(34px, 7.4vw, 104px); text-transform: uppercase; margin-top: 22px;
}
.statement .sub { margin-top: 26px; max-width: 50ch; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55; color: rgba(4, 19, 11, .78); }

/* ---- operating mode: zero-to-one --------------------------------------- */
.mode { border-top: 1px solid var(--line); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; margin-top: 40px; }
@media (max-width: 880px) { .mode-grid { grid-template-columns: 1fr; gap: 34px; } }
.mode-h { font-family: var(--mono); font-weight: 800; font-size: clamp(34px, 6.4vw, 76px); line-height: .96; letter-spacing: -.045em; text-transform: uppercase; }
.mode-h .ac { text-shadow: 0 0 36px var(--accent-glow); }
.mode p { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; }
.mode p b { color: var(--ink-soft); font-weight: 600; }

.stage-track { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.stage-track li { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 20px 22px 20px 48px; border-bottom: 1px solid var(--line); }
.stage-track li:last-child { border-bottom: 0; }
.stage-track li .pin { position: absolute; left: 21px; top: 23px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--faint); }
.stage-track li b { font-family: var(--mono); font-weight: 800; letter-spacing: .03em; font-size: 1.06rem; color: var(--muted); text-transform: uppercase; }
.stage-track li .cap { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.stage-track li.here .pin { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim), 0 0 16px 1px var(--accent-glow); }
.stage-track li.here b { color: var(--accent); }
.stage-track li.here .cap { color: var(--ink-soft); }
.stage-track li.gone b { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }

/* ---- capabilities: build vs break -------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.col { border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; background: var(--panel); }
.col .k { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.col .k h3 { font-family: var(--mono); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; }
.col .k .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.cap { display: flex; flex-direction: column; gap: 0; }
.cap li { list-style: none; display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.cap { margin: 0; padding: 0; }
.cap li::before { content: "›"; color: var(--accent); font-family: var(--mono); line-height: 1.5; }
.col.break .cap li::before { content: "×"; }

/* ---- track record / log ------------------------------------------------- */
.log { margin-top: 52px; border-top: 1px solid var(--line); }
.log-row {
  display: grid; grid-template-columns: 168px 1fr; gap: 26px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.log-row:hover { background: rgba(255, 255, 255, .015); }
.log-when { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .01em; }
.log-row h3 { font-family: var(--mono); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: 7px; }
.log-row h3 .org { color: var(--muted); font-weight: 500; }
.log-row p { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 70ch; }
@media (max-width: 620px) { .log-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---- contact ------------------------------------------------------------ */
.contact { border-top: 1px solid var(--line); }
.contact-h { font-family: var(--mono); font-weight: 800; font-size: clamp(40px, 9vw, 116px); line-height: .88; letter-spacing: -.05em; text-transform: uppercase; }
.contact .lead { margin: 26px 0 0; max-width: 44ch; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.55; }
.contact .cta-row { margin-top: 34px; }
.contact .pill { font-family: var(--mono); }

/* ---- footer ------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; overflow: hidden; }
.foot-mark {
  font-family: var(--mono); font-weight: 800; line-height: .82; letter-spacing: -.06em;
  font-size: clamp(54px, 18vw, 230px); color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  white-space: nowrap;
}
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 26px; color: var(--muted); font-size: 13px; }
.foot-bottom .mono { color: var(--faint); }
.foot-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom nav a { font-family: var(--mono); font-size: 13px; }
.foot-bottom nav a:hover { color: var(--accent); }

/* ---- scroll reveal ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal, .hero-h .row > span { opacity: 1 !important; transform: none !important; }
  .cl { opacity: 1 !important; }
  .cursor { display: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive padding tweaks ----------------------------------------- */
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav-inner { height: 58px; }
  .hero { padding-top: 40px; }
  .console-body { min-height: 280px; }
}
