:root {
  --ink: #05060a;
  --ink-soft: #090c13;
  --panel: #0c1019;
  --panel-2: #101623;
  --paper: #f4f5f7;
  --white: #f7f9ff;
  --muted: #9ca6b8;
  --muted-2: #6e7788;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --cyan: #6cecff;
  --cyan-rgb: 108, 236, 255;
  --violet: #9d7bff;
  --violet-rgb: 157, 123, 255;
  --amber: #ffc974;
  --amber-rgb: 255, 201, 116;
  --max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.site-noise {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 5.5rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: height 300ms var(--ease), background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  height: 4.5rem;
  border-color: var(--line-soft);
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  width: max-content;
  font-size: 1.2rem;
  font-weight: 670;
  letter-spacing: -0.04em;
}

.brand > span > span {
  color: var(--muted);
  font-weight: 420;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.brand-mark circle {
  fill: var(--cyan);
  stroke: none;
  filter: drop-shadow(0 0 5px rgba(var(--cyan-rgb), 0.8));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.8rem);
  color: #c9ced8;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a,
.header-cta,
.footer-bottom a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.footer-bottom a:hover {
  color: var(--cyan);
}

.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
}

.dev-link.is-active {
  color: var(--cyan);
}

.status-dot {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.45);
  animation: status-pulse 2.2s infinite;
}

