/* =========================================================
   Ilias Rais · personal site
   Dark cinematic theme, ice-blue horizon glow
   ========================================================= */

:root {
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --hover: 0.6s var(--ease);
  --nav-h: 72px;
}

/* Self-hosted fonts (latin subset, variable weight) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
/* proximity: sections settle into place, but you can stop and read anywhere */
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
html.smooth-engine { scroll-behavior: auto; scroll-snap-type: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.45s var(--ease-soft); }
::selection { background: var(--ice); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(90px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 900px; margin-bottom: clamp(32px, 5vh, 56px); }
.snap.section { padding: clamp(88px, 12vh, 130px) 0 clamp(48px, 7vh, 96px); }

/* ---------- Section snapping: one section per screen ---------- */
.snap-top { scroll-snap-align: start; }
.snap {
  scroll-snap-align: start;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.snap-end { scroll-snap-align: end; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 640px; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(159, 195, 230, 0.3);
  border-radius: 99px;
  padding: 4px 12px;
}

/* ---------- Buttons (magnetic) ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--tx), var(--ty));
  transition: transform 0.7s var(--ease), background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}
.btn.is-magnet { transition: transform 0.18s linear, background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft), box-shadow 0.6s var(--ease-soft); }
.btn__arrow { display: inline-block; transition: transform 0.6s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ice);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn--light:hover::before { transform: none; }
.btn--light:hover { box-shadow: 0 14px 44px -12px rgba(159, 195, 230, 0.75); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: color-mix(in srgb, var(--fg) 3%, transparent); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); background: rgba(159, 195, 230, 0.06); }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__term {
  width: min(520px, 90vw);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(110, 168, 220, 0.4);
}
.preloader__bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.preloader__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2e36; }
.preloader__bar em { margin-left: auto; font: 12px var(--mono); color: var(--muted); font-style: normal; }
.preloader pre { margin: 0; padding: 18px 18px 8px; font: 13px/1.8 var(--mono); color: #b9c2cf; min-height: 150px; white-space: pre-wrap; }
.preloader pre .ok { color: var(--ok); }
.preloader pre .hi { color: var(--ice); }
.preloader__progress { height: 2px; background: var(--line); margin: 8px 18px 18px; }
.preloader__progress i { display: block; height: 100%; width: 0; background: var(--ice); box-shadow: 0 0 12px var(--ice); transition: width 0.25s linear; }

/* ---------- Utility bar ---------- */
.utility { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); position: relative; z-index: 30; }
.utility__inner { width: min(1200px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 10px; height: 38px; }
.utility__links { margin-left: auto; display: flex; gap: 22px; }
.utility__links a:hover { color: var(--text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(93, 255, 176, 0); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(24px, calc((100% - 1200px) / 2));
  transition: background 0.5s var(--ease-soft), border-color 0.5s, padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav__logo { display: flex; align-items: center; gap: 2px; font-weight: 700; }
.nav__mark { font-family: var(--mono); font-size: 18px; letter-spacing: -0.02em; }
.nav__cursor { font-family: var(--mono); color: var(--ice); animation: blink 1s steps(1) infinite; }
.nav__name { margin-left: 12px; font-weight: 500; color: var(--muted); font-size: 14px; transition: color 0.45s var(--ease-soft); }
.nav__logo:hover .nav__name { color: var(--text); }
@keyframes blink { 50% { opacity: 0; } }
.nav__right { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 1px solid var(--line-2); color: var(--text);
  padding: 9px 12px 9px 18px; border-radius: 99px; cursor: pointer; font: 500 14px var(--font);
  transition: border-color 0.5s var(--ease-soft), background 0.5s var(--ease-soft);
}
.menu-toggle:hover { border-color: var(--ice); background: rgba(159, 195, 230, 0.06); }
.menu-toggle__icon { position: relative; width: 18px; height: 10px; }
.menu-toggle__icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-toggle__icon i:first-child { top: 1px; }
.menu-toggle__icon i:last-child { top: 8px; }
.menu-open .menu-toggle__icon i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 4.5px; transform: rotate(-45deg); }

/* ---------- Language switch ---------- */
.lang { position: relative; display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12px; }
.lang__opt { position: relative; z-index: 1; padding: 5px 10px; border-radius: 99px; color: var(--muted); transition: color 0.5s var(--ease-soft), background 0.5s var(--ease-soft); }
.lang__opt:hover { color: var(--text); }
.lang__opt.is-active { color: var(--bg); background: var(--text); }

/* ---------- Section dots ---------- */
.dots {
  position: fixed; right: 22px; top: 50%; z-index: 50;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
}
.is-ready .dots { opacity: 1; }
.dots a { position: relative; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 18%, transparent); transition: background 0.5s var(--ease-soft), transform 0.5s var(--ease); }
.dots a::after {
  content: attr(data-label);
  position: absolute; right: 20px; top: 50%;
  transform: translate(8px, -50%);
  font: 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); background: color-mix(in srgb, var(--bg-2) 85%, transparent); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 99px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease-soft), transform 0.5s var(--ease);
}
.dots a:hover { background: var(--text); transform: scale(1.3); }
.dots a:hover::after { opacity: 1; transform: translate(0, -50%); }
.dots a.active { background: var(--ice); transform: scale(1.4); box-shadow: 0 0 12px var(--ice); }

