/* ═══════════════════════════════════════════════════════════
   EKRT OS — style.css
   Dark terminal OS portfolio
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Surfaces — layered atmospheric dark with hint of blue/green */
  --bg:          #060708;
  --bg2:         #0c0e10;
  --bg3:         #11141a;
  --bg-card:     #0e1115;
  --bg-hover:    #161a20;
  --bg-elev:     #1a1f26;

  /* Borders kept but used sparingly — most separation should come from elevation */
  --border:      rgba(255,255,255,0.05);
  --border2:     rgba(255,255,255,0.08);
  --border3:     rgba(255,255,255,0.12);
  --hairline:    rgba(255,255,255,0.04);

  /* Text — richer hierarchy */
  --text:        #f5f7fa;
  --text-dim:    #c8ced8;
  --text-muted:  #7d8593;
  --text-faint:  #4a525e;

  /* Accent — kept green core, expanded for gradient/glow work */
  --accent:      #4ade80;
  --accent-bright:#7af0a0;
  --accent-deep: #2bbf63;
  --accent-dim:  rgba(74,222,128,0.06);
  --accent-glow: rgba(74,222,128,0.16);
  --accent-mid:  rgba(74,222,128,0.30);
  --accent-soft: rgba(74,222,128,0.10);

  /* Atmospheric ambient — subtle scene tint */
  --ambient-1:   rgba(74,222,128,0.05);
  --ambient-2:   rgba(96,165,250,0.025);

  --red:         #f87171;
  --yellow:      #fbbf24;
  --blue:        #60a5fa;
  --purple:      #a78bfa;

  --font:        'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-display:'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Layout */
  --sidebar-w:   272px;
  --bottom-h:    40px;
  --header-h:    46px;

  /* Radius scale */
  --radius:      6px;
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;

  /* Elevation — soft shadows that create depth instead of borders */
  --elev-1:      0 1px 2px rgba(0,0,0,0.4);
  --elev-2:      0 8px 24px -8px rgba(0,0,0,0.5), 0 2px 6px -2px rgba(0,0,0,0.35);
  --elev-3:      0 20px 50px -20px rgba(0,0,0,0.65), 0 6px 18px -8px rgba(0,0,0,0.45);
  --elev-4:      0 40px 80px -28px rgba(0,0,0,0.7), 0 12px 30px -12px rgba(0,0,0,0.5);

  /* Glow */
  --glow-sm:     0 0 18px rgba(74,222,128,0.18);
  --glow-md:     0 0 38px rgba(74,222,128,0.22);
  --glow-lg:     0 0 60px rgba(74,222,128,0.28);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  position: relative;
  letter-spacing: 0.005em;
}

/* Atmospheric ambient — subtle scene gradient behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 18% -10%, rgba(74,222,128,0.06), transparent 55%),
    radial-gradient(ellipse 80% 50% at 110% 110%, rgba(96,165,250,0.04), transparent 55%),
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(74,222,128,0.012), transparent 70%);
}

/* CRT scanlines overlay — barely-there, mostly identity */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.008) 3px,
    rgba(255,255,255,0.008) 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.pg-card:hover, a.port-card:hover, a.proj-link:hover { text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input { font-family: var(--font); }

/* ── UTILS ───────────────────────────────────────────────── */
.accent      { color: var(--accent); }
.dim         { color: var(--text-dim); }
.muted       { color: var(--text-muted); }
.hidden      { display: none !important; }
.invisible   { opacity: 0; pointer-events: none; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar              { width: 4px; height: 4px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: var(--border3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover  { background: var(--text-muted); }

/* ── BLINK ANIMATION ─────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.blink { animation: blink 1.1s step-end infinite; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 5px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.0); }
  50%      { box-shadow: 0 0 12px 0 rgba(74,222,128,0.18); }
}

@keyframes scanline {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ── BOOT SCREEN ─────────────────────────────────────────── */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease);
}
.boot.fade-out { opacity: 0; pointer-events: none; }

.boot-inner {
  width: min(640px, 90vw);
  font-size: 12px;
  line-height: 1.8;
}

.boot-lines { color: var(--text-dim); }
.boot-lines .b-title  { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0.05em; }
.boot-lines .b-ok     { color: var(--accent); }
.boot-lines .b-bar    { color: var(--accent); letter-spacing: -0.5px; }
.boot-lines .b-sep    { color: var(--border3); }
.boot-lines .b-ready  { color: var(--text); }
.boot-lines .b-line   { display: block; }
.boot-cursor { display: inline-block; color: var(--accent); margin-top: 4px; }

/* ── APP LAYOUT ──────────────────────────────────────────── */
.app {
  display: flex;
  height: calc(100dvh - var(--bottom-h));
  transition: opacity 0.4s var(--ease);
}
.app.visible { opacity: 1; pointer-events: auto; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  background:
    linear-gradient(180deg, rgba(74,222,128,0.025) 0%, transparent 28%),
    linear-gradient(180deg, var(--bg2) 0%, #08090b 100%);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.45s var(--ease-out);
  z-index: 100;
}

/* Sidebar ambient corner glow */
.sidebar::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(74,222,128,0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(74,222,128,0.18) 18%, rgba(74,222,128,0.06) 50%, transparent 100%);
  pointer-events: none;
}

.sidebar-top    { flex: 1; overflow-y: auto; padding: 26px 20px 16px; display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 1; }
.sidebar-bottom { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.sidebar-bottom::before {
  content: '';
  position: absolute; top: 0; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* Logo — premium presentation */
.logo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 2px;
}
.logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  text-shadow: 0 0 24px rgba(74,222,128,0.08);
}
.logo-cursor {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(74,222,128,0.7);
  font-weight: 400;
}
.logo-ver {
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  display: inline-flex; align-items: center; gap: 6px;
}
.logo-ver::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
  animation: pulse-ring 2.4s ease infinite;
}

/* Nav */
.nav-label {
  font-size: 9px; letter-spacing: 0.28em; color: var(--text-faint);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.nav-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

.menu-list { display: flex; flex-direction: column; gap: 2px; }

.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.menu-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 0 12px rgba(74,222,128,0.6);
}
.menu-item:hover {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255,255,255,0.025), transparent);
  padding-left: 18px;
}
.menu-item:hover .mi-arrow { color: var(--accent); }

.menu-item.active {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(74,222,128,0.10) 0%, rgba(74,222,128,0.02) 60%, transparent 100%);
  padding-left: 18px;
}
.menu-item.active::before { transform: translateY(-50%) scaleY(1); }
.menu-item.active .mi-label {
  text-shadow: 0 0 12px rgba(74,222,128,0.25);
  color: var(--text);
}
.menu-item.active .mi-arrow { color: var(--accent); }

.mi-arrow {
  color: var(--text-faint);
  font-size: 10px;
  width: 16px;
  flex-shrink: 0;
  transition: color 0.25s, transform 0.3s var(--ease-out);
}

.mi-label { flex: 1; }
.mi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74,222,128,0.7);
  animation: pulse-ring 2s ease infinite;
}

/* System Status — refined as curated environmental info */
.sys-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sys-label {
  font-size: 9px; letter-spacing: 0.28em; color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.sys-label::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}
.sys-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 7px 14px; font-size: 10.5px;
}
.sys-key { color: var(--text-faint); letter-spacing: 0.12em; font-size: 9px; text-transform: uppercase; padding-top: 1px; }
.sys-val { color: var(--text-dim); letter-spacing: 0.02em; }
.sys-val.online { color: var(--accent); display: flex; align-items: center; gap: 7px; font-weight: 600; }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-ring 1.8s ease infinite;
  box-shadow: 0 0 12px rgba(74,222,128,0.7), 0 0 2px rgba(74,222,128,0.95);
}

