:root {
  --bg: #0a0e0d;
  --bg-2: #0f1413;
  --bg-3: #141a18;
  --panel: #11181631;
  --line: #1f2a26;
  --line-bright: #2d3d37;
  --text: #d6e4dd;
  --text-dim: #7a8a82;
  --text-faint: #4a5752;
  --accent: #00ff9c;
  --accent-2: #4dd8c8;
  --accent-warm: #ffb86b;
  --accent-pink: #ff5e8a;
  --accent-blue: #5eb8ff;
  --grid: rgba(0, 255, 156, 0.04);
  --shadow-accent: 0 0 40px rgba(0, 255, 156, 0.15);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* === GRID OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

/* === NOISE TEXTURE === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

main, header, footer { position: relative; z-index: 2; }

/* === AMBIENT ATMOSPHERE: floating orbs + secondary grid === */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.ambient-orb-1 {
  top: -10%;
  left: -5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 255, 156, 0.18), transparent 70%);
  animation: orbDrift1 26s ease-in-out infinite;
}

.ambient-orb-2 {
  bottom: -15%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(77, 216, 200, 0.16), transparent 70%);
  animation: orbDrift2 32s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(120px, 80px) scale(1.1); }
  66% { transform: translate(-80px, 160px) scale(0.95); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-140px, -120px) scale(1.15); }
}

.ambient-grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.03) 1px, transparent 1px);
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 90%);
  animation: gridBreath 8s ease-in-out infinite;
}

@keyframes gridBreath {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === SELECTION === */
::selection { background: var(--accent); color: var(--bg); }

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 13, 0.7);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.nav-logo {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::before {
  content: '> ';
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-links a:hover::before { opacity: 1; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-status-link {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  transition: all 0.25s;
}

.nav-status-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 255, 156, 0.04);
}

.nav-status .indicator {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(0, 255, 156, 0.7);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* === HUD BRACKETS === */
.hud-bracket {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0;
  animation: hudIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
             hudPulse 4s ease-in-out 1.6s infinite;
}

.hud-bracket::before,
.hud-bracket::after {
  content: '';
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.6);
}

.hud-bracket-tl { top: 6rem; left: 1.5rem; }
.hud-bracket-tl::before { top: 0; left: 0; width: 100%; height: 1.5px; }
.hud-bracket-tl::after  { top: 0; left: 0; width: 1.5px; height: 100%; }

.hud-bracket-tr { top: 6rem; right: 1.5rem; }
.hud-bracket-tr::before { top: 0; right: 0; width: 100%; height: 1.5px; }
.hud-bracket-tr::after  { top: 0; right: 0; width: 1.5px; height: 100%; }

.hud-bracket-bl { bottom: 1.5rem; left: 1.5rem; }
.hud-bracket-bl::before { bottom: 0; left: 0; width: 100%; height: 1.5px; }
.hud-bracket-bl::after  { bottom: 0; left: 0; width: 1.5px; height: 100%; }

.hud-bracket-br { bottom: 1.5rem; right: 1.5rem; }
.hud-bracket-br::before { bottom: 0; right: 0; width: 100%; height: 1.5px; }
.hud-bracket-br::after  { bottom: 0; right: 0; width: 1.5px; height: 100%; }

@keyframes hudIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 0.55; transform: scale(1); }
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

/* === HERO SCANLINE === */
.hero-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.4;
  z-index: 1;
}

.hero-scanline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 156, 0.6), transparent);
  box-shadow: 0 0 16px rgba(0, 255, 156, 0.6);
  animation: scanline 6s linear infinite;
}

.hero-scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 255, 156, 0.015) 3px,
    rgba(0, 255, 156, 0.015) 4px
  );
}

@keyframes scanline {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* === STATS STRIP === */
.stats-strip {
  padding: 4rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.stats-strip-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright) 20%, var(--accent) 50%, var(--line-bright) 80%, transparent);
  width: 100%;
}

.stats-strip-line-top { margin-bottom: 3rem; }
.stats-strip-line-bottom { margin-top: 3rem; }

.stats-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(0, 255, 156, 0.3);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
}

.stat-num-suffix {
  font-size: 0.5em;
  color: var(--accent-2);
  margin-left: 0.05em;
}

.stat-num-infinity {
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-bottom: 0.3rem;
}

.stat-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--line-bright), transparent);
}