/* ---------- Overlay menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: radial-gradient(120% 80% at 50% 120%, rgba(110, 168, 220, 0.25), transparent 60%), color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  display: flex; align-items: center;
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__inner { width: min(1200px, 100% - 48px); margin: 80px auto 0; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.12;
  transform: translateY(110%); transition: transform 0.9s var(--ease), color 0.5s var(--ease-soft), padding 0.6s var(--ease);
}
.menu__list a span { font: 13px var(--mono); color: var(--ice); letter-spacing: 0; }
.menu__list a:hover { color: var(--ice); padding-left: 14px; }
.menu-open .menu__list a { transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: 0.04s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: 0.08s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: 0.12s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: 0.16s; }
.menu-open .menu__list li:nth-child(6) a { transition-delay: 0.2s; }
.menu-open .menu__list li:nth-child(7) a { transition-delay: 0.24s; }
.menu__side { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.menu__side a:hover { color: var(--text); }
.menu__mail { color: var(--text); font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - 38px);
  height: calc(100svh - 38px);
  min-height: 600px;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero__horizon { position: absolute; left: 50%; top: 60%; width: max(170vw, 1500px); aspect-ratio: 1; transform: translateX(-50%); z-index: -2; pointer-events: none; will-change: transform; }
.hero__glow {
  position: absolute; inset: -6%; border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 16% at 50% 6%, rgba(225, 236, 248, 0.7), rgba(150, 190, 228, 0.35) 50%, transparent 100%),
    radial-gradient(ellipse 60% 30% at 50% 6%, rgba(110, 168, 220, 0.28), transparent 70%);
  filter: blur(30px);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.02); } }
.hero__arc { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(220, 235, 250, 0.35); box-shadow: 0 0 40px rgba(159, 195, 230, 0.25), inset 0 0 60px rgba(159, 195, 230, 0.12); }
.hero__scan {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(220, 240, 255, 0.55) 6deg, transparent 22deg);
  -webkit-mask: radial-gradient(closest-side, transparent 98.5%, #000 99%);
          mask: radial-gradient(closest-side, transparent 98.5%, #000 99%);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.hero__content { width: min(1320px, 100% - 48px); margin: 0 auto; text-align: center; padding: 20px 0 150px; will-change: transform, opacity; }
.hero__eyebrow { color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); animation: blink 1.6s ease-in-out infinite; }
.hero__title {
  font-size: clamp(42px, 7.6vw, 108px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__title .decrypt { white-space: nowrap; }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 0.12s; }
.decrypt .glitch { color: var(--ice); opacity: 0.85; }
.hero__sub { font-size: clamp(16px, 1.8vw, 22px); color: var(--text-1); margin: 0 0 40px; opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }
.hero__sub .sep { color: var(--ice); margin: 0 6px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .hero__ctas { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) 0.7s, transform 1s var(--ease) 0.7s; }
.is-ready .hero__sub, .is-ready .hero .hero__ctas { opacity: 1; transform: none; }

.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 70px;
  width: min(1200px, 100% - 48px); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
}
.hero__domains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 28px; font-size: 12px; color: color-mix(in srgb, var(--text) 70%, transparent); text-transform: uppercase; letter-spacing: 0.1em; }
.hero__domains li::before { content: "▸ "; color: var(--ice); }
.hero__counter { display: flex; align-items: flex-end; gap: 12px; color: var(--text); }
.hero__counter-num { font-size: clamp(44px, 6vw, 80px); font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; }
.hero__counter-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.4; opacity: 0.75; }

/* ---------- News strip (bottom of hero) ---------- */
.news { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(14px); font-size: 14px; }
.news__inner { width: min(1200px, 100% - 48px); margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 15px 0; overflow: hidden; }
.news__label { color: var(--ice); flex: none; }
.news__track { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.news__track::-webkit-scrollbar { display: none; }
.news__track a { white-space: nowrap; color: var(--text-2); position: relative; }
.news__track a:hover { color: var(--text); }
.news__track a + a::before { content: ""; position: absolute; left: -22px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.intro__record { margin: 32px 0; padding: 22px 24px; border: 1px solid var(--line); border-left: 2px solid var(--ok); border-radius: 12px; background: linear-gradient(90deg, rgba(93, 255, 176, 0.06), transparent); transition: background 0.6s var(--ease-soft), border-color 0.6s var(--ease-soft); }
.intro__record:hover { background: linear-gradient(90deg, rgba(93, 255, 176, 0.12), transparent); border-color: rgba(93, 255, 176, 0.3); }
.intro__record .tag { color: var(--ok); border-color: rgba(93, 255, 176, 0.35); }
.intro__record p { margin: 10px 0 0; font-size: 18px; font-weight: 500; }
.intro__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.intro__visual { perspective: 1000px; display: flex; justify-content: center; }
.intro__visual .portrait { width: min(100%, 58vh); }
.portrait {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line-2); background: #000;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s var(--ease), border-color 0.6s var(--ease-soft), box-shadow 0.8s var(--ease-soft);
}
.portrait:hover { border-color: rgba(159, 195, 230, 0.4); box-shadow: 0 40px 100px -40px rgba(110, 168, 220, 0.5); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.05); transition: transform 1.4s var(--ease), filter 0.8s var(--ease-soft); }
.portrait:hover img { transform: scale(1.05); filter: none; }
.portrait__scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(159, 195, 230, 0) 40%, rgba(159, 195, 230, 0.35) 50%, transparent 52%); background-size: 100% 220%; animation: scanY 4.5s linear infinite; mix-blend-mode: screen; }
@keyframes scanY { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
.portrait.fx-done .portrait__scan { animation-delay: 1.6s; }
.portrait__hud { position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; letter-spacing: 0.08em; color: rgba(242, 244, 247, 0.85); background: rgba(7, 8, 10, 0.55); backdrop-filter: blur(6px); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.portrait__hud .ok { color: var(--ok); }
.portrait__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.portrait.fx-armed img { clip-path: inset(0 0 calc(100% - var(--reveal, 0%)) 0); }
.portrait.fx-armed .portrait__scan { opacity: 0; }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--ice); border-style: solid; border-width: 0; transition: transform 0.7s var(--ease); }
.corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.portrait:hover .corner.tl { transform: translate(-5px, -5px); }
.portrait:hover .corner.tr { transform: translate(5px, -5px); }
.portrait:hover .corner.bl { transform: translate(-5px, 5px); }
.portrait:hover .corner.br { transform: translate(5px, 5px); }