/* Motto — softer, no border box */
.motto {
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.motto-text  {
  font-size: 10.5px;
  color: var(--text-dim);
  line-height: 1.75;
  letter-spacing: 0.06em;
  font-style: italic;
  opacity: 0.85;
}
.motto-author {
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Mobile close */
.sidebar-close { display: none; }

/* ── MAIN ─────────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

/* Terminal header chrome — softer, more atmospheric */
.term-header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.term-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
}

.term-dots { display: flex; gap: 7px; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.4);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.term-header:hover .dot { opacity: 1; }
.dot-red    { background: linear-gradient(180deg, #ff6b6b, #d93636); }
.dot-yellow { background: linear-gradient(180deg, #ffd567, #e0a022); }
.dot-green  { background: linear-gradient(180deg, #7be39c, #2bbf63); }

.term-title {
  font-size: 10px; letter-spacing: 0.22em; color: var(--text-faint);
  position: absolute; left: 50%; transform: translateX(-50%);
  font-weight: 500;
}

.term-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 10px; letter-spacing: 0.1em; color: var(--text-muted);
  font-weight: 500;
}

.fullscreen-btn {
  color: var(--text-muted); font-size: 13px; padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.fullscreen-btn:hover { color: var(--text); background: var(--bg-hover); }

/* Terminal scrollable body — overflow:hidden anchors height; term-output scrolls instead */
.term-body {
  flex: 1;
  overflow: hidden;
  padding: 28px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* ── TERM LOGS — fixed-height ambient strip, never grows page ─ */
.term-logs {
  flex-shrink: 0;
  height: 90px;         /* ~5 lines × 18px each */
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 4px 0 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* newest lines at bottom, old ones clip off top */
  position: relative;
  z-index: 1;
  transition: height 0.25s var(--ease), border-color 0.25s, padding 0.25s;
}
/* collapse completely on sections with no logs (about, projects) */
.term-logs:empty {
  height: 0;
  border-top-color: transparent;
  padding: 0;
}
/* soft fade so old lines dissolve rather than hard-clip */
.term-logs::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Extra subtle CRT texture on the terminal panel itself */
.term-body::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0, transparent 3px,
    rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 4px
  );
  mix-blend-mode: overlay;
}
/* ensure content stays above the CRT overlay */
.term-output, .term-logs, .term-input-row, .mob-cmd-btn, .autocomplete {
  position: relative; z-index: 1;
}

/* Terminal output — owns scrolling so term-body stays fixed-height */
.term-output {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Desktop: section blocks fill the scrollable output area */
@media (min-width: 769px) {
  .out-block { flex: 0 0 auto; display: block; }
}

/* Prompt lines in output */
.out-prompt {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0 6px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.out-prompt:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.out-prompt .p-prefix { color: var(--accent); }
.out-prompt .p-cmd    { color: var(--text); }

/* Section output block — smoother fade + slide-in */
.out-block {
  padding: 4px 0 16px;
  animation: sectionIn 0.42s var(--ease) both;
}

/* Stagger reveal — cards inside grid containers ease in sequentially */
.out-block .ls-grid > *,
.out-block .proj-grid > *,
.out-block .srv-grid > *,
.out-block .strengths-grid > *,
.out-block .port-grid > *,
.out-block .port-gallery > *,
.out-block .testi-grid > *,
.out-block .trust-stats > * {
  animation: staggerIn 0.4s var(--ease) both;
}
.out-block .ls-grid > *:nth-child(1),
.out-block .proj-grid > *:nth-child(1),
.out-block .srv-grid > *:nth-child(1),
.out-block .strengths-grid > *:nth-child(1),
.out-block .port-grid > *:nth-child(1),
.out-block .port-gallery > *:nth-child(1),
.out-block .testi-grid > *:nth-child(1),
.out-block .trust-stats > *:nth-child(1) { animation-delay: 0.04s; }

.out-block .ls-grid > *:nth-child(2),
.out-block .proj-grid > *:nth-child(2),
.out-block .srv-grid > *:nth-child(2),
.out-block .strengths-grid > *:nth-child(2),
.out-block .port-grid > *:nth-child(2),
.out-block .port-gallery > *:nth-child(2),
.out-block .testi-grid > *:nth-child(2),
.out-block .trust-stats > *:nth-child(2) { animation-delay: 0.09s; }

.out-block .ls-grid > *:nth-child(3),
.out-block .proj-grid > *:nth-child(3),
.out-block .srv-grid > *:nth-child(3),
.out-block .strengths-grid > *:nth-child(3),
.out-block .port-grid > *:nth-child(3),
.out-block .port-gallery > *:nth-child(3),
.out-block .trust-stats > *:nth-child(3) { animation-delay: 0.14s; }

.out-block .ls-grid > *:nth-child(4),
.out-block .proj-grid > *:nth-child(4),
.out-block .srv-grid > *:nth-child(4),
.out-block .strengths-grid > *:nth-child(4),
.out-block .port-grid > *:nth-child(4),
.out-block .port-gallery > *:nth-child(4),
.out-block .trust-stats > *:nth-child(4) { animation-delay: 0.19s; }

.out-block .ls-grid > *:nth-child(n+5),
.out-block .proj-grid > *:nth-child(n+5),
.out-block .srv-grid > *:nth-child(n+5),
.out-block .strengths-grid > *:nth-child(n+5),
.out-block .port-grid > *:nth-child(n+5),
.out-block .port-gallery > *:nth-child(n+5) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .out-block, .out-block * { animation: none !important; }
}

/* ── LIVE INPUT ROW ──────────────────────────────────────── */
.term-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0; /* always anchored at the bottom, never pushed */
}

.prompt { color: var(--accent); font-size: 12px; flex-shrink: 0; }

.input-wrap { flex: 1; position: relative; }

.term-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 12px;
  caret-color: var(--accent);
  padding: 0;
}
.term-input::placeholder { color: var(--text-faint); }

/* Autocomplete */
.autocomplete {
  margin: 4px 0 4px 86px;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-size: 11px;
}
.ac-item {
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.ac-item:hover, .ac-item.focused { background: var(--accent-dim); color: var(--accent); }

/* Mobile menu button */
.mob-menu-btn {
  display: none;
  position: absolute; top: 10px; right: 12px;
  color: var(--text-dim); font-size: 16px;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.mob-menu-btn:hover { background: var(--bg-hover); color: var(--text); }

/* ── LIVE LOG LINES (in term-output) ─────────────────────── */
.term-log-line {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.55;
  padding: 1px 0;
  animation: fadeIn 0.2s var(--ease) both;
}
.tll-tag {
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

/* ── BOTTOM BAR ──────────────────────────────────────────── */
.bottom-bar {
  height: var(--bottom-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  border-top: 1px solid var(--hairline);
  font-size: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.bottom-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
}

.bb-shortcuts { display: flex; align-items: center; gap: 20px; }

.bb-sc {
  display: flex; align-items: center; gap: 3px;
  color: var(--text-muted);
}
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 16px;
  background: var(--bg3); border: 1px solid var(--border3);
  border-radius: 2px; padding: 0 3px;
  font-family: var(--font); font-size: 9px; color: var(--text-dim);
  letter-spacing: 0.05em;
}
.bb-label { color: var(--text-dim); margin-left: 2px; letter-spacing: 0.08em; }

.bb-right { display: flex; align-items: center; gap: 16px; }
.bb-secure { color: var(--accent); letter-spacing: 0.06em; }
.bb-built  { color: var(--text-muted); letter-spacing: 0.06em; }

/* ── SEARCH OVERLAY ──────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.search-box {
  position: relative; z-index: 1;
  width: min(560px, 90vw);
  background: var(--bg2);
  border: 1px solid var(--border3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.2s var(--ease) both;
}
.search-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.search-slash { color: var(--accent); font-size: 14px; }
#search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; caret-color: var(--accent);
}
.esc-hint { font-size: 9px; color: var(--text-muted); }

.search-results { max-height: 340px; overflow-y: auto; }
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  font-size: 12px;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.focused { background: var(--bg-hover); }
.sr-icon  { color: var(--accent); width: 16px; text-align: center; }
.sr-name  { color: var(--text); flex: 1; }
.sr-type  { font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; }
.sr-empty { padding: 20px 16px; color: var(--text-muted); font-size: 12px; }

/* ════════════════════════════════════════════════════════════
   SECTION CONTENT STYLES
   ════════════════════════════════════════════════════════════ */

/* ── ABOUT ───────────────────────────────────────────────── */
.about-hero {
  padding: 10px 0 24px;
}
.about-name {
  font-size: 32px; font-weight: 700; color: #ffffff;
  letter-spacing: 0.04em; line-height: 1.15;
  text-shadow: 0 0 28px rgba(74,222,128,0.08);
}
.about-role {
  font-size: 11px; color: var(--accent); letter-spacing: 0.14em;
  margin: 10px 0 20px; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(74,222,128,0.3);
}
.about-bio {
  font-size: 12.5px; color: var(--text-dim);
  line-height: 1.9; max-width: 620px;
}
.about-bio p + p { margin-top: 6px; }
.about-bio .bio-niche {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--accent, #4ade80);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* 7-day promise pills — eye-catching trio above CTA */
.hero-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent, #4ade80);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.45);
  border-radius: 4px;
  text-shadow: 0 0 8px rgba(74,222,128,0.35);
  box-shadow: 0 0 14px rgba(74,222,128,0.12), inset 0 0 0 1px rgba(74,222,128,0.05);
}
.hp-pill .hp-icon {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  font-size: 12px;
  background: rgba(74,222,128,0.18);
  border-radius: 3px;
}
@media (max-width: 600px) {
  .hero-promise { gap: 8px; }
  .hp-pill { font-size: 12px; padding: 8px 11px; }
}

/* About row — table + WHY ME side by side on desktop */
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 20px 0;
  align-items: start;
}
@media (max-width: 860px) {
  .about-row { grid-template-columns: 1fr; gap: 12px; }
}

.about-table {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  font-size: 13px;
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 40%),
    var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  height: 100%;
  align-content: start;
}
.at-copy {
  position: absolute; top: 14px; right: 14px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  background: none;
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.at-copy:hover {
  color: var(--accent);
  border-color: rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.05);
}
.at-key {
  color: var(--text-faint);
  letter-spacing: 0.18em;
  padding: 4px 0;
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.at-val { color: var(--text); padding: 4px 0; font-size: 13.5px; }
.at-val.green { color: var(--accent); }

/* Availability — prominent pill */
.at-val.avail-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  width: fit-content;
  box-shadow: 0 0 18px rgba(74,222,128,0.18), inset 0 0 0 1px rgba(74,222,128,0.05);
  animation: availPulse 2.6s ease-in-out infinite;
}
.ap-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.9), 0 0 2px #fff inset;
  animation: pulse-dot 1.6s ease infinite;
  flex-shrink: 0;
}
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(74,222,128,0.18), inset 0 0 0 1px rgba(74,222,128,0.05); }
  50%      { box-shadow: 0 0 28px rgba(74,222,128,0.32), inset 0 0 0 1px rgba(74,222,128,0.1); }
}

.about-tagline {
  font-size: 14px;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 16px 0 28px;
  font-style: italic;
  line-height: 1.7;
  max-width: 60ch;
  box-shadow: 2px 0 12px -4px rgba(74,222,128,0.18);
}

/* ls menu grid */
.ls-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px;
}
.ls-label::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}
.ls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.ls-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: none;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 40%),
    var(--bg-card);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.ls-card::before {
  content: ''; position: absolute;
  left: 0; top: 16px; bottom: 16px; width: 2px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease-out);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(74,222,128,0.4);
}
.ls-card:hover {
  background:
    linear-gradient(180deg, rgba(74,222,128,0.03) 0%, transparent 50%),
    var(--bg-card);
  transform: translateY(-3px);
  box-shadow:
    var(--elev-2),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(74,222,128,0.12);
}
.ls-card:hover::before { transform: scaleY(1); }
.ls-num  {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  min-width: 24px;
  margin-top: 2px;
  font-weight: 600;
  transition: color 0.25s;
}
.ls-card:hover .ls-num { color: var(--accent); }
.ls-body { flex: 1; }
.ls-name {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.ls-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.55;
}
.ls-arrow {
  font-size: 14px;
  color: var(--text-faint);
  align-self: center;
  transition: color 0.25s, transform 0.3s var(--ease-out);
}
.ls-card:hover .ls-arrow { color: var(--accent); transform: translateX(4px); }