.header-cta {
  justify-self: end;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.header-cta:hover {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.header-cta span {
  display: inline-block;
  margin-left: 0.35rem;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.eyebrow,
.mono-label {
  color: #bec6d4;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.8vw, 0.75rem);
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0.6rem 0.2rem;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow > span:not(.status-dot) {
  margin-right: 1rem;
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, transform 240ms var(--ease), box-shadow 240ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #020508;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.button-primary:hover {
  background: var(--cyan);
  box-shadow: 0 12px 45px rgba(var(--cyan-rgb), 0.16);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(8, 11, 17, 0.3);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  border-color: rgba(var(--cyan-rgb), 0.5);
  background: rgba(var(--cyan-rgb), 0.08);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.section {
  position: relative;
  padding-block: clamp(7rem, 12vw, 12rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading .eyebrow {
  margin-bottom: 2rem;
}

.section-heading h2,
.closing-cta h2,
.about-layout > h2,
.projects-heading h2,
.range-intro h2,
.experience-heading h2,
.credentials-layout > h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 510;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

h1 em,
h2 em {
  color: var(--cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.section-heading > p,
.projects-heading > p,
.range-intro > p,
.experience-heading > p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Landing hero */
.home-hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background: #030409;
}

.hero-media,
.hero-media picture,
.hero-media img,
.hero-media canvas,
.hero-grid,
.hero-aura {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media picture {
  opacity: 0;
  animation: hero-image-in 1.6s 150ms var(--ease) forwards;
}

.hero-media img {
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.035);
  animation: hero-breathe 12s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 9, 0.98) 0%, rgba(3, 4, 9, 0.92) 22%, rgba(3, 4, 9, 0.46) 50%, rgba(3, 4, 9, 0.06) 76%),
    linear-gradient(0deg, #05060a 0%, transparent 25%, transparent 78%, rgba(3, 4, 9, 0.48) 100%);
}

.neural-canvas {
  z-index: 2;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.hero-aura {
  z-index: 1;
  left: auto;
  width: 62%;
  background: radial-gradient(circle at 70% 48%, rgba(var(--violet-rgb), 0.12), transparent 46%);
  animation: aura-shift 9s ease-in-out infinite alternate;
}

.hero-grid,
.dev-hero-grid {
  z-index: 3;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: clamp(72px, 7vw, 108px) clamp(72px, 7vw, 108px);
  mask-image: linear-gradient(90deg, black, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(760px, 100svh);
  padding-top: 8rem;
  padding-bottom: 2.5rem;
}

.hero-eyebrow {
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

.hero-title {
  max-width: 950px;
  margin: 0;
  font-size: clamp(5rem, 11.4vw, 11rem);
  font-weight: 520;
  letter-spacing: -0.083em;
  line-height: 0.73;
  text-wrap: balance;
}

.hero-title em {
  display: inline-block;
  margin-top: 0.2em;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(120deg, var(--white) 10%, var(--cyan) 48%, var(--violet) 88%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 1.08em;
  filter: drop-shadow(0 0 25px rgba(var(--cyan-rgb), 0.14));
}

.hero-copy-row {
  display: grid;
  grid-template-columns: minmax(18rem, 36rem) auto;
  align-items: end;
  gap: 2.5rem;
  width: min(100%, 980px);
  margin-top: clamp(3rem, 7vh, 5.5rem);
}

.hero-copy-row > p,
.dev-lead {
  margin: 0;
  color: #b9c2d1;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 3rem;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.orbit-label {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(var(--cyan-rgb), 0.24);
  border-radius: 999px;
  color: rgba(222, 249, 255, 0.78);
  background: rgba(5, 9, 17, 0.28);
  box-shadow: inset 0 0 15px rgba(var(--cyan-rgb), 0.04), 0 6px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.orbit-label::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.orbit-label-one { top: 29%; right: 32%; animation: float-label 5s ease-in-out infinite; }
.orbit-label-two { top: 61%; right: 39%; animation: float-label 6.5s 0.7s ease-in-out infinite reverse; }
.orbit-label-three { top: 20%; right: 8%; animation: float-label 5.7s 1.4s ease-in-out infinite; }

.capability-marquee {
  overflow: hidden;
  padding-block: 1.05rem;
  border-block: 1px solid var(--line);
  color: #ccd2dd;
  background: #080a0f;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.marquee-track,
.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
}

.marquee-track {
  animation: marquee 34s linear infinite;
}

.marquee-set span {
  padding-inline: 1.7rem;
}

.marquee-set i {
  color: var(--cyan);
  font-style: normal;
  opacity: 0.75;
}

/* Capabilities */
.practices {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 33%, rgba(var(--cyan-rgb), 0.055), transparent 23rem),
    linear-gradient(180deg, #07090e, #0a0d14);
}

.practices::after {
  content: "AI";
  position: absolute;
  top: 25%;
  right: -0.08em;
  z-index: 0;
  color: rgba(255, 255, 255, 0.012);
  font-size: min(44vw, 42rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.7;
  pointer-events: none;
}

.practices .page-shell {
  position: relative;
  z-index: 1;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  perspective: 1200px;
}

.practice-card {
  --card-accent: var(--cyan-rgb);
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(var(--card-accent), 0.09), transparent 36%),
    rgba(255, 255, 255, 0.018);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
  transform-style: preserve-3d;
  transition: border-color 400ms ease, background-color 400ms ease, transform 180ms ease-out;
}

.practice-card[data-accent="violet"] { --card-accent: var(--violet-rgb); }
.practice-card[data-accent="amber"] { --card-accent: var(--amber-rgb); }

.practice-card::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -20%;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--card-accent), 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(var(--card-accent), 0.035), 0 0 60px rgba(var(--card-accent), 0.03);
  transition: transform 700ms var(--ease);
}

.practice-card:hover {
  border-color: rgba(var(--card-accent), 0.38);
  background-color: rgba(var(--card-accent), 0.025);
}

.practice-card:hover::after {
  transform: scale(1.1) translate(-4%, -4%);
}

.practice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.practice-icon {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(var(--card-accent), 0.3);
  border-radius: 50%;
}

.practice-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 1px;
  background: rgb(var(--card-accent));
  transform-origin: left center;
}

.practice-icon i:nth-child(1) { transform: rotate(0deg); }
.practice-icon i:nth-child(2) { transform: rotate(120deg); }
.practice-icon i:nth-child(3) { transform: rotate(240deg); }

.practice-card h3 {
  max-width: 12ch;
  margin: clamp(7rem, 13vw, 10rem) 0 1.2rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 510;
  letter-spacing: -0.055em;
  line-height: 1;
}

.practice-card > p {
  max-width: 30rem;
  color: var(--muted);
  line-height: 1.65;
}

.practice-card ul {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 1;
  list-style: none;
}

.practice-card li {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
  color: #d1d6df;
  font-size: 0.76rem;
}

.practice-card li::before {
  content: "↳";
  margin-right: 0.65rem;
  color: rgb(var(--card-accent));
}

.manifesto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.manifesto span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.manifesto strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-style: italic;
  font-weight: 400;
}

/* Lab */
.lab {
  background: var(--paper);
  color: #0a0d13;
}

.lab .eyebrow,
.lab .section-heading > p {
  color: #5f6877;
}

.lab .section-heading h2 em {
  color: #7258cf;
}

.lab-list {
  display: grid;
  gap: 1.25rem;
}

.lab-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 0.72fr);
  min-height: 30rem;
  overflow: hidden;
  border: 1px solid rgba(10, 13, 19, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 60px rgba(37, 43, 56, 0.07);
}

.lab-card:nth-child(even) {
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1.5fr);
}

.lab-card:nth-child(even) .lab-visual {
  order: 2;
}

.lab-visual {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  background: #080b12;
  isolation: isolate;
}

.visual-grid,
.project-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.26;
  background-image: linear-gradient(rgba(var(--cyan-rgb), 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--cyan-rgb), 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 68%);
  transform: perspective(700px) rotateX(60deg) translateY(7%);
}

.visual-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(13rem, 24vw, 23rem);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 52%, rgba(var(--cyan-rgb), 0.45), transparent 3%),
    radial-gradient(circle at 43% 46%, rgba(var(--violet-rgb), 0.3), rgba(4, 7, 13, 0.85) 58%);
  box-shadow: inset -30px -20px 70px rgba(0, 0, 0, 0.7), inset 10px 8px 38px rgba(var(--cyan-rgb), 0.18), 0 0 80px rgba(var(--cyan-rgb), 0.13);
  transform: translate(-50%, -50%);
  animation: orb-float 6s ease-in-out infinite;
}

.visual-orb::before,
.visual-orb::after {
  content: "";
  position: absolute;
  inset: -13%;
  border: 1px solid rgba(var(--cyan-rgb), 0.25);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(17deg);
}

.visual-orb::after {
  inset: -26%;
  border-color: rgba(var(--violet-rgb), 0.16);
  transform: rotateY(70deg) rotateZ(-25deg);
}

.visual-lines i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform-origin: left;
  filter: drop-shadow(0 0 5px var(--cyan));
}

.visual-lines i:nth-child(1) { transform: rotate(18deg); }
.visual-lines i:nth-child(2) { transform: rotate(145deg); }
.visual-lines i:nth-child(3) { transform: rotate(255deg); }

.lab-visual > span {
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.lab-visual-agents .visual-orb {
  width: clamp(10rem, 18vw, 17rem);
  border-radius: 25%;
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.36), rgba(var(--cyan-rgb), 0.06) 52%, rgba(0, 0, 0, 0.5));
  box-shadow: inset 0 0 60px rgba(var(--violet-rgb), 0.2), 0 0 80px rgba(var(--violet-rgb), 0.13);
  transform: translate(-50%, -50%) rotate(45deg);
}

.lab-visual-agents .visual-orb::before,
.lab-visual-agents .visual-orb::after {
  border-radius: 25%;
}

.lab-visual-media {
  background: radial-gradient(circle at 50% 50%, #201035, #080812 58%);
}

.lab-visual-media .visual-orb {
  border: 0;
  border-radius: 42% 58% 67% 33% / 42% 38% 62% 58%;
  background: conic-gradient(from 45deg, var(--violet), var(--cyan), #ffd0a6, var(--violet));
  box-shadow: 0 0 100px rgba(var(--violet-rgb), 0.28);
  filter: blur(0.2px);
  animation: blob-shape 12s ease-in-out infinite, orb-float 6s ease-in-out infinite;
}

.lab-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.lab-content .eyebrow {
  margin-bottom: 2rem;
}

.lab-content h3 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.lab-content > p:not(.eyebrow) {
  color: #697282;
  line-height: 1.7;
}

.lab-content ul,
.project-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
  list-style: none;
}

.lab-content li,
.project-copy li {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(10, 13, 19, 0.16);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Process */
.process {
  background:
    radial-gradient(circle at 85% 32%, rgba(var(--violet-rgb), 0.08), transparent 28rem),
    #080a10;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 18rem;
  padding: 1.5rem 1.4rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.process-list li:not(:first-child) {
  padding-left: 1.4rem;
}

.process-list li:last-child {
  border-right: 0;
}

.process-list li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.process-list li > span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.process-list li > div {
  position: absolute;
  right: 1.4rem;
  bottom: 1.5rem;
  left: 0;
}

.process-list li:not(:first-child) > div {
  left: 1.4rem;
}

.process-list h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* CTA & footer */
.closing-cta {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0b0e16;
}

.closing-cta::after,
.dev-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.75px, transparent 0.75px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 65%;
  width: min(55vw, 46rem);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--cyan-rgb), 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.13), rgba(var(--violet-rgb), 0.07) 35%, transparent 68%);
  box-shadow: 0 0 140px rgba(var(--cyan-rgb), 0.06);
  transform: translate(-50%, -50%);
  animation: closing-orbit 9s ease-in-out infinite;
}