/* ---------- Stats + marquee ---------- */
.stats { background: radial-gradient(60% 50% at 50% 0%, rgba(110, 168, 220, 0.12), transparent 70%); }
.stats .h2 { margin-bottom: clamp(36px, 6vh, 64px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); position: relative; }
.stats__grid::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--ice); box-shadow: 0 0 10px var(--ice); transition: width 1.8s var(--ease) 0.2s; }
.stats__grid.lit::before { width: 100%; }
.stat { padding: 40px 28px 0; border-right: 1px solid var(--line); transition: background 0.6s var(--ease-soft); }
.stat:last-child { border-right: 0; }
.stat:hover { background: linear-gradient(180deg, rgba(159, 195, 230, 0.05), transparent); }
.stat__num { font-size: clamp(54px, 6vw, 88px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 0 0 18px; background: linear-gradient(180deg, var(--hi) 30%, var(--ice) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); margin: 0; font-size: 15px; }
.marquee { margin-top: clamp(36px, 6vh, 72px); padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font: 500 15px var(--mono); padding: 12px 22px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); white-space: nowrap; transition: color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft), background 0.5s var(--ease-soft); }
.marquee__track span:hover { color: var(--bg); background: var(--ice); border-color: var(--ice); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Expertise radar ---------- */
.expertise { overflow: hidden; }
.radar-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.radar-wrap .section-head { margin-bottom: 26px; }
.radar-wrap .h2 { font-size: clamp(28px, 2.9vw, 42px); margin-bottom: 14px; }
.radar__hint { font-size: 12px; color: var(--muted); margin: 0; letter-spacing: 0.02em; }
.radar { position: relative; width: min(100%, 64vh, 560px); aspect-ratio: 1; margin-inline: auto; }
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radar__grid circle, .radar__grid line { fill: none; stroke: rgba(159, 195, 230, 0.13); stroke-width: 1; }
.radar__grid circle.outer { stroke: rgba(159, 195, 230, 0.32); }
.radar__ticks line { stroke: rgba(159, 195, 230, 0.28); stroke-width: 1; }
.radar__sector { fill: transparent; stroke: rgba(159, 195, 230, 0.1); stroke-width: 1; cursor: pointer; transition: fill 0.6s var(--ease-soft); }
.radar__sector:hover { fill: rgba(159, 195, 230, 0.05); }
.radar__sector.active { fill: rgba(159, 195, 230, 0.09); }
.radar__arc { fill: none; stroke: var(--ice); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--ice)); transition: d 0.7s var(--ease); }
.radar__label { font: 500 10.5px var(--mono); letter-spacing: 0.12em; fill: var(--muted); text-anchor: middle; pointer-events: none; }
.radar__blip { --glow: 0; pointer-events: none; }
.radar__blip circle { fill: var(--ice); opacity: calc(0.22 + var(--glow) * 0.78); }
.radar__blip .radar__halo { fill: none; stroke: var(--ice); stroke-width: 1; opacity: calc(var(--glow) * 0.6); transform: scale(calc(0.6 + var(--glow) * 0.8)); transform-box: fill-box; transform-origin: center; }
.radar__blip text { font: 9.5px var(--mono); fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; opacity: 0; transition: opacity 0.5s var(--ease-soft); }
.radar__blip.active circle { fill: var(--ok); opacity: calc(0.6 + var(--glow) * 0.4); }
.radar__blip.active .radar__halo { stroke: var(--ok); }
.radar__blip.active text { opacity: 0.9; }
.radar__beam {
  position: absolute; inset: 9.52%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from -70deg, transparent 0deg, rgba(159, 195, 230, 0.02) 20deg, rgba(159, 195, 230, 0.28) 69deg, rgba(220, 240, 255, 0.85) 70deg, transparent 70.6deg);
  -webkit-mask: radial-gradient(closest-side, #000 99%, transparent 100%);
          mask: radial-gradient(closest-side, #000 99%, transparent 100%);
  will-change: transform;
}
.radar__center {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px var(--mono); color: var(--bg); background: var(--ice);
  box-shadow: 0 0 0 6px rgba(159, 195, 230, 0.12), 0 0 40px rgba(159, 195, 230, 0.5);
}
.radar__center::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--ice); animation: radarPing 2.6s var(--ease-soft) infinite; }
@keyframes radarPing { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }

.radar__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radar__item {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
  font: 500 14.5px var(--font);
  transition: border-color 0.5s var(--ease-soft), background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), transform 0.6s var(--ease);
}
.radar__item .num { font: 11px var(--mono); color: var(--ice); opacity: 0.7; }
.radar__item:hover { color: var(--text); border-color: var(--line-2); transform: translateX(3px); }
.radar__item[aria-pressed="true"] { color: var(--text); border-color: rgba(159, 195, 230, 0.5); background: linear-gradient(90deg, rgba(159, 195, 230, 0.12), rgba(159, 195, 230, 0.02)); }
.radar__item[aria-pressed="true"] .num { opacity: 1; }
.radar__desc { display: none; }
.radar__detail { min-height: 190px; padding: 24px 26px; border-radius: 18px; border: 1px solid var(--line-2); background: radial-gradient(80% 120% at 100% 0%, rgba(110, 168, 220, 0.12), transparent 60%), var(--panel); }
.radar__kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin: 0 0 10px; }
.radar__detail h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.radar__desc-out { color: var(--text-3); margin: 0 0 16px; font-size: 15px; }
.radar__chips span {
  --glow: 0;
  color: color-mix(in srgb, var(--ok) calc(var(--glow) * 100%), var(--muted));
  border-color: rgba(93, 255, 176, calc(0.12 + var(--glow) * 0.6));
  background: rgba(93, 255, 176, calc(var(--glow) * 0.12));
  box-shadow: 0 0 calc(var(--glow) * 18px) rgba(93, 255, 176, calc(var(--glow) * 0.35));
  transition: none;
}

