/* ==========================================================================
   Trenton Van Orden — Portfolio
   Dark professional theme for cybersecurity hiring managers
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-elevated: #0c1220;
  --bg-card: #101827;
  --bg-card-hover: #152033;
  --bg-header: rgba(7, 11, 20, 0.86);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --text-muted: #e2e8f0;
  --text-soft: #cbd5e1;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.35);
  --signal: #22d3ee;
  --success: #34d399;
  --gold: #f5c14a;
  --danger: #f87171;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --max: 1120px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px),
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(800px 480px at 0% 100%, rgba(34, 211, 238, 0.04), transparent 45%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.04;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.55) 2px 3px
  );
}

::selection {
  background: rgba(59, 130, 246, 0.38);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070b14;
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border: 2px solid #070b14;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

[hidden] {
  display: none !important;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent-2);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  color: #93c5fd;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.page {
  position: relative;
  z-index: 1;
  animation: page-in 0.5s var(--ease) both;
}

.site-footer {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Compact log pipeline ribbon (same on every page)                           */
/* -------------------------------------------------------------------------- */

.pipe-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 14px;
  box-shadow: var(--shadow);
  position: relative;
}

.pipe-map {
  width: 100%;
  height: auto;
  display: block;
}

.pipe-card figcaption {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 12px;
}

.pipe-kicker {
  fill: rgba(96, 165, 250, 0.75);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pipe-line {
  fill: none;
  stroke: rgba(96, 165, 250, 0.75);
  stroke-width: 1.8;
  stroke-dasharray: 5 6;
  animation: pipe-dash 0.85s linear infinite;
}

.pipe-drop {
  stroke: rgba(148, 163, 184, 0.4);
  stroke-dasharray: 3 5;
  animation-duration: 1.4s;
}

@keyframes pipe-dash {
  to { stroke-dashoffset: -22; }
}

.pipe-box rect,
.pipe-stage rect,
.pipe-dest rect {
  fill: rgba(11, 18, 32, 0.85);
  stroke-width: 1;
}

.pipe-box rect { stroke: rgba(96, 165, 250, 0.45); }
.pipe-stage rect { stroke: rgba(59, 130, 246, 0.7); }
.pipe-ok rect { stroke: rgba(34, 211, 238, 0.7); }
.pipe-noise rect { stroke: rgba(148, 163, 184, 0.4); }
.pipe-siem rect { stroke: rgba(59, 130, 246, 0.85); }
.pipe-ir rect { stroke: rgba(245, 193, 74, 0.75); }
.pipe-arc rect { stroke: rgba(52, 211, 153, 0.65); }

.pipe-lb polygon {
  fill: rgba(11, 18, 32, 0.9);
  stroke: #60a5fa;
  stroke-width: 1.2;
}

.pipe-box text,
.pipe-stage text,
.pipe-dest text,
.pipe-lb text {
  fill: #dbe7f7;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.pipe-sub {
  fill: rgba(148, 163, 184, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.pipe-lb text { font-size: 13px; }

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(59, 130, 246, 0.18);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--signal) 50%, var(--accent) 80%, transparent);
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.05));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 0 16px rgba(59, 130, 246, 0.2);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand-name small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #f1f5f9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
  background: var(--accent-soft);
}

.nav-links a.is-active {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #ffffff;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f8fafc;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
  max-width: 100%;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  animation: live-dot 2.4s ease-in-out infinite;
}

@keyframes live-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.08); opacity: 0.75; }
}

.hero h1,
.page-hero h1 {
  color: #ffffff;
}

.hero h1,
.page-hero h1 {
  overflow-wrap: break-word;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: #ffffff;
}

.headline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--accent-2);
  font-weight: 500;
  margin: 0 0 18px;
}

.lede {
  max-width: 720px;
  color: #e2e8f0;
  font-size: 1.05rem;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: #2563eb;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

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

.hero-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-soft);
  font-size: 14px;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-social a:hover {
  color: var(--text);
}

