*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds */
  --bg-base: #01040c;
  --bg-surface: #050d1d;
  --bg-elevated: #0a1630;
  --bg-glass: rgba(6, 14, 30, 0.56);
  --bg-glass-hover: rgba(10, 21, 41, 0.72);

  /* Borders */
  --border-glass: rgba(121, 170, 224, 0.20);
  --border-subtle: rgba(100, 148, 201, 0.12);
  --border-strong: rgba(102, 184, 230, 0.36);

  /* Text */
  --text-primary: #e2edfb;
  --text-secondary: rgba(194, 215, 237, 0.72);
  --text-muted: rgba(145, 177, 209, 0.52);

  /* Accent */
  --accent: #66b8e6;
  --accent-dim: rgba(102, 184, 230, 0.16);
  --accent-border: rgba(102, 184, 230, 0.36);

  /* Status */
  --status-green: #5ef5b6;
  --status-green-bg: rgba(94, 245, 182, 0.14);
  --status-green-border: rgba(94, 245, 182, 0.32);

  /* Orb colors */
  --orb-yellow: #1f4e86;
  --orb-purple: #1d2f66;
  --orb-teal: #205f70;

  /* Typography */
  --font-display: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;

  /* Compatibility aliases for existing inline refs */
  --cyan: var(--accent);
  --green: var(--status-green);

  /* Additional semantic tokens for full variable-driven styling */
  --grid-line: rgba(80, 123, 176, 0.08);
  --nav-bg: rgba(2, 7, 17, 0.84);
  --nav-mobile-bg: rgba(2, 6, 16, 0.96);
  --surface-soft: rgba(76, 124, 181, 0.08);
  --surface-overlay: rgba(2, 7, 17, 0.62);
  --chip-bg: rgba(63, 109, 171, 0.14);
  --field-bg: rgba(7, 16, 34, 0.78);
  --focus-ring: rgba(102, 184, 230, 0.18);
  --error-text: rgba(255, 128, 128, 1);
  --error-border: rgba(255, 128, 128, 0.3);
  --error-bg: rgba(255, 128, 128, 0.08);
  --terminal-dot-red: rgba(255, 95, 87, 1);
  --terminal-dot-yellow: rgba(254, 188, 46, 1);
  --terminal-dot-green: rgba(40, 200, 64, 1);

  /* Profile image sizing controls */
  --profile-image-scale: 78%;
  --profile-image-offset-y: 10%;

  /* Button sizing controls */
  --btn-font-size: 10px;
  --btn-pad-y: 7px;
  --btn-pad-x: 14px;
  --btn-letter-spacing: 0.03em;

  /* Mobile menu link sizing controls */
  --mobile-menu-link-size: 22px;
  --mobile-menu-link-size-sm: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 14%, rgba(33, 78, 132, 0.24), transparent 44%),
    radial-gradient(circle at 84% 8%, rgba(41, 95, 156, 0.18), transparent 40%),
    radial-gradient(circle at 52% 100%, rgba(25, 65, 112, 0.18), transparent 44%),
    linear-gradient(150deg, #01040c 0%, #050d1d 46%, #020611 100%);
  color: var(--text-primary);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.25;
  background:
    repeating-linear-gradient(90deg, rgba(84, 131, 190, 0.08) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(51, 89, 143, 0.06) 0 1px, transparent 1px 120px);
  animation: dataShift 30s linear infinite;
}

body::after {
  z-index: 0;
  inset: -20%;
  opacity: 0.32;
  background:
    radial-gradient(circle at 16% 22%, rgba(52, 102, 170, 0.24), transparent 46%),
    radial-gradient(circle at 84% 80%, rgba(35, 85, 142, 0.22), transparent 46%);
  filter: blur(54px);
  animation: auraFloat 18s ease-in-out infinite alternate;
}

@keyframes dataShift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-80px, -60px, 0);
  }
}

@keyframes auraFloat {
  from {
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -1.5%, 0) scale(1.05);
  }
}

/* Ambient background */
.orb-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.34;
  animation: orbDrift 10s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--orb-yellow);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--orb-purple);
  top: 40vh;
  right: -120px;
  animation-delay: -4s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--orb-teal);
  bottom: -80px;
  left: 35%;
  animation-delay: -7s;
}

@keyframes orbDrift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.34;
  animation: gridPulse 14s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  from {
    opacity: 0.22;
  }
  to {
    opacity: 0.36;
  }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: normal;
  display: block;
}

/* Keep legacy background layers hidden */
#cur-wrap,
.orb.o1,
.orb.o2,
.orb.o3 {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-border);
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: var(--accent);
  transition: width 0.08s linear;
}

section,
nav,
footer {
  position: relative;
  z-index: 10;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 72px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border-subtle);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.nav-logo {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-logo em {
  color: var(--text-muted);
  font-style: normal;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 0.5px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 3px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-glass);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--bg-glass-hover);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 0.85;
}

.nav-dl {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.nav-dl::before {
  display: none !important;
}

.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ham span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-secondary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ham.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ham.open span:nth-child(2) {
  opacity: 0;
}

.ham.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mob-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mob-nav.open {
  transform: translateX(0);
}

.mob-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: var(--mobile-menu-link-size);
  font-weight: 700;
  transition: color 0.2s ease;
}