/* ── PROJECTS ────────────────────────────────────────────── */
.proj-intro {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 56ch;
  margin: 4px 0 22px;
  position: relative;
  padding-left: 18px;
}
.proj-intro::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em; bottom: 0.55em;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.proj-grid .proj-card.proj-featured { grid-column: 1 / -1; order: -1; }
@media (max-width: 880px) {
  .proj-grid { grid-template-columns: 1fr; }
}

.proj-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 22px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--elev-1);
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.18) 50%, transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.proj-card:hover {
  border-color: rgba(74,222,128,0.18);
  transform: translateY(-4px);
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,0.6),
    0 0 0 1px rgba(74,222,128,0.10),
    0 0 60px -10px rgba(74,222,128,0.10);
}
.proj-card:hover::before { opacity: 1; }

.proj-card.proj-featured {
  padding: 36px 38px 30px;
  background:
    radial-gradient(ellipse 60% 80% at 90% -10%, rgba(74,222,128,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 35%),
    var(--bg-card);
  border-color: rgba(74,222,128,0.15);
  box-shadow:
    var(--elev-2),
    0 0 60px -20px rgba(74,222,128,0.18);
}
.proj-card.proj-featured::before { opacity: 1; }

.proj-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.proj-head-left {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; flex: 1;
}
.proj-num  {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
}
.proj-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.proj-featured .proj-name { font-size: 32px; line-height: 1.05; }

.proj-head-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.proj-status {
  font-size: 9px; padding: 4px 10px;
  border-radius: 999px; letter-spacing: 0.18em;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.proj-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.proj-status.live   { background: rgba(74,222,128,0.08); color: var(--accent); border: 1px solid rgba(74,222,128,0.22); }
.proj-status.live::before { animation: pulse-dot 1.8s ease infinite; }
.proj-status.dev    { background: rgba(251,191,36,0.08); color: var(--yellow); border: 1px solid rgba(251,191,36,0.25); }
.proj-status.paused { background: rgba(136,136,136,0.08); color: var(--text-dim); border: 1px solid var(--border2); }

@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
  50%     { opacity: 0.4; box-shadow: 0 0 2px currentColor; }
}

/* Narrative — problem / solution / result as flowing prose with subtle labels */
.cs-rows {
  display: flex; flex-direction: column;
  gap: 16px;
  border: none;
  background: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.cs-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: none;
}
.cs-key {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0;
}
.cs-key::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--text-faint);
}
.cs-val {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 14px;
  font-weight: 400;
}
.proj-featured .cs-val { font-size: 15px; }

.cs-result-row .cs-key { color: var(--accent); }
.cs-result-row .cs-key::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}
.cs-result-row .cs-val {
  color: var(--text);
  font-weight: 500;
}

.proj-meta { display: none; }
.proj-stack { display: none; }

.proj-links { display: flex; gap: 12px; margin-top: 4px; position: relative; z-index: 1; }
.proj-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  padding: 11px 20px;
  border: 1px solid var(--border2); border-radius: var(--radius-md);
  color: var(--text-dim); letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
  cursor: pointer; background: var(--bg-elev);
}
.proj-link:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--elev-2);
}
.proj-link.primary {
  border-color: rgba(74,222,128,0.4);
  color: var(--accent);
  background: linear-gradient(180deg, rgba(74,222,128,0.10), rgba(74,222,128,0.04));
  box-shadow: 0 0 0 1px rgba(74,222,128,0.05), 0 8px 24px -12px rgba(74,222,128,0.32);
}
.proj-link.primary:hover {
  background: linear-gradient(180deg, rgba(74,222,128,0.16), rgba(74,222,128,0.08));
  box-shadow: 0 0 0 1px rgba(74,222,128,0.2), 0 12px 30px -10px rgba(74,222,128,0.45), 0 0 40px rgba(74,222,128,0.18);
  transform: translateY(-2px);
}

/* Desktop section fill helper */
@media (min-width: 769px) {
  .out-block > .how-wrap    { flex: 1; }
  .out-block > .proj-grid   { flex: 1; align-content: start; }
  .out-block > .srv-grid    { flex: 1; align-content: start; }
  /* about: the about-hero + row fills naturally, no flex needed */
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-list { display: flex; flex-direction: column; gap: 0; }

.how-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  animation: fadeIn 0.3s var(--ease) both;
}
.how-step:last-child { border-bottom: none; }