@media (max-width: 880px) {
  .stats-strip-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stat-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-bright), transparent);
    margin: 0 auto;
  }
}

.hero-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s forwards;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta span::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero h1.hero-quote {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero h1 .accent-word {
  font-style: italic;
  color: var(--accent);
  position: relative;
}

.hero h1 .accent-word::after {
  content: '_';
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-attribution {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 1.2rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}

.hero-attribution-dash {
  color: var(--accent);
  font-weight: 600;
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--text-dim);
  max-width: 700px;
  margin: 1.5rem 0 3rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-subtitle .highlight {
  color: var(--text);
  border-bottom: 1px dashed var(--accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  color: var(--text-dim);
  transition: all 0.2s;
  cursor: default;
}

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

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

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 2.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-scroll .line {
  width: 60px;
  height: 1px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === ASCII ART CORNER === */
.hero-ascii {
  position: absolute;
  top: 8rem;
  right: 2.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  white-space: pre;
  pointer-events: none;
  text-align: right;
}

/* === SECTION BASE === */
section {
  padding: 6rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.about-text p:first-of-type::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 4rem;
  float: left;
  line-height: 0.85;
  margin: 0.1rem 0.6rem 0 0;
  color: var(--accent);
}

.about-side {
  font-family: var(--mono);
  font-size: 0.85rem;
  border-left: 2px solid var(--accent);
  padding: 0 0 0 1.5rem;
}

.about-side-item {
  margin-bottom: 1.8rem;
}

.about-side-label {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
}

.about-side-value {
  color: var(--text);
  font-size: 0.95rem;
}

.about-side-value.about-side-value-sub {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.about-side-value.about-side-value-italic {
  font-style: italic;
}

.about-side-value .arrow {
  color: var(--accent);
}

.about-side-gpa {
  color: var(--accent);
  font-weight: 500;
}

/* === APPROACH / PHILOSOPHY === */
.approach-intro {
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.approach-intro p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}

.approach-intro em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.2rem;
}

.approach-intro strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  margin: 0 0.15rem;
}

.approach-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.approach-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-bright);
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.approach-step:hover {
  border-top-color: var(--accent);
  background: rgba(0, 255, 156, 0.025);
  transform: translateY(-3px);
}

.approach-step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line-bright);
}

.approach-step-body h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  line-height: 1.2;
  color: var(--text);
}

.approach-step-body p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.approach-step-body em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent-2);
  font-size: 1rem;
}

.approach-step.approach-step-highlight {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,255,156,0.04), var(--panel));
}

.approach-step.approach-step-highlight .approach-step-num {
  color: var(--accent);
}

.approach-quote {
  position: relative;
  max-width: 920px;
  margin: 4rem auto 0;
  padding: 4rem 3.5rem 3.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 255, 156, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(77, 216, 200, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* HUD-style corner accents */
.approach-quote-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.approach-quote-corner::before,
.approach-quote-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.5);
}

.approach-quote-corner-tl { top: -1px; left: -1px; }
.approach-quote-corner-tl::before { top: 0; left: 0; width: 100%; height: 1.5px; }
.approach-quote-corner-tl::after  { top: 0; left: 0; width: 1.5px; height: 100%; }

.approach-quote-corner-tr { top: -1px; right: -1px; }
.approach-quote-corner-tr::before { top: 0; right: 0; width: 100%; height: 1.5px; }
.approach-quote-corner-tr::after  { top: 0; right: 0; width: 1.5px; height: 100%; }

.approach-quote-corner-bl { bottom: -1px; left: -1px; }
.approach-quote-corner-bl::before { bottom: 0; left: 0; width: 100%; height: 1.5px; }
.approach-quote-corner-bl::after  { bottom: 0; left: 0; width: 1.5px; height: 100%; }

.approach-quote-corner-br { bottom: -1px; right: -1px; }
.approach-quote-corner-br::before { bottom: 0; right: 0; width: 100%; height: 1.5px; }
.approach-quote-corner-br::after  { bottom: 0; right: 0; width: 1.5px; height: 100%; }

/* Typographic quote marks — open & close */
.approach-quote-mark {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  font-size: clamp(5rem, 9vw, 8rem);
  opacity: 0.85;
  text-shadow: 0 0 30px rgba(0, 255, 156, 0.35);
  user-select: none;
  pointer-events: none;
}

