/* ==========================================================================
   K Manimaran — Full Stack Developer
   Design tokens → primitives → sections → components → responsive → a11y
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg:          #05060a;
  --bg-2:        #080a12;
  --bg-3:        #0b0e18;

  --surface:     rgba(255, 255, 255, .040);
  --surface-2:   rgba(255, 255, 255, .065);
  --line:        rgba(255, 255, 255, .090);
  --line-2:      rgba(255, 255, 255, .170);

  --ink:         #eef1f8;
  --ink-2:       #a8b1c6;
  --ink-3:       #6d7793;

  --azure:       #6694ff;
  --aqua:        #0fe0c7;
  --violet:      #a173ff;
  --rose:        #ff5494;
  --amber:       #ff8c29;
  --gold:        #f7d64d;

  --grad:      linear-gradient(112deg, var(--azure) 0%, var(--violet) 38%, var(--rose) 72%, var(--amber) 100%);
  --grad-cool: linear-gradient(112deg, var(--aqua), var(--azure) 60%, var(--violet));

  --display: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell: 1200px;
  --shell-wide: 1460px;
  --pad: clamp(20px, 4vw, 40px);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --head-h: 68px;

  --shadow-lg: 0 30px 80px -34px rgba(0, 0, 0, .95);
  --shadow-md: 0 16px 40px -22px rgba(0, 0, 0, .9);
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(.98rem, .35vw + .9rem, 1.05rem);
  line-height: 1.68;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* ambient light behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%,  rgba(102, 148, 255, .16), transparent 62%),
    radial-gradient(760px 560px at 92% 4%,   rgba(255,  84, 148, .11), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(15, 224, 199, .09), transparent 62%);
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

img, svg, canvas { display: block; max-width: 100%; }
svg { fill: none; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
}
b, strong { font-weight: 700; color: var(--ink); }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------- scrollbar */
.scrollbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9997;
  background: rgba(255, 255, 255, .05);
}
.scrollbar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(161, 115, 255, .7);
}

/* ------------------------------------------------------------------ cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s;
}
.cursor > i {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor > i:first-child { width: 34px; height: 34px; border: 1px solid #fff; }
.cursor > i:last-child  { width: 5px;  height: 5px;  background: #fff; }
html.has-cursor .cursor { opacity: 1; }
html.has-cursor .cursor.is-hot > i:first-child { width: 58px; height: 58px; }
html.has-cursor a, html.has-cursor button, html.has-cursor [data-tilt] { cursor: none; }

/* -------------------------------------------------------------- preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(360px, 78vw); text-align: center; }
.preloader__mark {
  width: 58px; height: 58px;
  margin: 0 auto 26px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--grad);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  animation: markPulse 1.8s var(--ease) infinite;
}
@keyframes markPulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-4deg); }
}
.preloader__bar {
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
}
.preloader__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------- 3D */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}
.stage canvas { width: 100%; height: 100%; }
.stage__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 45%, transparent 42%, rgba(5, 6, 10, .55) 100%);
}
.stage-fallback {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
  background:
    radial-gradient(60vw 60vw at 68% 30%, rgba(102, 148, 255, .30), transparent 60%),
    radial-gradient(45vw 45vw at 30% 62%, rgba(255, 84, 148, .22), transparent 60%),
    radial-gradient(50vw 50vw at 52% 78%, rgba(15, 224, 199, .18), transparent 60%);
  filter: blur(20px);
}
.stage-fallback.is-on { opacity: 1; }

/* the container is faded in only while the constellation scene is active,
   so stale hub labels can never stack in a corner during the hero */
.netlabels {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.netlabels.is-on { opacity: 1; }
.netlabel {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: .3rem .6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(8, 10, 18, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}
.netlabel.is-on { opacity: 1; }
.netlabel--hub {
  opacity: 1;
  font-family: var(--body);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .02em;
  padding: .34rem .72rem;
}

/* ---------------------------------------------------------------- header */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 10001;
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--aqua);
  color: #04120f;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 10, .62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(5, 6, 10, .86);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--head-h);
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  font-family: var(--display);
  font-weight: 800;
  font-size: .74rem;
  color: #fff;
  letter-spacing: .02em;
}
.brand__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  position: relative;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--ink-2);
  padding: .4rem 0;
  transition: color .22s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--grad-cool);
  transition: width .28s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.site-head__cta { display: flex; align-items: center; gap: .8rem; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 9px;
}
.burger > i {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s;
}
.burger.is-open > i:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger.is-open > i:last-child  { transform: translateY(-3.3px) rotate(-45deg); }

