/* ========= Base ========= */
:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --fg: #f4f1ea;
  --muted: #8a8a92;
  --accent: #c8ff3e;
  --line: rgba(244, 241, 234, 0.12);
  --ease: cubic-bezier(0.65, 0.05, 0.1, 1);
}

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

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

html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #0a0a0c; }

/* ========= WebGL + Noise ========= */
.webgl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main { position: relative; z-index: 2; }

/* ========= Cursor ========= */
.cursor, .cursor-follow {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor { width: 7px; height: 7px; background: var(--accent); }
.cursor-follow {
  width: 38px; height: 38px;
  border: 1px solid rgba(244, 241, 234, 0.4);
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
}
.cursor-follow.is-active {
  width: 64px; height: 64px;
  background: rgba(200, 255, 62, 0.12);
  border-color: var(--accent);
}
@media (hover: none) { .cursor, .cursor-follow { display: none; } body { cursor: auto; } }

/* ========= Preloader — terminal boot ========= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1.2rem, 4vw, 3rem);
}
.boot { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; max-width: 640px; }
.boot__bar { font-size: 0.8rem; letter-spacing: 0.03em; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.boot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 1s steps(2) infinite; }
.boot__sep { opacity: 0.4; }
.boot__log { font-size: clamp(0.72rem, 1.4vw, 0.9rem); line-height: 1.9; min-height: 14em; color: var(--fg); }
.boot__log .ok { color: var(--accent); }
.boot__log .dim { color: var(--muted); }
.boot__log .cursor-blink { background: var(--accent); color: var(--bg); animation: blink 1s steps(2) infinite; }
.boot__progress { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.boot__progress-bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.boot__progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.boot__count { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--accent); min-width: 3.5em; text-align: right; }
.boot__access { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--accent); margin-top: 1.2rem; opacity: 0; }
.boot__access i { font-style: normal; animation: blink 0.9s steps(2) infinite; }
.boot__name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  width: 100%;
  text-align: right;
}
.boot__name .line { display: block; overflow: hidden; }
.boot__name .line span { display: block; transform: translateY(110%); }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0.15; } }

/* ========= Header ========= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
  z-index: 100;
  mix-blend-mode: difference;
}
.header__logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.header__logo span { color: var(--accent); }
.header__nav { display: flex; gap: 2.2rem; }
.header__nav a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width .4s var(--ease);
}
.header__nav a:hover::after { width: 100%; }
.header__cta {
  font-size: 0.82rem;
  border: 1px solid var(--fg);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}
.header__cta span { position: relative; z-index: 1; transition: color .4s var(--ease); }
.header__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.header__cta:hover::before { transform: translateY(0); }
.header__cta:hover span { color: var(--bg); }

.burger { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: none; }
.burger i { width: 26px; height: 2px; background: var(--fg); transition: transform .4s var(--ease); display: block; }
.burger.is-open i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open i:nth-child(2) { transform: translateY(-0px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem clamp(1.2rem, 6vw, 3rem);
  transform: translateY(-100%);
  transition: transform .7s var(--ease);
}
.menu.is-open { transform: translateY(0); }
.menu a {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 4rem);
  letter-spacing: -0.02em;
}

/* ========= Layout helpers ========= */
section { padding: clamp(5rem, 12vh, 11rem) clamp(1.2rem, 5vw, 5rem); position: relative; }
.about__index {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ========= HERO ========= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 22vh;
  padding-bottom: 0;
}
.hero__meta {
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__meta-item { display: flex; align-items: center; gap: 0.6rem; }
.hero__meta-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 16vw, 16rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; }
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}
.hero__desc { max-width: 32ch; font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--muted); line-height: 1.5; }
.hero__scroll { display: flex; align-items: center; gap: 0.8rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hero__scroll-line { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.hero__marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; overflow: hidden; white-space: nowrap; margin: 0 calc(-1 * clamp(1.2rem, 5vw, 5rem)); }
.marquee { display: inline-flex; will-change: transform; }
.marquee span { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.2rem, 3vw, 2.4rem); letter-spacing: 0.02em; padding-right: 1rem; }

