/* ============================================================
   BRIAN LEWIS   DEV & AI ENGINEER
   Dark Futuristic Technology Theme
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #05090a;
  --bg-2: #080e10;
  --bg-3: #0b1416;
  --panel: rgba(13, 22, 24, 0.72);
  --panel-strong: rgba(10, 18, 20, 0.92);
  --accent: #33ffab;
  --accent-dim: #1c9e6c;
  --accent-faint: rgba(51, 255, 171, 0.12);
  --accent-line: rgba(51, 255, 171, 0.22);
  --text: #e6f2ec;
  --text-soft: #b9ccc3;
  --muted: #7e9b90;
  --danger: #ff5a5a;
  --glow: 0 0 24px rgba(51, 255, 171, 0.25);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --header-h: 64px;
  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(51, 255, 171, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(28, 158, 108, 0.07), transparent 55%),
    linear-gradient(180deg, #05090a 0%, #060b0c 60%, #05090a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(51, 255, 171, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 255, 171, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #7dffce;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent);
  color: #04130c;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
  background: var(--accent);
  color: #04130c;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 3px;
}

.loader-logo::before {
  content: "> ";
  color: var(--muted);
}

.loader-bar {
  width: 220px;
  height: 4px;
  border-radius: 99px;
  background: rgba(51, 255, 171, 0.12);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  animation: loadfill 1.1s ease forwards;
}

@keyframes loadfill {
  to { width: 100%; }
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 500;
  background: rgba(5, 9, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--accent-line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-faint), transparent);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(51, 255, 171, 0.08);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 16px;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-soft);
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-faint);
}

.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: var(--glow);
}

.nav-cta {
  margin-left: 10px;
  background: var(--accent);
  color: #04130c;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 9px;
}

.nav-cta:hover {
  background: #66ffc4;
  color: #04130c;
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  width: 42px;
  height: 40px;
  cursor: pointer;
  color: var(--accent);
  font-size: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--accent-line);
  background: var(--accent-faint);
  color: var(--accent);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  background: rgba(51, 255, 171, 0.18);
  color: #9cffd9;
}

.btn-primary {
  background: var(--accent);
  color: #04130c;
  border-color: transparent;
}

.btn-primary:hover {
  background: #66ffc4;
  color: #04130c;
  box-shadow: var(--glow);
}

.btn-ghost {
  background: transparent;
}

.btn-block {
  width: 100%;
}

/* ---------- Terminal ---------- */
.terminal {
  background: var(--panel-strong);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), var(--glow);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--accent-line);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #243338;
}

.terminal-dots i:nth-child(1) { background: var(--danger); opacity: 0.8; }
.terminal-dots i:nth-child(2) { background: #ffc857; opacity: 0.8; }
.terminal-dots i:nth-child(3) { background: var(--accent); opacity: 0.8; }

.terminal-title {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.terminal-body {
  padding: 20px 22px 24px;
  overflow: auto;
  line-height: 1.8;
}

.terminal-line {
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line .t-green { color: var(--accent); }
.terminal-line .t-dim { color: var(--muted); }
.terminal-line .t-prompt { color: var(--muted); }

.terminal .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
  border-radius: 1px;
}

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

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  box-shadow: var(--glow);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(51, 255, 171, 0.35);
}

.hero .role {
  font-family: var(--font-mono);
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero .role::before { content: "[ "; color: var(--muted); }
.hero .role::after { content: " ]"; color: var(--muted); }

.hero-desc {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--accent-line);
  background: var(--accent-faint);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.chip::before {
  content: "●";
  font-size: 8px;
  color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--accent-line);
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 16, 0.35));
}

.section-head {
  margin-bottom: 44px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.section-head.section-head-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-head.section-head-line::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}

/* ---------- Feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.feature-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 26px 60px -28px rgba(51, 255, 171, 0.28);
}

.feature-card:hover::before {
  opacity: 1;
}

.fc-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.fc-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.feature-card .fc-tag {
  margin-top: 16px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 30px 70px -30px rgba(51, 255, 171, 0.3);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 9, 10, 0.75));
}

.project-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-body h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.project-body h3 a {
  color: var(--text);
}

.project-body h3 a:hover {
  color: var(--accent);
}

.project-body p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-line);
  color: var(--text-soft);
}

.project-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Stat / band ---------- */
.band {
  background: var(--panel-strong);
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  padding: 40px 0;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.band-num {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--accent);
  text-shadow: var(--glow);
}

.band-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

/* ---------- Prose ---------- */
.prose {
  max-width: 74ch;
  color: var(--text-soft);
  font-size: 16px;
}

.prose p {
  margin-bottom: 18px;
}

.prose strong {
  color: var(--text);
}