/* ------------------------------------------------------------------ shell */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 2;
}
.shell--wide { max-width: calc(var(--shell-wide) + var(--pad) * 2); }

/* ------------------------------------------------------------------ shared */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  --btn-py: .92rem;
  --btn-px: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--sm { --btn-py: .55rem; --btn-px: 1.15rem; font-size: .78rem; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 34px -14px rgba(161, 115, 255, .85);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px -14px rgba(255, 84, 148, .8); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--aqua); background: var(--surface-2); }

.btn--icon {
  --btn-px: 0; --btn-py: 0;
  width: 46px; height: 46px;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.btn--icon svg { width: 19px; height: 19px; }
.btn--icon:hover { color: var(--ink); border-color: var(--aqua); transform: translateY(-3px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.05rem .5rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  flex: none;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--aqua);
  animation: ping 2.1s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}

.card {
  position: relative;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}

/* gradient hairline on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.card:hover::after { opacity: .85; }

/* reveal — uses the independent `translate` property so the card `transform`
   stays free for pointer tilt without the two fighting each other */
.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
}
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 12vh, 8rem) clamp(5rem, 14vh, 9rem);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34vh;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: .99;
  letter-spacing: -.035em;
  margin: 1.4rem 0 1.6rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title > span { display: block; }
.hero__title .grad { display: block; }

.hero__lede {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(1rem, .5vw + .9rem, 1.14rem);
  line-height: 1.78;
}
.hero__lede strong { color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.4rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  max-width: 940px;
}
.stat {
  padding: 1.35rem 1.2rem;
  background: rgba(8, 10, 18, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stat dt {
  order: 2;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: .45rem;
}
.stat dd {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat { display: flex; flex-direction: column; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 4vh, 2.4rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__scroll > i {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--aqua), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll > i::after {
  content: '';
  position: absolute;
  top: -46px; left: 0;
  width: 100%; height: 46px;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(0); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(92px); opacity: 0; }
}

/* ---------------------------------------------------------------- marquee */
.marquee {
  position: relative;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
  background: rgba(6, 8, 14, .6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.marquee__track > span > i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- sections */
.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  background: var(--bg);
}
.section > .shell { position: relative; z-index: 2; }

.sec-head { max-width: 62ch; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__idx {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1.1rem;
}
.sec-head__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.sec-head__sub {
  margin-top: 1.1rem;
  color: var(--ink-2);
  max-width: 56ch;
  font-size: .96rem;
}
.sec-head--center .sec-head__sub { margin-inline: auto; }

/* ------------------------------------------------------------------ about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}
.about__copy { display: grid; gap: 1.25rem; color: var(--ink-2); max-width: 66ch; }
.about__copy strong { color: var(--aqua); font-weight: 700; }

.about__card { padding: 1.7rem 1.6rem; }
.about__card h3 {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.facts { display: grid; gap: .05rem; }
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .84rem;
}
.facts li:last-child { border-bottom: 0; }
.facts span { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.facts b { font-weight: 600; text-align: right; }
.facts .ok { color: var(--aqua); }

/* ----------------------------------------------------------------- skills */
.section--skills { background: transparent; }
.section--skills::before,
.section--skills::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 22vh;
  pointer-events: none;
  z-index: 1;
}
.section--skills::before { top: 0;    background: linear-gradient(to bottom, var(--bg), transparent); }
.section--skills::after  { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }

/* leave real breathing room so the constellation is visible, not buried
   behind the cards */
.section--skills .sec-head--center {
  min-height: min(66vh, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.skill {
  padding: 1.6rem 1.5rem 1.7rem;
  overflow: hidden;
  background: rgba(8, 10, 18, .58);
}
.skill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--cat)), transparent 78%);
  opacity: .95;
}
.skill__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .2rem;
}
.skill__hint {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.15rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1;
  padding: .42rem .62rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.chips li:hover {
  color: #fff;
  border-color: rgb(var(--cat));
  background: rgba(var(--cat), .16);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------- timeline */
.timeline { position: relative; display: grid; gap: 1.4rem; padding-left: 2.2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--azure), var(--violet) 45%, var(--rose) 75%, transparent);
  opacity: .55;
}
.tl { position: relative; }
.tl__marker {
  position: absolute;
  left: -2.2rem;
  top: 1.5rem;
  width: 16px; height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl__marker > i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aqua);
}
.tl__body { padding: 1.6rem 1.7rem; }
.tl__when {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: .55rem;
}
.tl__role {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-bottom: .25rem;
}
.tl__org { color: var(--rose); font-size: .87rem; font-weight: 600; margin-bottom: 1.1rem; }
.tl__note { font-size: .87rem; margin-bottom: .6rem; }
.tl__text { color: var(--ink-2); font-size: .89rem; }
.tl__points { display: grid; gap: .7rem; }
.tl__points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-2);
  font-size: .89rem;
  line-height: 1.72;
}
.tl__points li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------- projects */
.filter { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .22s, border-color .22s, background .22s, transform .22s;
}
.chip-btn span {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--ink-3);
}
.chip-btn:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--ink); }
.chip-btn.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(161, 115, 255, .9);
}
.chip-btn.is-active span { color: rgba(255, 255, 255, .78); }

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.4rem;
}
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.project.is-hidden { display: none; }

