/* ============================================================
   DARION COLE — business & network leadership
   navy authority + cyan signal — tech meets executive
   ============================================================ */

:root {
  /* accent — electric cyan (fiber / signal) */
  --accent:       #38bdf8;
  --accent-dim:   rgba(56, 189, 248, 0.20);
  --accent-ghost: rgba(56, 189, 248, 0.07);
  --accent-h:     200;

  /* secondary palette */
  --warn: #fb923c;
  --info: #818cf8;
  --bad:  #f87171;

  /* dark navy (default) */
  --bg:       #080e1a;
  --bg-1:     #0c1524;
  --bg-2:     #101d30;
  --bg-3:     #16263e;
  --line:     rgba(255,255,255,0.07);
  --line-2:   rgba(255,255,255,0.13);
  --text:     #e1e8f0;
  --text-2:   #8fa8c0;
  --text-3:   #4d6480;
  --shadow:   0 1px 0 rgba(255,255,255,0.04), 0 24px 60px -20px rgba(0,0,0,0.85);
}

html[data-theme="light"] {
  --bg:       #f0f5fb;
  --bg-1:     #e6edf7;
  --bg-2:     #dce5f2;
  --bg-3:     #cfd9ec;
  --line:     rgba(0,0,0,0.08);
  --line-2:   rgba(0,0,0,0.14);
  --text:     #0c1830;
  --text-2:   #2e4a6a;
  --text-3:   #6080a0;
  --accent:     #0284c7;
  --accent-dim: rgba(2,132,199,0.18);
  --accent-ghost: rgba(2,132,199,0.07);
  --shadow:   0 1px 0 rgba(255,255,255,0.7), 0 20px 50px -20px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(1400px 700px at 90% -5%, var(--accent-ghost), transparent 55%),
    radial-gradient(1000px 600px at -5% 110%, rgba(129,140,248,0.05), transparent 55%);
}

/* Circuit / network topology background pattern */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(135deg, var(--line) 1px, transparent 1px),
    linear-gradient(45deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle, var(--line-2) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 60px 60px;
  background-position: 0 0, 0 0, 30px 30px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 75%);
}

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

.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TOP BAR — clean professional nav
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.topbar .brand {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.topbar .brand .dot { color: var(--accent); }
.topbar .spacer { flex: 1; }
.topbar .pill { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.topbar .pill .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-dim); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--text-2); font-size: 13px; font-weight: 500; }
.topbar nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 1100px) { .topbar nav { display: none; } }
@media (max-width: 820px) { .topbar .pill { display: none; } }