.approach-quote-mark-open {
  top: 0.4rem;
  left: 1.4rem;
}

.approach-quote-mark-close {
  bottom: -2.2rem;
  right: 1.4rem;
}

/* Quote body */
.approach-quote-body {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.approach-quote-setup {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.005em;
}

.approach-quote-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.6rem auto;
  opacity: 0.7;
}

.approach-quote-punch {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.005em;
}

.approach-quote-emph {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 24px rgba(0, 255, 156, 0.5);
  position: relative;
}

.approach-quote-emph::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.approach-quote-punch em {
  color: var(--accent-2);
  font-style: italic;
}

/* === STACK / SKILLS === */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stack-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.8rem;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stack-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: rgba(0, 255, 156, 0.03);
}

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

.stack-icon {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stack-card h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.stack-card-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-list li {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--text-dim);
}

/* === EXPERIENCE / TIMELINE === */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--accent) 0%,
    var(--line-bright) 30%,
    var(--line-bright) 70%,
    transparent 100%);
}

.exp-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 2rem;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.exp-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--accent);
  animation: pulse 2s infinite;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.exp-title {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.exp-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  white-space: nowrap;
}

.exp-company {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.exp-company .sep {
  color: var(--accent);
  margin: 0 0.6rem;
}

.exp-projects {
  display: grid;
  gap: 1.5rem;
}

.exp-project {
  background: var(--panel);
  border-left: 2px solid var(--line-bright);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.3s;
}

.exp-project:hover { border-left-color: var(--accent); }

.exp-project-title {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.exp-project ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.exp-project ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.exp-project ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(0,255,156,0.02) 100%);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 255, 156, 0.14),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.project-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 255, 156, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.project-card h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.project-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-features {
  list-style: none;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-features li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.project-features li::before {
  content: '↳';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line-bright);
  position: relative;
  z-index: 1;
}

.project-tech span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-2);
}

.project-tech span::after {
  content: '/';
  color: var(--text-faint);
  margin-left: 0.4rem;
}

.project-tech span:last-child::after { content: ''; }

/* === WORKS / LIVE PROJECTS === */
.works-intro {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line-bright);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.work-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 255, 156, 0.10),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,255,156,0.15);
}

.work-card:hover::after { opacity: 1; }

.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 255, 156, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.work-badge.work-badge-soft {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line-bright);
}

.work-arrow {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s;
  line-height: 1;
}

.work-card:hover .work-arrow {
  transform: translate(4px, -4px);
}

.work-card.work-card-static {
  cursor: default;
}

.work-card.work-card-static:hover {
  transform: none;
  border-color: var(--line-bright);
  box-shadow: none;
}

.work-card.work-card-static:hover::after { opacity: 0; }
.work-card.work-card-static:hover .work-domain { color: var(--text); }
.work-card.work-card-static:hover .work-arrow { transform: none; }

.work-card.work-card-static .work-arrow {
  color: var(--text-faint);
  font-size: 1.1rem;
}

.work-domain {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-all;
  line-height: 1.3;
}

.work-card:hover .work-domain {
  color: var(--accent);
}

.work-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.work-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  color: var(--text-dim);
}

.work-card.work-card-featured {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(0,255,156,0.04) 100%);
  border-color: var(--line-bright);
  grid-column: span 2;
}

.work-card.work-card-featured .work-domain {
  font-size: 1.5rem;
}

.work-modules {
  background: rgba(0, 255, 156, 0.025);
  border: 1px dashed var(--line-bright);
  border-radius: 4px;
  padding: 1rem 1.1rem 0.9rem;
}

.work-modules-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line-bright);
}

.work-modules-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.work-modules-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.work-modules-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 255, 156, 0.08);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.work-modules-list li strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.work-modules-list li p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 720px) {
  .work-card.work-card-featured { grid-column: span 1; }
  .work-card.work-card-featured .work-domain { font-size: 1.2rem; }
  .work-modules-list { grid-template-columns: 1fr; }
}

/* === CERTIFICATES === */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.cert-item {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.cert-item:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 156, 0.03);
  transform: translateX(4px);
}