.how-line {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  flex-shrink: 0; width: 32px;
}
.how-num {
  font-size: 10px; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(74,222,128,0.15);
  border-radius: 2px;
  width: 28px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em;
}
.how-connector {
  width: 1px; height: 100%; min-height: 20px;
  background: var(--border); margin-top: 4px;
}
.how-step:last-child .how-connector { display: none; }

.how-body { flex: 1; padding-bottom: 4px; }
.how-title { font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.06em; margin-bottom: 4px; }
.how-arrow { color: var(--accent); margin-right: 6px; }
.how-desc  { font-size: 11px; color: var(--text-dim); line-height: 1.75; }

/* ── SERVICES ────────────────────────────────────────────── */
/* SERVICES — Premium agency redesign */
.srv-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 20px;
}

.srv-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              transform 0.4s var(--ease),
              background 0.4s var(--ease);
}

.srv-card:hover {
  border-color: rgba(74,222,128,0.28);
  background: linear-gradient(180deg, rgba(74,222,128,0.025), var(--bg-card));
  box-shadow: 0 14px 38px rgba(0,0,0,0.32),
              0 0 28px rgba(74,222,128,0.08);
  transform: translateY(-3px);
}

.srv-featured {
  padding: 48px 32px 28px;
  background: linear-gradient(180deg, rgba(74,222,128,0.05), var(--bg-card) 70%);
  border-color: rgba(74,222,128,0.22);
}

.srv-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.55), transparent);
}

.srv-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.srv-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(74,222,128,0.32);
  flex-shrink: 0;
}

.srv-featured .srv-icon { font-size: 32px; }

.srv-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.srv-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.srv-featured .srv-name { font-size: 20px; line-height: 1.2; }

.srv-for {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.srv-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.28);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.srv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.srv-chip {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.srv-card:hover .srv-chip {
  border-color: rgba(74,222,128,0.18);
  color: var(--text);
}

.srv-gain {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
  padding-top: 4px;
  margin-top: auto;
}

.srv-featured .srv-gain {
  font-size: 14px;
  color: var(--text);
}

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

/* CTA */
.srv-cta {
  margin-top: 14px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: visible;
}

.srv-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.34), transparent);
}

.srv-cta-text { flex: 1; min-width: 0; }

.srv-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.srv-cta-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}

.srv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--accent);
  color: #08130c;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 0 0 1px rgba(74,222,128,0.28), 0 8px 24px rgba(74,222,128,0.16);
}

.srv-cta-btn:hover {
  background: #5fe390;
  box-shadow: 0 0 0 1px rgba(74,222,128,0.5), 0 10px 30px rgba(74,222,128,0.26);
  transform: translateY(-1px);
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 6px 0 24px;
  min-height: 0;
}

.skills-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 64ch;
}

.skill-section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(74,222,128,0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.skill-section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

.skills-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0;
}
@media (max-width: 720px) { .skills-title { font-size: 24px; } }

.skills-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 56ch;
  margin: 0;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1024px) { .strengths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .strengths-grid { grid-template-columns: 1fr; } }

.str-item {
  padding: 26px 24px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 35%),
    var(--bg-card);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.str-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(74,222,128,0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.str-item:hover {
  background:
    linear-gradient(180deg, rgba(74,222,128,0.04) 0%, transparent 50%),
    var(--bg-card);
  transform: translateY(-4px);
  box-shadow:
    var(--elev-3),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(74,222,128,0.12);
}
.str-item:hover::before { opacity: 1; }

.str-num {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.str-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
  max-width: 60px;
}
.str-name {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  transition: color 0.3s;
}
.str-item:hover .str-name { color: var(--accent); text-shadow: 0 0 14px rgba(74,222,128,0.25); }
.str-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* — Tools section — categorized */
.skills-tools {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.tools-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 28px;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-group-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.tool-group-label::before {
  content: '◇';
  font-size: 8px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(74,222,128,0.6);
}

.tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-tag {
  font-size: 11.5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.tool-tag:hover {
  border-color: rgba(74,222,128,0.3);
  color: var(--accent);
  background: rgba(74,222,128,0.05);
  transform: translateY(-1px);
}

/* ── PORTFOLIO ───────────────────────────────────────────── */
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.port-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  cursor: pointer; display: block; color: inherit; text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.port-card.has-link { cursor: pointer; }
.port-card:hover {
  border-color: rgba(74,222,128,0.18);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(74,222,128,0.08);
}

.port-thumb {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; letter-spacing: 0.05em; font-weight: 700;
  position: relative; overflow: hidden;
}
.port-thumb-text { position: relative; z-index: 2; }
.port-thumb-pattern {
  position: absolute; inset: 0; opacity: 0.18;
  background-image:
    radial-gradient(circle at 1px 1px, currentColor 0.5px, transparent 1.5px);
  background-size: 12px 12px;
  transition: opacity 0.4s, transform 6s linear;
}
.port-card:hover .port-thumb-pattern { opacity: 0.32; transform: translateX(-6px); }
.port-thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 2px,
    rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

.port-body { padding: 12px 14px; }
.port-name {
  font-size: 11px; font-weight: 600; color: var(--text);
  letter-spacing: 0.04em; margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px;
}
.port-link-arrow {
  font-size: 11px; color: var(--accent); opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.port-card:hover .port-link-arrow { opacity: 1; transform: translate(2px, -2px); }
.port-desc { font-size: 10px; color: var(--text-dim); line-height: 1.6; }
.port-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.port-tag  {
  font-size: 9px; padding: 1px 6px;
  background: var(--bg-hover); border: 1px solid var(--border2);
  border-radius: 2px; color: var(--text-dim);
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 22px; }
}

.contact-info { display: flex; flex-direction: column; gap: 18px; }

/* Email hero — focal point of the section */
.email-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 26px;
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 90% at 10% 0%, rgba(74,222,128,0.10), transparent 60%),
    linear-gradient(180deg, rgba(74,222,128,0.04) 0%, rgba(0,0,0,0) 80%),
    var(--bg-card);
  color: var(--accent);
  text-decoration: none;
  box-shadow:
    0 28px 70px -30px rgba(74,222,128,0.35),
    0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.email-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.6;
}
.email-hero:hover {
  transform: translateY(-3px);
  border-color: rgba(74,222,128,0.32);
  box-shadow:
    0 36px 90px -28px rgba(74,222,128,0.5),
    0 0 0 1px rgba(74,222,128,0.18),
    0 0 0 6px rgba(74,222,128,0.03);
}
.email-hero .eh-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(74,222,128,0.25), rgba(74,222,128,0.05) 70%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--radius-md);
  text-shadow: 0 0 14px rgba(74,222,128,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 22px -10px rgba(74,222,128,0.4);
}
.email-hero .eh-body { flex: 1 1 auto; min-width: 0; }
.email-hero .eh-label {
  font-size: 10.5px; letter-spacing: 0.28em;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.email-hero .eh-addr {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(74,222,128,0.15);
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
@media (max-width: 1100px) {
  .email-hero .eh-addr { font-size: 17px; }
}
.email-hero .eh-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.email-hero .eh-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
  text-shadow: 0 0 12px rgba(74,222,128,0.5);
}
.email-hero:hover .eh-arrow { transform: translateX(6px); }
@media (max-width: 600px) {
  .email-hero { padding: 20px 18px; gap: 14px; }
  .email-hero .eh-icon { width: 46px; height: 46px; font-size: 20px; }
  .email-hero .eh-addr { font-size: 17px; }
  .email-hero .eh-sub { font-size: 11.5px; }
}

.contact-block {
  padding: 22px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 50%),
    var(--bg-card);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.cb-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.cb-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.cb-rows  { display: flex; flex-direction: column; gap: 10px; }
.cb-row   { display: flex; align-items: flex-start; gap: 14px; font-size: 13px; line-height: 1.55; }
.cb-key {
  color: var(--accent); min-width: 18px;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(74,222,128,0.35);
}
.cb-val   { color: var(--text-dim); }
.cb-val a { color: var(--text-dim); }
.cb-val a:hover { color: var(--accent); text-decoration: none; }

.contact-avail {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 999px;
  background: rgba(74,222,128,0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  width: fit-content;
  box-shadow: 0 8px 24px -12px rgba(74,222,128,0.3);
}

/* — Form — premium card with cleaner inputs */
.contact-form { display: flex; flex-direction: column; }

.form-card {
  padding: 28px 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(74,222,128,0.05), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 35%),
    var(--bg-card);
  box-shadow:
    var(--elev-2),
    inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.4) 50%, transparent);
}
.form-card-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.form-card-badge {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(74,222,128,0.22), rgba(74,222,128,0.04) 70%);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 17px;
  text-shadow: 0 0 10px rgba(74,222,128,0.7);
}
.form-card-text { min-width: 0; }
.form-card-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
}
.form-card-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .form-card { padding: 20px 20px 24px; }
  .form-card-label { font-size: 14px; }
}

