/* Caravantes AI — night-sky engineering world (restored from V2).
   Indigo carries the atmosphere: particles, beams, gradient words.
   Emerald carries the brand: the mark and the primary actions.
   Per-area tones: emerald data, indigo AI, rose integration/ops, fuchsia
   software and exploration. */
/* Self-hosted fonts (SIL OFL, latin subset from Google Fonts). Space Grotesk
   is cut down to the wordmark letters only. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-v20-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-v24-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/space-grotesk-v22-wordmark.woff2") format("woff2");
  unicode-range: U+0020, U+0041, U+0043, U+0049, U+0061, U+0065, U+006E, U+0072, U+0073, U+0074, U+0076;
}
:root {
  color-scheme: dark;
  --bg: #030305;
  --bg-2: #050507;
  --panel: #0a0a0c;
  --panel-2: #0e0e12;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececee;
  --soft: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.52);
  --indigo: #6366f1;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --accent: #42dcb4;
  --accent-hover: #6ae8c6;
  --brand: #00ad84;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display: "Space Grotesk", "Inter", sans-serif;
  --fs-label: 12px;
  --fs-small: 14px;
  --fs-body: 16px;
  --fs-h3: 20px;
  --fs-h2: clamp(34px, 4vw, 52px);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 11vw, 128px);
  --page: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tone: #818cf8;
  --tone-rgb: 99, 102, 241;
}
.tone-emerald,
.project-card.green {
  --tone: #34d399;
  --tone-rgb: 16, 185, 129;
}
.tone-indigo,
.project-card.purple {
  --tone: #818cf8;
  --tone-rgb: 99, 102, 241;
}
.tone-rose,
.project-card.blue {
  --tone: #fb7185;
  --tone-rgb: 244, 63, 94;
}
.tone-fuchsia {
  --tone: #e879f9;
  --tone-rgb: 217, 70, 239;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  scrollbar-color: #2a2a33 var(--bg);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body) / 1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection {
  background: rgba(165, 180, 252, 0.32);
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #23232b;
  border: 2px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #33333e;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
strong,
b {
  font-weight: 600;
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--indigo-300);
  outline-offset: 3px;
  border-radius: 4px;
}
[tabindex="-1"]:focus {
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-width {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.grad {
  background: linear-gradient(90deg, var(--indigo-300), #fff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tone);
}
.tile .icon {
  width: 22px;
  height: 22px;
}
.tile-blue {
  --tone: #60a5fa;
}
.tile-emerald {
  --tone: var(--accent);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s,
    box-shadow 0.35s var(--ease);
}
.button:active {
  transform: scale(0.97);
}
.button .icon {
  transition: transform 0.35s var(--ease);
}
.button-primary {
  background: var(--accent);
  color: #03140e;
}
.button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(66, 220, 180, 0.6);
}
.button-primary:hover .icon {
  transform: translateY(2px);
}
.button-glass {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.button-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}
.icon-accent {
  color: var(--indigo-400);
}
.button-light {
  background: #fff;
  color: #050507;
}
.button-light:hover {
  background: #eef0ff;
}
.button-light:hover .icon {
  transform: translateX(3px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo-300);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover {
  color: #fff;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px clamp(20px, 3vw, 36px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s,
    border-color 0.4s,
    padding 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(3, 3, 5, 0.78);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.brand-block {
  display: grid;
  gap: 4px;
  margin-right: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand-status {
  font: var(--fs-label) / 1.2 var(--mono);
  letter-spacing: 0.02em;
  color: var(--faint);
  padding-left: 46px;
  transition: opacity 0.3s;
}
.is-scrolled .brand-status {
  opacity: 0;
  height: 0;
  overflow: hidden;
}
nav#navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav#navigation a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
nav#navigation a:hover,
nav#navigation a.active {
  color: #fff;
}
nav#navigation a.active {
  background: rgba(255, 255, 255, 0.06);
}
.nav-count {
  font: 500 var(--fs-label) var(--mono);
  color: var(--indigo-300);
}
.nav-mobile-only {
  display: none !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.04em;
}
.lang-switch button:hover {
  color: #fff;
}
.lang-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-cv {
  padding: 8px 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.nav-cv:hover {
  color: #fff;
}
.nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #03140e;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.3s var(--ease);
}
.nav-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 132px var(--gutter) 40px;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at 50% 42%,
    rgba(99, 102, 241, 0.08),
    transparent 70%
  );
}
.universe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease-out;
}
.universe.is-ready {
  opacity: 0.7;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 2px,
      rgba(0, 0, 0, 0.12) 2px 4px
    ),
    radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.82) 120%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 72px;
}
.hero h1 {
  display: grid;
  justify-items: center;
  gap: 28px;
}
.hero-name {
  position: relative;
  display: grid;
  font-size: clamp(64px, 10.4vw, 136px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.hero-name > span {
  display: block;
  padding-inline: 0.04em;
}
.name-first {
  background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.42));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-last {
  position: relative;
  padding-bottom: 0.08em;
  background: linear-gradient(90deg, var(--indigo-300), #fff 50%, var(--indigo-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-last::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
}
.hero-name::before,
.hero-name::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.hero-name::before {
  top: -30px;
  left: -52px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 26px;
}
.hero-name::after {
  bottom: -30px;
  right: -52px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 26px;
}
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.role-tag {
  font: 400 var(--fs-small) var(--mono);
  color: rgba(129, 140, 248, 0.72);
}
/* Three titles share one grid cell so the tags never move; without
   JavaScript or with reduced motion they simply stack. */