.cta-glow::before,
.cta-glow::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(var(--violet-rgb), 0.22);
  border-radius: 50%;
}

.cta-glow::after {
  inset: -12%;
  border-color: rgba(var(--cyan-rgb), 0.1);
}

.closing-cta .page-shell {
  position: relative;
  z-index: 2;
}

.closing-cta .eyebrow {
  margin-bottom: 2.5rem;
}

.closing-cta h2 {
  max-width: 14ch;
  font-size: clamp(4rem, 8vw, 8.5rem);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
}

.cta-actions > a:not(.button) {
  color: var(--muted);
  font-size: 0.85rem;
}

.cta-actions > a:not(.button):hover {
  color: var(--cyan);
}

.site-footer {
  padding: 5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  background: #040509;
}

.footer-top,
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 2rem;
  width: min(100%, var(--max));
  margin-inline: auto;
}

.footer-top {
  min-height: 12rem;
}

.footer-top > p {
  margin: 0;
  color: var(--muted);
}

.footer-email {
  justify-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.footer-email span {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-bottom span:nth-child(2) {
  text-align: center;
}

.footer-bottom a {
  justify-self: end;
}

/* Developer hero */
.dev-hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 48%, rgba(var(--cyan-rgb), 0.085), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(var(--violet-rgb), 0.09), transparent 30rem),
    #05070b;
}