.cert-check {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cert-name {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.cert-issuer {
  color: var(--text-faint);
  font-size: 0.72rem;
}

/* === CONTACT === */
.contact-section {
  text-align: center;
  padding: 8rem 2.5rem;
  max-width: 900px;
}

.contact-meta {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.contact-headline {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.contact-headline em {
  color: var(--accent);
  font-style: italic;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,156,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

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

.contact-link:hover::before { transform: translateX(100%); }

.contact-link .arrow {
  color: var(--accent);
  transition: transform 0.3s;
}

.contact-link:hover .arrow { transform: translate(4px, -4px); }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem;
  max-width: 1400px;
  margin: 4rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}

footer .built {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

footer .built::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* === WHATSAPP FLOATING BUTTON === */
.wa-float {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0,0,0,0.4);
}

.wa-float:active {
  transform: translateY(-1px) scale(1.02);
}

.wa-icon {
  width: 32px;
  height: 32px;
  fill: #fff;
  position: relative;
  z-index: 2;
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: 1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--line-bright);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 880px) {
  .wa-float {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 54px;
    height: 54px;
  }
  .wa-icon { width: 28px; height: 28px; }
  .wa-tooltip { display: none; }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION HEADER ACCENT LINE DRAW === */
.section-header {
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 156, 0.4);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal.visible .section-header::after { width: 100%; }

/* === STAGGER REVEAL FOR GRID CARDS === */
.reveal .stack-grid > *,
.reveal .projects-grid > *,
.reveal .works-grid > *,
.reveal .approach-steps > *,
.reveal .certs-grid > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .stack-grid > *,
.reveal.visible .projects-grid > *,
.reveal.visible .works-grid > *,
.reveal.visible .approach-steps > *,
.reveal.visible .certs-grid > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible .stack-grid > *:nth-child(1),
.reveal.visible .projects-grid > *:nth-child(1),
.reveal.visible .works-grid > *:nth-child(1),
.reveal.visible .approach-steps > *:nth-child(1),
.reveal.visible .certs-grid > *:nth-child(1) { transition-delay: 0.10s; }

.reveal.visible .stack-grid > *:nth-child(2),
.reveal.visible .projects-grid > *:nth-child(2),
.reveal.visible .works-grid > *:nth-child(2),
.reveal.visible .approach-steps > *:nth-child(2),
.reveal.visible .certs-grid > *:nth-child(2) { transition-delay: 0.18s; }

.reveal.visible .stack-grid > *:nth-child(3),
.reveal.visible .projects-grid > *:nth-child(3),
.reveal.visible .works-grid > *:nth-child(3),
.reveal.visible .approach-steps > *:nth-child(3),
.reveal.visible .certs-grid > *:nth-child(3) { transition-delay: 0.26s; }

.reveal.visible .stack-grid > *:nth-child(4),
.reveal.visible .projects-grid > *:nth-child(4),
.reveal.visible .works-grid > *:nth-child(4),
.reveal.visible .approach-steps > *:nth-child(4),
.reveal.visible .certs-grid > *:nth-child(4) { transition-delay: 0.34s; }

.reveal.visible .stack-grid > *:nth-child(5),
.reveal.visible .projects-grid > *:nth-child(5),
.reveal.visible .works-grid > *:nth-child(5),
.reveal.visible .approach-steps > *:nth-child(5),
.reveal.visible .certs-grid > *:nth-child(5) { transition-delay: 0.42s; }

.reveal.visible .stack-grid > *:nth-child(6),
.reveal.visible .projects-grid > *:nth-child(6),
.reveal.visible .works-grid > *:nth-child(6),
.reveal.visible .certs-grid > *:nth-child(6) { transition-delay: 0.50s; }

.reveal.visible .stack-grid > *:nth-child(7),
.reveal.visible .projects-grid > *:nth-child(7),
.reveal.visible .works-grid > *:nth-child(7),
.reveal.visible .certs-grid > *:nth-child(7) { transition-delay: 0.58s; }

.reveal.visible .stack-grid > *:nth-child(8),
.reveal.visible .projects-grid > *:nth-child(8),
.reveal.visible .works-grid > *:nth-child(8),
.reveal.visible .certs-grid > *:nth-child(8) { transition-delay: 0.66s; }

.reveal.visible .certs-grid > *:nth-child(9) { transition-delay: 0.74s; }
.reveal.visible .certs-grid > *:nth-child(10) { transition-delay: 0.82s; }

/* === PAUSE HERO ANIMS UNTIL LOADER DONE === */
body:not(.is-loaded) .hero-meta,
body:not(.is-loaded) .hero h1,
body:not(.is-loaded) .hero-subtitle,
body:not(.is-loaded) .hero-tags,
body:not(.is-loaded) .hero-scroll,
body:not(.is-loaded) .hero-attribution {
  animation-play-state: paused;
}

/* === PAGE LOADER === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded { opacity: 0; visibility: hidden; }

.page-loader-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.page-loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 1rem;
}

.page-loader-window {
  background: var(--bg-2);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  width: min(420px, 92vw);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,156,0.08), 0 0 40px rgba(0,255,156,0.06);
  animation: loaderWindowIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loaderWindowIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.page-loader-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}

.page-loader-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.page-loader-dot-r { background: #ff5e5e; }
.page-loader-dot-y { background: #ffb454; }
.page-loader-dot-g { background: #4dd87a; }

.page-loader-title {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.page-loader-body {
  padding: 1.2rem 1.1rem 1.3rem;
  font-family: var(--mono);
}

.page-loader-line {
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.page-loader-prompt {
  color: var(--accent);
  margin-right: 0.3rem;
}

.page-loader-cursor {
  color: var(--accent);
  display: inline-block;
  animation: blink 0.8s infinite;
}

.page-loader-status {
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.page-loader-bar {
  width: min(280px, 92vw);
  height: 2px;
  background: var(--line-bright);
  overflow: hidden;
  position: relative;
}

.page-loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: loaderFill 1.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes loaderFill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  z-index: 101;
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.6);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* === CUSTOM CURSOR === */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 156, 0.7);
  transition: opacity 0.2s, transform 0.1s ease-out;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  opacity: 0.4;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
  background: rgba(0, 255, 156, 0.07);
  opacity: 0.7;
}

.cursor-ring.is-click {
  width: 20px;
  height: 20px;
  opacity: 1;
}

/* Hide on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

body.cursor-active { cursor: none; }
body.cursor-active a,
body.cursor-active button,
body.cursor-active .stack-card,
body.cursor-active .project-card,
body.cursor-active .work-card,
body.cursor-active .approach-step,
body.cursor-active .cert-item,
body.cursor-active .hero-tag,
body.cursor-active .wa-float,
body.cursor-active input,
body.cursor-active textarea { cursor: none; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring { display: none; }
  .page-loader { display: none; }
}

/* === CONTACT LINK — ALLOW WRAPPING === */
.contact-link {
  gap: 1rem;
}

.contact-link > span:first-child {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-link .arrow {
  flex-shrink: 0;
}

/* === RESPONSIVE — TABLET / MOBILE === */
@media (max-width: 880px) {
  nav { padding: 1rem 1.2rem; }
  .nav-logo { font-size: 0.78rem; }
  .nav-links { display: none; }
  .nav-status { font-size: 0.72rem; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-scroll { left: 1.5rem; }
  .hero-ascii { display: none; }

  section { padding: 4rem 1.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-header { flex-wrap: wrap; }
  .section-meta { margin-left: 0; width: 100%; }
  .exp-header { gap: 0.5rem; }
  .exp-title { font-size: 1.4rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .approach-quote { padding: 3rem 1.6rem 3rem; margin-top: 3rem; }
  .approach-quote-mark-open { top: 0.3rem; left: 0.8rem; }
  .approach-quote-mark-close { bottom: -1.6rem; right: 0.8rem; }
  .approach-quote-corner { width: 18px; height: 18px; }
  .approach-quote-divider { margin: 1.2rem auto; }
  .approach-steps { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.5rem; }
  .exp-item { padding-left: 1.5rem; }
  .exp-item::before { left: -1.95rem; }
  footer { flex-direction: column; text-align: center; }

  /* HUD brackets — smaller and positioned tighter on mobile */
  .hud-bracket { width: 44px; height: 44px; }
  .hud-bracket-tl,
  .hud-bracket-tr { top: 5.2rem; }
  .hud-bracket-tl,
  .hud-bracket-bl { left: 0.8rem; }
  .hud-bracket-tr,
  .hud-bracket-br { right: 0.8rem; }
  .hud-bracket-bl,
  .hud-bracket-br { bottom: 0.8rem; }

  /* Stats strip */
  .stats-strip { padding: 3rem 1.5rem; }
  .stats-strip-line-top { margin-bottom: 2rem; }
  .stats-strip-line-bottom { margin-top: 2rem; }

  /* Contact */
  .contact-section { padding: 5rem 1.5rem; }
  .contact-text { font-size: 1rem; }
  .contact-link {
    padding: 1.2rem 1.4rem;
    font-size: 0.82rem;
    gap: 0.8rem;
  }

  /* Footer minor */
  footer { padding: 2rem 1.5rem; gap: 0.6rem; }

  /* Ambient orbs — smaller blur to save GPU on mobile */
  .ambient-orb { filter: blur(70px); }
  .ambient-orb-1 { width: 360px; height: 360px; }
  .ambient-orb-2 { width: 440px; height: 440px; }

  /* WhatsApp button slightly inward */
  .wa-float { right: 1rem; bottom: 1rem; }
}

/* === SMALL PHONES === */
@media (max-width: 540px) {
  .hero { padding: 6.5rem 1.2rem 3.5rem; }
  .hero-meta {
    gap: 0.9rem;
    font-size: 0.72rem;
    margin-bottom: 1.5rem;
  }
  .hero-subtitle { margin: 1.2rem 0 2.5rem; }
  .hero-tags { gap: 0.4rem; }
  .hero-tag { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
  .hero-attribution { font-size: 0.78rem; margin-top: 0.9rem; }

  section { padding: 3.5rem 1.2rem; }

  .section-header { gap: 0.8rem; margin-bottom: 2.5rem; }
  .section-num { font-size: 0.75rem; }

  .stats-strip { padding: 2.5rem 1.2rem; }
  .stats-strip-inner { gap: 2rem; }
  .stat-num { font-size: 2.8rem; }
  .stat-num-infinity { font-size: 3.2rem; }
  .stat-label { font-size: 0.85rem; }
  .stat-sub { font-size: 0.65rem; }

  .about-side { padding-left: 1rem; }
  .about-text p:first-of-type::first-letter { font-size: 3rem; }

  .stack-card { padding: 1.4rem; }
  .stack-card h3 { font-size: 0.9rem; }
  .stack-card-desc { font-size: 0.82rem; }

  .approach-step { padding: 1.4rem 1.2rem 1.2rem; }
  .approach-step-body h3 { font-size: 1.25rem; }

  .work-card { padding: 1.3rem 1.2rem 1.1rem; }
  .work-domain { font-size: 1rem; }
  .work-card.work-card-featured .work-domain { font-size: 1.1rem; }
  .work-meta { font-size: 0.8rem; }
  .work-tags span { font-size: 0.64rem; padding: 0.16rem 0.45rem; }
  .work-modules { padding: 0.9rem 0.9rem 0.8rem; }
  .work-modules-title { font-size: 0.68rem; }
  .work-modules-list li strong { font-size: 0.78rem; }
  .work-modules-list li p { font-size: 0.72rem; }

  .project-card { padding: 1.6rem 1.4rem; }
  .project-card h3 { font-size: 1.5rem; }
  .project-card p { font-size: 0.88rem; }
  .project-features li { font-size: 0.74rem; }

  .cert-item { padding: 0.85rem 1rem; }
  .cert-name { font-size: 0.78rem; }
  .cert-issuer { font-size: 0.68rem; }

  .exp-title { font-size: 1.2rem; }
  .exp-company { font-size: 0.78rem; }
  .exp-project { padding: 1rem 1.1rem; }
  .exp-project ul { font-size: 0.84rem; }
  .exp-project-title { font-size: 0.8rem; }

  .contact-section { padding: 4rem 1.2rem; }
  .contact-meta { font-size: 0.75rem; margin-bottom: 1.5rem; }
  .contact-text { font-size: 0.92rem; margin-bottom: 2rem; }
  .contact-link {
    padding: 1rem 1.1rem;
    font-size: 0.76rem;
    gap: 0.6rem;
  }
  .contact-link > span:first-child {
    line-height: 1.5;
  }

  /* HUD brackets even smaller on tiny screens */
  .hud-bracket { width: 32px; height: 32px; }
  .hud-bracket-tl,
  .hud-bracket-tr { top: 4.8rem; }

  /* Hero attribution wrap-friendly */
  .hero-attribution { flex-wrap: wrap; }

  /* Footer */
  footer { font-size: 0.7rem; padding: 1.6rem 1.2rem; }

  /* WhatsApp */
  .wa-float { width: 50px; height: 50px; }
  .wa-icon { width: 26px; height: 26px; }
}
