/* ════════════════════════════════════════════════════════════
   AMANUEL TADESSE — PORTFOLIO
   Hand-written CSS. No framework, no build step.
   ════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:        #08080c;
  --ink-2:      #0d0d14;
  --ink-3:      #14141d;
  --bone:       #f2efe8;
  --bone-dim:   #a8a49b;
  --line:       rgba(242, 239, 232, 0.12);
  --line-soft:  rgba(242, 239, 232, 0.06);

  --acid:       #d7ff3e;
  --violet:     #6e4bff;
  --coral:      #ff5a3c;
  --cyan:       #35e7ff;

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Impact, sans-serif;
  --font-body:    'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 5rem);
  --maxw: 1600px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur:       0.7s;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.has-smooth { scroll-behavior: auto; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.88; letter-spacing: -0.03em; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 999; background: var(--acid); color: var(--ink);
  padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 0.8rem;
  border-radius: 0 0 8px 8px; transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

/* ── SMOOTH SCROLL WRAPPER ──────────────────────────────── */
.smooth-wrap { will-change: transform; }

/* ── GRAIN + PROGRESS ───────────────────────────────────── */
.grain {
  position: fixed; inset: -150%; z-index: 300; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(2) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 3%); }
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 260;
  background: var(--line-soft); pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acid), var(--cyan) 50%, var(--violet));
  box-shadow: 0 0 18px rgba(215, 255, 62, 0.6);
}

/* ── LOADER ─────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 500; background: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.75s var(--ease), opacity 0.45s ease 0.25s;
}
.loader.is-done { transform: translateY(-101%); opacity: 0.4; pointer-events: none; }
.loader__inner { width: min(90vw, 1100px); }
.loader__word {
  overflow: hidden; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 10rem); line-height: 0.9; letter-spacing: -0.045em;
}
.loader__word span {
  display: block; transform: translateY(105%);
  animation: loaderUp 0.6s var(--ease) 0.05s forwards;
  background: linear-gradient(100deg, var(--bone) 30%, var(--acid));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes loaderUp { to { transform: translateY(0); } }
.loader__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.25em;
  color: var(--bone-dim); margin: 1.25rem 0 0.75rem;
}
.loader__count { color: var(--acid); font-size: clamp(1rem, 3vw, 1.5rem); letter-spacing: 0; }
.loader__bar { height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0%; background: var(--acid); }

/* ── CURSOR ─────────────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bone); transform: translate(-50%, -50%);
}
.cursor__ring {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(242, 239, 232, 0.65); transform: translate(-50%, -50%);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cursor__label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em;
  color: var(--ink); opacity: 0; transition: opacity 0.25s ease;
}
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; background: rgba(242, 239, 232, 0.14); border-color: transparent; }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; background: var(--bone); border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 250;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem var(--pad);
  transition: transform 0.5s var(--ease), background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 8, 12, 0.72); backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.nav__logo-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em;
}
.nav__logo-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acid);
  box-shadow: 0 0 0 0 rgba(215, 255, 62, 0.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(215, 255, 62, 0.65); }
  70%  { box-shadow: 0 0 0 12px rgba(215, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 255, 62, 0); }
}
.nav__links { display: flex; gap: 0.35rem; }
.nav__link {
  position: relative; display: block; overflow: hidden;
  height: 1.5em; padding: 0 0.85rem; margin-block: 0.4rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav__link span { display: block; height: 1.5em; line-height: 1.5em; transition: transform 0.45s var(--ease); }
.nav__link span:last-child { color: var(--acid); }
.nav__link:hover span { transform: translateY(-100%); }
.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__resume {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone); padding: 0.4rem 0.2rem; border-bottom: 1px solid rgba(215, 255, 62, 0.4);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__resume:hover, .nav__resume:focus-visible { color: var(--acid); border-color: var(--acid); }
.nav__clock {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--bone-dim);
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 99px; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; border: 1px solid var(--line);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--acid); transform: translateY(101%); border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--acid); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.72rem; }
.btn--primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--primary::before { background: var(--acid); }
.btn--ghost { color: var(--bone); }
.btn--full { width: 100%; justify-content: center; }
.btn__arrow { font-style: normal; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }

/* ── MOBILE MENU ────────────────────────────────────────── */
.burger { display: none; width: 42px; height: 42px; position: relative; border-radius: 50%; border: 1px solid var(--line); }
.burger i {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--bone);
  transform: translateX(-50%); transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger i:first-child { top: 17px; }