.dev-canvas,
.dev-hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dev-canvas {
  opacity: 0.78;
}

.dev-hero-grid {
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 36%, black 80%);
}

.dev-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(23rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: max(760px, 100svh);
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.dev-intro {
  max-width: 880px;
}

.dev-intro > .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dev-intro h1 {
  margin: 0;
  font-size: clamp(3.8rem, 6.6vw, 7.5rem);
  font-weight: 510;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.dev-intro h1 small {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.12em;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.dev-intro h1 em {
  display: inline;
}

.dev-lead {
  max-width: 46rem;
  margin: 2.5rem 0;
}

.identity-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(var(--cyan-rgb), 0.22);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(var(--cyan-rgb), 0.08), rgba(255, 255, 255, 0.018) 48%, rgba(var(--violet-rgb), 0.05));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.identity-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(var(--cyan-rgb), 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--cyan-rgb), 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(150deg, black, transparent 60%);
}

.identity-code {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.38;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.12), #070b12 64%);
}

.identity-code::before,
.identity-code::after,
.identity-code i {
  content: "";
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--cyan-rgb), 0.3);
  transform: rotate(45deg);
  animation: code-orbit 8s linear infinite;
}

.identity-code::after {
  width: 64%;
  border-color: rgba(var(--violet-rgb), 0.2);
  animation-direction: reverse;
  animation-duration: 13s;
}

.identity-code i {
  width: 25%;
  border-color: rgba(255, 255, 255, 0.25);
  animation-duration: 5s;
}