.prose h2 {
  font-size: 24px;
  margin: 40px 0 14px;
}

.prose h3 {
  font-size: 18px;
  margin: 30px 0 10px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px 22px;
}

.prose li {
  margin-bottom: 9px;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .lead {
  color: var(--text);
  font-size: 17px;
}

/* ---------- Stack grid ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.stack-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.stack-item code {
  color: var(--accent);
  font-size: 13px;
}

.stack-item span {
  color: var(--muted);
  font-size: 14px;
}

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

.social-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--accent-line);
  background: var(--panel);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: transform 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 55px -28px rgba(51, 255, 171, 0.26);
  color: var(--text);
}

.social-card .sc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-card .sc-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.social-card .sc-status {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.social-card svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---------- Developer Profile ---------- */
.dp-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
}

.dp-photo figure {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(51, 255, 171, 0.08);
  background: var(--bg-3);
}

.dp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dp-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  background: linear-gradient(180deg, transparent, rgba(5, 9, 10, 0.78));
}

.dp-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-faint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.dp-name {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.dp-name .hl { color: var(--accent); }

.dp-subtitle {
  font-family: var(--font-mono);
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}

.dp-bio {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--muted);
}

.dp-section {
  margin-top: 64px;
}

.dp-section-head {
  text-align: center;
  margin-bottom: 34px;
}

.dp-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}

.dp-section-head .dp-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.dp-brand-note {
  border: 1px solid var(--accent-line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.dp-brand-note .brand {
  justify-content: center;
  margin-bottom: 14px;
}

.dp-brand-note p {
  color: var(--muted);
  max-width: 48ch;
  margin-inline: auto;
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact-panel {
  background: var(--panel-strong);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  max-width: 620px;
  margin-inline: auto;
}

.contact-panel h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.contact-panel p {
  color: var(--muted);
  margin-bottom: 26px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + 66px) 0 44px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  margin-bottom: 14px;
}

.page-hero h1 .hl {
  color: var(--accent);
}

.page-hero p {
  color: var(--muted);
  max-width: 64ch;
  font-size: 17px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--accent-line);
  margin-inline: 8px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--accent);
}

/* ---------- Project page ---------- */
.project-hero {
  padding: calc(var(--header-h) + 52px) 0 36px;
}

.project-hero .project-cat {
  margin-bottom: 12px;
}

.project-hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  margin-bottom: 16px;
}

.project-hero p.lead {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 70ch;
  margin-bottom: 24px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-shot {
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

.project-shot img {
  width: 100%;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.project-meta-item {
  border: 1px solid var(--accent-line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.project-meta-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-meta-item dd {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Feature list (project) ---------- */
.feat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--accent-line);
  background: var(--panel);
  border-radius: var(--radius-sm);
}

.feat-item .fi-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-faint);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.feat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.feat-item p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Notice ---------- */
.notice {
  border: 1px dashed var(--accent-line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.notice .n-ic {
  color: var(--accent);
  font-family: var(--font-mono);
  flex: none;
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  padding: 88px 0;
  border-top: 1px solid var(--accent-line);
  background:
    radial-gradient(600px 260px at 50% 100%, rgba(51, 255, 171, 0.08), transparent 70%);
}

.cta h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 28px;
}

.cta .cta-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--accent-line);
  padding: 46px 0 30px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 40ch;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  border-top: 1px solid var(--accent-line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-bottom .mono-line::before {
  content: "$ ";
  color: var(--accent);
}

/* ---------- 404 ---------- */
.err-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 22px 60px;
  text-align: center;
}

.err-code {
  font-family: var(--font-mono);
  font-size: clamp(70px, 16vw, 150px);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(51, 255, 171, 0.4);
  letter-spacing: -4px;
}

.err-glitch {
  font-family: var(--font-mono);
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 3px;
  color: var(--text-soft);
  margin: 14px 0 8px;
}

.err-msg {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 34px;
}

.err-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.easter-btn {
  background: none;
  border: 1px dashed var(--accent-line);
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  padding: 12px 20px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.easter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.easter-output {
  margin-top: 24px;
  min-height: 26px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
}

/* ---------- Particles canvas ---------- */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Page transition overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--bg-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-meta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--panel-strong);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--accent-line);
    padding: 12px 16px 16px;
    gap: 6px;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-link { padding: 12px 14px; font-size: 15px; }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-cta { margin-left: 0; margin-top: 6px; }

  .nav-toggle { display: grid; place-items: center; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .contact-panel { padding: 30px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }

  body { overflow-x: hidden; }
}

/* ---------- Utility ---------- */
.mono {
  font-family: var(--font-mono);
}

/* ---------- Error code glitch (404) ---------- */
.err-code.glitch {
  position: relative;
  display: inline-block;
}

.err-code.glitch::before,
.err-code.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}

.err-code.glitch::before {
  color: var(--danger);
  transform: translate(-3px, 0);
  opacity: 0.55;
  animation: glitch-shift 2.4s infinite linear alternate-reverse;
}

.err-code.glitch::after {
  color: var(--accent-dim);
  transform: translate(3px, 0);
  opacity: 0.55;
  animation: glitch-shift 3.1s infinite linear alternate-reverse;
}

@keyframes glitch-shift {
  0%   { clip-path: inset(12% 0 62% 0); }
  20%  { clip-path: inset(58% 0 8% 0); }
  40%  { clip-path: inset(30% 0 48% 0); }
  60%  { clip-path: inset(78% 0 4% 0); }
  80%  { clip-path: inset(4% 0 74% 0); }
  100% { clip-path: inset(44% 0 32% 0); }
}

/* ---------- Scanning line (404 / admin) ---------- */
.err-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px rgba(51, 255, 171, 0.55);
  animation: err-scan-y 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes err-scan-y {
  0%   { top: 8%; opacity: 0; }
  12%  { opacity: 1; }
  50%  { top: 92%; }
  88%  { opacity: 1; }
  100% { top: 8%; opacity: 0; }
}

/* ---------- Admin page ---------- */
.admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--accent-line);
  background: rgba(5, 9, 10, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-tag {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.admin-tag::before {
  content: "> ";
  color: var(--accent);
}

.admin-gate {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px 64px;
}

.admin-gate .container {
  max-width: 740px;
}

/* ---------- Admin scene ---------- */
.adm-scene {
  position: relative;
  height: 240px;
  margin-inline: auto;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 22, 24, 0.85), rgba(8, 14, 16, 0.96));
  overflow: hidden;
}