.burger i:last-child  { bottom: 17px; }
.burger.is-open i:first-child { top: 20px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open i:last-child  { bottom: 20.5px; transform: translateX(-50%) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 240; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 6rem var(--pad) 2rem;
  clip-path: circle(0% at calc(100% - 3rem) 2.5rem);
  transition: clip-path 0.75s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.5rem); pointer-events: auto; }
.menu__list { display: flex; flex-direction: column; }
.menu__item {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.5rem 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 15vw, 6rem); line-height: 1; letter-spacing: -0.045em;
  text-transform: uppercase;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.menu.is-open .menu__item { opacity: 1; transform: none; }
.menu.is-open .menu__item:nth-child(1) { transition-delay: 0.18s; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: 0.26s; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: 0.34s; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: 0.42s; }
.menu__item em { font-family: var(--font-mono); font-size: 0.8rem; font-style: normal; color: var(--acid); }
.menu__item:active { color: var(--acid); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; margin-top: 2rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--bone-dim); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 8rem var(--pad) 5rem; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.hero__glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; right: -10vw; top: -15vw;
  background: radial-gradient(circle, rgba(110, 75, 255, 0.35), transparent 62%);
  filter: blur(40px); pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bone-dim);
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); animation: pulse 2.4s infinite; }
.hero__eyebrow .sep { color: var(--acid); }
.hero__title {
  font-size: clamp(3.2rem, 15.5vw, 16rem);
  line-height: 0.82; letter-spacing: -0.05em; text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line--out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone);
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 0.8s var(--ease);
}
.hero__title .line--out:hover { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.hero__row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 2rem;
  align-items: end; margin-top: clamp(1.5rem, 4vw, 3rem);
}
.hero__lead { max-width: 56ch; color: #c9c5bd; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hero__lead b { color: var(--bone); font-weight: 700; }
.hero__lead em { font-style: normal; color: var(--acid); font-weight: 700; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 5rem); list-style: none;
  border-top: 1px solid var(--line); background: var(--line-soft);
}
.hero__stats li { background: var(--ink); padding: 1.25rem 1rem 0.5rem; }
.hero__stats strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hero__stats li:nth-child(1) strong { color: var(--acid); }
.hero__stats li:nth-child(2) strong { color: var(--cyan); }
.hero__stats li:nth-child(3) strong { color: var(--coral); }
.hero__stats li:nth-child(4) strong { color: var(--bone); }
.hero__stats span {
  display: block; margin-top: 0.4rem; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim);
}
.hero__scroll {
  position: absolute; z-index: 2; top: 50%; right: 0.7rem; transform: translateY(-50%);
  writing-mode: vertical-rl; text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--bone-dim);
  transition: color 0.3s ease;
}
.hero__scroll:hover { color: var(--acid); }
.hero__scroll i { display: block; width: 1px; height: 46px; margin: 0.9rem auto 0; background: linear-gradient(var(--acid), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ── MARQUEE ────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line); background: var(--ink-2);
  overflow: hidden; padding: 0.9rem 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 2.2rem; will-change: transform; }
.marquee span {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.6vw, 3rem); letter-spacing: -0.03em; color: var(--bone);
}
.marquee b { color: var(--acid); font-size: clamp(0.8rem, 1.6vw, 1.3rem); }
.marquee span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px var(--bone-dim); }