.identity-code span {
  position: relative;
  z-index: 1;
  color: transparent;
  background: linear-gradient(135deg, #fff, var(--cyan), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 670;
  letter-spacing: -0.1em;
  filter: drop-shadow(0 0 15px rgba(var(--cyan-rgb), 0.25));
}

.identity-panel > div:nth-child(2) {
  position: relative;
  padding: 1.6rem 0.5rem 1rem;
}

.identity-panel .mono-label {
  margin-bottom: 0.5rem;
  color: var(--cyan);
}

.identity-panel h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.identity-panel > div:nth-child(2) > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.identity-panel dl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.identity-panel dl div {
  padding: 1rem 0.5rem;
}

.identity-panel dl div:not(:last-child) {
  border-right: 1px solid var(--line);
}

.identity-panel dt {
  margin-bottom: 0.35rem;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-panel dd {
  margin: 0;
  color: #d8dce5;
  font-size: 0.7rem;
}

.identity-signal {
  position: relative;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 2.6rem;
  padding: 0.75rem 0.5rem 0;
}

.identity-signal i {
  width: 3px;
  height: 25%;
  border-radius: 3px;
  background: var(--cyan);
  animation: signal 1.4s ease-in-out infinite alternate;
}

.identity-signal i:nth-child(2) { height: 65%; animation-delay: -0.3s; }
.identity-signal i:nth-child(3) { height: 100%; animation-delay: -0.7s; }
.identity-signal i:nth-child(4) { height: 50%; animation-delay: -0.15s; }
.identity-signal i:nth-child(5) { height: 75%; animation-delay: -0.55s; }

.dev-scroll-note {
  position: absolute;
  z-index: 2;
  right: 1.4rem;
  bottom: 3.5rem;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

/* Developer content */
.dev-about {
  background: #f1f2f4;
  color: #0a0c11;
}

.dev-section-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  color: inherit;
}

.dev-section-label span,
.dev-section-label p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dev-section-label span {
  color: #5d67ca;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(26rem, 1.1fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: start;
}

.about-layout > h2 {
  font-size: clamp(3.5rem, 6vw, 6.8rem);
}

.about-layout h2 em,
.credentials-layout h2 em {
  color: #6250bc;
}

.principles article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(10, 12, 17, 0.15);
}

.principles article:first-child {
  padding-top: 0;
}

.principles article > span {
  color: #6250bc;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.principles h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.principles p {
  margin: 0;
  color: #66707e;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(5rem, 9vw, 9rem);
  border-block: 1px solid rgba(10, 12, 17, 0.17);
}

.stat-strip div {
  padding: 2.4rem 0;
}

.stat-strip div:not(:first-child) {
  padding-left: 2rem;
  border-left: 1px solid rgba(10, 12, 17, 0.17);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip strong {
  margin-bottom: 0.5rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-strip span {
  color: #68717e;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dev-projects {
  background:
    radial-gradient(circle at 100% 10%, rgba(var(--violet-rgb), 0.09), transparent 30rem),
    #07090e;
}

.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: 5rem;
}

.project-stack {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0e15;
  transition: border-color 350ms ease, transform 350ms var(--ease);
}

.project-card:hover {
  border-color: rgba(var(--cyan-rgb), 0.3);
  transform: translateY(-3px);
}

.project-visual {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--cyan-rgb), 0.16), transparent 36%),
    #060810;
}

.project-grid {
  opacity: 0.55;
  transform: perspective(750px) rotateX(62deg) rotateZ(-10deg) translateY(14%);
}

.project-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(var(--cyan-rgb), 0.43);
  stroke-width: 1.3;
  filter: drop-shadow(0 0 6px rgba(var(--cyan-rgb), 0.4));
}

.project-visual svg path:last-child {
  stroke: rgba(var(--violet-rgb), 0.42);
  stroke-dasharray: 6 8;
  animation: dash-flow 12s linear infinite;
}

.project-node {
  position: absolute;
  z-index: 2;
  width: clamp(4rem, 7vw, 6.5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.3), #080c14 63%);
  box-shadow: inset 0 0 25px rgba(var(--cyan-rgb), 0.1), 0 0 30px rgba(var(--cyan-rgb), 0.08);
  animation: node-float 5s ease-in-out infinite;
}

.node-a { top: 22%; left: 17%; }
.node-b { top: 53%; left: 48%; width: clamp(6rem, 11vw, 10rem); animation-delay: -1.5s; }
.node-c { top: 20%; right: 13%; width: clamp(3rem, 5vw, 5rem); animation-delay: -3s; }

.project-visual > span {
  position: absolute;
  right: 1.5rem;
  bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.05);
  font-size: clamp(6rem, 13vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.project-agent {
  background: radial-gradient(circle at 50% 50%, rgba(var(--violet-rgb), 0.19), transparent 40%), #080711;
}

.project-agent .project-node {
  border-radius: 26%;
  border-color: rgba(var(--violet-rgb), 0.44);
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.3), #0d0918 65%);
  transform: rotate(45deg);
}

.project-studio {
  background: radial-gradient(circle at 45% 50%, rgba(255, 142, 208, 0.13), transparent 34%), radial-gradient(circle at 65% 40%, rgba(var(--cyan-rgb), 0.12), transparent 32%), #090710;
}

.project-studio .project-node {
  border-radius: 44% 56% 62% 38% / 37% 38% 62% 63%;
  background: conic-gradient(from 90deg, rgba(var(--violet-rgb), 0.4), rgba(var(--cyan-rgb), 0.28), rgba(255, 180, 132, 0.28), rgba(var(--violet-rgb), 0.4));
}

.project-voice .project-node {
  width: clamp(2rem, 3.6vw, 3.4rem);
  border-radius: 50%;
}