.adm-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(51, 255, 171, 0.35) 1px, transparent 1.5px);
  background-size: 26px 26px;
  animation: adm-dots-drift 16s linear infinite;
  opacity: 0.55;
}

@keyframes adm-dots-drift {
  from { background-position: 0 0; }
  to   { background-position: 520px 260px; }
}

.adm-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(51, 255, 171, 0.5);
  animation: err-scan-y 5s ease-in-out infinite;
  pointer-events: none;
}

.adm-person {
  position: absolute;
  left: 14%;
  bottom: 26px;
  font-size: 38px;
  line-height: 1;
  z-index: 4;
  animation: adm-walk 7s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(51, 255, 171, 0.4));
}

@keyframes adm-walk {
  0%   { transform: translateX(0) scaleX(1); }
  28%  { transform: translateX(290px) scaleX(1); }
  42%  { transform: translateX(290px) scaleX(-1); }
  72%  { transform: translateX(-50px) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

.adm-gate {
  position: absolute;
  right: 12%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.adm-gate-bar {
  width: 150px;
  height: 96px;
  border: 3px solid var(--accent-dim);
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, rgba(51, 255, 171, 0.09) 0 10px, transparent 10px 20px);
}

.adm-lock {
  font-size: 30px;
  line-height: 1;
  animation: adm-lock-shake 7s ease-in-out infinite;
}

@keyframes adm-lock-shake {
  0%, 27%  { transform: rotate(0); }
  34%, 38% { transform: rotate(-14deg); }
  36%      { transform: rotate(12deg); }
  40%      { transform: rotate(0); }
  100%     { transform: rotate(0); }
}

.adm-dino {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 130px;
  line-height: 1;
  z-index: 3;
  animation: adm-dino-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(51, 255, 171, 0.35));
}

@keyframes adm-dino-bob {
  0%, 100% { transform: translate(-50%, 0) rotate(-2deg); }
  50%      { transform: translate(-50%, -10px) rotate(2deg); }
}

/* ---------- Admin copy ---------- */
.adm-caption {
  margin-top: 20px;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.adm-title {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.1;
  color: var(--text);
}

.adm-sub {
  margin-top: 12px;
  font-size: 19px;
  color: var(--text-soft);
}

.adm-msg {
  margin: 12px auto 36px;
  max-width: 54ch;
  color: var(--muted);
}

.adm-foot {
  margin-top: 44px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .adm-dino { font-size: 96px; }
  .adm-person { font-size: 30px; }
  @keyframes adm-walk {
    0%   { transform: translateX(0) scaleX(1); }
    28%  { transform: translateX(165px) scaleX(1); }
    42%  { transform: translateX(165px) scaleX(-1); }
    72%  { transform: translateX(-40px) scaleX(-1); }
    100% { transform: translateX(0) scaleX(1); }
  }
  .adm-gate { right: 6%; }
  .adm-gate-bar { width: 110px; height: 74px; }
}