/* ==========================================================================
   Nahjay Battieste — portfolio
   Hand-built. Dark, technical, quiet.
   ========================================================================== */

:root {
  --bg: #08090a;
  --bg-1: #0e1012;
  --bg-2: #14171a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #ecedee;
  --muted: #a1a5ad;
  --dim: #6b7079;
  --accent: #c8ff3d;
  --accent-ink: #0c1000;
  --accent-soft: rgba(200, 255, 61, 0.1);
  --accent-line: rgba(200, 255, 61, 0.35);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --radius: 14px;
  --gutter: 24px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background: dot grid fading out + accent glow */
body::before,
body::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  height: 1100px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
body::after {
  height: 900px;
  background:
    radial-gradient(600px 380px at 78% 8%, rgba(200, 255, 61, 0.09), transparent 70%),
    radial-gradient(520px 320px at 8% 0%, rgba(120, 160, 255, 0.06), transparent 70%);
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
p a, .section-sub a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
p a:hover, .section-sub a:hover { text-decoration-color: var(--accent); }

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}
.btn .ico { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 30px -8px rgba(200, 255, 61, 0.5); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8, 9, 10, 0.78); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--mono); letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.brand-dim { color: var(--dim); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; white-space: nowrap;
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::before {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12.5px/1.4 var(--mono);
  color: var(--muted);
  letter-spacing: 0.02em;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(200, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}
.hero-title {
  margin: 26px 0 22px;
  font-size: clamp(3.1rem, 7.6vw, 6.4rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #fff 30%, #9ea3ab);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lede {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
}
.hero-lede em { color: var(--text); font-size: 1.12em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Scope panel */
.scope {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 23, 26, 0.9), rgba(12, 14, 16, 0.9));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}
.scope::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}
.scope-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--mono);
  color: var(--dim);
}
.scope-dots { display: inline-flex; gap: 6px; }
.scope-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2e33; }
.scope-file { color: var(--muted); }
.scope-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.scope-time b { color: var(--accent); font-weight: 500; }
.scope-body { display: flex; }
.scope-labels {
  flex: none; width: 82px; padding: 0;
  border-right: 1px solid var(--line);
  font: 400 11px/34px var(--mono);
  color: var(--dim);
}
.scope-labels li { height: 34px; padding-left: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.scope-labels li:last-child { border-bottom: 0; }
.scope-wave {
  position: relative; flex: 1; min-width: 0; height: 170px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.scope-wave svg { position: absolute; left: 0; top: 0; display: block; }
.wave-track { animation: scroll var(--wave-dur, 28s) linear infinite; will-change: transform; }
@keyframes scroll { to { transform: translateX(calc(var(--wave-w, 1152px) * -1)); } }
.scope-cursor {
  position: absolute; top: 0; bottom: 0; left: 64%;
  width: 1px; background: var(--accent);
  box-shadow: 0 0 12px 1px rgba(200, 255, 61, 0.45);
  opacity: 0.85;
}
.scope-cursor::before {
  content: ""; position: absolute; top: -1px; left: -4px;
  border: 4.5px solid transparent; border-top: 6px solid var(--accent);
}
.w-lane { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.w-clk { fill: none; stroke: #5c626b; stroke-width: 1.25; }
.w-bin { fill: none; stroke: #c9ccd1; stroke-width: 1.4; }
.w-bus { fill: rgba(200, 255, 61, 0.06); stroke: rgba(200, 255, 61, 0.75); stroke-width: 1.2; }
.w-bus-idle { fill: rgba(255, 255, 255, 0.02); stroke: #4a4f56; stroke-width: 1.2; }
.w-bus2 { fill: rgba(255, 255, 255, 0.025); stroke: #8b9099; stroke-width: 1.2; }
.w-txt { font: 500 10px var(--mono); fill: var(--accent); dominant-baseline: central; text-anchor: middle; }
.w-txt2 { font: 400 10px var(--mono); fill: #a6abb3; dominant-baseline: central; text-anchor: middle; }
.w-txt-idle { fill: #555a61; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 72px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 26px 24px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 6px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.stat dd {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dd span { font: 400 0.42em/1 var(--mono); letter-spacing: 0; color: var(--accent); margin-left: 5px; vertical-align: 0.55em; }

/* ---------- Sections ---------- */
.section { padding: 120px 0 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 400 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker span { color: var(--accent); }
.kicker::after { content: ""; height: 1px; width: 56px; background: var(--line-2); }
.section-head h2, .contact h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.045em; line-height: 1.02;
}
.section-head h2 em, .contact h2 em { color: var(--accent); letter-spacing: -0.02em; padding-right: 0.06em; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 58ch; }

/* ---------- Projects ---------- */
.project {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
  isolation: isolate;
}
.project::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: radial-gradient(500px 220px at var(--mx, 50%) var(--my, 0%), rgba(200, 255, 61, 0.08), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.project:hover { border-color: var(--line-2); }
.project:hover::before { opacity: 1; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font: 400 12px/1.3 var(--mono); }
.project-idx { color: var(--accent); }
.project-meta { color: var(--dim); text-align: right; }
.project h3 { font-size: 1.32rem; letter-spacing: -0.025em; margin-bottom: 12px; }
.project h3 em { color: var(--muted); font-size: 1.08em; }
.project > p { color: var(--muted); font-size: 0.97rem; }
.project .note {
  margin-top: 14px; padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: #d6dacb; font-size: 0.9rem;
}

.projects-featured { display: grid; gap: 18px; }
.project-lg { padding: 34px 36px; }
.project-lg h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.project-lg > p { max-width: 74ch; font-size: 1.02rem; }

.specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.specs div { padding: 13px 16px; border-left: 1px solid var(--line); }
.specs div:first-child { border-left: 0; }
.specs dt { font: 400 11px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 7px; }
.specs dd { margin: 0; font: 500 1.02rem/1.2 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

details { margin-top: 22px; border-top: 1px dashed var(--line-2); }
summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding-top: 16px;
  font: 400 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+"; display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid var(--line-2);
  font-size: 13px; color: var(--accent);
  transition: transform 0.3s var(--ease), background 0.2s;
}
summary:hover { color: var(--text); }
details[open] summary::before { transform: rotate(45deg); background: var(--accent-soft); }
details ul { margin-top: 16px; display: grid; gap: 12px; }
details li {
  position: relative; padding-left: 20px;
  color: var(--muted); font-size: 0.95rem;
}
details li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }
details li strong { color: var(--text); font-weight: 500; }

.project-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: auto; padding-top: 24px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font: 400 12px/1 var(--mono);
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #c2c5cb;
}
.tags-soft li { border-style: dashed; color: var(--muted); background: transparent; }
.repo {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font: 500 14px/1 var(--sans);
  padding: 9px 12px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.repo svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.repo:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.repo:hover svg { transform: translate(2px, -2px); }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }

/* ---------- Experience ---------- */
.xp { position: relative; }
.xp-item {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.xp-item:last-child { border-bottom: 1px solid var(--line); }
.xp-when { font: 400 13px/1.5 var(--mono); color: var(--text); padding-top: 4px; }
.xp-when span { display: block; color: var(--dim); margin-top: 4px; }
.xp-body h3 { font-size: 1.3rem; letter-spacing: -0.025em; }
.xp-org { display: block; margin-top: 6px; font: 400 0.98rem/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.xp-body ul, .xp-sub ul { margin-top: 16px; display: grid; gap: 10px; }
.xp-body li {
  position: relative; padding-left: 20px;
  color: var(--muted); font-size: 0.96rem;
}
.xp-body li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }
.xp-group h3 { font-size: 1.55rem; }
.xp-sub {
  position: relative;
  margin-top: 26px; padding-left: 22px;
  border-left: 1px solid var(--line-2);
}
.xp-sub::before {
  content: ""; position: absolute; left: -4px; top: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--accent);
}
.xp-sub:first-of-type::before { background: var(--accent); box-shadow: 0 0 10px rgba(200, 255, 61, 0.6); }
.xp-sub h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.015em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.xp-sub h4 span { font: 400 12.5px/1 var(--mono); color: var(--dim); }
.xp-sub ul { margin-top: 12px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-intro p { color: var(--muted); font-size: 1.06rem; }
.about-intro p + p { margin-top: 18px; }
.about-intro blockquote {
  margin: 34px 0 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  font: italic 400 clamp(1.35rem, 2.2vw, 1.65rem)/1.35 var(--serif);
  color: var(--text);
}
.about-cards { display: grid; gap: 16px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.card-label { font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 4px; }
.edu { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 0; }
.edu > span { order: -1; }
.edu + .edu { margin-top: 16px; border-top: 1px solid var(--line); }
.edu h3 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.015em; }
.edu p { margin-top: 4px; color: var(--muted); font-size: 0.93rem; }
.edu > span { font: 400 12px/1.5 var(--mono); color: var(--dim); }

.skills {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.skill-row {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.skill-row .card-label { margin: 0; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 40px; }
.contact-box {
  position: relative; overflow: hidden;
  padding: clamp(26px, 6vw, 72px);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background:
    radial-gradient(700px 300px at 85% 120%, rgba(200, 255, 61, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.contact-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
          mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.contact-box > * { position: relative; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 34px;
  font-size: clamp(1.05rem, 4.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: border-color 0.2s, color 0.2s;
  max-width: 100%; overflow-wrap: anywhere;
}
.contact-mail svg { width: 0.8em; height: 0.8em; flex: none; color: var(--accent); transition: transform 0.25s var(--ease); }
.contact-mail:hover { border-color: var(--accent); }
.contact-mail:hover svg { transform: translate(3px, -3px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 400 13px/1 var(--mono); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.contact-links svg { width: 14px; height: 14px; }
.contact-links a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font: 400 12.5px/1.5 var(--mono); color: var(--dim); }
.footer a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .xp-item { grid-template-columns: 1fr; gap: 12px; }
  .skill-row { grid-template-columns: 1fr; gap: 12px; }
  .section { padding-top: 96px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project, .project-lg { padding: 22px 20px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .project-foot { flex-direction: column; align-items: flex-start; }
  .nav-hide-sm { display: none; }
  .brand-dim { display: none; }
  .nav-inner { gap: 12px; }
  .nav-links a { padding: 8px 8px; font-size: 13.5px; }
  .project-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .project-meta { text-align: left; }
}
@media (max-width: 440px) {
  .brand > span { display: none; }
  .nav-inner { gap: 6px; }
  .nav-links a { padding: 8px 7px; font-size: 13px; }
  .btn-sm { padding: 0 12px; }
  .stat { padding: 20px 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-track, .pulse { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