/* ── SECTION SHELL ──────────────────────────────────────── */
.section { position: relative; padding: clamp(5rem, 12vh, 10rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.section__head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section__lede { margin-top: 1.2rem; max-width: 52ch; color: var(--bone-dim); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.tag {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem;
  border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone-dim);
}
.tag i { font-style: normal; color: var(--acid); }
.section__title {
  margin-top: 1.2rem; font-size: clamp(2.6rem, 9vw, 8rem);
  text-transform: uppercase; letter-spacing: -0.045em;
}

/* ── REVEAL PRIMITIVES ──────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.char-line { display: block; overflow: hidden; }
.char-line > span { display: inline-block; transform: translateY(110%); transition: transform 0.95s var(--ease); }
.is-in .char-line > span, .char-line.is-in > span { transform: translateY(0); }
.word { display: inline-block; opacity: 0.38; transition: opacity 0.45s ease, color 0.45s ease; }
.word.is-lit { opacity: 1; }

/* ── ABOUT ──────────────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); }
.statement {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em;
  margin-bottom: 2.5rem;
}
.about__body { max-width: 62ch; color: #bdb9b1; }
.about__body b { color: var(--acid); font-weight: 500; }
.about__cards { display: flex; flex-direction: column; gap: 1rem; }
.card {
  position: relative; overflow: hidden; padding: 1.6rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  transform-style: preserve-3d; transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.card:hover { border-color: rgba(215, 255, 62, 0.45); box-shadow: 0 24px 60px -30px rgba(215, 255, 62, 0.35); }
.card__kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--bone-dim);
}
.card h3 { margin: 0.9rem 0 0.35rem; font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; }
.card p { color: #b3afa7; font-size: 0.95rem; }
.card__years { display: block; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--acid); }
.card--now { background: linear-gradient(160deg, rgba(110, 75, 255, 0.18), var(--ink)); }
.card--side { background: linear-gradient(160deg, rgba(255, 90, 60, 0.14), var(--ink)); }
.card__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 45%);
  transition: opacity 0.4s ease;
}
.card:hover .card__shine { opacity: 1; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); animation: pulse 2.4s infinite; display: inline-block; }

/* ── STACK ──────────────────────────────────────────────── */
.stack__label {
  display: block; margin-bottom: 1.4rem; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim);
}
.stack__core-list { list-style: none; border-top: 1px solid var(--line); }
.stack__core-list li {
  position: relative; display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem; align-items: center; padding: clamp(1.1rem, 2.6vw, 2rem) 0.5rem;
  border-bottom: 1px solid var(--line); overflow: hidden; cursor: default;
  transition: padding-left 0.5s var(--ease), color 0.4s ease;
}
.stack__core-list li::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(215, 255, 62, 0.12), transparent);
  transform: translateX(-100%); transition: transform 0.6s var(--ease);
}
.stack__core-list li:hover { padding-left: 1.6rem; }
.stack__core-list li:hover::before { transform: translateX(0); }
.stack__core-list .idx { font-family: var(--font-mono); font-size: 0.78rem; color: var(--acid); }
.stack__core-list h3 {
  font-size: clamp(1.8rem, 5.2vw, 4.2rem); text-transform: uppercase; letter-spacing: -0.04em;
  transition: transform 0.5s var(--ease), color 0.4s ease;
}
.stack__core-list li:hover h3 { color: var(--acid); }
.stack__core-list p { color: var(--bone-dim); font-size: 0.95rem; justify-self: end; text-align: right; max-width: 34ch; }
.stack__secondary { margin-top: clamp(3rem, 7vw, 6rem); }
.stack__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  padding: 0.7rem 1.3rem; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.82rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.chip:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip--muted { color: var(--bone-dim); }

/* ── IMPACT ─────────────────────────────────────────────── */