.role-rotator {
  display: inline-grid;
  justify-items: center;
}
html.js .role-rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  transition:
    opacity 0.7s var(--ease),
    filter 0.7s var(--ease),
    transform 0.7s var(--ease);
}
html.js .role-rotator > .is-active {
  opacity: 1;
  filter: none;
  transform: none;
}
.hero-lede {
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(16px, 1.25vw, 17.5px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}
.hero-lede strong {
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.hero-contact {
  display: none;
}
.hero-facts {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  list-style: none;
  font: var(--fs-label) / 1.8 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-facts li {
  display: grid;
}
.fact-career {
  text-align: right;
}
.fact-scroll {
  align-self: center;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Scroll reveals for everything below the fold. Content is visible without JS. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease) var(--delay, 0ms),
    transform 0.9s var(--ease) var(--delay, 0ms);
  animation: reveal-safety 0s 3.5s forwards;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}
@keyframes reveal-safety {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* Hero entrance: the one authored moment. Pure CSS, so it starts on first
   paint instead of waiting for the scripts (keeps LCP close to FCP). */
html.js .hero .reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
  animation: hero-in 1.1s var(--ease) var(--delay, 0ms) both;
}
/* Starts at 0.01, not 0: Chrome skips fully transparent text as an LCP
   candidate, which would push LCP to a later paint. Looks identical. */
@keyframes hero-in {
  from {
    opacity: 0.01;
    transform: translateY(24px) scale(0.98);
    filter: blur(8px);
  }
}

/* Career strip: employers as wordmarks */
.career-strip {
  position: relative;
  padding: 56px 0 72px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.career-strip ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}
.career-strip a {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  transition: transform 0.4s var(--ease);
}
.career-strip a:hover {
  transform: translateY(-4px);
}
.strip-company {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.84);
  text-transform: uppercase;
  transition: color 0.3s;
}
.career-strip a:hover .strip-company {
  color: var(--tone);
}
.strip-role {
  font-size: 13px;
  color: var(--muted);
}
.strip-years {
  font: var(--fs-label) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.career-strip li:first-child .strip-years {
  color: rgba(52, 211, 153, 0.85);
}

/* Sections */
.section {
  position: relative;
  padding-block: var(--section);
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden;
}
.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 64px;
}
.section-heading h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.section-heading p {
  max-width: 62ch;
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--muted);
}
.section-heading.centered {
  justify-items: center;
  text-align: center;
}
.section-heading.split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
}
.section-heading.split > div:first-child {
  display: grid;
  gap: 16px;
}

/* Ambient light per section (indigo atmosphere) */
.hub-section::before,
.arsenal-section::before,
.projects-section::before,
.experience-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 65%);
  pointer-events: none;
}
.hub-section::before {
  top: 50%;
  left: -220px;
  transform: translateY(-50%);
}
.arsenal-section::before {
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.07), transparent 65%);
}
.projects-section::before {
  top: -260px;
  left: 50%;
  width: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08), transparent 65%);
}
.experience-section::before {
  top: -200px;
  right: -200px;
}
.contact-section::before {
  bottom: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 65%);
}
.section > .page-width {
  position: relative;
  z-index: 1;
}