.project__art {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 18% 12%,  hsl(var(--hue) 92% 62% / .38), transparent 58%),
    radial-gradient(110% 120% at 88% 88%,  hsl(calc(var(--hue) + 55) 92% 60% / .30), transparent 60%),
    linear-gradient(140deg, #0a0d18, #0e1222);
  isolation: isolate;
}
.project__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 78%);
  z-index: -1;
}
.project__idx {
  position: absolute;
  top: 12px; left: 16px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .42);
}
.project__glyph {
  font-size: 3.1rem;
  line-height: 1;
  color: rgba(255, 255, 255, .9);
  filter: drop-shadow(0 6px 22px hsl(var(--hue) 90% 60% / .8));
  transform: translateZ(30px);
  transition: transform .5s var(--ease-out);
}
.project:hover .project__glyph { transform: translateZ(46px) scale(1.09) rotate(-4deg); }

/* --- cards that have a real screenshot instead of the generated glyph --- */
.project__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.001);
  transition: transform .55s var(--ease-out), filter .55s var(--ease-out);
  filter: saturate(.94) contrast(1.02);
}
.project__art.has-shot::after { content: none; }
.project__art.has-shot {
  background: linear-gradient(140deg, #0a0d18, #0e1222);
}
.project__art.has-shot::before {
  /* a soft scrim keeps the index number readable over any screenshot */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 12, .55), transparent 42%, rgba(4, 6, 12, .28));
  pointer-events: none;
  z-index: 1;
}
.project:hover .project__shot { transform: scale(1.045); filter: saturate(1.04) contrast(1.05); }
.project__art.has-shot .project__idx { z-index: 2; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.6rem;
  transform: translateZ(24px);
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: .75rem;
}
.tag {
  padding: .26rem .55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--ink-2);
}
.tag--hot {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}
.project__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.22;
  letter-spacing: -.015em;
  margin-bottom: .7rem;
}
.project__lede {
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 1.15rem;
}
.stack { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.35rem; }
.stack li {
  font-family: var(--mono);
  font-size: .64rem;
  line-height: 1;
  padding: .36rem .52rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.stack--tight { gap: .28rem; margin-bottom: 0; }
.stack--tight li { font-size: .6rem; padding: .3rem .46rem; }
.cert .stack--tight { margin-top: .8rem; }
.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--ink-2);
  transition: color .2s;
}
.link svg { width: 12px; height: 12px; }
.link:hover { color: var(--aqua); }
.projects__empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .8rem;
}