.project-voice .node-b {
  box-shadow: 0 0 0 18px rgba(var(--cyan-rgb), 0.05), 0 0 0 36px rgba(var(--cyan-rgb), 0.03), 0 0 70px rgba(var(--cyan-rgb), 0.2);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.project-kicker {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.project-kicker i {
  flex: 1;
  height: 1px;
  margin-inline: 0.8rem;
  background: var(--line);
}

.project-copy h3 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 4.2vw, 4.6rem);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.project-copy > p {
  color: var(--muted);
  line-height: 1.7;
}

.project-copy li {
  border-color: var(--line);
  color: #bec6d3;
}

/* Experience */
.experience {
  color: #101218;
  background: #eeeff2;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(28rem, 1.28fr);
  gap: clamp(4rem, 10vw, 10rem);
}

.experience-heading {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.experience-heading h2 {
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 5.5vw, 6rem);
}

.experience-heading h2 em {
  color: #6250bc;
}

.experience-heading > a {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(16, 18, 24, 0.25);
  font-size: 0.8rem;
  font-weight: 650;
}

.experience-list {
  list-style: none;
}

.experience-list > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
}

.experience-marker {
  position: relative;
}

.experience-marker::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: -0.4rem;
  left: 50%;
  width: 1px;
  background: rgba(16, 18, 24, 0.18);
}

.experience-list li:last-child .experience-marker::before {
  bottom: 3rem;
}

.experience-marker i {
  position: absolute;
  z-index: 1;
  top: 0.25rem;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 2px solid #eeeff2;
  border-radius: 50%;
  background: #6250bc;
  box-shadow: 0 0 0 1px #6250bc;
}

.experience-role {
  padding-bottom: 4rem;
}

.experience-role .mono-label {
  margin-bottom: 0.8rem;
  color: #6250bc;
  font-size: 0.58rem;
}

.experience-role h3 {
  margin-bottom: 0.15rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 540;
  letter-spacing: -0.05em;
}

.experience-role h4 {
  margin: 0 0 1rem;
  color: #5f6876;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.experience-role > p:not(.mono-label) {
  max-width: 39rem;
  color: #606a77;
  line-height: 1.65;
}

.experience-role ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.experience-role li {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(16, 18, 24, 0.16);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.58rem;
}

/* Range & credentials */
.technical-range {
  background:
    radial-gradient(circle at 15% 35%, rgba(var(--cyan-rgb), 0.06), transparent 28rem),
    #080b11;
}

.range-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.8fr) minmax(28rem, 1.2fr);
  align-items: start;
  gap: clamp(4rem, 10vw, 10rem);
}

.range-intro {
  position: sticky;
  top: 8rem;
}

.range-intro h2 {
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 5.5vw, 6rem);
}

.range-groups article {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.range-groups article:last-child {
  border-bottom: 1px solid var(--line);
}

.range-groups h3 {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.range-groups h3 span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.range-groups ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.range-groups li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: #b7bfcc;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
}

.credentials {
  color: #0c0e13;
  background: #f3f3f4;
}

.credentials-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.8fr) minmax(28rem, 1.2fr);
  align-items: start;
  gap: clamp(4rem, 10vw, 10rem);
}

.credentials-layout > h2 {
  font-size: clamp(3.5rem, 5.5vw, 6rem);
}

.education-list article {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(12, 14, 19, 0.17);
}

.education-list article > span {
  padding-top: 0.35rem;
  color: #6250bc;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.education-list h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 540;
  letter-spacing: -0.035em;
}

.education-list p {
  margin: 0;
  color: #68717d;
}

.certificate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  list-style: none;
}

.certificate-list li {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(12, 14, 19, 0.18);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.61rem;
}

.dev-contact {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 45%, rgba(var(--cyan-rgb), 0.1), transparent 28rem),
    radial-gradient(circle at 85% 60%, rgba(var(--violet-rgb), 0.08), transparent 30rem),
    #080a10;
}

.dev-contact .page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(22rem, 0.8fr) minmax(30rem, 1.2fr);
  align-items: center;
  gap: clamp(4rem, 9vw, 9rem);
  padding-block: 7rem;
}

.contact-terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 12, 19, 0.8);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: perspective(900px) rotateY(5deg) rotateX(2deg);
}

.contact-terminal > div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.8rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.contact-terminal > div i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff736a;
}