.email-hero, .email-hero:hover, .email-hero:focus, .email-hero:active,
.email-hero .eh-addr, .email-hero .eh-label, .email-hero .eh-sub {
  text-decoration: none !important;
}
.cf-title { display: none; }

.cf-field { margin-bottom: 16px; }
.cf-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.cf-input, .cf-textarea {
  width: 100%;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: all 0.25s var(--ease);
  caret-color: var(--accent);
}
.cf-input::placeholder, .cf-textarea::placeholder { color: var(--text-faint); }
.cf-input:focus, .cf-textarea:focus {
  border-color: rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.025);
  box-shadow:
    0 0 0 3px rgba(74,222,128,0.08),
    inset 0 1px 0 rgba(255,255,255,0.02);
}
.cf-input:hover:not(:focus), .cf-textarea:hover:not(:focus) {
  border-color: var(--border3);
}
.cf-textarea { resize: vertical; min-height: 110px; line-height: 1.65; }

.cf-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent) 50%, var(--accent-deep));
  color: #07120a;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  align-self: stretch;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), filter 0.2s;
  margin-top: 6px;
  box-shadow:
    0 0 0 1px rgba(74,222,128,0.4),
    0 14px 30px -10px rgba(74,222,128,0.45),
    inset 0 1px 0 rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.cf-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(74,222,128,0.5),
    0 20px 40px -10px rgba(74,222,128,0.55),
    0 0 50px rgba(74,222,128,0.25),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.cf-submit:active { transform: translateY(0); }

.cf-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}
.cf-note a { color: var(--accent); }

/* ── HELP ────────────────────────────────────────────────── */
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; font-size: 11px; }
.hg-cmd  { color: var(--accent); padding: 2px 0; }
.hg-desc { color: var(--text-dim); padding: 2px 0; }
.help-note { font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.8; }

/* ── MISC TERMINAL ELEMENTS ──────────────────────────────── */
.t-sep  { color: var(--text-faint); font-size: 11px; padding: 4px 0; display: block; user-select: none; }
.t-note { font-size: 11px; color: var(--text-muted); padding: 2px 0; }
.t-error { font-size: 11px; color: var(--red); padding: 2px 0; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 300px; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: var(--bottom-h);
    transform: translateX(-100%);
    background:
      linear-gradient(180deg, rgba(74,222,128,0.04) 0%, transparent 25%),
      linear-gradient(180deg, rgba(12,14,16,0.95) 0%, rgba(8,9,11,0.96) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
      8px 0 60px -10px rgba(0,0,0,0.7),
      0 0 0 1px rgba(255,255,255,0.04),
      0 0 80px rgba(74,222,128,0.04);
    transition: transform 0.5s var(--ease-out);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close {
    display: flex;
    align-items: center; justify-content: center;
    position: absolute; top: 18px; right: 18px;
    width: 32px; height: 32px;
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border2);
    border-radius: 999px;
    transition: all 0.25s var(--ease);
    z-index: 10;
  }
  .sidebar-close:hover {
    color: var(--accent);
    border-color: rgba(74,222,128,0.3);
    background: rgba(74,222,128,0.06);
  }

  .mob-menu-btn { display: flex; align-items: center; justify-content: center; }

  .main { width: 100%; }
  .term-body { padding: 18px 14px 0; }
  .term-input-row { padding-bottom: 10px; }

  .bb-shortcuts { gap: 10px; }
  .bb-built { display: none; }
  .bb-secure { display: none; }

  .ls-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: 1fr; gap: 12px; }
  .srv-wrap { gap: 14px; padding: 4px 0 16px; }
  .srv-card { padding: 18px 18px; border-radius: 12px; }
  .srv-featured { padding: 40px 20px 22px; }
  .srv-badge { top: 12px; right: 12px; font-size: 8.5px; padding: 4px 9px; }
  .srv-featured .srv-icon { font-size: 26px; }
  .srv-featured .srv-name { font-size: 17px; }
  .srv-name { font-size: 14px; }
  .srv-gain { font-size: 12.5px; }
  .srv-featured .srv-gain { font-size: 13px; }
  .srv-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 22px 20px;
    gap: 18px;
  }
  .srv-cta-title { font-size: 17px; }
  .srv-cta-btn { width: 100%; padding: 14px 18px; }
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .port-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }

  .term-meta span:first-child { display: none; }

  .about-name { font-size: 22px; }
}

@media (max-width: 480px) {
  .ls-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .bb-shortcuts { gap: 8px; }
  kbd { display: none; }
  .bb-sc span:first-of-type { display: none; }
}

/* Sidebar overlay for mobile — glass blur */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(4,6,8,0.6);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.sidebar-overlay.show { display: block; opacity: 1; }