/* ---------- Research lab ---------- */
.research { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.research .section-head { max-width: none; display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 60px; align-items: end; margin-bottom: clamp(28px, 4vh, 40px); }
.research .section-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
.research .section-head .h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); }
.research .section-head .lead { margin: 0; font-size: 16px; }
.lab { border: 1px solid var(--line-2); border-radius: 22px; background: #0a0c10; overflow: hidden; box-shadow: 0 60px 140px -60px rgba(110, 168, 220, 0.45); }
.lab__header { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot--red { background: #ff5f57; } .dot--amber { background: #febc2e; } .dot--green { background: #28c840; }
.lab__status { margin-left: auto; color: var(--ok); border: 1px solid rgba(93, 255, 176, 0.3); padding: 3px 10px; border-radius: 99px; transition: color 0.4s, border-color 0.4s, background 0.4s; }
.lab__status.alert { color: var(--alert); border-color: rgba(255, 93, 108, 0.5); background: rgba(255, 93, 108, 0.1); }
.lab__body { display: grid; grid-template-columns: 1fr 330px; }
.lab__svg { width: 100%; height: min(420px, 34vh); display: block; padding: 14px; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 22px 22px; }
.lab__svg .links path { fill: none; stroke: rgba(159, 195, 230, 0.35); stroke-width: 1.5; }
.lab__svg .links .vlink { stroke: rgba(93, 255, 176, 0.25); stroke-dasharray: 4 6; animation: dash 1.5s linear infinite; }
.lab__svg .atklink { fill: none; stroke: rgba(255, 93, 108, 0.35); stroke-width: 1.5; stroke-dasharray: 2 6; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.lab__svg .node rect { fill: #11141a; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; transition: stroke 0.4s, fill 0.4s; }
.lab__svg .node text { fill: var(--text); font: 600 14px var(--font); text-anchor: middle; }
.lab__svg .node text.sub { fill: var(--muted); font: 400 11px var(--mono); }
.lab__svg .node--verifier rect { stroke: rgba(93, 255, 176, 0.5); fill: rgba(93, 255, 176, 0.05); }
.lab__svg .node--attacker rect { stroke: rgba(255, 93, 108, 0.6); fill: rgba(255, 93, 108, 0.06); }
.lab__svg .node.hit rect { stroke: var(--alert); fill: rgba(255, 93, 108, 0.15); }
.lab__svg .node--verifier.flag rect { stroke: var(--ok); fill: rgba(93, 255, 176, 0.18); }
.lab__svg .pkt { fill: var(--ice); filter: drop-shadow(0 0 4px var(--ice)); }
.lab__svg .pkt--atk { fill: var(--alert); filter: drop-shadow(0 0 6px var(--alert)); }
.lab__svg .pkt--ver { fill: var(--ok); filter: drop-shadow(0 0 4px var(--ok)); }
.lab__log { border-left: 1px solid var(--line); padding: 18px; font-size: 11.5px; line-height: 1.7; color: #a9b2bf; height: min(420px, 34vh); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.lab__log div { animation: logIn 0.4s var(--ease); padding-left: 64px; text-indent: -64px; }
.lab__log .t { color: #7a8391; }
.lab__log .a { color: var(--alert); }
.lab__log .g { color: var(--ok); }
.lab__log .b { color: var(--ice); }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.lab__facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.lab__facts div { padding: clamp(14px, 2.2vh, 22px) 24px; border-right: 1px solid var(--line); transition: background 0.6s var(--ease-soft); }
.lab__facts div:hover { background: rgba(159, 195, 230, 0.04); }
.lab__facts div:last-child { border-right: 0; }
.lab__facts strong { display: block; font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; }
.lab__facts span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }

/* ---------- Stacking cards (shared) ---------- */
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.stack-card { transform-origin: 50% 0; will-change: transform, filter; }

/* ---------- Experience ---------- */
.experience { justify-content: flex-start; }
.exp__grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(40px, 6vw, 100px); }
.exp__head { position: sticky; top: 130px; align-self: start; }
.exp__progress { width: 2px; height: 180px; background: var(--line); margin-top: 40px; position: relative; }
.exp__progress i { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.job {
  position: relative; border: 1px solid var(--line-2); border-radius: 22px; padding: 34px 34px 30px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 -20px 60px -30px var(--shade);
  transition: border-color 0.6s var(--ease-soft);
}
.job:hover { border-color: rgba(159, 195, 230, 0.45); }
.job__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.job__stage { color: var(--ice); text-transform: uppercase; letter-spacing: 0.12em; }
.job h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 4px; }
.job__role { color: var(--ice); margin: 0 0 18px; font-weight: 500; }
.job ul { margin: 0 0 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.job li { padding-left: 22px; position: relative; color: var(--text-2); font-size: 15px; }
.job li::before { content: "›"; position: absolute; left: 4px; color: var(--ice); font-family: var(--mono); }
.job b { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 12px var(--mono); padding: 5px 12px; border-radius: 99px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); transition: color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft); }
.chips span:hover { color: var(--ice); border-color: rgba(159, 195, 230, 0.4); }

/* ---------- Projects ---------- */
.proj__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proj { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-2); transition: transform 0.8s var(--ease), border-color 0.6s var(--ease-soft), box-shadow 0.8s var(--ease-soft); }
.proj:not(.reveal):hover { transform: translateY(-8px); border-color: rgba(159, 195, 230, 0.35); box-shadow: 0 40px 80px -40px rgba(110, 168, 220, 0.4); }
.proj__visual { height: clamp(150px, 21vh, 220px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 100% at 50% 120%, rgba(110, 168, 220, 0.35), transparent 70%), #08090c; display: grid; place-items: center; }
.proj__visual > * { transition: transform 1s var(--ease); }
.proj:hover .proj__visual > * { transform: scale(1.06); }
.proj__visual--term pre { margin: 0; font-size: 13px; line-height: 1.9; color: #c4cad4; }
.proj__visual--term .c { color: var(--ice); }
.proj__visual--term .d { color: #7d8794; }
.proj__visual--term .w { color: var(--alert); }
.pods { display: grid; grid-template-columns: repeat(3, 54px); gap: 14px; }
.pods i { height: 54px; border-radius: 12px; border: 1px solid rgba(159, 195, 230, 0.35); background: rgba(159, 195, 230, 0.06); animation: pod 3s var(--ease) infinite; }
.pods i:nth-child(3n+2) { animation-delay: 0.3s; } .pods i:nth-child(3n) { animation-delay: 0.6s; }
.pods i:nth-child(n+4) { animation-delay: 0.9s; } .pods i:nth-child(n+7) { animation-delay: 1.2s; }
@keyframes pod { 0%, 100% { background: rgba(159, 195, 230, 0.06); box-shadow: none; } 40% { background: rgba(159, 195, 230, 0.3); box-shadow: 0 0 20px -4px var(--ice); } }
.proj__body { padding: 28px 32px 34px; }
.proj__body h3 { font-size: 24px; letter-spacing: -0.02em; margin: 16px 0 10px; }
.proj__body p { color: var(--muted); margin: 0; }

/* ---------- Why me (stacking) ---------- */
.why { justify-content: flex-start; }
.why__stack { gap: 32px; }
.why-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 220px;
  gap: 36px;
  align-items: start;
  padding: 44px 44px 44px 36px;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(110, 168, 220, 0.16), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 -24px 70px -30px var(--shade);
  overflow: hidden;
  transition: border-color 0.6s var(--ease-soft);
}
.why-card:nth-child(2n) { background: radial-gradient(70% 120% at 0% 0%, rgba(110, 168, 220, 0.14), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel-3)); }
.why-card:hover { border-color: rgba(159, 195, 230, 0.45); }
.why-card__index { font-size: 14px; color: var(--ice); padding-top: 6px; }
.why-card__kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.why-card h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; }
.why-card__main p:last-child { color: var(--text-3); margin: 0; font-size: 16px; max-width: 620px; }
.why-card__proof { border-left: 1px solid var(--line); padding-left: 28px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.why-card__proof strong { font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, var(--hi) 30%, var(--ice) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-card__proof span { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- Claim verification (scroll-scrubbed quote) ---------- */
.claim { position: relative; height: 280vh; scroll-snap-align: start; }
.claim__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(50% 60% at 50% 50%, rgba(110, 168, 220, 0.1), transparent 70%);
  transition: background 1s var(--ease-soft);
}
.claim.verified .claim__sticky { background: radial-gradient(55% 65% at 50% 50%, rgba(93, 255, 176, 0.09), transparent 70%); }
.claim__hash {
  position: absolute; inset: -10% -20%; display: flex; flex-direction: column; justify-content: space-around;
  font-size: 13px; letter-spacing: 0.3em; color: rgba(159, 195, 230, 0.07); white-space: nowrap; pointer-events: none;
  transition: color 1s var(--ease-soft);
}
.claim.verified .claim__hash { color: rgba(93, 255, 176, 0.08); }
.claim__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.claim__eyebrow { color: var(--muted); }
.claim__eyebrow b { color: var(--ice); font-weight: 400; transition: color 0.6s; }
.claim.verified .claim__eyebrow b { color: var(--ok); }
.claim__quote {
  margin: 0 auto; max-width: 1040px;
  font-size: clamp(30px, 4.6vw, 62px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  position: relative;
}
.claim__quote .w { display: inline-block; white-space: nowrap; }
.claim__quote .ch { position: relative; transition: color 0.35s var(--ease-soft); }
.claim__quote .ch.enc { color: transparent; }
.claim__quote .ch.enc::after {
  content: attr(data-g);
  position: absolute; left: 50%; top: 0.18em; transform: translateX(-50%);
  font: 400 0.62em/1 var(--mono); letter-spacing: 0; color: rgba(159, 195, 230, 0.55);
}
.claim__quote::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ok), transparent);
  transform: scaleX(0); transition: transform 1.2s var(--ease);
}
.claim.verified .claim__quote::after { transform: scaleX(1); }
.claim.verified .claim__quote { text-shadow: 0 0 40px rgba(93, 255, 176, 0.18); }

.claim__sigs { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: clamp(34px, 6vh, 60px); }
.sig {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 20px 14px 16px; min-width: 250px;
  border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); backdrop-filter: blur(8px);
  transition: border-color 0.6s var(--ease-soft), background 0.6s var(--ease-soft), transform 0.7s var(--ease), box-shadow 0.7s var(--ease-soft);
}
.sig b { display: block; font-size: 15px; font-weight: 600; }
.sig__state { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.sig__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--fg) 20%, transparent); display: grid; place-items: center; transition: border-color 0.5s, background 0.5s; }
.sig__icon svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.6s var(--ease) 0.15s; }
.sig.pending .sig__icon { border-color: var(--ice); border-style: solid; border-right-color: transparent; animation: sweep 0.8s linear infinite; }
.sig.pending .sig__state { color: var(--ice); }
.sig.ok { border-color: rgba(93, 255, 176, 0.45); background: rgba(93, 255, 176, 0.06); transform: translateY(-4px); box-shadow: 0 20px 50px -24px rgba(93, 255, 176, 0.5); }
.sig.ok .sig__icon { border: 1.5px solid var(--ok); background: rgba(93, 255, 176, 0.12); }
.sig.ok .sig__icon svg { stroke-dashoffset: 0; }
.sig.ok .sig__state { color: var(--ok); }