.hero-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: start;
}

.term {
  position: relative;
  background: #071018;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  box-shadow: var(--shadow), 0 0 40px rgba(59, 130, 246, 0.12);
  overflow: hidden;
  min-height: 100%;
}

.term-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(12, 22, 38, 0.9);
}

.term-lights {
  width: 42px;
  height: 10px;
  border-radius: 99px;
  background:
    radial-gradient(circle at 5px 5px, #f87171 4px, transparent 5px),
    radial-gradient(circle at 21px 5px, #f5c14a 4px, transparent 5px),
    radial-gradient(circle at 37px 5px, #34d399 4px, transparent 5px);
}

.term-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.term-body {
  margin: 0;
  padding: 16px 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #e8eef8;
  white-space: pre-wrap;
  min-height: 340px;
}

.term-body .ok { color: var(--success); }
.term-body .warn { color: var(--gold); }
.term-body .cmd { color: var(--signal); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--signal);
  vertical-align: -3px;
  animation: blink 1s step-end infinite;
}

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

.wire-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
  position: relative;
}

.wire-map {
  width: 100%;
  height: auto;
  display: block;
}

.wire-line {
  fill: none;
  stroke: rgba(96, 165, 250, 0.45);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  animation: dash-move 18s linear infinite;
}

.wire-line-out {
  stroke: rgba(52, 211, 153, 0.5);
}

@keyframes dash-move {
  to { stroke-dashoffset: -240; }
}

.wire-node rect {
  fill: #0b1524;
  stroke: rgba(59, 130, 246, 0.55);
  stroke-width: 1.2;
}

.wire-node-core rect {
  fill: #102038;
  stroke: #60a5fa;
}

.wire-node-out rect {
  stroke: #34d399;
}

.wire-node text {
  fill: #e8eef8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.wire-node .wire-sub {
  fill: #7b8aa3;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.pkt text {
  fill: #e8eef8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.pcap {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  background: #071018;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.pcap-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 10px 0;
  animation: pcap-scroll 28s linear infinite;
}

.pcap-track span {
  font-family: var(--mono);
  font-size: 11px;
  color: #8eb0d6;
  white-space: nowrap;
}

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

.wire-card figcaption {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.stat {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), var(--signal));
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.stat span {
  color: var(--text-soft);
  font-size: 13px;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.stack-chips li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 4px;
  padding: 5px 9px;
}

/* -------------------------------------------------------------------------- */
/* Page header                                                                */
/* -------------------------------------------------------------------------- */

.page-hero {
  padding: 64px 0 28px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.page-hero p {
  max-width: 720px;
  color: var(--text-muted);
  margin: 0;
}

.section {
  padding: 28px 0 72px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 8px;
}

.eyebrow::before {
  content: "// ";
  color: var(--signal);
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/* Cards / grids                                                              */
/* -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.12), 0 0 28px rgba(59, 130, 246, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
}

.icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 14px;
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.prose p {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.goal {
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  margin-top: 18px;
}

.certs {
  display: grid;
  gap: 12px;
}

.cert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.cert-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  color: #fff;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.cert b { display: block; }
.cert span { color: var(--text-soft); font-size: 13px; }

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 13px;
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

/* -------------------------------------------------------------------------- */
/* Experience timeline                                                        */
/* -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.role {
  position: relative;
  padding-left: 44px;
}

.role::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px rgba(59, 130, 246, 0.45);
  animation: node-pulse 3.2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 10px rgba(59, 130, 246, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.12), 0 0 18px rgba(34, 211, 238, 0.25); }
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.role-meta h2 {
  margin: 0;
  font-size: 1.2rem;
}

.role-org {
  color: var(--accent-2);
  font-weight: 600;
}

.role-dates,
.role-loc {
  color: var(--text-soft);
  font-size: 13px;
  font-family: var(--mono);
}

.role ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.role li + li {
  margin-top: 8px;
}

/* -------------------------------------------------------------------------- */
/* Projects                                                                   */
/* -------------------------------------------------------------------------- */

.featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.featured-body {
  padding: 32px;
}

.featured-panel {
  background:
    radial-gradient(400px 220px at 80% 20%, rgba(59, 130, 246, 0.2), transparent),
    linear-gradient(180deg, #0b1730, #0a1222);
  border-left: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.featured h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.featured p {
  color: var(--text-muted);
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.meta-list span { color: var(--text-soft); }
.meta-list b { color: var(--text); font-weight: 600; }

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 8px;
}

/* -------------------------------------------------------------------------- */
/* Testimonials                                                               */
/* -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.review-person b {
  display: block;
}

.review-person span {
  color: var(--text-soft);
  font-size: 13px;
}

.rating {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245, 193, 74, 0.35);
  background: rgba(245, 193, 74, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.rating.internal {
  color: var(--accent-2);
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--accent-soft);
}

.quote {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.quote::before {
  content: "“";
  color: var(--accent-2);
  font-size: 1.4rem;
  line-height: 0;
  margin-right: 2px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.chip {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(148, 163, 184, 0.06);
}

.chip.gold {
  color: var(--gold);
  border-color: rgba(245, 193, 74, 0.3);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.shot-card {
  margin: 0;
  background: #f4efe6;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
}

.shot-card figcaption {
  color: var(--text-soft);
  font-size: 12px;
  padding: 8px 6px 2px;
}

.shot-note {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 10px;
}

dialog.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 92vw);
}

dialog.lightbox::backdrop {
  background: rgba(2, 6, 14, 0.82);
}

dialog.lightbox img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------------------------- */
/* Contact                                                                    */
/* -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
}

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

.contact-link b { display: block; }
.contact-link span { color: var(--text-soft); font-size: 13px; word-break: break-word; }

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  caret-color: var(--signal);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--success);
}

.form-hint,
.card .form-hint {
  color: var(--text-soft);
  font-size: 13px;
  margin: 8px 0 18px;
}

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

.card::after,
.stat::after,
.role-card::after,
.review-card::after,
.featured::after,
.skill-group::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(var(--accent-2), var(--accent-2)) 8px 8px / 12px 1px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) 8px 8px / 1px 12px no-repeat,
    linear-gradient(var(--signal), var(--signal)) calc(100% - 8px) calc(100% - 8px) / 12px 1px no-repeat,
    linear-gradient(var(--signal), var(--signal)) calc(100% - 8px) calc(100% - 8px) / 1px 12px no-repeat;
  opacity: 0.75;
}

.role-card,
.review-card,
.featured,
.skill-group {
  position: relative;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  margin-top: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-row::after {
  content: "SYS.OK";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--success);
}

.footer-row {
  flex-wrap: wrap;
}

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

.empty {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.empty h1 {
  font-size: 4rem;
  margin: 0;
  letter-spacing: -0.04em;
}

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

@media (max-width: 960px) {
  .stats,
  .grid-3,
  .grid-2,
  .featured,
  .review-grid,
  .shot-grid,
  .contact-grid,
  .skill-groups,
  .hero-split {
    grid-template-columns: 1fr;
  }

  .featured-panel {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1080px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-links,
  .nav-social {
    display: none;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: 1 / -1;
    padding: 8px 0 12px;
    gap: 4px;
  }

  .nav.is-open .nav-social {
    display: flex;
    grid-column: 1 / -1;
    padding-bottom: 14px;
  }

  .hero {
    padding-top: 56px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-name small {
    display: none;
  }

  .kicker {
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .cta-row {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .review-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page,
  .card,
  .review-card,
  .btn,
  .kicker .dot,
  .role::before,
  .term-cursor,
  .wire-line,
  .pcap-track,
  .log-pkt,
  .pipe-line {
    animation: none;
  }

  .log-pkt {
    display: none;
  }
}
