/* ==========================================================================
   NEXLINK — design system
   Mobile-first. Neon green is an accent: states, fine lines, one primary action.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* palette */
  --bg: #050606;
  --surface: #101312;
  --surface-2: #151a18;
  --text: #f5f7f5;
  --muted: #a5ada8;
  --green: #39ff14;
  --green-soft: rgba(57, 255, 20, 0.12);
  --green-line: rgba(57, 255, 20, 0.45);
  --line: rgba(245, 247, 245, 0.1);
  --line-strong: rgba(245, 247, 245, 0.2);
  --danger: #ff7a7a;

  /* type */
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 1160px;
  --gutter: clamp(20px, 5.5vw, 40px);
  --radius: 4px;
  --topbar-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--green); color: #050606; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #050606; padding: 10px 14px; font-weight: 600; border-radius: var(--radius);
  transition: top 0.2s;
}
.skip:focus { top: 12px; }
.noscript { padding: 16px var(--gutter); color: var(--muted); }
.noscript a { color: var(--green); text-decoration: underline; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.topbar.is-scrolled {
  background: rgba(5, 6, 6, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--text); }
.brand__word { font-weight: 600; letter-spacing: 0.02em; font-size: 17px; }
.topbar__tag { font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: 0.14em; }
.nav { display: none; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px) var(--gutter) 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 120vw; height: 120vw; max-width: 900px; max-height: 900px;
  right: -40%; top: -10%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.09), transparent 62%);
  pointer-events: none;
}

.hero__media { max-width: 460px; margin-inline: auto; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 3.8;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  animation: rise 0.9s var(--ease) both;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.portrait__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(5, 6, 6, 0.55) 28%, transparent 58%),
    linear-gradient(115deg, rgba(5, 6, 6, 0.35), transparent 40%);
  pointer-events: none;
}
.portrait__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--green); pointer-events: none; }
.portrait__corner--tl { left: 10px; top: 10px; border-width: 1.5px 0 0 1.5px; }
.portrait__corner--br { right: 10px; bottom: 10px; border-width: 0 1.5px 1.5px 0; }
.portrait__tag {
  position: absolute; right: 16px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; color: var(--text);
}
.portrait__tag i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  animation: ping 2.8s ease-out infinite;
}

.hero__copy { position: relative; margin-top: -52px; padding-top: 0; max-width: 640px; margin-inline: auto; }
.hero__copy > * { animation: fadeUp 0.7s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: 0.12s; }
.hero__copy > :nth-child(2) { animation-delay: 0.2s; }
.hero__copy > :nth-child(3) { animation-delay: 0.28s; }
.hero__copy > :nth-child(4) { animation-delay: 0.36s; }
.hero__copy > :nth-child(5) { animation-delay: 0.44s; }
.hero__copy > :nth-child(6) { animation-delay: 0.52s; }

.roles { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 11.5px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.1em; }
.roles li + li::before { content: "/"; color: var(--green); margin-inline: 10px; }
.hero__name {
  margin-top: 14px;
  font-size: clamp(46px, 14vw, 104px);
  line-height: 0.96; font-weight: 600; letter-spacing: -0.035em;
}
.hero__headline { margin-top: 16px; font-size: clamp(21px, 5.6vw, 32px); line-height: 1.22; font-weight: 400; letter-spacing: -0.015em; }
.hero__headline em { font-style: normal; color: var(--green); }
.hero__intro { margin-top: 16px; color: var(--muted); max-width: 54ch; font-size: 16px; }

.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--primary { flex: 1 1 100%; }
.hero__actions .btn--ghost { flex: 1 1 auto; }
.hero__socials { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.005em;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--green); color: #050606; }
.btn--primary:hover { box-shadow: 0 0 0 1px var(--green), 0 10px 34px rgba(57, 255, 20, 0.28); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); background: rgba(16, 19, 18, 0.6); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--link { color: var(--muted); padding-inline: 8px; }
.btn--link:hover { color: var(--text); }
.btn--link .icon { transition: transform 0.25s var(--ease); }
.btn--link:hover .icon { transform: translateX(4px); }

.social-dot {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--muted); background: rgba(16, 19, 18, 0.55);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.social-dot:hover { color: var(--green); border-color: var(--green-line); transform: translateY(-2px); background: var(--green-soft); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
  font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--green); border-color: var(--green); }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(72px, 12vw, 136px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 760px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 18px; }