/* card spotlight (JS-driven) */
.card[data-spot]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .09), transparent 62%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 1;
}
.card[data-spot]:hover::before { opacity: 1; }

/* -------------------------------------------------------------------- edu */
.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.timeline--edu { gap: 1.2rem; }

.certs { display: grid; gap: 1rem; }
.certs__head {
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .2rem;
}
.cert { padding: 1.4rem 1.4rem 1.5rem; }
.cert__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad-cool);
  color: #04120f;
  margin-bottom: 1rem;
}
.cert__icon svg { width: 19px; height: 19px; }
.cert h4 { font-family: var(--display); font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.cert__issuer {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .07em;
  color: var(--aqua);
  margin-bottom: .7rem;
}
.cert__desc { font-size: .82rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- contact */
.section--contact { background: var(--bg-2); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(102, 148, 255, .13), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(255, 84, 148, .11), transparent 55%),
    rgba(255, 255, 255, .028);
  overflow: hidden;
}
.contact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
}
.contact__lede { color: var(--ink-2); max-width: 52ch; margin-bottom: 1.9rem; }
.contact__copy .btn { font-size: .95rem; }

.contact__links { display: grid; gap: .1rem; }
.contact__links li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.contact__links li:last-child { border-bottom: 0; }
.contact__links span {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}
.contact__links a, .contact__links b {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.contact__links a { position: relative; }
.contact__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--aqua);
  transition: width .28s var(--ease-out);
}
.contact__links a:hover { color: var(--aqua); }
.contact__links a:hover::after { width: 100%; }
.contact__links a.is-copied { color: var(--aqua); }

/* ------------------------------------------------------------ contact form */
.cform {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.4rem, 3.4vw, 2.2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(6, 8, 14, .58);
  box-shadow: var(--shadow-md);
}
.cform__intro { color: var(--ink-2); font-size: .9rem; max-width: 56ch; }
.cform__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.field { display: grid; gap: .42rem; min-width: 0; }
.field__label {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field__req { color: var(--aqua); }
.field__opt {
  color: var(--ink-3);
  opacity: .7;
  letter-spacing: .06em;
  text-transform: none;
  font-size: .64rem;
}

.field__input {
  width: 100%;
  min-width: 0;
  padding: .82rem .95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  font-family: var(--body);
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  appearance: none;
}
.field__input::placeholder { color: var(--ink-3); opacity: .75; }
.field__input:hover { border-color: rgba(255, 255, 255, .26); }
/* No `outline: none` here on purpose — the site's global :focus-visible ring
   must survive so keyboard users always get a visible focus indicator. */
.field__input:focus {
  border-color: var(--aqua);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 3px rgba(15, 224, 199, .16);
}
.field__input--area { resize: vertical; min-height: 7.5rem; max-height: 22rem; }

.field__select { position: relative; }
.field__select::after {
  content: "";
  position: absolute;
  right: 1.05rem;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__select select { padding-right: 2.6rem; cursor: pointer; }
.field__select select option { background: var(--bg-3); color: var(--ink); }

.field__input[aria-invalid="true"] {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 84, 148, .14);
}
.field__err {
  margin: 0;
  min-height: 0;
  font-size: .74rem;
  color: var(--rose);
  opacity: 0;
  transition: opacity .18s;
}
.field__err:not(:empty) { opacity: 1; }
.field__count {
  margin: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--ink-3);
}
.field__count.is-near { color: var(--amber); }

/* hidden from people and assistive tech, still reachable by naive bots */
.cform__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.2rem;
}
.cform__submit { position: relative; }
.cform__submit[disabled] { opacity: .62; cursor: progress; }
.cform__submit svg { width: 17px; height: 17px; }
.cform__submit.is-sending svg { animation: cformFly 1.1s var(--ease) infinite; }
@keyframes cformFly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  50%      { transform: translate(3px, -3px) rotate(-12deg); opacity: .5; }
}