/* Specialties hub with light beams */
.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font: var(--fs-label) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.atlas-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.atlas-legend span::before {
  content: "";
  width: 28px;
  border-top: 1px solid rgba(165, 180, 252, 0.8);
}
.atlas-legend .legend-explore::before {
  border-top-style: dashed;
  border-top-color: rgba(232, 121, 249, 0.8);
}
.hub {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
}
.hub-beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.beam-glow {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.32;
}
.beam-base {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.62;
}
.beam-base.dashed {
  stroke-dasharray: 4 7;
}
.beam-glow.dashed {
  opacity: 0.18;
}
.beam-pulse {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 16 100;
  stroke-dashoffset: 116;
  animation: beam-flow 3.2s linear infinite;
}
@keyframes beam-flow {
  to {
    stroke-dashoffset: 0;
  }
}
.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 168px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.hub-core::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.42), rgba(99, 102, 241, 0.12) 45%, transparent 66%);
  animation: core-breathe 4s ease-in-out infinite;
}
@keyframes core-breathe {
  50% {
    opacity: 0.55;
  }
}
.core-ring {
  position: absolute;
  border-radius: 50%;
}
.ring-a {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: spin 14s linear infinite;
}
.ring-a::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo-300);
}
.ring-b {
  inset: 18px;
  border: 1px dashed rgba(129, 140, 248, 0.28);
  animation: spin 22s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.core-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-2);
  box-shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.55);
}
.core-disc img {
  width: 46px;
  height: 46px;
}
.atlas-nodes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: 340px;
  row-gap: 88px;
  list-style: none;
  padding-inline: clamp(0px, 3vw, 48px);
}
.atlas-nodes li:nth-child(n + 3) .atlas-node {
  justify-items: end;
  text-align: right;
  margin-left: auto;
}
.atlas-node {
  display: grid;
  justify-items: start;
  gap: 4px;
  max-width: 290px;
  color: inherit;
  text-decoration: none;
}
.node-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--tone);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s,
    box-shadow 0.35s var(--ease);
}
.node-explore .node-tile {
  border-style: dashed;
  border-color: rgba(232, 121, 249, 0.35);
}
.node-icon {
  width: 26px;
  height: 26px;
}
.atlas-node:hover .node-tile,
.atlas-node:focus-visible .node-tile {
  transform: scale(1.08);
  border-color: rgba(var(--tone-rgb), 0.6);
  box-shadow: 0 16px 34px -12px rgba(var(--tone-rgb), 0.55);
}
.node-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.node-stack {
  font: 13px / 1.6 var(--mono);
  color: var(--muted);
}
.node-evidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--tone);
}
.node-evidence .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.atlas-node:hover .node-evidence .icon {
  transform: translateX(4px);
}

