/* ============================================================
   CHAKSHU JAIN — 3D PORTFOLIO
   Dark, premium, WebGL-first. Emerald on deep space.
   ============================================================ */

:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --ink: #e8ecf1;
  --ink-dim: #8b93a3;
  --ink-faint: #4a5160;
  --accent: #00ffa3;
  --accent-2: #22d3ee;
  --gold: #f5c451;
  --line: rgba(232, 236, 241, 0.08);
  --card: rgba(16, 18, 28, 0.55);
  --card-hover: rgba(22, 26, 40, 0.75);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #04110b; }

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

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

/* ============ WEBGL CANVAS + OVERLAYS ============ */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(3, 3, 6, 0.75) 100%);
}

.aurora {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}
.aurora--1 {
  width: 60vw; height: 44vh;
  top: -14vh; left: 8vw;
  background: radial-gradient(closest-side, rgba(0, 255, 163, 0.09), transparent);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 50vw; height: 40vh;
  bottom: -12vh; right: 2vw;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.07), transparent);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-6vw, -5vh) scale(0.9); } }

.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

main, .footer, .ticker { position: relative; z-index: 3; }

/* ============ PRELOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
  /* pure-CSS safety net: never trap the page behind the loader */
  animation: loaderKill 0.6s ease 4s forwards;
}
.loader.done { opacity: 0; visibility: hidden; }
@keyframes loaderKill { to { opacity: 0; visibility: hidden; } }
.loader__inner { display: grid; justify-items: center; gap: 1.4rem; }
.loader__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse { 50% { opacity: 0.4; transform: scale(0.96); } }
.loader__bar {
  width: 220px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.loader__pct { font-size: 0.8rem; color: var(--ink-dim); letter-spacing: 0.2em; }
.loader__hint { font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.3em; }

/* ============ CURSOR ============ */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 255, 163, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: rgba(0, 255, 163, 0.9);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 8, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #04110b;
  background: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(0, 255, 163, 0.35);
}
.nav__logo-text { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--ink-dim); }
.blink { animation: blink 1.2s steps(2) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  transition: color 0.3s;
  position: relative;
}
.nav__links a .mono { font-size: 0.6rem; color: var(--accent); opacity: 0.7; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__cta {
  color: var(--accent);
  border: 1px solid rgba(0, 255, 163, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover {
  background: var(--accent);
  color: #04110b;
  box-shadow: 0 0 32px rgba(0, 255, 163, 0.45);
}
.nav__status {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 51;
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.2rem, 6vw, 6rem) 6rem;
  position: relative;
}
.hero__tag {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7.2vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 20%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 560px;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 2.8rem;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.9rem;
  border-radius: 99px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: #04110b;
  box-shadow: 0 0 40px rgba(0, 255, 163, 0.25);
}
.btn--primary:hover { box-shadow: 0 0 64px rgba(0, 255, 163, 0.55); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(0, 255, 163, 0.5); color: var(--accent); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  width: min(100%, 880px);
}
.stat {
  background: rgba(8, 9, 14, 0.6);
  backdrop-filter: blur(10px);
  padding: 1.3rem 1.5rem;
  transition: background 0.3s;
}
.stat:hover { background: rgba(0, 255, 163, 0.05); }
.stat dt { font-size: 0.58rem; letter-spacing: 0.22em; color: var(--ink-faint); margin-bottom: 0.5rem; }
.stat dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  color: var(--ink);
}
.stat .prefix { color: var(--accent); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 64px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollHint 1.8s var(--ease-out) infinite;
}
@keyframes scrollHint { to { top: 110%; } }

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  background: rgba(5, 5, 8, 0.5);
  backdrop-filter: blur(6px);
}
.ticker__track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  align-items: center;
}
.ticker__track i { color: var(--accent); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  padding: clamp(6rem, 12vh, 9rem) clamp(1.2rem, 6vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
}
.section__idx {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  border: 1px solid rgba(0, 255, 163, 0.3);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section__note {
  flex-basis: 100%;
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about__photo { position: relative; transform-style: preserve-3d; }
.about__photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform: translateZ(30px);
}
.about__photo-frame img { width: 100%; filter: saturate(1.05) contrast(1.02); }
.about__photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 255, 163, 0.15), transparent 40%, transparent 70%, rgba(34, 211, 238, 0.15));
  mix-blend-mode: screen;
  pointer-events: none;
}
.about__photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 255, 163, 0.16), transparent 70%);
  z-index: -1;
  filter: blur(12px);
}
.about__badge {
  position: absolute;
  bottom: -14px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  background: rgba(5, 8, 10, 0.9);
  border: 1px solid rgba(0, 255, 163, 0.3);
  border-radius: 99px;
  padding: 0.6rem 1.1rem;
  backdrop-filter: blur(10px);
  transform: translateZ(60px);
  white-space: nowrap;
}
.about__body p { color: var(--ink-dim); margin-bottom: 1.4rem; max-width: 640px; }
.about__lede { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink) !important; line-height: 1.5; }
.about__lede strong { color: var(--accent); font-weight: 600; }
.about__body em { color: var(--ink); font-style: italic; }
.about__body strong { color: var(--ink); }
.about__facts {
  list-style: none;
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.about__facts li {
  display: flex;
  gap: 1.6rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}
.about__facts .mono {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  min-width: 64px;
}

/* ============ TIMELINE / JOBS ============ */
.timeline { display: grid; gap: 1.2rem; }
.job {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 2.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.job:hover {
  border-color: rgba(0, 255, 163, 0.35);
  background: var(--card-hover);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 48px rgba(0, 255, 163, 0.06);
}
.job__period {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.job__period i { color: var(--accent); font-style: normal; }
.job__now { color: var(--accent); }
.job__main h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.job__main sup { font-size: 0.55rem; color: var(--accent); letter-spacing: 0.15em; }
.job__org { color: var(--accent-2); font-weight: 500; margin-bottom: 0.9rem; }
.job__org span { color: var(--ink-faint); font-weight: 400; }
.job__main p { color: var(--ink-dim); font-size: 0.95rem; max-width: 720px; margin-bottom: 1.1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
  transition: border-color 0.3s, color 0.3s;
}
.job:hover .tags span, .sys:hover .tags span, .build:hover .tags span {
  border-color: rgba(0, 255, 163, 0.3);
  color: var(--ink);
}

/* ============ SYSTEMS ============ */
.systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.sys {
  position: relative;
  padding: 2.4rem 2.2rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.sys:hover {
  border-color: rgba(0, 255, 163, 0.35);
  background: var(--card-hover);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 64px rgba(0, 255, 163, 0.07);
}
.sys__no {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.24em;
  margin-bottom: 1.4rem;
}
.sys h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 0.8rem;
}
.sys p { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 1.4rem; }
.sys__stats {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
}
.sys__stats i { color: var(--ink-faint); font-style: normal; font-size: 0.62rem; font-weight: 400; letter-spacing: 0.1em; }
.sys__glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 163, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.sys:hover .sys__glow { opacity: 1; }

/* ============ BUILDS ============ */
.builds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.build {
  display: block;
  padding: 2rem 1.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.build:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--card-hover);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 64px rgba(34, 211, 238, 0.07);
}
.build__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.build__lang { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--py { background: #f5c451; }
.dot--ts { background: #3b82f6; }
.build__arrow {
  font-size: 1rem;
  color: var(--ink-faint);
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.build:hover .build__arrow { transform: translate(4px, -4px); color: var(--accent-2); }
.build h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}
.build p { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 1.3rem; }

/* ============ DATASHEET / RECORDS ============ */
.datasheet { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.spec {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1.3rem 1.8rem;
  background: rgba(8, 9, 14, 0.6);
  backdrop-filter: blur(10px);
  align-items: baseline;
  transition: background 0.3s;
}
.spec:hover { background: rgba(0, 255, 163, 0.04); }
.spec__k { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--accent); }
.spec__v { color: var(--ink); font-size: 0.98rem; }

.records {
  list-style: none;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.records li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.records li:hover { border-color: rgba(0, 255, 163, 0.3); }
.rec__badge {
  flex: none;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: #04110b;
  background: var(--accent);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-weight: 700;
}

/* ============ CONTACT ============ */
.section--contact {
  min-height: 90svh;
  display: grid;
  place-items: center;
  text-align: center;
}
.contact__tag {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 3rem;
}
.contact__title .line { display: block; overflow: hidden; }
.contact__title .word { display: inline-block; }
.contact__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 20%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 1.1rem 2.4rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.contact__email span { color: var(--accent); transition: transform 0.35s var(--ease-out); }
.contact__email:hover {
  border-color: rgba(0, 255, 163, 0.5);
  color: var(--accent);
  box-shadow: 0 0 80px rgba(0, 255, 163, 0.15);
}
.contact__email:hover span { transform: translateX(8px); }
.contact__links {
  margin-top: 2.6rem;
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact__links a {
  font-size: 0.9rem;
  color: var(--ink-dim);
  transition: color 0.3s;
  will-change: transform;
}
.contact__links a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.2rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(8px);
}

/* ============ REVEAL ============
   Content is visible by default; GSAP animates FROM hidden.
   If JS or the CDN fails, everything still renders. */

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav__status { display: none; }
  .systems { grid-template-columns: 1fr; }
  .builds { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 5, 8, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.4rem 1.4rem;
    transform: translateY(-110%);
    transition: transform 0.5s var(--ease-out);
    z-index: 49;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 0.9rem 0; font-size: 1.05rem; width: 100%; }
  .nav__links .nav__cta { margin-top: 0.8rem; text-align: center; justify-content: center; display: inline-flex; width: auto; }
  .nav__burger { display: flex; }

  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
  .job { grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem 1.4rem; }
  .builds { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.1rem 1.3rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