/* ── TETRIS EASTER EGG ───────────────────────────────────── */
.tet-overlay {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.tet-window {
  background: var(--bg2);
  border: 1px solid var(--border3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 40px 100px rgba(0,0,0,0.7),
              0 0 80px rgba(74,222,128,0.05);
  animation: slideUp 0.22s var(--ease) both;
  max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column;
}

.tet-header {
  height: 40px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; flex-shrink: 0;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.tet-title {
  flex: 1; text-align: center;
  font-size: 10px; letter-spacing: 0.18em; color: var(--text-muted);
}
.tet-header-btns { display: flex; align-items: center; gap: 6px; }

.tet-mute {
  font-size: 12px; color: var(--accent); padding: 2px 6px;
  border: 1px solid rgba(74,222,128,0.2); border-radius: 2px;
  transition: opacity 0.15s;
}
.tet-mute.muted { color: var(--text-muted); border-color: var(--border2); }
.tet-mute:hover { opacity: 0.75; }

.tet-close {
  font-size: 9px; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 3px 8px;
  border: 1px solid var(--border2); border-radius: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.tet-close:hover { color: var(--red); border-color: var(--red); }

.tet-body { display: flex; overflow: hidden; flex: 1; }

/* canvas wrapper for positioning name-entry overlay */
.tet-canvas-wrap { position: relative; flex-shrink: 0; }

#tet-canvas {
  display: block;
  border-right: 1px solid var(--border);
  image-rendering: pixelated;
}

/* name entry overlay on canvas */
.tet-name-entry {
  position: absolute; inset: 0;
  background: rgba(9,9,9,0.92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 24px;
}
.tne-title  { font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: 0.12em; }
.tne-score  { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.tne-label  { font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; margin-top: 6px; }
.tne-input  {
  background: var(--bg3); border: 1px solid var(--accent-mid);
  border-radius: 3px; padding: 8px 12px; color: var(--accent);
  font-size: 14px; font-family: var(--font); letter-spacing: 0.1em;
  text-align: center; width: 160px; outline: none;
  caret-color: var(--accent);
}
.tne-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.tne-btns   { display: flex; gap: 8px; margin-top: 4px; }
.tne-submit {
  background: var(--accent); color: #0a0a0a;
  font-size: 11px; font-family: var(--font); font-weight: 700;
  letter-spacing: 0.08em; padding: 7px 16px; border-radius: 3px;
  cursor: pointer; border: none; transition: opacity 0.15s;
}
.tne-submit:hover { opacity: 0.85; }
.tne-skip {
  background: none; font-size: 10px; color: var(--text-muted);
  padding: 7px 10px; border: 1px solid var(--border2); border-radius: 3px;
  cursor: pointer; transition: color 0.15s;
}
.tne-skip:hover { color: var(--text); }

/* right panel */
.tet-panel {
  width: 148px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}

.tet-label {
  font-size: 8px; letter-spacing: 0.18em; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase;
}
#tet-next {
  display: block;
  border: 1px solid var(--border);
  border-radius: 2px;
  image-rendering: pixelated;
}

.tet-stats   { display: flex; flex-direction: column; gap: 10px; }
.tet-stat    { display: flex; flex-direction: column; gap: 2px; }
.ts-key      { font-size: 8px; letter-spacing: 0.15em; color: var(--text-muted); }
.ts-val      { font-size: 18px; font-weight: 700; color: var(--accent); line-height: 1; }

/* leaderboard */
.tet-lb-section { display: flex; flex-direction: column; }
.tet-lb { display: flex; flex-direction: column; gap: 3px; }
.lb-entry {
  display: grid; grid-template-columns: 18px 1fr auto;
  gap: 4px; align-items: baseline;
  font-size: 9px; padding: 3px 0;
  border-bottom: 1px solid var(--border);
}
.lb-entry:last-child { border-bottom: none; }
.lb-rank  { color: var(--text-muted); }
.lb-name  { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { color: var(--accent); text-align: right; letter-spacing: 0.04em; }
.lb-entry.lb-new .lb-name,
.lb-entry.lb-new .lb-score { color: var(--accent); }
.lb-empty { font-size: 9px; color: var(--text-muted); padding: 4px 0; font-style: italic; }

.tet-controls { display: flex; flex-direction: column; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--border); }
.tc-label     { font-size: 8px; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 7px; }
.tc-row       { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tc-row kbd   { min-width: 28px; font-size: 8px; text-align: center; padding: 1px 4px; }
.tc-row span  { font-size: 9px; color: var(--text-dim); }

/* scale down on small screens */
@media (max-height: 700px) {
  #tet-canvas  { width: 210px; height: 420px; }
  .tet-panel   { width: 130px; }
  #tet-next    { width: 80px; height: 80px; }
}

/* ════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ════════════════════════════════════════════════════════════ */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border2);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
}
.lang-btn {
  font-family: var(--font);
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 8px;
  border: none; background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-right: 1px solid var(--border2);
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  text-shadow: 0 0 6px rgba(74,222,128,0.4);
}

/* ════════════════════════════════════════════════════════════
   TERM HEADER REDESIGN (cleaner spacing)
   ════════════════════════════════════════════════════════════ */
.term-header {
  position: relative;
}
.term-header-l {
  display: flex; align-items: center; gap: 14px;
}
/* override old absolute-positioned title */
.term-title {
  position: static !important;
  transform: none !important;
}
.term-meta { gap: 12px; }
.tm-info { white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS — Premium editorial process
   ════════════════════════════════════════════════════════════ */
.how-wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 8px 0 24px;
  min-height: 0;
  position: relative;
  overflow: visible;
}

/* — Step navigator — */
.how-wrap {
  overflow: visible;
}

.how-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: 46px;
  padding-block: 20px;
  overflow: visible;
  position: relative;
  isolation: isolate;
}
@media (max-width: 720px) {
  .how-steps {
    padding-inline: 26px;
    padding-block: 14px;
  }
}

.how-step {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hs-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg-card);
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
  font-weight: 600;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hs-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.how-step:hover .hs-circle {
  border-color: var(--accent-mid);
  color: var(--text);
  background: var(--bg-elev);
}

.how-step.done .hs-circle {
  border-color: rgba(74,222,128,0.4);
  color: var(--accent);
  background: rgba(74,222,128,0.04);
}

.how-step.active .hs-circle {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
  box-shadow:
    0 0 0 2px rgba(74,222,128,0.08),
    0 0 28px rgba(74,222,128,0.24),
    inset 0 0 12px rgba(74,222,128,0.08);
}

.how-step.active .hs-num {
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(74,222,128,0.6);
}

.hs-rail {
  position: relative;
  z-index: 1;
}
.hs-rail::after {
  pointer-events: none;
}

.hs-rail {
  flex: 1;
  height: 1px;
  background: var(--border2);
  margin: 0 14px;
  transition: background 0.5s;
  position: relative;
  overflow: hidden;
}
.hs-rail::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateY(-50%) translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.hs-rail.done {
  background: linear-gradient(90deg, rgba(74,222,128,0.55), rgba(74,222,128,0.2));
}
.hs-rail.done::after { transform: translateY(-50%) translateX(0); }

/* — Hero detail — editorial split layout */
.how-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "desc specs";
  gap: 40px 56px;
  align-items: start;
  transition: opacity 0.32s ease, transform 0.32s ease;
  position: relative;
}
.hero-head  { grid-area: head; }
.hero-desc  { grid-area: desc; }
.hero-specs { grid-area: specs; }

@media (max-width: 960px) {
  .how-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "desc" "specs";
    gap: 28px;
  }
}

.how-hero.switching {
  opacity: 0;
  transform: translateY(8px);
}

.hero-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-right: 80px;
}