/* Technical arsenal */
.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.arsenal-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(rgba(10, 10, 12, 0.94), rgba(10, 10, 12, 0.94)) padding-box,
    radial-gradient(
        circle 340px at 0 0,
        rgba(var(--tone-rgb), 0.5),
        rgba(255, 255, 255, 0.06) 70%
      )
      border-box;
  transition: transform 0.5s var(--ease);
}
.arsenal-card::before {
  content: "";
  position: absolute;
  top: -48px;
  left: -48px;
  width: 220px;
  height: 120px;
  border-radius: 50%;
  background: rgba(var(--tone-rgb), 0.3);
  filter: blur(44px);
  opacity: 0.45;
  transition: opacity 0.5s;
  pointer-events: none;
}
.arsenal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  background-size:
    100% 1px,
    1px 100%;
  background-position:
    0 104px,
    104px 0;
  background-repeat: no-repeat;
}
.arsenal-card:hover {
  transform: translateY(-4px);
}
.arsenal-card:hover::before {
  opacity: 0.75;
}
.card-dot {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tone);
  offset-path: inset(14px round 20px);
  offset-rotate: 0deg;
  animation: card-orbit 12s linear infinite;
}
.arsenal-card:nth-child(2) .card-dot {
  animation-delay: -3s;
}
.arsenal-card:nth-child(3) .card-dot {
  animation-delay: -6s;
}
.arsenal-card:nth-child(4) .card-dot {
  animation-delay: -9s;
}
@keyframes card-orbit {
  to {
    offset-distance: 100%;
  }
}
.arsenal-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.arsenal-card .tile {
  transition:
    transform 0.35s var(--ease),
    color 0.3s;
}
.arsenal-card:hover .tile {
  transform: scale(1.08);
  color: #fff;
}
.badge {
  padding: 4px 9px;
  border: 1px solid rgba(var(--tone-rgb), 0.3);
  border-radius: 7px;
  background: rgba(var(--tone-rgb), 0.1);
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tone) 45%, #fff);
}
.arsenal-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.check-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.arsenal-card:hover .check-list li {
  color: rgba(255, 255, 255, 0.84);
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--tone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.7-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.7-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Projects explorer */
.view-switch,
.filter-list {
  display: flex;
  flex-wrap: wrap;
}
.view-switch {
  flex-wrap: nowrap;
}
.view-switch,
.filter-list {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.view-switch button,
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--fs-small);
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.view-switch button:hover,
.filter:hover {
  color: #fff;
}
.view-switch button.active,
.filter.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.view-switch .icon {
  width: 16px;
  height: 16px;
}
.filter .count {
  font: 500 var(--fs-label) var(--mono);
  color: var(--indigo-300);
}
.explorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 380px;
  min-height: 48px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
.search-field:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.search-field:focus-within {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(255, 255, 255, 0.05);
}
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: none;
  font-size: 15px;
  color: #fff;
  outline: none;
}
.search-field input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.6);
}
.search-field kbd {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: var(--fs-label) var(--mono);
  color: var(--muted);
}
.result-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 36px;
  margin: 20px 0 8px;
}
#result-count {
  font: var(--fs-label) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #dfe3ff;
  font-size: 13px;
}
.area-chip:hover {
  border-color: var(--indigo-300);
}
.area-chip .icon {
  width: 14px;
  height: 14px;
}
.project-grid {
  display: grid;
  gap: 64px;
  margin-top: 28px;
}
.project-group {
  display: grid;
  gap: 24px;
}
.group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.group-heading h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.group-heading p {
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 72ch;
}
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.group-explore .project-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--panel);
  transition:
    border-color 0.4s,
    transform 0.5s var(--ease);
}
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}
.project-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--tone-rgb), 0.16), transparent 62%),
    radial-gradient(rgba(255, 255, 255, 0.06) 0.8px, transparent 0.8px) 0 0 / 18px 18px,
    #08080a;
}
.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--panel) 2%, rgba(10, 10, 12, 0.4) 40%, transparent 70%);
  pointer-events: none;
}
.project-art svg {
  width: 88%;
  margin-top: -8%;
  opacity: 0.82;
  transition:
    transform 0.8s var(--ease),
    opacity 0.5s;
}
.project-card:hover .project-art svg {
  transform: scale(1.05);
  opacity: 1;
}
.art-meta {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
}
.project-body .art-meta {
  position: static;
  margin-bottom: 18px;
}
.kind-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(3, 3, 5, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.kind-badge.kind-lab,
.kind-badge.kind-personal {
  border-style: dashed;
  border-color: rgba(232, 121, 249, 0.4);
  color: #f5d0fe;
}
.project-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px;
}
.is-pro .project-body {
  margin-top: -36px;
}
.is-explore .project-body {
  padding-top: 24px;
}
.project-kicker {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 9px;
  border: 1px solid rgba(var(--tone-rgb), 0.22);
  border-radius: 7px;
  background: rgba(var(--tone-rgb), 0.08);
  font: var(--fs-label) / 1.5 var(--mono);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--tone) 40%, #fff);
}
.project-card.is-explore {
  --tone: #e879f9;
  --tone-rgb: 217, 70, 239;
}
.project-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.project-description {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.tags li {
  display: inline-flex;
}
.tags > li:not(:has(button)),
.tag-button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font: var(--fs-label) var(--mono);
  color: rgba(255, 255, 255, 0.72);
}
.tag-button {
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tag-button:hover {
  border-color: rgba(var(--tone-rgb), 0.6);
  color: #fff;
}
.project-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}
.project-footer > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font: var(--fs-label) / 1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--faint);
}
.project-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-small);
  font-weight: 500;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.project-open:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.project-open .icon {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  transition: transform 0.3s var(--ease);
}
.project-open:hover .icon {
  transform: translateX(3px);
}
.project-map {
  margin-top: 28px;
}
.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 72px 24px;
  margin-top: 28px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  text-align: center;
}
.empty-state .tile {
  --tone: var(--indigo-300);
  margin-bottom: 8px;
}
.empty-state h3 {
  font-size: 20px;
}
.empty-state p {
  color: var(--muted);
}
.empty-state .button {
  margin-top: 12px;
  min-height: 44px;
}
.noscript-note {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--soft);
}