/* ── WORK ───────────────────────────────────────────────── */
.work__list { border-top: 1px solid var(--line); }
.job { position: relative; border-bottom: 1px solid var(--line); }
.job__bar {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, rgba(110, 75, 255, 0.16), rgba(215, 255, 62, 0.07) 60%, transparent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.job.is-open .job__bar { transform: scaleY(1); transform-origin: top; }
.job__head {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 4rem 3rem minmax(0, 1fr) auto; gap: 1.2rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0.5rem; cursor: pointer;
  transition: padding-left 0.5s var(--ease);
}
.job:hover .job__head { padding-left: 1.4rem; }
.job__idx { font-family: var(--font-mono); font-size: 0.78rem; color: var(--acid); }
.job__title h3 {
  font-size: clamp(1.7rem, 4.6vw, 3.6rem); text-transform: uppercase; letter-spacing: -0.04em;
  transition: color 0.4s ease;
}
.job__title h3 .arrow { display: inline-block; color: var(--acid); transition: transform 0.5s var(--ease); }
.job:hover .job__title h3 .arrow { transform: translateX(8px); }
.job:hover .job__title h3 { color: var(--acid); }
.job__role { margin-top: 0.45rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--bone-dim); letter-spacing: 0.05em; }
.job__years { font-family: var(--font-mono); font-size: 0.82rem; color: var(--bone-dim); white-space: nowrap; }
.job__body {
  position: relative; z-index: 1; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease), opacity 0.5s ease;
  opacity: 0; overflow: hidden;
}
.job.is-open .job__body { grid-template-rows: 1fr; opacity: 1; }
.job__inner { min-height: 0; }
.job__intro, .job__points, .job__tags, .job__site { padding-inline: 0.5rem; }
/* per-role headline numbers: big tiles for the current role, a compact row for the rest */
.job__stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; margin: 0.2rem 0 1.6rem; padding-inline: 0.5rem; }
.job__stats b {
  display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--bone);
}
.job__stats span { display: block; margin-top: 0.45rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--bone-dim); }
.job__stats--feature {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0; margin-inline: 0.5rem;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line);
}
.job__stats--feature div { padding: clamp(1.1rem, 2.4vw, 1.8rem); background: var(--ink); }
.job__stats--feature b { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.05em; }
.job__stats--feature div:nth-child(1) b { color: var(--acid); }
.job__stats--feature div:nth-child(2) b { color: var(--cyan); }
.job__stats--feature div:nth-child(3) b { color: var(--coral); }
.job__stats--feature span { font-size: 0.78rem; margin-top: 0.7rem; }
@media (max-width: 640px) {
  .job__stats { gap: 1rem 1.8rem; }
  .job__stats--feature { gap: 1px; }
  .job__stats--feature div { padding: 0.9rem 0.8rem; }
  .job__stats--feature b { font-size: clamp(1.5rem, 8vw, 2.1rem); letter-spacing: -0.04em; }
  .job__stats--feature span { font-size: 0.66rem; margin-top: 0.45rem; }
}
.job__logo {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  background: var(--bone); overflow: hidden;
}
.job__logo img { width: 72%; height: 72%; object-fit: contain; }
.job__logo b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.job__site {
  display: inline-block; margin: -0.3rem 0 1.2rem; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--acid); text-decoration: underline; text-decoration-color: rgba(215, 255, 62, 0.35); text-underline-offset: 4px;
}
.job__site:hover, .job__site:focus-visible { text-decoration-color: var(--acid); }
.job__intro { max-width: 70ch; color: #c2beb6; margin-bottom: 1.1rem; }
.job__points { list-style: none; display: grid; gap: 0.75rem; max-width: 80ch; margin-bottom: 1.4rem; }
.job__points li { position: relative; padding-left: 1.6rem; color: #b3afa7; font-size: 0.97rem; }
.job__points li::before {
  content: '▸'; position: absolute; left: 0; top: 0; color: var(--acid);
}
.job__points b { color: var(--bone); font-weight: 700; }
.job__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.job__tags span {
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--bone-dim);
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact { overflow: hidden; }
.contact__glow {
  position: absolute; z-index: 0; width: 70vw; height: 70vw; left: -20vw; bottom: -30vw;
  background: radial-gradient(circle, rgba(215, 255, 62, 0.16), transparent 62%);
  filter: blur(30px); pointer-events: none;
}
.contact .section__head, .contact__big, .contact__grid { position: relative; z-index: 1; }
.contact__big {
  font-size: clamp(3rem, 12vw, 11rem); text-transform: uppercase;
  letter-spacing: -0.05em; margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--bone);
}
/* clip the gradient on the animated inner spans: clipping on the parent
   leaves transformed children transparent in Chromium */
.contact__big .char-line > span, .contact__big:not(:has(.char-line)) {
  background: linear-gradient(130deg, var(--bone) 35%, var(--acid) 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 6rem); }
.contact__left { display: flex; flex-direction: column; align-items: flex-start; }
.contact__lead { max-width: 46ch; color: #bdb9b1; margin-bottom: 2rem; }
.contact__mail {
  display: inline-block; position: relative; font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.1rem, 2.6vw, 2.1rem); letter-spacing: -0.03em;
  word-break: break-all;
}
.contact__mail::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--acid); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__socials { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: auto; padding-top: 2.2rem; }
.contact__socials a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.2rem;
  border: 1px solid var(--line); border-radius: 99px; font-family: var(--font-mono); font-size: 0.8rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.contact__socials a i { font-style: normal; transition: transform 0.35s var(--ease); }
.contact__socials a:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.contact__socials a:hover i { transform: translate(3px, -3px); }