.tweak-btn {
  background: transparent; color: var(--text-2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 4px; font: inherit; font-size: 11px; cursor: pointer;
}
.tweak-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   HERO ANIMATIONS
   ============================================================ */
.hero { position: relative; }

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero-name {
  position: relative;
  z-index: 1;
}

/* staggered entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim.d1 { animation-delay: 0.10s; }
.hero-anim.d2 { animation-delay: 0.28s; }
.hero-anim.d3 { animation-delay: 0.44s; }
.hero-anim.d4 { animation-delay: 0.60s; }
.hero-anim.d5 { animation-delay: 0.74s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

h1.hero-title {
  opacity: 0;
  color: var(--text);
  animation:
    heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.10s forwards,
    titleGlow 2.8s ease-in-out 1.1s 1;
}
h1.hero-title .accent { color: var(--accent); }
@keyframes titleGlow {
  0%   { text-shadow: none; }
  40%  { text-shadow: 0 0 50px rgba(56,189,248,0.45), 0 0 20px rgba(56,189,248,0.25); }
  100% { text-shadow: none; }
}

/* chip pop-in */
.hero-meta .chip {
  opacity: 0;
  transform: scale(0.88);
  animation: chipIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-meta .chip:nth-child(1) { animation-delay: 0.65s; }
.hero-meta .chip:nth-child(2) { animation-delay: 0.78s; }
.hero-meta .chip:nth-child(3) { animation-delay: 0.91s; }
.hero-meta .chip:nth-child(4) { animation-delay: 1.04s; }

@keyframes chipIn {
  to { opacity: 1; transform: scale(1); }
}

/* CTA glow pulse on the primary btn */
.btn.primary {
  position: relative;
  overflow: visible;
}
.btn.primary::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0;
  filter: blur(10px);
  z-index: -1;
  animation: btnGlow 2.5s ease-in-out 1.5s infinite alternate;
}
@keyframes btnGlow {
  0%   { opacity: 0; }
  100% { opacity: 0.25; }
}
.hero {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.hero.hero-solo { grid-template-columns: 1fr; max-width: 880px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

.hero-name {
  display: flex; flex-direction: column; gap: 28px;
}

.cursor {
  display: inline-block; width: 8px; height: 1.1em; background: var(--accent);
  vertical-align: -3px; margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

h1.hero-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}
h1.hero-title .accent { color: var(--accent); }

.hero-sub {
  color: var(--text-2);
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.7;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: var(--text-2);
}
.hero-meta .chip {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-1);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta .chip .k { color: var(--text-3); }
.hero-meta .chip .v { color: var(--text); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn {
  font: inherit; font-size: 12px; letter-spacing: 0.3px;
  padding: 10px 14px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg-1); color: var(--text);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #03100a; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }

/* status panel */
.statuspanel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.statuspanel .sp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--text-2);
}
.statuspanel .sp-head .label { letter-spacing: 1px; text-transform: uppercase; }
.statuspanel .sp-body { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi .key { font-size: 10px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; }
.kpi .val { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -0.01em;}
.kpi .val.accent { color: var(--accent); }
.kpi .sub { font-size: 11px; color: var(--text-2); }

.sparkline {
  height: 42px;
  width: 100%;
}

.ticker {
  border-top: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap; overflow: hidden;
  position: relative;
  height: 30px; line-height: 14px;
}
.ticker .line { position: absolute; left: 0; top: 8px; animation: tick 40s linear infinite; will-change: transform; }
@keyframes tick { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.ticker .t-ok { color: var(--accent); }
.ticker .t-warn { color: var(--warn); }
.ticker .t-info { color: var(--info); }

/* ============================================================
   SECTION headers
   ============================================================ */
section.block { padding: 56px 0; position: relative; }
.block-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.block-head .num { color: var(--accent); font-size: 11px; font-family: "JetBrains Mono", monospace; letter-spacing: 1px; }
.block-head h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.block-head .hint { margin-left: auto; color: var(--text-3); font-size: 12px; font-family: "JetBrains Mono", monospace; }

/* ============================================================
   TOPOLOGY (network graph of jobs)
   ============================================================ */
.topology {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
@media (max-width: 960px) { .topology { grid-template-columns: 1fr; } }

.topo-canvas {
  position: relative;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}
.topo-canvas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
  pointer-events: none;
}
.topo-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo-canvas .node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
}
.topo-canvas .node .halo {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  opacity: 0;
  transition: opacity .3s ease;
}
.topo-canvas .node:hover .halo,
.topo-canvas .node.active .halo { opacity: 0.9; }
.topo-canvas .node .disc,
.topo-canvas .node .disc-split {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-3);
  position: relative;
}
.topo-canvas .node[data-kind="ops"]        .disc { border-color: var(--info); }
.topo-canvas .node[data-kind="infra"]      .disc { border-color: var(--accent); }
.topo-canvas .node[data-kind="manage"]     .disc { border-color: var(--warn); }
.topo-canvas .node[data-kind="leadership"] .disc { border-color: var(--bad); }
.topo-canvas .node.current .disc {
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: pulse 1.6s ease-out infinite;
}
.topo-canvas .node .lbl {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--text-2);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topo-canvas .node.align-right .lbl { left: auto; right: -8px; transform: none; }
.topo-canvas .node.align-left  .lbl { left: -8px; right: auto; transform: none; }
.topo-canvas .node.active .lbl,
.topo-canvas .node:hover .lbl { color: var(--text); border-color: var(--accent); }

.topo-legend {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 10px; color: var(--text-2);
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 6px 8px;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.topo-legend .sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 1px; border: 1.5px solid currentColor; background: transparent; }

.topo-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  padding: 18px;
  min-height: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.topo-detail .row { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-2); }
.topo-detail .row .k { color: var(--text-3); }
.topo-detail h3 { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.topo-detail .org { color: var(--accent); font-size: 12px; }
.topo-detail .bullets { display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 13px; line-height: 1.65; }
.topo-detail .bullets li { list-style: none; position: relative; padding-left: 16px; }
.topo-detail .bullets li::before { content: '>'; position: absolute; left: 0; color: var(--accent); }
.topo-detail .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.topo-detail .tag {
  font-size: 10.5px; padding: 3px 7px; border: 1px solid var(--line);
  color: var(--text-2); border-radius: 3px;
}

/* ============================================================
   GEO MAP (real SVG world map)
   ============================================================ */
.geomap-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.geomap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at center, color-mix(in oklab, var(--accent) 4%, var(--bg-1)) 0%, var(--bg) 75%);
  overflow: hidden;
}
.geomap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.geomap .graticule { stroke: var(--line); stroke-width: 0.3; fill: none; }
.geomap .land {
  fill: color-mix(in oklab, var(--text-2) 18%, transparent);
  stroke: var(--line-2);
  stroke-width: 0.4;
}
.geomap .route {
  stroke: var(--accent); stroke-width: 1.2; fill: none;
  stroke-dasharray: 2 3;
  animation: flow 18s linear infinite;
  opacity: 0.9;
}
@keyframes flow { to { stroke-dashoffset: -200; } }
.geomap .pin-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 1.4;
  cursor: pointer;
  filter: drop-shadow(0 0 6px var(--accent-dim));
}
.geomap .pin-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0%   { r: 4; opacity: 0.7; }
  100% { r: 16; opacity: 0; }
}
.geomap .pin-label {
  font: 600 11px "JetBrains Mono", monospace;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-linejoin: round;
}
.geomap .pin-sublabel {
  font: 500 9px "JetBrains Mono", monospace;
  fill: var(--accent);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3;
}
.geomap .pin-group.active .pin-dot { fill: var(--warn); }
.geomap .pin-group.active .pin-ring { stroke: var(--warn); }
.geomap .coord-readout {
  position: absolute;
  top: 10px; left: 12px;
  font: 10.5px "JetBrains Mono", monospace;
  color: var(--text-3);
  letter-spacing: 0.5px;
  pointer-events: none;
}
.geomap .coord-readout .on { color: var(--accent); }