/* Experience: four roles converging on today */
.converge {
  position: relative;
}
.converge-beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  list-style: none;
}
.career {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  transition:
    border-color 0.4s,
    background-color 0.4s;
}
.career:hover,
.career:target {
  border-color: rgba(var(--tone-rgb), 0.35);
  background: #0c0c10;
}
.career-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tone);
}
.career-date::before {
  content: "";
  width: 24px;
  border-top: 1px solid rgba(var(--tone-rgb), 0.6);
}
.career-role {
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.career-company {
  margin: 6px 0 14px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--soft);
}
/* Company marks: transparent PNGs, dark text recolored for the dark ground */
.career-company {
  margin: 12px 0 16px;
}
.career-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
}
.career-summary {
  max-width: 60ch;
  margin-bottom: 18px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}
.career .tags {
  margin-bottom: 18px;
}
.role-history {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  list-style: none;
  padding-left: 14px;
  border-left: 1px solid rgba(var(--tone-rgb), 0.3);
}
.role-history li {
  display: grid;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.45;
}
.role-history span {
  font: var(--fs-label) var(--mono);
  color: var(--faint);
}
.role-history b {
  font-weight: 500;
}
.role-history em {
  font-style: normal;
  color: var(--muted);
}
.inline-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--tone);
  font-size: var(--fs-small);
  font-weight: 500;
}
.inline-link .icon {
  display: inline-block;
  vertical-align: -3px;
  margin-left: 4px;
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.inline-link:hover {
  color: #fff;
}
.inline-link:hover .icon {
  transform: translateX(3px);
}
.converge-hub {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 132px;
  text-align: center;
}
.hub-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg);
  box-shadow: 0 22px 50px -20px rgba(99, 102, 241, 0.6);
}
.orb-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(129, 140, 248, 0.4);
  animation: spin 12s linear infinite;
}
.hub-role {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--soft);
}
.hub-label {
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-300);
}

/* Education */
.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.education-layout .section-heading {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}
.education-list {
  display: grid;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.7);
  overflow: hidden;
}
.education-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 26px 28px;
  transition: background-color 0.3s;
}
.education-list li + li {
  border-top: 1px solid var(--line-soft);
}
.education-list li:hover {
  background: rgba(255, 255, 255, 0.02);
}
.education-year {
  grid-row: span 2;
  padding-top: 3px;
  font: 500 13px var(--mono);
  color: var(--indigo-300);
  font-variant-numeric: tabular-nums;
}
.education-list h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.education-list p {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Continuing education: real school marks on uniform tiles */
.learning {
  margin-top: 88px;
}
.learning-title {
  margin-bottom: 24px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.learning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.learning-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  transition:
    border-color 0.3s,
    background-color 0.3s;
}
.learning-card.is-wide {
  grid-column: span 2;
}
.learning-card:hover {
  border-color: var(--line);
  background: #0c0c10;
}
.learning-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.learning-logo img {
  object-fit: contain;
}
.learning-logo.is-fill {
  border: 0;
}
.learning-logo.is-fill img {
  width: 100%;
  height: 100%;
}
/* MEGA: red pixel mark on pure black, as on mega.dev */
.learning-logo.is-mega {
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: #000;
}
.learning-card h4 {
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.learning-card p {
  margin-top: 4px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}
.learning-card .learning-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.learning-status {
  padding: 3px 8px;
  border: 1px solid rgba(66, 220, 180, 0.3);
  border-radius: 7px;
  background: rgba(66, 220, 180, 0.08);
  color: var(--accent);
}
.learning-status.is-done {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-300);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.about-graphic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 48px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12), transparent 65%),
    var(--panel);
}
.brand-signature {
  width: 100%;
  height: auto;
}
.about-copy {
  display: grid;
  gap: 20px;
}
.about-copy h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 4px;
}
.about-copy h2 span {
  display: block;
}
.about-copy p {
  max-width: 58ch;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}
.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  list-style: none;
}
.language-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-small);
  color: var(--soft);
}
.language-list b {
  font: 500 var(--fs-label) var(--mono);
  color: var(--indigo-300);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.contact-main {
  display: grid;
  gap: 16px;
  align-content: start;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.7);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}