/* ── FORM ───────────────────────────────────────────────── */
.form {
  padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 22px;
  background: rgba(13, 13, 20, 0.72); backdrop-filter: blur(12px);
  display: grid; gap: 1.4rem; align-content: start;
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 0.2rem 0.6rem; border-bottom: 1px solid var(--line);
  transition: border-color 0.35s ease; resize: vertical;
}
.field label {
  position: absolute; left: 0.2rem; top: 1.35rem; color: var(--bone-dim);
  font-family: var(--font-mono); font-size: 0.85rem; pointer-events: none;
  transition: transform 0.35s var(--ease), color 0.35s ease, font-size 0.35s var(--ease);
  transform-origin: left top;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acid); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.15rem) scale(0.78); color: var(--acid);
}
.field__error { display: block; margin-top: 0.4rem; min-height: 1rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--coral); }
.field.has-error input, .field.has-error textarea { border-color: var(--coral); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__status { min-height: 1.3rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--bone-dim); }
.form__status.is-ok { color: var(--acid); }
.form__status.is-bad { color: var(--coral); }
.form.is-sending { opacity: 0.6; pointer-events: none; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem) var(--pad) 1.5rem; overflow: hidden; }
.footer__top { max-width: var(--maxw); margin: 0 auto 2rem; }
.footer__name {
  display: block; font-family: var(--font-display); font-weight: 800; text-align: center;
  font-size: clamp(1.6rem, 11vw, 12rem); line-height: 0.85; letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 239, 232, 0.35);
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s var(--ease);
}
.footer__name:hover { color: var(--acid); -webkit-text-stroke-color: transparent; }
.footer__bar {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--bone-dim);
}
.footer__time { display: inline-flex; align-items: center; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.footer__top-link { transition: color 0.3s ease; }
.footer__top-link:hover { color: var(--acid); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__row { grid-template-columns: 1fr; align-items: start; }
  .stack__core-list li { grid-template-columns: 3rem minmax(0, 1fr); }
  .stack__core-list p { grid-column: 2; justify-self: start; text-align: left; margin-top: 0.4rem; }
}
@media (max-width: 860px) {
  .nav__links, .nav__clock, .nav__resume { display: none; }
  .nav .btn--sm { display: none; }
  .burger { display: block; }
  .hero { padding-top: 7rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .job__head { grid-template-columns: 2rem 2.5rem minmax(0, 1fr); row-gap: 0.4rem; }
  .job__logo { width: 2.5rem; height: 2.5rem; border-radius: 10px; }
  .job__years { grid-column: 3; }
  .hero__scroll { display: none; }
  .hero__eyebrow { display: block; line-height: 1.7; }
  .hero__eyebrow .dot { display: inline-block; margin-right: 0.6rem; vertical-align: 1px; }
  .eyebrow-extra { display: block; margin-top: 0.3rem; color: var(--acid); }
  .eyebrow-extra .sep { display: none; }
}
@media (max-height: 720px) {
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  .hero__title { font-size: clamp(2.8rem, 17vw, 5rem); }
  .form { padding: 1.2rem; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .char-line > span { transform: none !important; }
  .word { opacity: 1 !important; }
  .grain, .hero__canvas { display: none; }
  .job__body { grid-template-rows: 1fr; opacity: 1; }
}

/* ── STATIC FALLBACK ────────────────────────────────────────
   .is-static is set by a head failsafe if app.js never finishes;
   <noscript> in index.html applies the same rules without JS. */
.is-static .loader, .is-static .cursor { display: none; }
.is-static [data-reveal] { opacity: 1 !important; transform: none !important; }
.is-static .char-line > span { transform: none !important; }
.is-static .word { opacity: 1 !important; }
.is-static .job__body { grid-template-rows: 1fr; opacity: 1; }
.is-static body { overflow: auto; }

/* ── PROJECTS ───────────────────────────────────────────── */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.project {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2.2rem); min-height: 22rem;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(165deg, var(--ink-2), var(--ink) 65%);
  transform-style: preserve-3d;
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
}
.project::after {
  content: ''; position: absolute; inset: auto -30% -55% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(110, 75, 255, 0.35), transparent 65%);
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.project:hover { border-color: rgba(215, 255, 62, 0.45); box-shadow: 0 30px 70px -40px rgba(215, 255, 62, 0.45); }
.project:hover::after { opacity: 1; }
.project:hover .card__shine { opacity: 1; }
.project__idx {
  position: absolute; top: 0.6rem; right: 1.2rem;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1; letter-spacing: -0.05em; color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 232, 0.14);
  transition: -webkit-text-stroke-color 0.45s var(--ease), transform 0.6s var(--ease);
}
.project:hover .project__idx { -webkit-text-stroke-color: rgba(215, 255, 62, 0.5); transform: translateY(-4px); }
.project h3 {
  position: relative; margin-bottom: 0.9rem; font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  text-transform: uppercase; letter-spacing: -0.035em; transition: color 0.4s ease;
}
.project:hover h3 { color: var(--acid); }
.project > p { position: relative; color: #b3afa7; font-size: 0.95rem; max-width: 36ch; }
.project__meta { position: relative; margin-top: auto; padding-top: 1.6rem; }
.project__year { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--acid); margin-bottom: 0.7rem; }
.project__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project__tags span {
  padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--bone-dim);
}
.project__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.project__link {
  padding: 0.45rem 0.9rem; border: 1px solid rgba(215, 255, 62, 0.4); border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--acid);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.project__link:hover, .project__link:focus-visible { background: var(--acid); color: var(--ink); }
