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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ─── DARK THEME (default) ─── */
:root {
  --bg: #09090b;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.05);
  --glow-color: rgba(96,165,250,0.12);
  --dot-color: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #9e9ea7;
  --accent: #60a5fa;
  --accent-dim: rgba(96,165,250,0.12);
  --accent-border: rgba(96,165,250,0.18);
  --gradient-1: #60a5fa;
  --gradient-2: #3b82f6;
  --gradient-3: #2563eb;
  --nav-bg: rgba(9,9,11,0.72);
  --nav-mobile-bg: rgba(9,9,11,0.95);
  --hero-glow: rgba(96,165,250,0.08);
  --cta-shadow: rgba(59,130,246,0.2);
  --card-shadow: none;
  --radius: 8px;
  --max-w: 1080px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

/* ─── LIGHT THEME ─── */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-card: rgba(0,0,0,0.02);
    --bg-card-hover: rgba(0,0,0,0.04);
    --glow-color: rgba(37,99,235,0.08);
    --dot-color: rgba(0,0,0,0.06);
    --border: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);
    --text: #09090b;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;
    --accent: #2563eb;
    --accent-dim: rgba(37,99,235,0.08);
    --accent-border: rgba(37,99,235,0.15);
    --gradient-1: #3b82f6;
    --gradient-2: #2563eb;
    --gradient-3: #1d4ed8;
    --nav-bg: rgba(250,250,250,0.72);
    --nav-mobile-bg: rgba(250,250,250,0.95);
    --hero-glow: rgba(37,99,235,0.06);
    --cta-shadow: rgba(37,99,235,0.12);
    --card-shadow: 0 1px 2px rgba(0,0,0,0.03);
    color-scheme: light;
  }
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

/* ─── DOT GRID PATTERN ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── MOUSE SPOTLIGHT ─── */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--glow-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spotlight.active { opacity: 1; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.85; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0) saturate(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease, backdrop-filter 0.22s ease;
}
@media (min-width: 769px) and (hover: hover) {
  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--text);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    border-color: rgba(255,255,255,0.16);
    backdrop-filter: blur(18px) saturate(175%);
    -webkit-backdrop-filter: blur(18px) saturate(175%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.2),
      inset 0 -1px 0 rgba(255,255,255,0.05),
      0 10px 24px rgba(0,0,0,0.16),
      0 1px 0 rgba(255,255,255,0.06);
    opacity: 1;
    transform: translateY(-1px);
  }
}
@media (prefers-color-scheme: light) {
  @media (min-width: 769px) and (hover: hover) {
    .nav-links a:hover,
    .nav-links a:focus-visible {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.46));
      border-color: rgba(255,255,255,0.75);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -1px 0 rgba(255,255,255,0.45),
        0 12px 28px rgba(148,163,184,0.22),
        0 0 0 1px rgba(15,23,42,0.04);
    }
  }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(ellipse at 30% 50%, var(--gradient-1), transparent 50%),
    radial-gradient(ellipse at 70% 50%, var(--gradient-3), transparent 50%),
    radial-gradient(ellipse at 50% 30%, var(--gradient-2), transparent 50%);
  opacity: 0.10;
  filter: blur(80px);
  pointer-events: none;
  animation: meshFloat 12s ease-in-out infinite;
}
@keyframes meshFloat {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
  33% { transform: translateX(-49%) scale(1.02) rotate(1deg); }
  66% { transform: translateX(-51%) scale(0.99) rotate(-0.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-content {
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
  position: relative;
}
/* ─── HERO BACKGROUND IMAGE ─── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(6px) grayscale(1) brightness(0.35);
  transform: scale(1.05);
  opacity: 0.6;
}
@media (prefers-color-scheme: light) {
  .hero-bg img {
    filter: blur(6px) grayscale(1) brightness(0.9);
    opacity: 0.25;
  }
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--bg) 90%);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  border: 1px solid var(--accent-border);
}
.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-label .dot { animation: none; }
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-1));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .gradient { animation: none; background-size: 100% 100%; }
}

/* ─── HERO ENTRANCE ─── */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(8px);
    animation: heroReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }
  .hero-enter:nth-child(1) { animation-delay: 0.1s; }
  .hero-enter:nth-child(2) { animation-delay: 0.25s; }
  .hero-enter:nth-child(3) { animation-delay: 0.4s; }
  .hero-enter:nth-child(4) { animation-delay: 0.55s; }
  .hero-enter:nth-child(5) { animation-delay: 0.7s; }
}
@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-enter { opacity: 1; transform: none; filter: none; }
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}
.hero-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease, background 0.2s ease;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}
.hero-cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--cta-shadow);
  color: #fff;
  background: transparent;
}
.hero-cta:hover::before {
  opacity: 1;
}
.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.hero-cta:hover svg { transform: translateX(2px); }

/* ─── SECTIONS ─── */
section {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  scroll-margin-top: 96px;
}

main {
  scroll-margin-top: 96px;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 400;
}