/* ========= ABOUT ========= */
.about__text {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: clamp(3rem, 8vh, 7rem);
}
.about__text .word { display: inline-block; }
.about__text .accent { color: var(--accent); }
/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(1.8rem, 4vh, 3rem) 0; margin-bottom: clamp(3rem, 7vh, 6rem); }
.stat__num { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; }
.stat__num i { font-size: 0.4em; font-style: normal; color: var(--accent); margin-left: 0.1em; }
.stat__label { display: block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.about__card { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.about__card-num { font-size: 0.8rem; color: var(--accent); letter-spacing: 0.05em; }
.about__card h3 { font-family: "Syne", sans-serif; font-weight: 700; font-size: 1.4rem; margin: 0.8rem 0; }
.about__card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ========= EXPERTISE ========= */
.expertise__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.expertise__lead { max-width: 34ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; }
.stack { list-style: none; border-top: 1px solid var(--line); }
.stack__row {
  display: grid;
  grid-template-columns: 80px 1fr auto 40px;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 3.5vh, 2.4rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: padding-left .5s var(--ease), color .5s var(--ease);
}
.stack__row::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0; }
.stack__row > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.stack__row:hover::before { transform: translateY(0); }
.stack__row:hover { padding-left: 1.5rem; }
.stack__row:hover > * { color: var(--bg); }
.stack__num { font-size: 0.8rem; color: var(--muted); }
.stack__name { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
.stack__tag { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stack__arrow { font-size: 1.4rem; }

/* Certifications */
.certs { margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.certs__title { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 1.5rem; }
.certs__grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cert { font-size: 0.9rem; padding: 0.7rem 1.2rem; border: 1px solid var(--line); border-radius: 40px; color: var(--fg); transition: border-color .3s var(--ease), color .3s var(--ease); }
.cert:hover { border-color: var(--accent); }
.cert i { font-style: normal; color: var(--accent); }
.cert--live { border-color: rgba(200,255,62,0.4); }

/* ========= EXPERIENCE ========= */
.timeline { list-style: none; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: clamp(1.8rem, 4vh, 3rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl__year { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; display: flex; flex-direction: column; }
.tl__year i { font-style: normal; font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0.05em; margin-top: 0.2rem; }
.tl__body h3 { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: -0.01em; }
.tl__org { display: block; color: var(--accent); font-size: 0.9rem; margin: 0.4rem 0 1rem; letter-spacing: 0.02em; }
.tl__body p { color: var(--muted); font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.6; max-width: 60ch; }

/* ========= WORK — horizontal gallery ========= */
.work { padding: 0; overflow: hidden; }
.work__head { padding: clamp(5rem, 12vh, 11rem) clamp(1.2rem, 5vw, 5rem) clamp(2rem, 5vh, 4rem); }
.work__title { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.6rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.03em; margin: 1.5rem 0; }
.work__intro { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.6; }
.work__intro em { color: var(--accent); font-style: normal; }

.hpin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.htrack { display: flex; gap: 1.4rem; padding: 0 clamp(1.2rem, 5vw, 5rem); width: max-content; will-change: transform; }
.project {
  position: relative;
  flex: 0 0 clamp(280px, 34vw, 460px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem;
  background: rgba(255,255,255,0.015);
  transition: border-color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: clamp(360px, 52vh, 480px);
  overflow: hidden;
}
.project::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(200,255,62,0.10), transparent 60%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.project:hover { border-color: rgba(200,255,62,0.45); transform: translateY(-6px); }
.project:hover::after { opacity: 1; }
.project__idx { font-family: "Syne", sans-serif; font-weight: 800; font-size: 0.9rem; color: var(--accent); letter-spacing: 0.05em; }
.project__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.project__top h3 { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.08; }
.project__top span { font-size: 0.72rem; color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }
.project p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; flex: 1; }
.project__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project__tags span { font-size: 0.72rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 30px; color: var(--fg); }
.project--wide { flex-basis: clamp(280px, 46vw, 640px); }
.project p a { color: var(--accent); border-bottom: 1px solid rgba(200,255,62,0.4); }
.project p a:hover { border-color: var(--accent); }

/* ========= CONTACT ========= */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; }
.contact__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact__pre { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.5rem; }
.contact__title { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(2.8rem, 13vw, 13rem); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; }
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line span { display: block; }
/* Email reveal button (masked — no naked address in markup) */
.mailbtn {
  display: inline-flex; align-items: center; gap: 1.4rem;
  margin: 2.5rem 0;
  padding: 1rem 1.3rem 1rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--fg);
  cursor: none;
  width: fit-content; max-width: 100%;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.mailbtn:hover { border-color: var(--accent); background: rgba(200, 255, 62, 0.05); }
.mailbtn__stack {
  position: relative; overflow: hidden;
  height: 1.5em; line-height: 1.5em;
  font-size: clamp(0.95rem, 2.4vw, 1.6rem);
  font-weight: 500; letter-spacing: 0.01em;
}
.mailbtn__stack > span {
  display: block; height: 1.5em; white-space: nowrap;
  transition: transform .45s var(--ease);
}
.mailbtn__l2 { color: var(--accent); }
.mailbtn:hover .mailbtn__stack > span { transform: translateY(-100%); }
.mailbtn__arrow {
  display: grid; place-items: center;
  width: 2.6em; height: 2.6em; flex: none;
  font-size: 1rem; border-radius: 50%;
  background: var(--accent); color: #0a0a0c;
  transition: transform .45s var(--ease);
}
.mailbtn:hover .mailbtn__arrow { transform: translate(2px, -2px) scale(1.05); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.contact__item span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.contact__item p { font-size: clamp(1rem, 1.5vw, 1.2rem); }
a.contact__item p { transition: color .3s var(--ease); }
a.contact__item:hover p { color: var(--accent); }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 3rem; border-top: 1px solid var(--line); margin-top: 4rem; font-size: 0.8rem; color: var(--muted); }
.footer__top { background: none; border: none; color: var(--fg); font-size: 0.8rem; cursor: none; transition: color .3s var(--ease); }
.footer__top:hover { color: var(--accent); }

/* ========= Status bar ========= */
.statusbar {
  position: fixed;
  left: 0; bottom: 0;
  width: 100%;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1.2rem, 4vw, 3rem);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.statusbar__item { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.statusbar__item b { color: var(--fg); font-weight: 500; }
.statusbar__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.4s steps(2) infinite; }
.statusbar__mid { color: var(--accent); }
@media (max-width: 700px) { .statusbar__mid { display: none; } }
.footer { margin-bottom: 2.5rem; }

/* Pro-mode toggle */
.promode { display: flex; align-items: center; gap: 0.5rem; background: none; border: none; cursor: none; font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; transition: color .3s var(--ease); }
.promode:hover { color: var(--fg); }
.promode b { color: var(--muted); font-weight: 500; transition: color .3s var(--ease); }
.promode__led { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--muted); transition: all .3s var(--ease); }
body.pro .promode__led { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); }
body.pro .promode b { color: var(--accent); }

/* ========= PRO MODE / HUD ========= */
.hud { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); font-family: "JetBrains Mono", monospace; }
body.pro .hud { opacity: 1; }
body.pro { --line: rgba(200, 255, 62, 0.18); }
body.pro .noise { opacity: 0.07; }

/* corner brackets */
.hud__bracket { position: absolute; width: 26px; height: 26px; border: 1px solid var(--accent); opacity: 0.7; }
.hud__bracket--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hud__bracket--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.hud__bracket--bl { bottom: 52px; left: 18px; border-right: 0; border-top: 0; }
.hud__bracket--br { bottom: 52px; right: 18px; border-left: 0; border-top: 0; }

/* scanlines + grid */
.hud__scan { position: absolute; inset: 0; background:
  repeating-linear-gradient(0deg, rgba(200,255,62,0.035) 0 1px, transparent 1px 3px),
  linear-gradient(90deg, rgba(200,255,62,0.04) 1px, transparent 1px) 0 0 / 64px 64px,
  linear-gradient(0deg, rgba(200,255,62,0.04) 1px, transparent 1px) 0 0 / 64px 64px;
  mix-blend-mode: screen; animation: scan 8s linear infinite; }
@keyframes scan { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 64px, 0 0, 0 0; } }

/* telemetry panels */
.hud__panel { position: absolute; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--fg); border: 1px solid var(--line); background: rgba(10,10,12,0.55); backdrop-filter: blur(8px); padding: 0.9rem 1rem; min-width: 200px; transform: translateY(10px); opacity: 0; transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
body.pro .hud__panel { opacity: 1; transform: translateY(0); }
.hud__panel--metrics { top: 92px; left: 26px; }
.hud__panel--log { bottom: 72px; right: 26px; width: 260px; }
.hud__h { color: var(--accent); margin-bottom: 0.7rem; opacity: 0.8; }
.hud__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.18rem 0; color: var(--muted); }
.hud__row b { color: var(--accent); font-weight: 500; }
.hud__spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; margin-top: 0.7rem; }
.hud__spark i { flex: 1; background: var(--accent); opacity: 0.7; min-height: 2px; }
.hud__stream { height: 120px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: var(--muted); line-height: 1.7; }
.hud__stream .ok { color: var(--accent); }