/* Cinematic glyph — large faded background mark in top-right */
.hero-glyph {
  position: absolute;
  top: -24px; right: -8px;
  font-size: 180px;
  line-height: 1;
  color: var(--accent);
  text-shadow:
    0 0 100px rgba(74,222,128,0.4),
    0 0 30px rgba(74,222,128,0.18);
  opacity: 0.08;
  pointer-events: none;
  font-weight: 100;
  z-index: 0;
}
@media (max-width: 720px) {
  .hero-head { padding-right: 0; }
  .hero-glyph { font-size: 120px; top: -10px; right: -10px; }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-counter {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(74,222,128,0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-counter::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 0 30px rgba(74,222,128,0.06);
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0;
  font-weight: 400;
}

/* Specs as elegant cards in a right-side stack */
.hero-specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

/* Specs as elegant cards in a right-side stack */
.hero-specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 18px 20px;
  border: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    var(--elev-1);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.spec::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 0 2px 2px 0;
}

.spec:hover {
  background:
    linear-gradient(180deg, rgba(74,222,128,0.03), rgba(255,255,255,0)),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(74,222,128,0.12),
    var(--elev-2);
}

.spec-key {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

.spec-val {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.spec-val.accent {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(74,222,128,0.25);
}

@media (max-width: 720px) {
  .hero-specs {
    align-items: stretch;
  }

  .spec {
    align-items: center;
    text-align: center;
    padding: 18px 16px;
    min-height: 110px;
  }

  .spec::before {
    left: 50%;
    top: 14px;
    bottom: auto;
    width: 34px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
  }

  .spec-key,
  .spec-val {
    width: 100%;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════════════
   PORTFOLIO — Art Gallery layout (differentiated from projects)
   ════════════════════════════════════════════════════════════ */
.port-intro {
  font-size: 11px; color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 10px; margin-bottom: 16px;
}

.port-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.pg-card {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--bg-card);
  overflow: hidden;
  text-decoration: none !important; color: inherit;
  transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.pg-card:hover {
  border-color: rgba(74,222,128,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(74,222,128,0.12);
  text-decoration: none !important;
}
/* all portfolio cards uniform — no featured span override */

.pg-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* featured thumb uses same ratio as all other cards */

.pg-thumb-text {
  font-size: 32px; font-weight: 700; letter-spacing: 0.06em;
  z-index: 3; position: relative;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.pg-card:hover .pg-thumb-text { transform: translateY(-30px); opacity: 0.7; }

/* Different patterns per item */
.pg-pattern {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.2;
  transition: opacity 0.4s, transform 8s linear;
}
.pg-card:hover .pg-pattern { opacity: 0.35; transform: translate(-12px, 8px); }

.pg-dots {
  background-image: radial-gradient(circle at 1px 1px, currentColor 0.7px, transparent 1.5px);
  background-size: 14px 14px;
}
.pg-lines {
  background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 0.6px, transparent 1px, transparent 10px);
}
.pg-grid {
  background-image:
    linear-gradient(currentColor 0.5px, transparent 0.5px),
    linear-gradient(90deg, currentColor 0.5px, transparent 0.5px);
  background-size: 18px 18px;
}

/* Scanlines on top of pattern */
.pg-thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 2px,
    rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* Corner brackets — appear on hover */
.pg-corner {
  position: absolute; width: 14px; height: 14px;
  border-color: currentColor; border-style: solid; border-width: 0;
  z-index: 5;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.pg-c-tl { top: 8px;    left: 8px;    border-top-width: 1px; border-left-width: 1px;  transform: translate(-2px, -2px); }
.pg-c-tr { top: 8px;    right: 8px;   border-top-width: 1px; border-right-width: 1px; transform: translate(2px, -2px); }
.pg-c-bl { bottom: 8px; left: 8px;    border-bottom-width: 1px; border-left-width: 1px;  transform: translate(-2px, 2px); }
.pg-c-br { bottom: 8px; right: 8px;   border-bottom-width: 1px; border-right-width: 1px; transform: translate(2px, 2px); }
.pg-card:hover .pg-corner { opacity: 0.7; transform: translate(0, 0); }

.pg-featured {
  position: absolute; top: 10px; left: 10px; z-index: 6;
  font-size: 9px; letter-spacing: 0.15em; font-weight: 700;
  padding: 3px 8px;
  background: var(--bg); color: currentColor;
  border: 1px solid currentColor; border-radius: 2px;
  opacity: 0.85;
}

.pg-hover-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.95) 100%);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.pg-card:hover .pg-hover-info { transform: translateY(0); }

.pg-hover-desc {
  font-size: 11px; line-height: 1.6;
  color: #fff; opacity: 0.92;
}
.pg-hover-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pg-tag {
  font-size: 9px; padding: 2px 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px; color: rgba(255,255,255,0.85); letter-spacing: 0.04em;
}
.pg-hover-view {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 10px;
  font-weight: 600; letter-spacing: 0.12em; color: currentColor;
}

.pg-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.pg-foot-num   { font-size: 9px; color: var(--text-muted); letter-spacing: 0.08em; }
.pg-foot-name  { flex: 1; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; color: var(--text); }
.pg-foot-arrow {
  font-size: 12px; color: var(--accent);
  transition: transform 0.25s;
}
.pg-card:hover .pg-foot-arrow { transform: translate(2px, -2px); }

/* ════════════════════════════════════════════════════════════
   MOBILE COMMAND BUTTON (replaces inline input)
   ════════════════════════════════════════════════════════════ */
.mob-cmd-btn {
  display: none;  /* hidden on desktop */
  width: 100%;
  align-items: center; gap: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--accent-mid); border-radius: 5px;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mob-cmd-btn:active { background: var(--bg-hover); }
.mcb-prompt { color: var(--accent); font-size: 13px; }
.mcb-label  { flex: 1; text-align: left; color: var(--text-dim); font-size: 13px; }
.mcb-icon   { color: var(--accent); font-size: 16px; }

/* ════════════════════════════════════════════════════════════
   MOBILE OVERRIDES
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* hide weird-spaced labels in header on mobile */
  .term-title    { display: none; }
  .tm-info       { display: none; }
  .term-meta     { gap: 8px; }
  .term-header   { padding: 0 10px; }
  .lang-switch   { margin-left: auto; }
  .lang-btn      { padding: 5px 9px; font-size: 10px; }

  /* swap inline input for tap-to-type button */
  .term-input-row { display: none; }
  .mob-cmd-btn    { display: flex; }
  .autocomplete   { display: none !important; }

  /* mobile menu button always visible */
  .mob-menu-btn   { display: flex !important; align-items: center; justify-content: center;
                    position: static; height: 100%; padding: 0 12px;
                    font-size: 18px; }
  .term-header-l  { gap: 8px; }

  /* how it works — premium mobile layout */
  .how-wrap       { gap: 32px; padding: 8px 0 16px; }
  .how-steps      { padding: 6px 14px; justify-content: space-between; }
  .hs-circle      { width: 36px; height: 36px; }
  .hs-num         { font-size: 11px; }
  .how-step.active .hs-circle {
    width: 46px; height: 46px;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.07),
                0 0 22px rgba(74,222,128,0.22);
  }
  .how-step.active .hs-num    { font-size: 12px; }
  .hs-rail        { margin: 0 6px; }

  .how-hero       { gap: 22px; }
  .hero-head      { gap: 14px; align-items: center; }
  .hero-glyph     { font-size: 34px; margin-top: 0; text-shadow: 0 0 22px rgba(74,222,128,0.32); }
  .hero-meta      { gap: 6px; }
  .hero-counter   { font-size: 9px; letter-spacing: 0.22em; }
  .hero-title     { font-size: 22px; line-height: 1.2; letter-spacing: 0; }
  .hero-desc      { font-size: 13px; line-height: 1.7; max-width: none; }
  .hero-specs     { margin-top: 4px; }
  .spec           { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px 0; }
  .spec-key       { font-size: 9px; letter-spacing: 0.2em; }
  .spec-val       { font-size: 13px; line-height: 1.45; }

  /* portfolio gallery 1 column */
  .port-gallery   { grid-template-columns: 1fr; }

  /* tetris — proper scale */
  .tet-overlay    { padding: 8px; }
  #tet-canvas     { width: 240px; height: 480px; }
  .tet-panel      { width: 120px; padding: 10px 8px; }
  #tet-next       { width: 80px; height: 80px; }
  .tet-header     { height: 36px; padding: 0 10px; }
  .tet-title      { font-size: 9px; }
  .tet-close      { font-size: 10px; padding: 5px 10px; min-height: 28px; }
  .tet-mute       { font-size: 14px; padding: 4px 8px; min-height: 28px; min-width: 32px; }
  .ts-val         { font-size: 14px; }
  .tc-row         { display: none; }
  .tc-label::after {
    content: ' (swipe to play)';
    font-size: 7px; opacity: 0.7;
  }
  .tne-input      { width: 130px; }
}

/* relocate mob menu button properly */
.main { position: relative; }

/* Tablet + mobile: strip the inline terminal input, the ambient log strip and
   every keyboard shortcut except MENU. Keep MENU as a centered green pill
   at the bottom — easy thumb reach, no clutter. */
@media (max-width: 1024px) {
  .mob-cmd-btn   { display: none !important; }
  .term-input-row { display: none !important; }
  .autocomplete  { display: none !important; }
  .term-logs     { display: none !important; }
  .fullscreen-btn { display: none !important; }

  /* Floating hamburger inside the terminal is hidden — we use the bottom pill */
  .mob-menu-btn { display: none !important; }

  /* Bottom bar keeps only the MENU pill, centered */
  .bottom-bar {
    display: flex !important;
    justify-content: center;
    padding: 10px 14px;
  }
  .bb-right  { display: none !important; }
  .bb-sc     { display: none !important; }
  .bb-sc:nth-child(2) {
    display: inline-flex !important;
    align-items: center; gap: 6px;
    padding: 9px 26px;
    border: 1px solid rgba(74,222,128,0.45);
    border-radius: 6px;
    background: rgba(74,222,128,0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 14px rgba(74,222,128,0.18);
    transition: background 0.15s, box-shadow 0.15s;
  }
  .bb-sc:nth-child(2) kbd,
  .bb-sc:nth-child(2) span:not(.bb-label) { display: none !important; }
  .bb-sc:nth-child(2) .bb-label {
    display: inline-block !important;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
  }
  .bb-sc:nth-child(2):active {
    background: rgba(74,222,128,0.22);
    box-shadow: 0 0 22px rgba(74,222,128,0.35);
  }

  /* Trim header padding back, no hamburger to make room for */
  .term-header { padding-right: 10px; }
}

/* ════════════════════════════════════════════════════════════
   HERO CTA
   ════════════════════════════════════════════════════════════ */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  margin-left: 4px;
  padding: 12px 26px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: visible;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 1px rgba(74,222,128,0.18), 0 10px 28px rgba(74,222,128,0.18), 0 4px 14px rgba(0,0,0,0.3);
}
.hero-cta:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(74,222,128,0.26), 0 0 34px rgba(74,222,128,0.34), 0 8px 20px rgba(0,0,0,0.4);
}
.hero-cta:active { transform: translateY(0); opacity: 1; }

/* ════════════════════════════════════════════════════════════
   TRUST STATS ROW — borderless, soft elevation
   ════════════════════════════════════════════════════════════ */
.trust-stats {
  display: flex; gap: 0;
  margin: 28px 0 8px;
  padding: 22px 4px;
  border: none;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(74,222,128,0.012), transparent);
}
.ts-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 4px 22px;
  border-right: 1px solid var(--hairline);
  background: none;
  transition: transform 0.3s var(--ease);
}
.ts-stat:last-child { border-right: none; }
.ts-stat:hover { background: none; transform: translateY(-2px); }
.ts-val {
  font-size: 32px; font-weight: 700; color: var(--accent);
  letter-spacing: -0.01em; line-height: 1;
  text-shadow: 0 0 30px rgba(74,222,128,0.32);
  transition: text-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.ts-stat:hover .ts-val { transform: scale(1.04); text-shadow: 0 0 40px rgba(74,222,128,0.5); }
.ts-label {
  font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.22em; margin-top: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   TRUST WHY ME BLOCK — softer, no harsh border
   ════════════════════════════════════════════════════════════ */
.trust-why-block {
  margin: 0;
  padding: 22px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, transparent 40%),
    var(--bg-card);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.03);
  height: 100%;
  display: flex; flex-direction: column;
}
.twb-title {
  font-size: 10px; letter-spacing: 0.28em; color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(74,222,128,0.28);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.twb-title::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}