.project__link--case { background: var(--acid); color: var(--ink); }
.project__link--case:hover, .project__link--case:focus-visible { background: var(--bone); border-color: var(--bone); }
.project__private { font-family: var(--font-mono); font-size: 0.7rem; color: var(--bone-dim); }
/* ── fun / game teaser ─────────────────────────── */
.fun__card {
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(135deg, var(--ink-2), var(--ink) 70%);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.fun__card:hover, .fun__card:focus-visible { border-color: rgba(215, 255, 62, 0.45); box-shadow: 0 30px 80px -40px rgba(110, 75, 255, 0.6); }
.fun__media { position: relative; overflow: hidden; min-height: 16rem; }
.fun__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fun__card:hover .fun__media img { transform: scale(1.05); }
.fun__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%;
  background: var(--acid); color: var(--ink); font-size: 1.2rem; padding-left: 0.2rem;
  box-shadow: 0 0 0 10px rgba(215, 255, 62, 0.15); transition: transform 0.5s var(--ease);
}
.fun__card:hover .fun__play { transform: scale(1.1); }
.fun__copy { display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; padding: clamp(1.6rem, 3.5vw, 3rem); }
.fun__kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid); }
.fun__copy h3 { font-size: clamp(2rem, 4vw, 3.4rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.95; }
.fun__copy p { color: #b3afa7; max-width: 42ch; }
.fun__cta { align-self: flex-start; margin-top: 0.4rem; }
.nav__link--play span { color: var(--acid); }
@media (max-width: 860px) { .fun__card { grid-template-columns: 1fr; } .fun__media { min-height: 0; aspect-ratio: 5 / 3; } }
@media (max-width: 1080px) { .projects__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px)  { .projects__grid { grid-template-columns: 1fr; } .project { min-height: 0; } }

/* ── PRINT ──────────────────────────────────────────────────
   A clean, ink-friendly version for recruiters who hit Ctrl+P.
   The one-page résumé PDF is still the better handout. */
@media print {
  :root { --ink: #fff; --ink-2: #fff; --bone: #111; --bone-dim: #444; --line: #ccc; }
  *, *::before, *::after {
    color: #111 !important; background: transparent !important; box-shadow: none !important;
    text-shadow: none !important; -webkit-text-fill-color: currentColor !important; animation: none !important; transition: none !important;
  }
  html, body { background: #fff !important; }
  .btn, .tag, .project, .card, .job, .job__stats div { border-color: #bbb !important; }
  .loader, .cursor, .grain, .scroll-progress, .nav, .menu, .hero__canvas, .hero__glow, .hero__grid,
  .hero__scroll, .marquee, .fun, .form, .card__shine, .contact__glow, .skip-link { display: none !important; }
  [data-reveal], .word, .char-line > span { opacity: 1 !important; transform: none !important; }
  .job__body { grid-template-rows: 1fr !important; opacity: 1 !important; }
  .hero { min-height: 0 !important; padding-top: 0 !important; }
  .hero__title .line--out, .project__idx { -webkit-text-stroke: 0 !important; color: #111 !important; }
  .section { padding-block: 1.2rem !important; }
  .job, .project, .card { break-inside: avoid; }
  a { color: #111 !important; }
  .project__link::after, .job__site::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