.eyebrow span { color: var(--green); margin-right: 10px; }
.h2 { font-size: clamp(28px, 6.6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }

/* reveal on scroll (only when JS is running; reduced-motion shows instantly) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
.js .reveal.in, .render-error .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- about */
.about__grid { display: grid; gap: 36px; }
.prose p { color: var(--muted); font-size: 17px; max-width: 60ch; }
.prose p + p { margin-top: 16px; }
.prose p:first-child { color: var(--text); font-size: 19px; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 16px; }

/* --------------------------------------------------------------- expertise */
.domains { display: grid; gap: 20px; }
.domain {
  position: relative; padding: 26px 0 8px; border-top: 1px solid var(--line-strong);
}
.domain::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 1px; background: var(--green);
  transition: width 0.5s var(--ease);
}
.domain:hover::before { width: 100%; }
.domain__head { display: flex; align-items: baseline; gap: 14px; }
.domain__index { color: var(--green); font-size: 12px; }
.domain h3 { font-size: clamp(22px, 4.6vw, 28px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.domain__blurb { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.35; padding: 7px 11px;
  border: 1px solid var(--line-strong); border-radius: 2px; color: var(--text); background: rgba(16, 19, 18, 0.6);
  transition: border-color 0.2s, color 0.2s;
}
.domain:hover .chips li { border-color: rgba(245, 247, 245, 0.28); }
.chips--small { margin-top: 14px; }
.chips--small li { font-size: 11.5px; padding: 4px 8px; color: var(--muted); }

/* -------------------------------------------------------------- credentials */
.credentials__list { display: grid; gap: 16px; }
.credential {
  position: relative; padding: 28px 24px; background: linear-gradient(160deg, var(--surface), #0b0e0d);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s;
}
.credential:hover { border-color: var(--green-line); }
.credential__corner { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; border-top: 1.5px solid var(--green); border-right: 1.5px solid var(--green); opacity: 0.7; }
.credential__status { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.credential__status i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.credential[data-status="earned"] .credential__status { color: var(--green); }
.credential[data-status="earned"] .credential__status i { background: var(--green); border-color: var(--green); }
.credential[data-status="in-progress"] .credential__status i { border-color: var(--green); }
.credential__short { margin-top: 22px; font-size: clamp(40px, 10vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.credential__name { margin-top: 10px; font-size: 18px; }
.credential__issuer { margin-top: 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.credential__desc { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.credential .text-link { margin-top: 18px; }

/* ---------------------------------------------------------------- projects */
.projects__list { display: grid; gap: 20px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.4s var(--ease); }
.project:hover { border-color: var(--green-line); transform: translateY(-3px); }
.project__visual { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); overflow: hidden; }
.project__visual img, .project__visual svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project:hover .project__visual img, .project:hover .project__visual svg { transform: scale(1.04); }
.badge { position: absolute; right: 12px; top: 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 8px; background: rgba(5, 6, 6, 0.82); border: 1px solid var(--line-strong); color: var(--muted); border-radius: 2px; }
.project__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.project p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.project__links { margin-top: auto; padding-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- approach */
.approach__grid { display: grid; gap: 40px; }
.steps { position: relative; padding-left: 62px; display: grid; gap: 36px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; }
.steps::before { background: var(--line-strong); }
.steps::after { background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) 0.2s; box-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.steps.is-drawn::after { transform: scaleY(1); }
.step { position: relative; }
.step__node {
  position: absolute; left: -62px; top: -4px; width: 40px; height: 40px;
  display: grid; place-items: center; font-size: 12px; color: var(--green);
  background: var(--bg); border: 1px solid var(--green-line); border-radius: 50%;
}
.step h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.step p { margin-top: 6px; color: var(--muted); max-width: 46ch; }

/* ----------------------------------------------------------------- connect */
.connect__grid { display: grid; gap: 28px; }
.tiles { display: grid; gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 14px 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tile:hover { border-color: var(--green-line); background: var(--surface-2); }
.tile:active { transform: scale(0.99); }
.tile__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--green); }
.tile__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.tile__text strong { font-weight: 600; font-size: 16px; }
.tile__text small { color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.tile__arrow { flex: none; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s; }
.tile:hover .tile__arrow { transform: translateX(4px); color: var(--green); }

.social-groups { margin-top: 36px; display: grid; gap: 26px; }
.social-group h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 12px; font-weight: 400; }
.social-group ul { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px 8px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(16, 19, 18, 0.55);
  color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.social-pill span { display: flex; flex-direction: column; line-height: 1.25; }
.social-pill strong { color: var(--text); font-weight: 500; font-size: 14.5px; }
.social-pill small { font-size: 11.5px; }
.social-pill:hover { border-color: var(--green-line); color: var(--green); background: var(--green-soft); transform: translateY(-2px); }

.qr { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; align-self: start; }
.qr h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.qr__box { width: min(260px, 72vw); margin-inline: auto; background: #fff; border-radius: 2px; overflow: hidden; }
.qr__box svg { width: 100%; height: auto; }
.qr__url { margin-top: 14px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.qr .text-link { margin-top: 14px; }
.qr-note { padding: 18px; font-size: 12px; line-height: 1.6; color: #333; text-align: left; }
.qr-note code { color: #000; }

/* ----------------------------------------------------------------- closing */
.closing { position: relative; padding-block: clamp(96px, 18vw, 200px); border-top: 1px solid var(--line); text-align: center; overflow: hidden; isolation: isolate; }
.closing__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px), radial-gradient(ellipse 50% 60% at 50% 50%, rgba(57, 255, 20, 0.08), transparent 70%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.closing__mark { margin: 0 auto 28px; color: var(--text); }
.closing__message { font-size: clamp(34px, 9.5vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; max-width: 15ch; margin-inline: auto; text-wrap: balance; }
.closing__sub { margin: 22px auto 0; color: var(--muted); max-width: 40ch; }
.closing__actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.closing__actions .btn { flex: 1 1 220px; max-width: 280px; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__brand { font-size: 15px; }
.footer__brand strong { font-weight: 600; }
.footer__copy { font-size: 11.5px; color: var(--muted); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 10px 0; transition: color 0.2s; }
.footer__top:hover { color: var(--green); }

/* ------------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: min(92vw, 420px); padding: 14px 18px; font-size: 14.5px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--green-line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { border-color: var(--danger); }

/* --------------------------------------------------------------- keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(57, 255, 20, 0); } }

/* ------------------------------------------------------------- breakpoints */
@media (min-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .credentials__list { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn--primary { flex: 0 0 auto; }
  .hero__actions .btn--ghost { flex: 0 0 auto; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; border-top: 0; }
  .facts div { border-top: 1px solid var(--line); border-bottom: 0; }
}

@media (min-width: 760px) {
  .projects__list { grid-template-columns: repeat(2, 1fr); }
  .domains { grid-template-columns: 1fr 1fr; gap: 28px 56px; }
}

@media (min-width: 960px) {
  :root { --topbar-h: 76px; }
  .topbar__tag { display: none; }
  .nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--muted); }
  .nav a { position: relative; padding: 6px 0; transition: color 0.2s; }
  .nav a:hover { color: var(--text); }
  .nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
  .nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
  .nav__cta { color: var(--text); border: 1px solid var(--green-line); padding: 8px 18px !important; border-radius: var(--radius); transition: background 0.2s, color 0.2s !important; }
  .nav__cta:hover { background: var(--green); color: #050606 !important; }

  .hero {
    min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center; gap: clamp(32px, 5vw, 88px);
    max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-block: calc(var(--topbar-h) + 40px) 72px;
    overflow: visible;
  }
  .hero__grid, .hero__glow { left: 50%; right: auto; transform: translateX(-50%); width: 100vw; }
  .hero__glow { right: auto; left: 70%; width: 900px; height: 900px; }
  .hero__media { order: 2; max-width: none; margin: 0; width: 100%; max-width: 480px; justify-self: end; }
  .portrait { aspect-ratio: 4 / 5.2; max-height: 78svh; width: 100%; margin-left: auto; }
  .portrait::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--green-line); transform: translate(14px, 14px); z-index: -1; pointer-events: none; }
  .portrait { overflow: visible; }
  .portrait img { position: absolute; inset: 0; }
  .portrait__fade { background: linear-gradient(to top, rgba(5, 6, 6, 0.7), transparent 38%); }
  .portrait__tag { right: auto; top: auto; left: 16px; bottom: 14px; }
  .hero__copy { order: 1; margin: 0; max-width: none; }
  .hero__name { font-size: clamp(72px, 8.4vw, 124px); }
  .hero__headline { font-size: clamp(26px, 2.6vw, 36px); max-width: 20ch; }
  .hero__intro { font-size: 17.5px; }

  .about__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .about__grid .eyebrow { position: sticky; top: 100px; }
  .facts { grid-template-columns: 1fr; border-top: 0; }
  .facts div { flex-direction: row; justify-content: space-between; align-items: baseline; border-top: 0; border-bottom: 1px solid var(--line); }
  .facts div:first-child { border-top: 1px solid var(--line); }

  .projects__list { grid-template-columns: repeat(3, 1fr); }
  .approach__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .connect__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .domains { gap: 36px 88px; }
}

/* very small phones */
@media (max-width: 359px) {
  .hero__name { font-size: 42px; }
  .btn { padding: 0 16px; }
}

/* short landscape phones: don't force a tall portrait */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 959px) {
  .portrait { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .steps::after { transform: scaleY(1); }
}

/* 404 page */
.notfound { min-height: 100vh; display: grid; place-items: center; border: 0; }