.contact-terminal > div i:nth-child(2) { background: #ffc966; }
.contact-terminal > div i:nth-child(3) { background: #66e19a; }

.contact-terminal > div span {
  margin-left: auto;
  margin-right: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.contact-terminal pre {
  min-height: 15rem;
  margin: 0;
  padding: 2rem;
  color: #aeb8c8;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  line-height: 2.1;
  white-space: pre-wrap;
}

.contact-terminal pre span:first-child,
.contact-terminal pre b {
  color: var(--cyan);
  font-weight: 500;
}

.terminal-cursor {
  display: inline-block;
  color: var(--cyan);
  animation: cursor-blink 0.9s steps(2) infinite;
}

.contact-copy h2 {
  margin-bottom: 2.5rem;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
}

.contact-copy .eyebrow {
  margin-bottom: 2rem;
}

.not-found {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 40%, rgba(var(--cyan-rgb), 0.1), transparent 30rem), var(--ink);
}

.not-found .page-shell {
  position: relative;
  z-index: 1;
  padding-block: 10rem;
}

.not-found h1 {
  margin: 1.5rem 0 2rem;
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 520;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.not-found > .page-shell > p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--muted);
}

/* Keyframes */
@keyframes status-pulse { 0%, 45% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), 0.4); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes hero-image-in { to { opacity: 1; } }
@keyframes hero-breathe { from { transform: scale(1.035) translate3d(0, 0, 0); } to { transform: scale(1.075) translate3d(-0.5%, -0.4%, 0); } }
@keyframes aura-shift { from { transform: translate3d(1%, -1%, 0) scale(0.96); } to { transform: translate3d(-1%, 1%, 0) scale(1.06); } }
@keyframes float-label { 0%, 100% { transform: translate3d(0, -5px, 0); } 50% { transform: translate3d(4px, 7px, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes orb-float { 0%, 100% { translate: 0 -2%; } 50% { translate: 0 2%; } }
@keyframes blob-shape { 0%, 100% { border-radius: 42% 58% 67% 33% / 42% 38% 62% 58%; transform: translate(-50%, -50%) rotate(0deg); } 50% { border-radius: 60% 40% 35% 65% / 55% 65% 35% 45%; transform: translate(-50%, -50%) rotate(12deg); } }
@keyframes closing-orbit { 0%, 100% { transform: translate(-50%, -50%) scale(0.96); } 50% { transform: translate(-50%, -50%) scale(1.05); } }
@keyframes code-orbit { to { transform: rotate(405deg); } }
@keyframes signal { to { height: 90%; opacity: 0.55; } }
@keyframes dash-flow { to { stroke-dashoffset: -100; } }
@keyframes node-float { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 7px; } }
@keyframes cursor-blink { 50% { opacity: 0; } }

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 1rem;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .practice-card {
    min-height: 32rem;
  }

  .practice-card h3 {
    margin-top: 6rem;
  }

  .dev-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.55fr);
    gap: 2.5rem;
  }

  .project-card {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 4.8rem;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 13px 10px;
    border: 0;
    color: white;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 250ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 95;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 6rem var(--gutter) 3rem;
    background: rgba(5, 7, 11, 0.97);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 250ms ease, transform 250ms var(--ease), visibility 250ms;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-menu a {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
  }

  .mobile-menu a:last-child {
    margin-top: 1.5rem;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.menu-open {
    overflow: hidden;
  }

  .no-js .site-header {
    position: absolute;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .no-js .mobile-menu {
    position: relative;
    min-height: 100svh;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .section-heading,
  .projects-heading,
  .about-layout,
  .range-layout,
  .experience-layout,
  .credentials-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-heading > p,
  .projects-heading > p {
    max-width: 38rem;
  }

  .hero-media img {
    object-position: 63% center;
  }

  .hero-media::after {
    background: linear-gradient(90deg, rgba(3, 4, 9, 0.97) 0%, rgba(3, 4, 9, 0.79) 46%, rgba(3, 4, 9, 0.22) 100%), linear-gradient(0deg, #05060a 0%, transparent 35%);
  }

  .hero-copy-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-copy-row > p {
    max-width: 34rem;
  }

  .orbit-label-three {
    display: none;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card {
    min-height: 28rem;
  }

  .practice-card h3 {
    margin-top: 4rem;
  }

  .lab-card,
  .lab-card:nth-child(even),
  .project-card {
    grid-template-columns: 1fr;
  }

  .lab-card:nth-child(even) .lab-visual {
    order: 0;
  }

  .lab-visual,
  .project-visual {
    min-height: min(62vw, 28rem);
  }

  .process-list {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-list li,
  .process-list li:not(:first-child) {
    min-height: 0;
    padding: 1.5rem 0 1.5rem 2.5rem;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .process-list li::before {
    top: 1.7rem;
  }

  .process-list li > div,
  .process-list li:not(:first-child) > div {
    position: static;
    margin-top: 0.8rem;
  }

  .dev-hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4rem;
    padding-top: 9rem;
  }

  .identity-panel {
    width: min(100%, 32rem);
  }

  .dev-canvas {
    opacity: 0.38;
  }

  .range-intro,
  .experience-heading {
    position: static;
  }

  .dev-contact .page-shell {
    grid-template-columns: 1fr;
  }

  .contact-terminal {
    max-width: 38rem;
    transform: none;
  }

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footer-email {
    justify-self: start;
  }

  .footer-top > p {
    justify-self: end;
  }

  .footer-bottom span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 1.25rem;
    --radius: 1rem;
  }

  .section {
    padding-block: 6.5rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 1rem;
  }

  .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .home-hero {
    min-height: max(720px, 100svh);
  }

  .hero-media img {
    object-position: 69% center;
    opacity: 0.84;
  }

  .hero-media::after {
    background: linear-gradient(90deg, rgba(3, 4, 9, 0.96), rgba(3, 4, 9, 0.52)), linear-gradient(0deg, #05060a 0%, rgba(5, 6, 10, 0.42) 55%, rgba(3, 4, 9, 0.6) 100%);
  }

  .hero-content {
    min-height: max(720px, 100svh);
    padding-top: 7rem;
    padding-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(4.6rem, 25vw, 7rem);
    line-height: 0.76;
  }

  .hero-copy-row {
    margin-top: 3rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-meta span:last-child,
  .orbit-label {
    display: none;
  }

  .section-heading h2,
  .closing-cta h2,
  .about-layout > h2,
  .projects-heading h2,
  .range-intro h2,
  .experience-heading h2,
  .credentials-layout > h2,
  .contact-copy h2 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .practice-card {
    min-height: 31rem;
    padding: 1.35rem;
  }

  .practice-card ul {
    right: 1.35rem;
    bottom: 1.35rem;
    left: 1.35rem;
  }

  .manifesto {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-card {
    min-height: auto;
  }

  .lab-visual,
  .project-visual {
    min-height: 19rem;
  }

  .lab-content,
  .project-copy {
    padding: 1.5rem;
  }

  .lab-content h3,
  .project-copy h3 {
    font-size: 2.6rem;
  }

  .closing-cta {
    min-height: 75vh;
  }

  .closing-cta h2 {
    font-size: clamp(3.6rem, 17vw, 5.8rem);
  }

  .cta-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1.2rem;
  }

  .dev-hero-inner {
    padding-top: 7.2rem;
    padding-bottom: 4rem;
  }

  .dev-intro h1 {
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .identity-panel {
    padding: 0.75rem;
  }

  .identity-panel dl {
    grid-template-columns: 1fr;
  }

  .identity-panel dl div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-panel dl div {
    display: flex;
    justify-content: space-between;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip div,
  .stat-strip div:not(:first-child) {
    padding: 1.5rem 0;
    border-left: 0;
    border-bottom: 1px solid rgba(10, 12, 17, 0.17);
  }

  .stat-strip div:last-child {
    border-bottom: 0;
  }

  .project-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 2rem;
  }

  .project-kicker i {
    display: none;
  }

  .experience-layout {
    gap: 3.5rem;
  }

  .experience-list > li {
    grid-template-columns: 1.5rem 1fr;
  }

  .education-list article {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .contact-terminal pre {
    min-height: 13rem;
    padding: 1.25rem;
    font-size: 0.62rem;
  }

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-top {
    min-height: auto;
    gap: 2rem;
    padding-bottom: 4rem;
  }

  .footer-top > p {
    justify-self: start;
  }

  .footer-bottom {
    gap: 0.8rem;
  }

  .footer-bottom a {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: 100%;
    animation: none;
  }

  .marquee-set[aria-hidden="true"] {
    display: none;
  }

  .neural-canvas,
  .dev-canvas {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c7ceda;
    --line: rgba(255, 255, 255, 0.28);
  }
}