.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
.contact-card .tile {
  --tone: var(--indigo-400);
  transition: transform 0.35s var(--ease);
}
.contact-card:hover .tile {
  transform: scale(1.06);
}
.contact-email-card {
  padding: 28px;
}
.contact-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.contact-card-title {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.contact-email {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  color: var(--indigo-300);
  overflow-wrap: anywhere;
}
.contact-email-card:hover .contact-email {
  color: #fff;
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.contact-links .contact-card {
  flex-direction: column;
  gap: 4px;
  height: 100%;
  border-radius: 20px;
}
.contact-links .tile {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 13px;
}
.contact-links .tile .icon {
  width: 20px;
  height: 20px;
}
.contact-card-meta {
  font: var(--fs-label) / 1.5 var(--mono);
  color: var(--faint);
  overflow-wrap: anywhere;
}
#contact-form {
  position: relative;
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 32px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.45),
        rgba(99, 102, 241, 0.06) 50%,
        rgba(66, 220, 180, 0.3)
      )
      border-box;
  overflow: hidden;
}
#contact-form::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.16);
  filter: blur(50px);
  pointer-events: none;
}
#contact-form h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 21px;
}
#contact-form h3 .tile {
  --tone: var(--indigo-400);
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.1);
}
#contact-form label {
  position: relative;
  display: grid;
  gap: 10px;
}
#contact-form label > span {
  font: 500 var(--fs-label) var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: #fff;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
#contact-form input:hover,
#contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid rgba(129, 140, 248, 0.55);
  outline-offset: 1px;
  border-color: rgba(129, 140, 248, 0.7);
  background: rgba(255, 255, 255, 0.05);
}
#contact-form .button {
  position: relative;
  width: 100%;
  margin-top: 6px;
  border-radius: 14px;
}
.form-note {
  position: relative;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding-block: 44px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font: var(--fs-label) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: none;
}
.footer-top:hover {
  color: #fff;
}
.footer-top .icon {
  width: 15px;
  height: 15px;
}

/* Case studies and interactive architecture */
dialog {
  width: min(1080px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
  scrollbar-color: #2a2a33 var(--panel);
}
dialog::backdrop {
  background: rgba(3, 3, 5, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}
.dialog-label {
  font: var(--fs-label) var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.close-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.close-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}
#dialog-content {
  padding: 32px;
}
.case-meta {
  margin-top: 10px;
  font: var(--fs-label) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-300);
}
.case-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.case-title-row h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.035em;
}
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.share-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.share-button .icon {
  width: 15px;
  height: 15px;
}
.share-status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.case-lead {
  max-width: 64ch;
  margin-block: 14px 20px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}
.case-disclosure {
  max-width: 80ch;
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.07);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: #d4d9ff;
}
.case-overview,
.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-block: 32px;
}
.case-overview h3,
.case-results h3 {
  margin-bottom: 10px;
  font-size: 18px;
}
.case-overview p,
.case-results p,
.case-results ul {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.case-results p + h3 {
  margin-top: 20px;
}
.case-results ul {
  padding-left: 18px;
}
.architecture-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #08080a;
}
.architecture-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.architecture-heading h3 {
  font-size: 19px;
}
.architecture-heading p {
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.walk-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #03140e;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}
.walk-button:hover {
  background: var(--accent-hover);
}
.walk-button .icon {
  width: 15px;
  height: 15px;
}
.architecture-nodes {
  display: flex;
  align-items: stretch;
  padding: 32px 24px;
  background:
    radial-gradient(rgba(165, 180, 252, 0.14) 0.8px, transparent 0.8px) 0 0 / 16px 16px;
}
.architecture-node {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font-size: var(--fs-small);
  font-weight: 500;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.architecture-node > span {
  display: block;
  margin-bottom: 6px;
  font: var(--fs-label) var(--mono);
  color: var(--indigo-300);
}
.architecture-node small {
  display: block;
  margin-top: 6px;
  font: 400 var(--fs-label) / 1.4 var(--mono);
  color: var(--muted);
}
.architecture-node:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.architecture-node.active {
  border-color: rgba(129, 140, 248, 0.7);
  background: #10101a;
}
.flow-arrow {
  align-self: center;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: rgba(165, 180, 252, 0.6);
}
.flow-arrow .icon {
  width: 16px;
  height: 16px;
}
.node-detail {
  min-height: 120px;
  padding: 20px 24px;
  border-top: 1px solid var(--line-soft);
}
.node-detail h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--indigo-300);
}
.node-detail h4 span {
  margin-left: 6px;
  font: var(--fs-label) var(--mono);
  color: var(--muted);
}
.node-detail p {
  max-width: 80ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}