.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .service-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 1px var(--accent-border), 0 8px 32px rgba(59,130,246,0.1), 0 2px 8px rgba(59,130,246,0.06);
  }
}
.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── EXPERIENCE ─── */
.timeline {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--bg);
  transition: background 0.15s ease;
}
.timeline-item + .timeline-item {
  border-top: 1px solid var(--border-hover);
}
@media (hover: hover) {
  .timeline-item:hover { background: var(--bg-card-hover); }
}
.timeline-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  padding-top: 0.15rem;
}
h3.timeline-role {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}
.timeline-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.timeline-desc {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 560px;
}

/* ─── DOMAINS ─── */
.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
@media (hover: hover) {
  .domain-tag:hover {
    border-color: var(--border-hover);
    color: var(--text);
    transform: scale(1.05);
  }
}

/* ─── MID-PAGE CTA ─── */
.mid-cta {
  margin-top: 2.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}
.mid-cta a {
  font-weight: 500;
}

/* ─── EDUCATION ─── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--card-shadow);
  transition: background 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) {
  .edu-card:hover { background: var(--bg-card-hover); }
}
.edu-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.edu-card .degree {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.edu-card .year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ─── CONTACT ─── */
.contact-section {
  text-align: center;
  padding: 8rem 2rem;
}
.contact-section .section-desc {
  margin: 0 auto 2.5rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--text);
  opacity: 1;
}
.contact-link svg {
  width: 16px;
  height: 16px;
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .timeline-item { grid-template-columns: 140px 1fr; gap: 1.25rem; }
}
@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 4rem; }
  section { padding: 4rem 1.5rem; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .timeline-meta { padding-bottom: 0.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 5rem 1.5rem; }
}

/* ─── ANIMATIONS ─── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; filter: none; }
}

/* ─── 3D CARD TILT ─── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s ease;
}
@media (hover: hover) {
  .tilt-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
}

/* ─── STAGGERED FADE-IN ─── */
@media (prefers-reduced-motion: no-preference) {
  .services-grid > .fade-in:nth-child(2),
  .edu-grid > .fade-in:nth-child(2) { transition-delay: 0.1s; }
  .services-grid > .fade-in:nth-child(3),
  .edu-grid > .fade-in:nth-child(3) { transition-delay: 0.2s; }
}

/* ─── TERMINAL DECORATION ─── */
.terminal {
  max-width: 520px;
  margin: 3rem auto 0;
  min-height: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  box-shadow: var(--card-shadow);
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}
.terminal-title {
  margin-left: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.7rem;
}
.terminal-body {
  padding: 1rem 1.25rem;
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  color: var(--text-secondary);
}
.terminal-line {
  min-height: 1.7em;
  opacity: 1;
  transform: none;
}
.terminal-body .prompt {
  color: var(--accent);
}
.terminal-body .key {
  color: var(--text-tertiary);
}
.terminal-body .val {
  color: var(--text);
}

/* ─── LOGO CURSOR BLINK ─── */
.nav-logo::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo::after { animation: none; opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .terminal-line {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .js .terminal.revealed .terminal-line.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── TIMELINE ENHANCEMENTS ─── */
.timeline-item:first-child {
  border-left: 3px solid var(--accent);
}
.timeline-item:first-child .timeline-role {
  color: var(--text);
}
@media (hover: hover) {
  .timeline-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }
}

/* ─── DOMAIN TAG HIGHLIGHTS ─── */
.domain-tag--strong {
  border-color: var(--border-hover);
  color: var(--text);
  font-weight: 500;
}
.domain-tag--accent {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}
/* ─── SCROLL INDICATOR ─── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.scroll-hint svg {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint svg { animation: none; }
}


/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus-visible {
  top: 0;
  opacity: 1;
}

/* ─── MOBILE NAV ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.625rem;
  min-width: 44px;
  min-height: 44px;
  line-height: 0;
}
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  html:not(.js) nav { position: sticky; }
  html:not(.js) .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 4rem;
  }
  html:not(.js) .scroll-hint { display: none; }
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
    padding: 0 0 0.25rem;
  }
  .nav-links a { padding: 0.75rem 0; display: block; min-height: 44px; }
  .js .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .js .nav-inner {
    height: 64px;
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
  }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    gap: 0;
  }
  .js .nav-links li {
    position: relative;
    width: 100%;
  }
  .js .nav-links li + li {
    border-top: 1px solid var(--border);
  }
  .js .nav-links li::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .js .nav-links a {
    width: 100%;
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transform: none;
    justify-content: flex-start;
  }
  .js .nav-links a:hover,
  .js .nav-links a:focus-visible,
  .js .nav-links a:active {
    background: transparent;
    box-shadow: none;
    color: var(--text);
    opacity: 1;
  }
  .js .nav-links li:hover::before,
  .js .nav-links li:focus-within::before,
  .js .nav-links li:active::before {
    opacity: 1;
  }
  @media (prefers-color-scheme: light) {
    .js .nav-links a:hover,
    .js .nav-links a:focus-visible,
    .js .nav-links a:active {
      background: transparent;
      box-shadow: none;
    }
  }
  .js .nav-links.open { display: flex; }
  .nav-links {
    position: static;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