.claim__stamp {
  position: absolute; right: clamp(0px, 3vw, 40px); top: -84px;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 18px; border: 2.5px solid var(--ok); border-radius: 10px; color: var(--ok);
  transform: rotate(-12deg) scale(2.4); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.3s;
  pointer-events: none;
}
.claim__stamp span { font-size: 22px; font-weight: 700; letter-spacing: 0.18em; }
.claim__stamp small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.claim.verified .claim__stamp { transform: rotate(-12deg) scale(1); opacity: 0.95; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }

.claim__progress { width: min(420px, 80%); margin-top: clamp(28px, 5vh, 48px); display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.claim__progress .bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.claim__progress .bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.claim.verified .claim__progress .bar i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.claim__pct { min-width: 40px; text-align: right; color: var(--text); }

/* ---------- Credentials ---------- */
.sub-title { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0 0 18px; letter-spacing: 0.08em; }
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(24px, 4vh, 48px); }
.award { display: flex; align-items: center; gap: 22px; padding: clamp(16px, 2.4vh, 24px) 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color 0.6s var(--ease-soft), transform 0.8s var(--ease), background 0.6s var(--ease-soft); }
.award:not(.reveal):hover { border-color: rgba(159, 195, 230, 0.4); transform: translateY(-5px); background: var(--bg-3); }
.award__rank { font-size: 42px; font-weight: 800; letter-spacing: -0.05em; background: linear-gradient(180deg, var(--hi), var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 70px; }
.award h4 { margin: 0; font-size: 17px; }
.award p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cert { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: clamp(96px, 12vh, 130px); color: var(--muted); font-size: 14.5px; transition: background 0.7s var(--ease-soft), color 0.6s var(--ease-soft); }
.cert__org { font: 700 20px var(--font); letter-spacing: -0.02em; color: var(--dim); transition: color 0.6s var(--ease-soft), transform 0.7s var(--ease); }
.cert:hover { background: var(--bg-3); color: var(--text); }
.cert:hover .cert__org { color: var(--ice); transform: translateX(4px); }

/* ---------- Education ---------- */
.edu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edu { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 36px; background: var(--bg-2); overflow: hidden; transition: border-color 0.6s var(--ease-soft), transform 0.8s var(--ease), box-shadow 0.8s var(--ease-soft); }
.edu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ice), transparent); transform: scaleX(0); transition: transform 0.9s var(--ease); }
.edu:not(.reveal):hover { border-color: rgba(159, 195, 230, 0.35); transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(110, 168, 220, 0.35); }
.edu:hover::after { transform: scaleX(1); }
.edu__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ice); margin-bottom: 26px; flex-wrap: wrap; }
.edu__meta span { color: var(--muted); }
.edu__badge { display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; margin-bottom: 16px; }
.edu h3 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.edu p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.acc { border-top: 1px solid var(--line); transition: background 0.6s var(--ease-soft); border-radius: 0; }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font-size: 19px; font-weight: 500; position: relative; transition: color 0.5s var(--ease-soft), padding 0.6s var(--ease); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--ice), var(--ice)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ice), var(--ice)) center / 1.5px 11px no-repeat;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease-soft), background-color 0.5s var(--ease-soft);
}
.acc[open] summary::after { transform: rotate(135deg); border-color: var(--ice); background-color: rgba(159, 195, 230, 0.1); }
.acc summary:hover { color: var(--ice); padding-left: 8px; }
.acc[open] summary { color: var(--text); }
.acc__body { overflow: hidden; }
.acc__body p { margin: 0 0 26px; color: var(--muted); max-width: 560px; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; text-align: center; }
.cta__glow { position: absolute; left: 50%; bottom: -60%; width: 1400px; height: 1000px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(159, 195, 230, 0.35), rgba(110, 168, 220, 0.12) 50%, transparent); filter: blur(20px); pointer-events: none; }
.cta .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(44px, 7vw, 100px); line-height: 1; letter-spacing: -0.045em; margin: 0 0 24px; }
.cta .lead { margin: 0 auto 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 90px 0 30px; background: var(--bg); }
.footer__big { font-size: clamp(32px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 70px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer__cols h4 { font-size: 12px; color: var(--ice); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 18px; }
.footer__cols a, .footer__cols p { display: block; margin: 0 0 10px; color: var(--muted); }
.footer__cols a { width: fit-content; background: linear-gradient(var(--text), var(--text)) 0 100% / 0 1px no-repeat; transition: color 0.5s var(--ease-soft), background-size 0.6s var(--ease); }
.footer__cols a:hover { color: var(--text); background-size: 100% 1px; }
.footer__time span { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 12px; color: var(--muted); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* headings wipe up from a mask */
.h2.reveal, .cta__title.reveal {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: translateY(40px);
  transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease);
}
.h2.reveal.in, .cta__title.reveal.in { clip-path: inset(-20% -5% -20% -5%); transform: none; }

/* ---------- Stacking enabled only where cards fit the screen ---------- */
@media (min-width: 1001px) and (min-height: 760px) {
  /* the large gap is reading time: each card sits alone before the next one slides over it */
  .timeline .stack-card { position: sticky; top: calc(130px + var(--i, 0) * 22px); }
  .timeline { gap: 18vh; padding-bottom: 14vh; }
  .why__stack .stack-card { position: sticky; top: calc(150px + var(--i, 0) * 18px); }
  .why__stack { gap: 18vh; padding-bottom: 16vh; }
}

/* ---------- Short laptop screens: keep each section on one screen ---------- */
@media (min-width: 1001px) and (max-height: 820px) {
  .snap.section { padding: 84px 0 32px; }
  .h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 18px; }
  .section-head { margin-bottom: 26px; }
  .lead { font-size: 16.5px; }
  .intro__visual .portrait { width: min(100%, 54vh); }
  .intro__record { margin: 18px 0; padding: 16px 20px; }
  .radar__detail { min-height: 170px; padding: 18px 22px; }
  .radar__item { padding: 9px 12px; }
  .stats .h2 { margin-bottom: 28px; }
  .stat { padding-top: 26px; }
  .marquee { margin-top: 28px; padding: 18px 0; }
  .award { padding: 12px 20px; }
  .award__rank { font-size: 34px; }
  .awards { margin-bottom: 22px; }
  .cert { min-height: 76px; padding: 14px 20px; gap: 4px; }
  .cert__org { font-size: 17px; }
  .sub-title { margin-bottom: 12px; }
  .proj__visual { height: 150px; }
  .proj__body { padding: 20px 26px 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .dots { display: none; }
  .radar-wrap { grid-template-columns: 1fr; }
  .radar { width: min(100%, 460px); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
  .lab__body { grid-template-columns: 1fr; }
  .lab__log { border-left: 0; border-top: 1px solid var(--line); height: 180px; }
  .lab__facts { grid-template-columns: repeat(2, 1fr); }
  .lab__facts div:nth-child(2) { border-right: 0; }
  .lab__facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .exp__grid, .faq__grid, .intro__grid, .research .section-head { grid-template-columns: 1fr; }
  .research .section-head .lead { margin-top: 20px; }
  .lab__svg { height: auto; }
  .exp__head { position: static; }
  .exp__progress { display: none; }
  .awards { grid-template-columns: 1fr; }
  .intro__visual { max-width: 460px; }
  .why-card { grid-template-columns: 1fr; gap: 18px; padding: 32px 28px; }
  .why-card__proof { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
}
@media (max-width: 700px) {
  .utility__links, .nav__cta, .nav__name { display: none; }
  .radar__list { grid-template-columns: 1fr; }
  .certs, .proj__grid, .edu__grid, .stats__grid, .footer__cols { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .hero__domains { display: none; }
  .hero__bottom { justify-content: center; }
  .menu__inner { grid-template-columns: 1fr; }
  .job { padding: 26px 22px; }
  .hero__horizon { top: 66%; width: 260vw; }
  .hero__title .decrypt { white-space: normal; }
  .preloader pre { font-size: 10.5px; }
  .news { font-size: 12.5px; }
  .claim { height: 240vh; }
  .sig { min-width: 0; width: 100%; }
  .claim__sigs { gap: 10px; }
  .claim__stamp { position: static; order: 10; margin-top: 22px; padding: 6px 12px; }
  .claim__stamp span { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .stack-card { position: relative !important; transform: none !important; filter: none !important; }
  .claim { height: auto; }
  .claim__sticky { position: relative; }
}

/* ---------- Language switch: wave ring ---------- */
.lang-wave {
  position: fixed; z-index: 9999; pointer-events: none; border-radius: 50%; contain: strict;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 0 1.5px rgba(205, 228, 250, 0.95),
    inset 0 0 22px 2px rgba(159, 195, 230, 0.55);
}
.lang-wave.trail {
  box-shadow: inset 0 0 0 1px rgba(159, 195, 230, 0.45), inset 0 0 40px 6px rgba(159, 195, 230, 0.12);
}

/* ---------- Themes: dark (default) and light ----------
   Colours are registered properties so the whole page can glide between themes. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #07080a; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #0d0f13; }
@property --bg-3 { syntax: "<color>"; inherits: true; initial-value: #13161c; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.08); }
@property --line-2 { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.14); }
@property --text { syntax: "<color>"; inherits: true; initial-value: #f2f4f7; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #8b93a1; }
@property --ice { syntax: "<color>"; inherits: true; initial-value: #9fc3e6; }
@property --ice-2 { syntax: "<color>"; inherits: true; initial-value: #6ea8dc; }
@property --ice-deep { syntax: "<color>"; inherits: true; initial-value: #2b4a68; }
@property --ok { syntax: "<color>"; inherits: true; initial-value: #5dffb0; }
@property --alert { syntax: "<color>"; inherits: true; initial-value: #ff5d6c; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --hi { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --text-1 { syntax: "<color>"; inherits: true; initial-value: #d6dce5; }
@property --text-2 { syntax: "<color>"; inherits: true; initial-value: #c4cad4; }
@property --text-3 { syntax: "<color>"; inherits: true; initial-value: #b6bdc8; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: #737c89; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #0b0d11; }
@property --panel-2 { syntax: "<color>"; inherits: true; initial-value: #11141a; }
@property --panel-3 { syntax: "<color>"; inherits: true; initial-value: #0a0c10; }
@property --shade { syntax: "<color>"; inherits: true; initial-value: rgba(0, 0, 0, 0.9); }
:root {
  --bg: #07080a;
  --bg-2: #0d0f13;
  --bg-3: #13161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f7;
  --muted: #8b93a1;
  --ice: #9fc3e6;
  --ice-2: #6ea8dc;
  --ice-deep: #2b4a68;
  --ok: #5dffb0;
  --alert: #ff5d6c;
  --fg: #ffffff;
  --hi: #ffffff;
  --text-1: #d6dce5;
  --text-2: #c4cad4;
  --text-3: #b6bdc8;
  --dim: #737c89;
  --panel: #0b0d11;
  --panel-2: #11141a;
  --panel-3: #0a0c10;
  --shade: rgba(0, 0, 0, 0.9);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f5;
  --bg-2: #ffffff;
  --bg-3: #f3f6f9;
  --line: rgba(14, 24, 38, 0.1);
  --line-2: rgba(14, 24, 38, 0.16);
  --text: #0b0e13;
  --muted: #56606e;
  --ice: #235c93;
  --ice-2: #2f6fae;
  --ice-deep: #c3d8ec;
  --ok: #05703f;
  --alert: #c42b3c;
  --fg: #0b0e13;
  --hi: #0b0e13;
  --text-1: #262d37;
  --text-2: #333b47;
  --text-3: #46505d;
  --dim: #687180;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --panel-3: #ffffff;
  --shade: rgba(20, 35, 55, 0.2);
}
/* consoles and visuals stay dark in both themes */
html[data-theme="light"] :is(.lab, .proj__visual, .preloader, .portrait) {
  color: var(--text);
  --bg: #07080a;
  --bg-2: #0d0f13;
  --bg-3: #13161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f7;
  --muted: #8b93a1;
  --ice: #9fc3e6;
  --ice-2: #6ea8dc;
  --ice-deep: #2b4a68;
  --ok: #5dffb0;
  --alert: #ff5d6c;
  --fg: #ffffff;
  --hi: #ffffff;
  --text-1: #d6dce5;
  --text-2: #c4cad4;
  --text-3: #b6bdc8;
  --dim: #737c89;
  --panel: #0b0d11;
  --panel-2: #11141a;
  --panel-3: #0a0c10;
  --shade: rgba(0, 0, 0, 0.9);
}
html.theme-anim { transition: --bg 0.7s var(--ease-soft), --bg-2 0.7s var(--ease-soft), --bg-3 0.7s var(--ease-soft), --line 0.7s var(--ease-soft), --line-2 0.7s var(--ease-soft), --text 0.7s var(--ease-soft), --muted 0.7s var(--ease-soft), --ice 0.7s var(--ease-soft), --ice-2 0.7s var(--ease-soft), --ice-deep 0.7s var(--ease-soft), --ok 0.7s var(--ease-soft), --alert 0.7s var(--ease-soft), --fg 0.7s var(--ease-soft), --hi 0.7s var(--ease-soft), --text-1 0.7s var(--ease-soft), --text-2 0.7s var(--ease-soft), --text-3 0.7s var(--ease-soft), --dim 0.7s var(--ease-soft), --panel 0.7s var(--ease-soft), --panel-2 0.7s var(--ease-soft), --panel-3 0.7s var(--ease-soft), --shade 0.7s var(--ease-soft); }
html.theme-anim body { transition: background-color 0.7s var(--ease-soft), color 0.7s var(--ease-soft); }

html[data-theme="light"] .hero__glow {
  background:
    radial-gradient(ellipse 34% 16% at 50% 6%, rgba(120, 170, 222, 0.55), rgba(150, 190, 228, 0.3) 50%, transparent 100%),
    radial-gradient(ellipse 60% 30% at 50% 6%, rgba(110, 168, 220, 0.3), transparent 70%);
}
html[data-theme="light"] .hero__arc { border-color: rgba(44, 106, 166, 0.35); box-shadow: 0 0 40px rgba(110, 168, 220, 0.3), inset 0 0 60px rgba(110, 168, 220, 0.12); }
html[data-theme="light"] .hero__scan { background: conic-gradient(from 0deg, transparent 0deg, rgba(44, 106, 166, 0.5) 6deg, transparent 22deg); }
html[data-theme="light"] .radar__beam { background: conic-gradient(from -70deg, transparent 0deg, rgba(44, 106, 166, 0.02) 20deg, rgba(44, 106, 166, 0.2) 69deg, rgba(44, 106, 166, 0.7) 70deg, transparent 70.6deg); }
html[data-theme="light"] .hero__canvas { opacity: 1; }

/* ---------- Theme toggle: a sun that folds into a moon ---------- */
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: none; color: var(--text); cursor: pointer;
  transition: border-color 0.5s var(--ease-soft), background 0.5s var(--ease-soft);
}
.theme-toggle:hover { border-color: var(--ice); background: rgba(159, 195, 230, 0.08); }
.theme-toggle svg { width: 18px; height: 18px; overflow: visible; transition: transform 0.7s var(--ease); }
.theme-toggle .tt-core { transition: r 0.6s var(--ease); }
.theme-toggle .tt-cut { transition: transform 0.6s var(--ease); transform: translate(9px, -9px); }
.theme-toggle .tt-rays { transform-origin: 12px 12px; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease-soft); }
/* dark theme shows the moon (click for light), light theme shows the sun */
html:not([data-theme="light"]) .theme-toggle .tt-core { r: 8px; }
html:not([data-theme="light"]) .theme-toggle .tt-cut { transform: translate(4px, -4px); }
html:not([data-theme="light"]) .theme-toggle .tt-rays { transform: rotate(-45deg) scale(0.4); opacity: 0; }
html:not([data-theme="light"]) .theme-toggle svg { transform: rotate(-30deg); }
@media (max-width: 760px) { .theme-toggle { width: 34px; height: 34px; } }
html[data-theme="light"] .lang-wave { box-shadow: inset 0 0 0 1.5px rgba(44, 106, 166, 0.85), inset 0 0 22px 2px rgba(59, 127, 192, 0.35); }
html[data-theme="light"] .lang-wave.trail { box-shadow: inset 0 0 0 1px rgba(44, 106, 166, 0.35), inset 0 0 40px 6px rgba(59, 127, 192, 0.1); }

/* ---------- Light theme polish: depth comes from soft shadows, not grey fills ---------- */
:where(html[data-theme="light"]) :is(.proj, .award, .edu, .radar__detail, .radar__item, .certs, .intro__record) {
  box-shadow: 0 1px 2px rgba(16, 28, 45, 0.05), 0 10px 30px -14px rgba(16, 28, 45, 0.16);
}
html[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .btn--ghost:hover { background: #ffffff; }
html[data-theme="light"] .radar__item .num { opacity: 1; }
html[data-theme="light"] .claim__hash { color: rgba(35, 92, 147, 0.06); }
html[data-theme="light"] .claim.verified .claim__hash { color: rgba(6, 122, 72, 0.07); }
html[data-theme="light"] .lab { box-shadow: 0 40px 90px -50px rgba(16, 28, 45, 0.45); }
html[data-theme="light"] ::selection { background: #235c93; color: #fff; }
html[data-theme="light"] .cert { background: #ffffff; }
html[data-theme="light"] .cert:hover { background: var(--bg-3); }