.mob-nav a:hover {
  color: var(--text-primary);
}

/* Shared layout */
.wrap {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.section-label,
.stag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-dot,
.stag::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  display: inline-block;
  flex: 0 0 auto;
}

.section-title,
h2.st {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

h2.st .a {
  color: var(--accent);
}

/* Hero */
#hero {
  min-height: 100vh;
  padding: 132px 56px 86px;
  display: flex;
  align-items: center;
}

.hgrid {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
}

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.h-bdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1.hname {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.4vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

h1.hname .l1,
h1.hname .l2 {
  display: block;
}

h1.hname .l2 {
  color: var(--accent);
}

.hrole {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hrole b {
  color: var(--text-primary);
  font-weight: 400;
}

.hdesc {
  max-width: 530px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b-primary,
.bsub,
.b-dl {
  background: var(--accent);
  color: var(--bg-base);
  border: none;
  border-radius: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display);
  font-size: var(--btn-font-size);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.b-primary:hover,
.bsub:hover {
  opacity: 0.9;
}

.b-dl {
  transition: none;
}

.b-resume,
.b-ghost,
.b-prev {
  background: transparent;
  border: 0.5px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display);
  font-size: var(--btn-font-size);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.b-resume:hover,
.b-ghost:hover,
.b-prev:hover {
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.hstats {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 0.5px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  text-align: center;
}

.snum {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.slbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hright {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Glass card core */
.glass-card,
.photo-card,
.h-terminal,
.sc,
.pc,
.model-card,
.foot-card,
.econt,
.cc,
.cform,
.slink,
.rbanner {
  background: var(--bg-glass);
  border: 0.5px solid var(--border-glass);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 34px rgba(1, 5, 14, 0.52), inset 0 1px 0 rgba(165, 204, 240, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.photo-card::after,
.h-terminal::after,
.sc::after,
.pc::after,
.model-card::after,
.foot-card::after,
.econt::after,
.cc::after,
.cform::after,
.slink::after,
.rbanner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(132deg, rgba(136, 180, 230, 0.13), transparent 30%, transparent 66%, rgba(74, 108, 176, 0.12));
  opacity: 0.58;
}

.glass-card:hover,
.photo-card:hover,
.h-terminal:hover,
.sc:hover,
.pc:hover,
.model-card:hover,
.foot-card:hover,
.econt:hover,
.cc:hover,
.slink:hover,
.rbanner:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-strong);
}

.photo-card:hover::after,
.h-terminal:hover::after,
.sc:hover::after,
.pc:hover::after,
.model-card:hover::after,
.foot-card:hover::after,
.econt:hover::after,
.cc:hover::after,
.slink:hover::after,
.rbanner:hover::after {
  opacity: 0.84;
}

/* Hero right visual */
.photo-card {
  overflow: hidden;
}

.photo-img-wrap {
  position: relative;
  aspect-ratio: 751 / 700;
  overflow: hidden;
  background: var(--surface-soft);
}

.photo-img {
  width: var(--profile-image-scale);
  height: var(--profile-image-scale);
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  margin: var(--profile-image-offset-y) auto 0;
  border: 2px solid var(--border-glass);
  display: block;
  transition: transform 0.2s ease;
}

.photo-card:hover .photo-img {
  transform: scale(1.02);
}

.photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.photo-placeholder span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.photo-img-wrap.no-photo .photo-img {
  display: none;
}

.photo-img-wrap.no-photo .photo-placeholder {
  display: flex;
}

.photo-scan,
.photo-corner {
  display: none;
}

.photo-caption {
  border-top: 0.5px solid var(--border-subtle);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-cap-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.photo-cap-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* Availability badge style */
.avail-badge,
.photo-cap-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--status-green-bg);
  border: 0.5px solid var(--status-green-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--status-green);
  letter-spacing: 0.05em;
  margin-left: auto;
}

.avail-dot,
.sdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.55;
  }
}

/* Terminal panel */
.h-terminal {
  overflow: hidden;
}

.tc {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-overlay);
}

.td {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.td.r { background: var(--terminal-dot-red); }
.td.y { background: var(--terminal-dot-yellow); }
.td.g { background: var(--terminal-dot-green); }

.ttl {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.tb {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
}

.tl {
  display: flex;
  gap: 10px;
}

.tp {
  color: var(--accent);
  white-space: nowrap;
}

.tcmd {
  color: var(--text-primary);
}

.to {
  padding-left: 20px;
  color: var(--text-secondary);
}

.to.hi {
  color: var(--text-primary);
}

.tcur {
  width: 7px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Marquee */
.marquee-section {
  padding: 24px 0;
  overflow: hidden;
  border-top: 0.5px solid var(--border-subtle);
  border-bottom: 0.5px solid var(--border-subtle);
  background: var(--surface-soft);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-item::after {
  content: "·";
  margin-left: 28px;
  color: var(--text-secondary);
}

/* Sections */
#skills,
#model-lab,
#ai-footprint,
#projects,
#experience,
#certifications,
#resume-cta,
#contact {
  padding: 110px 56px;
}

/* Model Lab */
.ml-note {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.model-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(96, 151, 217, 0.16), transparent 42%),
    linear-gradient(140deg, rgba(44, 83, 150, 0.22), rgba(255, 255, 255, 0.01));
}

.model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.model-type,
.model-size {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-type {
  color: var(--text-muted);
}

.model-size {
  color: var(--accent);
}

.model-repo {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  word-break: break-all;
}

.model-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.model-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.model-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 0.5px solid var(--border-glass);
  color: var(--text-secondary);
  background: var(--chip-bg);
}

.model-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.model-link:hover {
  text-decoration: underline;
}

/* AI Footprint */
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.foot-card {
  padding: 22px;
}

.foot-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.foot-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.foot-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.mini-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.mini-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.foot-link:hover {
  text-decoration: underline;
}

/* Skills */
.sgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.sc {
  padding: 22px;
}

.si {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 26px;
}

.sn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sd {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stags,
.pstack,
.ebs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Chips */
.chip,
.stag2,
.ptag,
.eb {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 0.5px solid var(--border-glass);
  color: var(--text-secondary);
  background: var(--chip-bg);
}

.chip-accent,
.stag2.chip-accent {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Projects */
.ptabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -4px;
  margin-bottom: 30px;
}

.ptab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
}

.ptab:hover {
  color: var(--text-primary);
}

.ptab.active {
  color: var(--accent);
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pc {
  padding: 22px;
  display: none;
}

.pc.visible {
  display: block;
}

.pgrid .pc:first-child {
  border-top: 2px solid var(--accent);
}

.pnum {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.ptype {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.ptype-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.ptitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pdesc {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.plinks {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.pl {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.pl:hover {
  text-decoration: underline;
}

/* Experience */
.etl {
  max-width: 900px;
  margin: 48px auto 0;
  position: relative;
}

.etl::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}

.ei {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 28px;
  padding-bottom: 24px;
  position: relative;
}

.ei::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.edate {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  padding-top: 4px;
}

.econt {
  padding: 20px;
}

.eco {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ero {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ed {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Certifications */
.crow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.cc {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  display: flex;
  gap: 12px;
}

.cico {
  font-size: 24px;
  line-height: 1;
}

.ciss {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.cnm {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.45;
  font-weight: 700;
}

/* Resume CTA */
.rbanner {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rtitle {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.rsub {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.ract {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Contact */
.cgrid {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.csub {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 34px;
}

.slinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slink {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.slink:hover .shnd,
.slink:hover .sarr {
  color: var(--accent);
}

.sico {
  font-size: 18px;
}

.snm {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.shnd {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.sarr {
  margin-left: auto;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cform {
  padding: 24px;
}

.ftitle {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fg {
  margin-bottom: 12px;
}

.fl {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input,
textarea,
.fc {
  background: var(--field-bg);
  border: 0.5px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s ease;
  resize: none;
}

input:focus,
textarea:focus,
.fc:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.fc::placeholder {
  color: var(--text-muted);
}

.bsub {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.bsub:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fmsg {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.fmsg.ok {
  display: block;
  color: var(--status-green);
  border: 0.5px solid var(--status-green-border);
  background: var(--status-green-bg);
}

.fmsg.err {
  display: block;
  color: var(--error-text);
  border: 0.5px solid var(--error-border);
  background: var(--error-bg);
}

/* Footer */
footer {
  padding: 26px 56px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 0.5px solid var(--border-subtle);
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fcp,
.fst {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.fcp b {
  color: var(--accent);
  font-weight: 400;
}

.fst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Reveal animation */
.rev {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rev.on {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  nav {
    padding: 0 24px;
  }

  #hero,
  #skills,
  #model-lab,
  #ai-footprint,
  #projects,
  #experience,
  #certifications,
  #resume-cta,
  #contact {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hgrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgrid {
    grid-template-columns: 1fr;
  }

  .model-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .cgrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rbanner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ract {
    width: 100%;
    flex-wrap: wrap;
  }

  .h-terminal {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .ham {
    display: flex;
  }

  .mob-nav a {
    font-size: var(--mobile-menu-link-size-sm);
  }

  #bg-canvas {
    opacity: 0.38;
  }

  #hero {
    padding: 106px 16px 76px;
  }

  #skills,
  #model-lab,
  #ai-footprint,
  #projects,
  #experience,
  #certifications,
  #resume-cta,
  #contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1.hname {
    font-size: 48px;
  }

  .hbtns,
  .ract {
    flex-direction: column;
    align-items: stretch;
  }

  .b-primary,
  .b-resume,
  .b-ghost,
  .b-dl,
  .b-prev {
    width: 100%;
    justify-content: center;
  }

  .sgrid {
    grid-template-columns: 1fr;
  }

  .frow {
    grid-template-columns: 1fr;
  }

  .etl::before,
  .ei::before {
    display: none;
  }

  .ei {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .edate {
    text-align: left;
  }

  .crow {
    flex-direction: column;
  }

  footer {
    padding: 22px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}