/* crosshair */
.hud__cross { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
body.pro .hud__cross { opacity: 1; }
.hud__cross::before, .hud__cross::after { content: ""; position: fixed; background: rgba(200,255,62,0.35); }
.hud__cross::before { left: var(--cx, -10px); top: 0; width: 1px; height: 100vh; }
.hud__cross::after { top: var(--cy, -10px); left: 0; height: 1px; width: 100vw; }
.hud__coord { position: fixed; left: calc(var(--cx, 0px) + 10px); top: calc(var(--cy, 0px) + 10px); font-size: 0.62rem; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .hud__panel { display: none; } .hud__cross { display: none; } }

/* ========= Reveal states ========= */
[data-reveal] { transform: translateY(110%); }
[data-fade] { opacity: 0; transform: translateY(24px); }
.about__text .word { opacity: 0.12; }

/* ========= Responsive ========= */
@media (max-width: 900px) {
  .header__nav, .header__cta { display: none; }
  .burger { display: flex; }
  .about__cards, .work__list { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stack__row { grid-template-columns: 50px 1fr 30px; }
  .stack__tag { display: none; }
  .hero { padding-top: 26vh; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .tl { grid-template-columns: 1fr; gap: 0.8rem; }
  .tl__year { flex-direction: row; align-items: baseline; gap: 0.6rem; }
  /* horizontal gallery becomes a native swipe row on mobile */
  .hpin { height: auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4rem; }
  .htrack { padding-bottom: 0; }
  .project { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  .preloader__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .preloader__name { text-align: left; }
}