.cform__status {
  margin: 0;
  font-size: .84rem;
  color: var(--ink-2);
  min-height: 1.2em;
}
.cform__status:empty { min-height: 0; }
.cform__status--ok { color: var(--aqua); }
.cform__status--err { color: var(--rose); }
.cform__status--warn { color: var(--amber); }

.cform__fallback {
  margin: 0;
  font-size: .82rem;
  color: var(--ink-2);
}
.cform__fallback a {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .cform__row { grid-template-columns: minmax(0, 1fr); }
  .cform__foot { flex-direction: column; align-items: stretch; }
  .cform__submit { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cform__submit.is-sending svg { animation: none; }
  .field__input, .field__err { transition: none; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}

/* ----------------------------------------------------------------- footer */
.site-foot {
  position: relative;
  padding-block: 2.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-foot::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: .5;
}
.site-foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--ink-3);
}
.site-foot__meta { font-family: var(--mono); font-size: .72rem; }

/* ------------------------------------------------------------- back to top */
.totop {
  position: fixed;
  right: clamp(14px, 2.5vw, 26px);
  bottom: clamp(14px, 2.5vw, 26px);
  z-index: 200;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 20, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, border-color .3s;
}
.totop svg { width: 18px; height: 18px; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--aqua); }

/* ------------------------------------------------------------------ modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 40px);
}
.modal[hidden] { display: none; }
/* no backdrop-filter here on purpose: a full-screen blur stacked over the
   continuously animating WebGL canvas forces a full recomposite every frame,
   which is very expensive on integrated/mobile GPUs. A dense scrim reads the
   same over this near-black background. */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(4, 6, 12, .88), rgba(2, 3, 6, .95));
  animation: fade .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0b0e18, #080a12);
  box-shadow: var(--shadow-lg);
  animation: rise .38s var(--ease-out);
  overflow: hidden;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.modal__head h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.modal__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s, transform .2s;
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover { background: var(--surface-2); border-color: var(--line-2); transform: rotate(90deg); }
.modal__body {
  padding: 1.6rem 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__body > h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 1.7rem 0 .7rem;
}
.modal__body > h4:first-child { margin-top: 0; }
.modal__body p { color: var(--ink-2); font-size: .92rem; margin-bottom: .8rem; }
.modal__body ul { display: grid; gap: .5rem; }
.modal__body li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.68;
}
.modal__body li::before {
  content: '';
  position: absolute;
  left: 0; top: .7em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet);
}
.modal__body b { color: var(--ink); }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9500;
  transform: translate(-50%, 20px);
  padding: .7rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 20, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .about, .edu-grid, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --head-h: 62px; }
  .nav {
    position: fixed;
    inset: var(--head-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad) 1.6rem;
    background: rgba(6, 8, 14, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .32s var(--ease), opacity .28s, visibility .32s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .site-head__cta .btn--sm { display: none; }
  .projects { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__title { max-width: 100%; }
  .hero__scroll { display: none; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.05rem .95rem; }
  .brand__text { display: none; }
  .project__glyph { font-size: 2.5rem; }
  .contact { padding: 1.6rem 1.3rem; }
  .contact__links li { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .contact__links a, .contact__links b { text-align: left; }
  .site-foot__inner { flex-direction: column; align-items: flex-start; }
  .marquee { --pad: 20px; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* coarse pointers: no tilt, no custom cursor */
@media (hover: none) {
  .card[data-spot]::before { display: none; }
  .cursor { display: none; }
}

/* --------------------------------------------------------------- a11y / io */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; }
  .stage { display: none; }
  .cursor { display: none; }
  .preloader { display: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, .28); --line-2: rgba(255, 255, 255, .5); --ink-2: #ccd3e2; --ink-3: #a4adc2; }
  .card { background: rgba(14, 17, 26, .92); }
}

@media print {
  .stage, .stage-fallback, .cursor, .scrollbar, .preloader, .totop, .modal, .marquee, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .card, .stats, .contact { border: 1px solid #ccc; background: #fff; }
  .grad { -webkit-text-fill-color: #000; color: #000; }
  .section { padding-block: 1.5rem; page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .7em; color: #555; }
}