.lab-panel {
  margin-top: 30px;
  padding: 24px;
  border: 1px dashed rgba(232, 121, 249, 0.35);
  border-radius: 20px;
  background: #0b0a0e;
}
.lab-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.lab-heading h3 {
  font-size: 20px;
}
.lab-badge {
  padding: 4px 10px;
  border: 1px solid rgba(232, 121, 249, 0.35);
  border-radius: 999px;
  font: var(--fs-label) var(--mono);
  color: #f5d0fe;
}
.lab-panel > p {
  max-width: 70ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}
.lab-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-block: 18px;
}
.lab-controls label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-small);
}
.lab-controls input[type="range"] {
  max-width: 200px;
  accent-color: var(--indigo-400);
}
.lab-controls output {
  font: 15px var(--mono);
  color: var(--indigo-300);
  font-variant-numeric: tabular-nums;
}
.lab-controls .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-small);
}
.lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.lab-metrics > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.lab-metrics strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--indigo-300);
  font-variant-numeric: tabular-nums;
}
.lab-metrics span {
  font-size: 13px;
  color: var(--muted);
}
.classification-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.sample-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font: 14px var(--mono);
  color: rgba(255, 255, 255, 0.78);
}
.sample-dot.predicted {
  border-color: transparent;
  background: var(--indigo-400);
  color: #0b0b1a;
}
.sample-dot.wrong {
  outline: 2px solid #fda4af;
  outline-offset: 2px;
}
.lab-legend {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.network-demo {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #060608;
}
.network-demo > span {
  color: rgba(165, 180, 252, 0.6);
}
.network-demo > span .icon {
  width: 18px;
  height: 18px;
}
.network-source,
.network-queue {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: 13px var(--mono);
}
.network-workers {
  display: grid;
  gap: 10px;
}
.worker {
  padding: 8px 18px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 10px;
  font: 13px var(--mono);
  color: #6ee7b7;
}
.worker.offline {
  border-color: rgba(251, 113, 133, 0.6);
  color: #fda4af;
}
.lab-log {
  min-height: 46px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #060608;
  font: 13px / 1.7 var(--mono);
  color: rgba(255, 255, 255, 0.72);
}
.vision-scene {
  width: 100%;
  max-height: 300px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060608;
}
.vision-scene text {
  font-family: var(--mono);
}
.vision-zone {
  fill: rgba(129, 140, 248, 0.08);
  stroke: var(--indigo-400);
  stroke-dasharray: 5 5;
}
.vision-person {
  fill: #8a8aa0;
}
.vision-box {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.vision-box.alert {
  stroke: #fb7185;
}
.vision-event {
  margin-top: 14px;
  font: 14px / 1.7 var(--mono);
  color: var(--indigo-300);
}

/* No JavaScript: hide controls that would do nothing */
.no-js .lang-switch,
.no-js .explorer-toolbar,
.no-js .result-summary,
.no-js .view-switch,
.no-js #project-grid,
.no-js .inline-link,
.no-js #contact-form,
.no-js .universe {
  display: none;
}
.no-js .contact-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* Responsive */
@media (max-width: 1240px) {
  .learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .atlas-nodes {
    column-gap: 280px;
  }
  .group-explore .project-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .converge-beams {
    display: none;
  }
  .converge-hub {
    margin-top: 72px;
  }
}
@media (max-width: 1100px) {
  .project-cards {
    gap: 16px;
  }
  .is-pro .project-body {
    padding-inline: 18px;
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-layout {
    gap: 48px;
  }
}
@media (max-width: 960px) {
  .site-header {
    gap: 12px;
    padding: 16px 20px;
  }
  .brand-status {
    display: none;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.7);
  }
  .menu-toggle span {
    width: 16px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.25s var(--ease);
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }
  .no-js .menu-toggle {
    display: none;
  }
  nav#navigation {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(10, 10, 12, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
  nav#navigation.open {
    display: flex;
  }
  nav#navigation a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 17px;
  }
  .nav-mobile-only {
    display: inline-flex !important;
  }
  .no-js nav#navigation {
    display: none;
  }
  .nav-contact,
  .nav-cv {
    display: none;
  }
  .hub {
    min-height: 0;
    display: block;
  }
  .hub-beams {
    display: none;
  }
  .hub-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 48px;
    width: 140px;
    height: 140px;
  }
  .core-disc {
    width: 84px;
    height: 84px;
  }
  .hub {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hub-core {
    order: 2;
    margin: 0 auto;
  }
  .atlas-nodes {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 64px;
    padding: 0 0 64px;
    width: 100%;
  }
  .atlas-nodes li {
    position: relative;
  }
  .atlas-nodes li::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    width: 2px;
    height: 44px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(var(--beam-rgb, 165, 180, 252), 0.95) 50%,
        transparent
      )
      0 -44px / 100% 44px no-repeat,
    linear-gradient(to bottom, rgba(129, 140, 248, 0.15), rgba(129, 140, 248, 0.5));
    animation: spine-flow 2.4s linear infinite;
  }
  .atlas-nodes li:nth-child(2)::after {
    animation-delay: 0.6s;
  }
  .atlas-nodes li:nth-child(3)::after {
    animation-delay: 1.2s;
  }
  .atlas-nodes li:nth-child(4)::after {
    animation-delay: 1.8s;
    background-color: transparent;
  }
  .atlas-nodes .atlas-node,
  .atlas-nodes li:nth-child(n + 3) .atlas-node {
    justify-items: center;
    text-align: center;
    margin-inline: auto;
  }
  .node-tile {
    box-shadow: 0 14px 30px -12px rgba(var(--tone-rgb), 0.45);
  }
  .education-layout,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .education-layout .section-heading {
    position: static;
  }
  .learning {
    margin-top: 64px;
  }
  .about-graphic {
    aspect-ratio: auto;
    max-width: 520px;
  }
}
@keyframes spine-flow {
  to {
    background-position:
      0 44px,
      0 0;
  }
}
@media (max-width: 860px) {
  .project-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .is-pro .project-art {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 960px) {
  .hero-contact {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 15px;
  }
}
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 120px var(--gutter) 48px;
  }
  .hero-inner {
    padding-bottom: 0;
  }
  .hero-name::before,
  .hero-name::after {
    display: none;
  }
  .hero h1 {
    gap: 22px;
  }
  .hero-role {
    gap: 10px;
  }
  .role-tag {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-self: stretch;
    margin-top: 32px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-facts {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    text-align: center;
  }
  .fact-career {
    text-align: center;
  }
  .hero-facts .fact-scroll {
    display: none;
  }
  .career-strip {
    padding-block: 44px 52px;
  }
  .career-strip ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .section-heading {
    margin-bottom: 44px;
  }
  .section-heading.split {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .atlas-nodes {
    grid-template-columns: minmax(0, 1fr);
  }
  .arsenal-grid,
  .project-cards,
  .group-explore .project-cards,
  .timeline,
  .contact-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .arsenal-card {
    padding: 26px 22px;
  }
  .arsenal-card::after {
    background-position:
      0 96px,
      96px 0;
  }
  .search-field {
    flex: 1 1 100%;
  }
  .filter-list {
    border-radius: 22px;
  }
  .contact-links .contact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    padding: 18px 20px;
  }
  .contact-links .tile {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .filter-list {
    width: 100%;
  }
  .filter {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 12px;
  }
  .education-list li {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
  .education-year {
    grid-row: auto;
  }
  .learning-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .learning-card.is-wide {
    grid-column: auto;
  }
  .learning-card {
    padding: 20px;
  }
  #contact-form,
  .contact-email-card {
    padding: 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .dialog-header {
    padding: 10px 14px 10px 20px;
  }
  #dialog-content {
    padding: 24px 20px 32px;
  }
  .case-title-row {
    flex-direction: column;
  }
  .case-overview,
  .case-results {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .architecture-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .architecture-nodes {
    flex-direction: column;
    padding: 20px;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .lab-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .network-demo {
    flex-direction: column;
  }
  .network-demo > span {
    transform: rotate(90deg);
  }
}
@media (max-width: 380px) {
  .brand-theme .site-header .brand-wordmark {
    font-size: 19px;
  }
  .lang-switch button {
    min-width: 32px;
    padding: 0 8px;
  }
  .hero-name {
    font-size: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  html.js .reveal,
  html.js .hero .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .beam-pulse,
  .card-dot {
    display: none;
  }
  html.js .role-rotator > span {
    grid-area: auto;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Set by universe.js while a section is off-screen: decorative loops pause. */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
  animation-play-state: paused !important;
}