.twb-list { display: flex; flex-direction: column; gap: 14px; }
.twb-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
}
.twb-arrow {
  color: var(--accent); flex-shrink: 0;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(74,222,128,0.5);
  margin-top: 1px;
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS — editorial cards, no harsh borders
   ════════════════════════════════════════════════════════════ */
.testi-section { margin: 28px 0; }
.testi-title {
  font-size: 10px; letter-spacing: 0.28em; color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(74,222,128,0.28);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.testi-title::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testi-card {
  padding: 26px 28px 22px;
  border: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 40%),
    var(--bg-card);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.03);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.testi-card:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(74,222,128,0.025) 0%, transparent 60%),
    var(--bg-card);
  box-shadow:
    var(--elev-3),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(74,222,128,0.1);
}
.testi-card::before {
  content: '"'; position: absolute; top: 8px; left: 18px;
  font-size: 64px; color: var(--accent); opacity: 0.12;
  font-family: Georgia, serif; line-height: 1;
}
.testi-text {
  font-size: 14px; color: var(--text);
  line-height: 1.75; font-style: italic;
  padding-left: 4px;
  position: relative; z-index: 1;
}
.testi-author {
  display: flex; flex-direction: column; gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.ta-name { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.ta-role { font-size: 11px; color: var(--accent); letter-spacing: 0.06em; }

/* ════════════════════════════════════════════════════════════
   PROJECT METRICS ROW — refined chip layout
   ════════════════════════════════════════════════════════════ */
.proj-metrics-row {
  display: flex; gap: 0;
  position: relative;
  z-index: 1;
  padding: 18px 0 4px;
  border-top: 1px solid var(--hairline);
}
.pmr-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 22px 0 0;
  background: none; border: none;
  border-right: 1px solid var(--hairline);
  border-radius: 0;
  transition: transform 0.3s var(--ease);
}
.pmr-item:last-child { border-right: none; padding-right: 0; }
.pmr-item + .pmr-item { padding-left: 22px; }
.pmr-item:hover { background: none; transform: translateY(-2px); }

.pmr-val {
  font-size: 26px; font-weight: 700; color: var(--accent);
  letter-spacing: -0.005em; line-height: 1.1;
  text-shadow: 0 0 24px rgba(74,222,128,0.32);
}
.proj-featured .pmr-val { font-size: 30px; }

.pmr-label {
  font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.18em; margin-top: 6px; text-align: left;
  text-transform: uppercase;
  font-weight: 600;
}

.proj-featured-badge {
  font-size: 9px; padding: 4px 10px;
  background: rgba(74,222,128,0.10); color: var(--accent);
  border: 1px solid rgba(74,222,128,0.3); border-radius: 999px;
  letter-spacing: 0.22em; font-weight: 700;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   CONTACT CTA BANNER — cinematic section opener
   ════════════════════════════════════════════════════════════ */
.contact-cta-banner {
  padding: 44px 8px 36px;
  margin-bottom: 32px;
  border: none;
  border-radius: 0;
  background: none;
  position: relative;
  text-align: left;
}
.contact-cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(74,222,128,0.4);
}
.ccb-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 0 14px rgba(74,222,128,0.3);
  display: inline-flex; align-items: center; gap: 12px;
}
.ccb-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}
.ccb-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  line-height: 1.05;
  max-width: 16ch;
  text-shadow: 0 0 36px rgba(74,222,128,0.08);
}
@media (max-width: 720px) { .ccb-title { font-size: 32px; max-width: none; } }
@media (max-width: 480px) { .ccb-title { font-size: 26px; } }

.ccb-sub {
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.005em;
  line-height: 1.65;
  max-width: 48ch;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   MOBILE — premium readability & breathing room
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html { font-size: 15px; }
  body { line-height: 1.7; }

  .term-body { padding: 22px 18px 0; }

  /* About hero */
  .about-name { font-size: 30px; line-height: 1.1; }
  .about-bio { font-size: 14px; line-height: 1.85; }
  .about-bio p { font-size: 14px; line-height: 1.85; }
  .about-role { font-size: 11px; letter-spacing: 0.18em; }

  /* Hero CTA full width */
  .hero-cta { width: 100%; justify-content: center; font-size: 14px; padding: 16px 22px; border-radius: var(--radius-md); }

  /* Trust stats: 2x2 grid on small screens, no borders */
  .trust-stats { flex-wrap: wrap; padding: 8px 0; gap: 20px 0; }
  .ts-stat { flex: 0 0 50%; border-right: none; padding: 12px 16px; }
  .ts-val { font-size: 26px; }
  .ts-label { font-size: 10px; }

  /* Testimonials stack on mobile */
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }
  .testi-card { padding: 22px 22px 18px; }
  .testi-text { font-size: 13.5px; }

  /* Project cards */
  .proj-card { padding: 24px 22px 22px; gap: 18px; }
  .proj-card.proj-featured { padding: 28px 24px 24px; }
  .proj-name { font-size: 20px; }
  .proj-featured .proj-name { font-size: 26px; }
  .cs-val { font-size: 13.5px; line-height: 1.7; }
  .proj-featured .cs-val { font-size: 14px; }

  /* Project metrics row */
  .proj-metrics-row { padding: 16px 0 2px; flex-wrap: wrap; gap: 12px 0; }
  .pmr-item { flex: 0 0 50%; padding: 4px 16px 4px 0; border-right: 1px solid var(--hairline); }
  .pmr-item:nth-child(2n) { border-right: none; padding-right: 0; }
  .pmr-item + .pmr-item { padding-left: 0; }
  .pmr-item:nth-child(2n) { padding-left: 16px; }
  .pmr-val { font-size: 22px; }
  .proj-featured .pmr-val { font-size: 24px; }

  /* Strength cards */
  .str-item { padding: 22px 20px 20px; }
  .str-name { font-size: 16px; }
  .str-desc { font-size: 13px; line-height: 1.7; }

  /* About row & table */
  .about-table { padding: 22px 22px; font-size: 13px; }
  .at-val { font-size: 13px; }
  .trust-why-block { padding: 22px 22px; }
  .twb-item { font-size: 13.5px; }

  /* Contact CTA banner */
  .ccb-title { font-size: 32px; line-height: 1.1; }
  .ccb-sub { font-size: 14px; }
  .contact-cta-banner { padding: 28px 4px 24px; }

  /* Bigger tap targets for ls-cards */
  .ls-card { padding: 20px 18px; }

  /* Reduce visual noise: dimmer scanlines */
  body::after { opacity: 0.35; }

  /* Subtle ambient retained on mobile */
  body::before { opacity: 0.6; }
}

@media (max-width: 480px) {
  .ccb-title { font-size: 26px; }
  .about-name { font-size: 26px; }
  .pmr-val { font-size: 20px; }
  .pmr-label { font-size: 9.5px; }
  .proj-name { font-size: 18px; }
  .proj-featured .proj-name { font-size: 22px; }
}
