/* ============================================================
   Pavan Kumar L — Personal Website
   Editorial dark theme · Fraunces / Inter / JetBrains Mono
   ============================================================ */

:root {
  --bg: #0a0a0e;
  --bg-alt: #0e0e14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #edebe6;
  --text-dim: #a8a5ad;
  --text-faint: #737078;
  --accent: #e8b45a;
  --accent-2: #e0825f;
  --accent-soft: rgba(232, 180, 90, 0.12);
  --grad: linear-gradient(120deg, #e8b45a, #e0825f);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(232, 180, 90, 0.28); color: #fff; }

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.center { text-align: center; }

/* ---------- typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 450; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
}

h2 em, .contact-title em, .hero-role em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 640px;
  margin-top: 18px;
  font-size: 1.02rem;
}

/* ---------- progress bar ---------- */

.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width 0.1s linear;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: #14100a;
  background: var(--grad);
  box-shadow: 0 4px 18px rgba(232, 180, 90, 0.25);
}
.brand-mark.small { width: 28px; height: 28px; font-size: 0.8rem; border-radius: 8px; display: inline-grid; vertical-align: -8px; margin-right: 8px; }

.brand-name { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.25s;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(10, 10, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 12px 24px 28px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  cursor: pointer;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-solid {
  background: var(--grad);
  color: #171006;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(232, 150, 80, 0.28);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232, 150, 80, 0.4); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(232, 180, 90, 0.5); background: var(--accent-soft); transform: translateY(-2px); }

.btn-small { padding: 9px 20px; font-size: 0.85rem; }
.btn-big { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-a {
  width: 520px; height: 520px;
  top: -140px; right: -80px;
  background: radial-gradient(circle, rgba(232, 180, 90, 0.22), transparent 65%);
}
.orb-b {
  width: 460px; height: 460px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle, rgba(224, 130, 95, 0.15), transparent 65%);
  animation-delay: -7s;
}
.orb-v {
  width: 540px; height: 540px;
  top: 30%; left: 34%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.09), transparent 65%);
  animation-delay: -4s;
}
.orb-c {
  width: 600px; height: 400px;
  bottom: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 180, 90, 0.14), transparent 65%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.hero-inner { max-width: 900px; }

/* ---------- hero terminal ---------- */

.hero-visual { position: relative; }

.ops-panel {
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(rgba(13, 13, 19, 0.92), rgba(13, 13, 19, 0.92)) padding-box,
    linear-gradient(150deg,
      rgba(232, 180, 90, 0.45), rgba(255, 255, 255, 0.07) 38%,
      rgba(124, 92, 255, 0.28) 72%, rgba(224, 130, 95, 0.4)) border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(232, 180, 90, 0.07);
  overflow: hidden;
  font-family: var(--font-mono);
}

.ops-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.028);
}
.ops-bar i { width: 11px; height: 11px; border-radius: 50%; }
.tb-r { background: #ff5f57; }
.tb-y { background: #febc2e; }
.tb-g { background: #28c840; }
.ops-title {
  margin-left: 10px;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.ops-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: #6ee7a0;
}
.ops-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6ee7a0;
  animation: pulse 2s infinite;
}

.ops-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.ops-stat {
  padding: 14px 8px 12px;
  text-align: center;
}
.ops-stat + .ops-stat { border-left: 1px solid var(--line-soft); }
.ops-stat b {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ops-stat span {
  display: block;
  margin-top: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ops-mesh {
  padding: 10px 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.ops-mesh svg { display: block; width: 100%; height: auto; }
.mn {
  fill: #15151d;
  stroke: rgba(232, 180, 90, 0.65);
  stroke-width: 1.3;
}
.mn-hub {
  fill: rgba(232, 180, 90, 0.16);
  stroke: var(--accent);
  stroke-width: 1.4;
}
.mn-hub-ring {
  fill: none;
  stroke: rgba(232, 180, 90, 0.3);
  stroke-width: 1;
  transform-origin: 170px 66px;
  animation: hubPulse 3s ease-in-out infinite;
}
@keyframes hubPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.25; }
}
.mn-label {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}
.mesh-orbit {
  transform-origin: 170px 66px;
  animation: orbitSpin 16s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

.ops-fleet { padding: 12px 18px; }
.ops-row {
  display: grid;
  grid-template-columns: 76px 84px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.72rem;
}
.ops-name { color: var(--text); }
.ops-task { color: var(--text-faint); }
.ops-track {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.ops-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: taskProgress 5s ease-in-out infinite alternate;
}
.ops-fill.f1 { width: 78%; }
.ops-fill.f2 { width: 58%; animation-duration: 6.5s; animation-delay: -2s; }
.ops-fill.f3 {
  width: 22%;
  background: linear-gradient(90deg, #8a6a3a, #6b5230);
  animation-duration: 9s;
}
@keyframes taskProgress {
  from { transform: scaleX(0.92); transform-origin: left; }
  to { transform: scaleX(1.06); transform-origin: left; }
}

.pill {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.pill-ok { color: #6ee7a0; border-color: rgba(110, 231, 160, 0.35); background: rgba(110, 231, 160, 0.07); }
.pill-warn { color: #febc2e; border-color: rgba(254, 188, 46, 0.35); background: rgba(254, 188, 46, 0.07); }

.ops-log {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.72rem;
  min-height: 44px;
}
.log-prefix { color: var(--accent); }
.log-prefix.ok { color: #6ee7a0; }
#opsLog { color: var(--text-dim); white-space: nowrap; overflow: hidden; }
#opsLog.ok { color: #6ee7a0; }
#opsLog.cmd { color: var(--text); }

.term-caret {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  animation: caretBlink 1s steps(2) infinite;
  flex-shrink: 0;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 34px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6ee7a0;
  box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1.02;
  font-weight: 480;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  background: linear-gradient(110deg,
    #f6f4ef 0%, #edebe6 38%,
    #e8b45a 48%, #edebe6 58%,
    #f6f4ef 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--text-dim);
  margin-bottom: 26px;
}
.hero-role em { font-size: 0.9em; }

.hero-lede {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 38px;
}
.hero-lede strong { color: var(--text); font-weight: 500; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.45;
  display: block;
  margin-top: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollNudge 1.8s infinite;
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
}

/* ---------- marquee ---------- */

.marquee {
  border-block: 1px solid var(--line-soft);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: 0.6rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: 120px 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { margin-bottom: 64px; position: relative; }

.section-head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -54px;
  right: -10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(7rem, 15vw, 12.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.065);
  pointer-events: none;
  user-select: none;
}

/* ---------- cursor glow ---------- */

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 90, 0.055), transparent 62%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- card spotlight ---------- */

.side-card, .tl-card, .feature-card, .project-card, .skill-group, .award-card {
  position: relative;
  overflow: hidden;
}
.side-card::after, .tl-card::after, .feature-card::after,
.project-card::after, .skill-group::after, .award-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 180, 90, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.side-card:hover::after, .tl-card:hover::after, .feature-card:hover::after,
.project-card:hover::after, .skill-group:hover::after, .award-card:hover::after {
  opacity: 1;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-bottom: 22px;
}
.about-copy strong { color: var(--text); font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: var(--surface);
  transition: border-color 0.25s, color 0.25s;
}
.chip:hover { border-color: rgba(232, 180, 90, 0.45); color: var(--text); }

.about-side { display: flex; flex-direction: column; gap: 16px; }

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.side-card:hover { border-color: rgba(232, 180, 90, 0.35); background: var(--surface-hover); transform: translateY(-3px); }

.side-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.side-value { margin-top: 8px; font-weight: 500; line-height: 1.5; }
.side-value span { color: var(--text-faint); font-weight: 400; font-size: 0.9rem; }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 219px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--line) 30%, var(--line) 100%);
  opacity: 0.5;
}

.tl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 214px;
  top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(232, 180, 90, 0.5);
}

.tl-meta {
  text-align: right;
  padding-top: 4px;
}
.tl-period {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tl-place {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 6px;
}

.tl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 32px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tl-card:hover {
  border-color: rgba(232, 180, 90, 0.35);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.tl-card h3 { font-size: 1.45rem; }
.tl-role { color: var(--accent); font-size: 0.92rem; font-weight: 500; margin-top: 4px; }
.tl-desc { color: var(--text-dim); margin-top: 14px; }

.tl-list {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tl-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.tl-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------- projects ---------- */

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.feature-card {
  position: relative;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 4px);
  padding: 38px 36px;
  background:
    linear-gradient(#101018, #101018) padding-box,
    linear-gradient(135deg,
      rgba(232, 180, 90, 0.55), rgba(255, 255, 255, 0.08) 40%,
      rgba(124, 92, 255, 0.25) 70%, rgba(224, 130, 95, 0.5)) border-box;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 44px rgba(232, 180, 90, 0.09);
}

.feature-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 180, 90, 0.35);
  color: var(--accent);
  margin-bottom: 22px;
}
.feature-badge.alt { background: rgba(224, 130, 95, 0.12); border-color: rgba(224, 130, 95, 0.4); color: #eda184; }

.feature-card h3 { font-size: 1.7rem; margin-bottom: 14px; }
.feature-card > p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 18px; }

.feature-points {
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text);
}
.feature-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link .arr { transition: transform 0.25s var(--ease); }
.card-link:hover .arr { transform: translateX(4px); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover {
  border-color: rgba(232, 180, 90, 0.35);
  background: var(--surface-hover);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.project-card h4 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
}
.project-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* ---------- skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px 34px;
}
.skill-group h3 {
  font-size: 1.3rem;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.skill {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: 7px;
  margin-bottom: 18px;
}
.skill:last-child { margin-bottom: 0; }

.skill-name { font-size: 0.9rem; color: var(--text-dim); }
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.skill-bar {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.skill-bar b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--grad);
  transition: width 1.2s var(--ease);
}

/* ---------- awards ---------- */

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.award-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.award-card:hover {
  border-color: rgba(232, 180, 90, 0.4);
  background: var(--surface-hover);
  transform: translateY(-5px);
}
.award-icon { font-size: 2.2rem; display: block; margin-bottom: 18px; }
.award-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.award-card p { color: var(--text-faint); font-size: 0.88rem; }

/* ---------- contact ---------- */

.contact { overflow: hidden; padding-bottom: 140px; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }

.contact-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 20px; }
.contact-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.04rem;
}
.contact .hero-cta { justify-content: center; }

.contact-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--text-faint);
}
.contact-links a { color: var(--text-dim); transition: color 0.25s; }
.contact-links a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.footer-note { color: var(--text-faint); }
.footer-tag { font-style: italic; font-family: var(--font-display); color: var(--text-dim); margin-left: 6px; }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .pulse-dot, .scroll-hint span, .marquee-track,
  .hero-title, .term-caret, .ops-live i,
  .mn-hub-ring, .mesh-orbit, .ops-fill { animation: none; }
  .skill-bar b { transition: none; }
  .cursor-glow, .mesh-pulses { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .section { padding: 90px 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
  .section-head[data-num]::before { font-size: 7rem; top: -40px; right: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-side { flex-direction: row; flex-wrap: wrap; }
  .about-side .side-card { flex: 1 1 220px; }

  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: 14px; padding-left: 34px; }
  .tl-item::before { left: 0; }
  .tl-meta { text-align: left; padding-top: 0; display: flex; gap: 14px; align-items: baseline; }

  .featured-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .brand-name { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  .project-grid { grid-template-columns: 1fr; }
  .tl-card { padding: 24px 22px; }
  .skill-group { padding: 26px 22px; }
  .feature-card { padding: 30px 26px; }
  .ops-row { grid-template-columns: 64px 70px 1fr auto; gap: 9px; font-size: 0.66rem; }
  .ops-stat b { font-size: 0.92rem; }
  .ops-stat span { font-size: 0.52rem; }
  .section-head[data-num]::before { font-size: 5rem; top: -30px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