.map-locations {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-top: 14px;
}
.map-loc {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer;
  transition: border-color .2s ease, transform .15s ease;
}
.map-loc:hover, .map-loc.active { border-color: var(--accent); transform: translateY(-1px); }
.map-loc .ll { font-size: 10px; color: var(--text-3); }
.map-loc .nm { font-size: 13px; color: var(--text); }
.map-loc .yr { font-size: 10px; color: var(--accent); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.tl-row {
  display: contents;
}
.tl-row > .tl-date, .tl-row > .tl-card {
  border-bottom: 1px solid var(--line);
  padding: 18px 14px;
}
.tl-date {
  font-size: 11px; color: var(--text-3); letter-spacing: 0.5px;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
}
.tl-date .loc { color: var(--text-2); margin-top: 4px; display: block; font-size: 10px; }
.tl-card .title {
  font-size: 15px; color: var(--text); font-weight: 600;
}
.tl-card .org { color: var(--accent); font-size: 12px; margin-top: 2px; }
.tl-card .bullets { margin-top: 8px; color: var(--text-2); font-size: 12.5px; line-height: 1.7; }
.tl-card .bullets li { list-style: none; padding-left: 16px; position: relative; }
.tl-card .bullets li::before { content: '·'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.tl-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tl-card .tag { font-size: 10px; padding: 2px 6px; border: 1px solid var(--line); color: var(--text-2); border-radius: 3px; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.edu-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent);
  opacity: 0.4;
}
.edu-card .deg { font-size: 13.5px; color: var(--text); font-weight: 600; }
.edu-card .sch { color: var(--accent); font-size: 11.5px; }
.edu-card .pd  { color: var(--text-3); font-size: 11px; letter-spacing: 0.4px; }
.edu-card .mt  { color: var(--text-2); font-size: 11px; }
.edu-card .dt  { color: var(--text-2); font-size: 12px; margin-top: 4px; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.skill-col {
  border: 1px solid var(--line); border-radius: 6px; padding: 16px;
  background: var(--bg-1);
}
.skill-col h4 {
  font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between;
}
.skill-col h4 .count { color: var(--accent); }
.skill-col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.skill-col li {
  font-size: 12.5px; color: var(--text);
  padding: 3px 0;
  border-bottom: 1px dotted var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.skill-col li:last-child { border-bottom: 0; }
.skill-col li .bar {
  flex: 0 0 60px; height: 3px; background: var(--bg-3); border-radius: 2px; position: relative; margin-left: 10px;
}
.skill-col li .bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* ============================================================
   CERTS
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cert {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 6px;
  background: var(--bg-1);
  display: flex; align-items: center; gap: 12px;
}
.cert .badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  background: var(--accent-ghost);
}
.cert .nm { font-size: 13px; color: var(--text); font-weight: 600; }
.cert .is { font-size: 11px; color: var(--text-2); }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
}
@media (max-width: 820px) { .proj { grid-template-columns: 1fr; } }
.proj h3 { font-size: 20px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.proj .tag { color: var(--accent); font-size: 12px; margin-top: 2px; }
.proj .body { color: var(--text-2); font-size: 13px; margin-top: 10px; line-height: 1.7; }
.proj .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.proj .metric {
  padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg);
}
.proj .metric .k { font-size: 10px; color: var(--text-3); letter-spacing: 0.6px; text-transform: uppercase; }
.proj .metric .v { font-size: 20px; color: var(--accent); font-weight: 700; letter-spacing: -0.01em; }

/* ============================================================
   AWARDS + CONTACT
   ============================================================ */
.award {
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-1); padding: 16px; display: flex; gap: 14px; align-items: flex-start;
}
.award .medal {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
  color: var(--accent); border: 1.5px solid var(--accent); background: var(--accent-ghost);
  flex-shrink: 0;
}
.award .tt { font-size: 14px; color: var(--text); font-weight: 600; }
.award .dd { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.contact-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: var(--bg-1);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s ease, transform .15s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.contact-card .k { font-size: 10px; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; }
.contact-card .v { font-size: 14px; color: var(--text); word-break: break-all; }

/* footer */
footer {
  margin-top: 40px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
footer .hint kbd {
  border: 1px solid var(--line); border-bottom-width: 2px; padding: 1px 6px;
  border-radius: 3px; font-size: 10px; color: var(--text-2);
}

/* ============================================================
   TERMINAL (easter egg)
   ============================================================ */
.term {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(720px, 92vw);
  height: min(480px, 70vh);
  background: #06090d;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.term.open { display: flex; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.term-head {
  padding: 10px 14px;
  background: #0a0e14;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--text-2);
}
.term-head .dots { display: flex; gap: 6px; }
.term-body {
  flex: 1; padding: 14px 16px; overflow-y: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: #d1d9e0;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line .u { color: var(--accent); }
.term-line .p { color: var(--info); }
.term-line .e { color: var(--bad); }
.term-line .d { color: var(--text-3); }
.term-input {
  padding: 8px 16px 12px;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
  background: #0a0e14;
}
.term-input .prompt { color: var(--accent); font-size: 13px; }
.term-input input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 13px;
}
.term-hint {
  position: fixed; bottom: 14px; right: 14px; z-index: 60;
  font-size: 10.5px; color: var(--text-3);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}
.term-hint kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 0 5px; border-radius: 3px; font-size: 10px; margin: 0 1px; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks {
  position: fixed; right: 18px; bottom: 60px; z-index: 100;
  width: 260px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: none;
  flex-direction: column; gap: 12px;
  font-size: 12px;
}
.tweaks.open { display: flex; }
.tweaks .th { display: flex; justify-content: space-between; align-items: center; }
.tweaks .th .t { color: var(--text); font-weight: 600; letter-spacing: 0.5px; }
.tweaks .th .x { background: transparent; border: 0; color: var(--text-3); cursor: pointer; font-size: 16px; }
.tweaks .group { display: flex; flex-direction: column; gap: 6px; }
.tweaks .group label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.tweaks .hues { display: flex; gap: 6px; }
.tweaks .hue {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; outline: 1px solid var(--line);
}
.tweaks .hue.active { border-color: var(--text); }
.tweaks .segment { display: flex; gap: 4px; }
.tweaks .segment button {
  flex: 1; padding: 6px 4px; background: var(--bg); color: var(--text-2);
  border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: inherit; font-size: 11px;
}
.tweaks .segment button.active { background: var(--accent-ghost); color: var(--accent); border-color: var(--accent); }

.block-index {
  font-size: 10px; color: var(--text-3); letter-spacing: 1px;
}

/* small utilities */
.muted { color: var(--text-3); }
.accent-text { color: var(--accent); }

/* prevent terminal / tweaks hint overlap on tiny */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .topbar nav { display: none; }
  .term-hint { display: none; }
  .hero { padding: 48px 0 24px; }
}
