:root {
  color-scheme: dark;
  --bg: #050605;
  --panel: #0d100e;
  --panel-strong: #121711;
  --text: #f2f0e8;
  --muted: #a9ada4;
  --soft: #767c73;
  --line: rgba(242, 240, 232, 0.13);
  --line-strong: rgba(242, 240, 232, 0.26);
  --green: #c8f55d;
  --cyan: #5ee4df;
  --amber: #f0bd56;
  --ink: #050605;
  --max: 1120px;
  --header: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(5, 6, 5, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 5, 0.9);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section-panel {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  padding: calc(var(--header) + 46px) 0 24px;
}

.hero::before {
  position: absolute;
  inset: var(--header) 0 8%;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0%, rgba(200, 245, 93, 0.08) 42%, transparent 43%),
    linear-gradient(120deg, transparent 0%, rgba(94, 228, 223, 0.06) 60%, transparent 61%),
    linear-gradient(180deg, transparent 0%, rgba(5, 6, 5, 0.4) 46%, var(--bg) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  top: var(--header);
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  background:
    linear-gradient(rgba(242, 240, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 240, 232, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.94) 43%, transparent 82%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.94) 43%, transparent 82%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(740px, 100%);
}

.hero-media {
  position: absolute;
  top: var(--header);
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: 100vw;
  overflow: hidden;
  opacity: 0.82;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.98) 0%, rgba(5, 6, 5, 0.9) 34%, rgba(5, 6, 5, 0.42) 66%, rgba(5, 6, 5, 0.62) 100%),
    linear-gradient(180deg, rgba(5, 6, 5, 0.08) 0%, rgba(5, 6, 5, 0.28) 48%, rgba(5, 6, 5, 0.95) 100%);
  content: "";
}

.hero-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.92) contrast(1.08);
}

.hero-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.hero-kicker-row .eyebrow {
  margin: 0;
}

.receiver-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(200, 245, 93, 0.2);
  border-radius: 6px;
  background: rgba(5, 6, 5, 0.52);
  color: rgba(242, 240, 232, 0.68);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-content > .receiver-status {
  display: flex;
  width: fit-content;
  margin: 12px auto 0;
}

.receiver-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(200, 245, 93, 0.75);
  animation: status-pulse 2.6s ease-in-out infinite;
}

.tower path,
.robot path,
.robot circle,
.robot rect,
.mini-satellite path,
.mini-satellite rect,
.directional-beam path,
.signal-arcs path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.tower path {
  stroke: url("#towerGlow");
  stroke-width: 1.4;
}

.tower .tower-core {
  stroke: rgba(242, 240, 232, 0.22);
  stroke-dasharray: 4 7;
}

.robot .robot-body,
.robot .robot-head {
  fill: rgba(13, 16, 14, 0.92);
  stroke: var(--green);
  stroke-width: 1.5;
}

.robot path,
.robot circle {
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.robot .robot-eye,
.robot .robot-antenna-tip {
  fill: var(--cyan);
  stroke: none;
  filter: drop-shadow(0 0 5px rgba(94, 228, 223, 0.8));
}

.robot-arm {
  transform-box: fill-box;
  transform-origin: 80% 80%;
  animation: robot-wave 3.4s ease-in-out infinite;
}

.ground-robot {
  cursor: pointer;
  transition: filter 180ms ease;
  outline: none;
}

.robot-hitbox {
  fill: transparent;
  pointer-events: all;
}

.ground-robot:focus-visible,
.ground-robot.is-active {
  filter:
    drop-shadow(0 0 8px rgba(94, 228, 223, 0.65))
    drop-shadow(0 0 18px rgba(200, 245, 93, 0.34));
}

.ground-robot:focus-visible .robot-eye,
.ground-robot:focus-visible .robot-antenna-tip,
.ground-robot.is-active .robot-eye,
.ground-robot.is-active .robot-antenna-tip {
  fill: #f2f0e8;
  filter: drop-shadow(0 0 9px rgba(94, 228, 223, 1));
}

.ground-robot:focus-visible .robot-body,
.ground-robot:focus-visible .robot-head,
.ground-robot.is-active .robot-body,
.ground-robot.is-active .robot-head {
  fill: rgba(26, 36, 28, 0.98);
}

.robot-greeting {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, filter 180ms ease;
}

.robot-greeting-cloud,
.robot-greeting-tail {
  fill: rgba(242, 240, 232, 0.97);
  stroke: rgba(200, 245, 93, 0.72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.robot-greeting-mobile {
  display: none;
}

.robot-greeting text {
  fill: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

.ground-robot:focus-visible ~ .robot-greeting,
.ground-robot.is-active ~ .robot-greeting {
  opacity: 1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

@media (hover: hover) and (pointer: fine) {
  .ground-robot:hover {
    filter:
      drop-shadow(0 0 8px rgba(94, 228, 223, 0.65))
      drop-shadow(0 0 18px rgba(200, 245, 93, 0.34));
  }

  .ground-robot:hover .robot-eye,
  .ground-robot:hover .robot-antenna-tip {
    fill: #f2f0e8;
    filter: drop-shadow(0 0 9px rgba(94, 228, 223, 1));
  }

  .ground-robot:hover .robot-body,
  .ground-robot:hover .robot-head {
    fill: rgba(26, 36, 28, 0.98);
  }

  .ground-robot:hover ~ .robot-greeting {
    opacity: 1;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
  }
}

.mini-satellite rect {
  fill: rgba(13, 16, 14, 0.9);
  stroke: rgba(200, 245, 93, 0.78);
  stroke-width: 1.2;
}

.mini-satellite path {
  stroke: rgba(94, 228, 223, 0.55);
  stroke-width: 1.1;
}

.directional-beam .beam-guide {
  stroke: rgba(200, 245, 93, 0.22);
  stroke-width: 1.1;
}

.directional-beam,
.signal-arcs {
  opacity: 0;
  transition: opacity 220ms ease;
}

.directional-beam .beam-pulse {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 3 117;
}

.directional-beam .pulse-two {
  stroke: var(--cyan);
  animation-delay: -1.6s;
}

.signal-lab[data-mode="uplink"] .directional-beam,
.signal-lab[data-mode="uplink"] .signal-arcs,
.signal-lab[data-mode="downlink"] .directional-beam,
.signal-lab[data-mode="downlink"] .signal-arcs {
  opacity: 1;
}

.signal-lab[data-mode="uplink"] .beam-pulse {
  animation: beam-uplink 3.2s linear infinite;
}

.signal-lab[data-mode="downlink"] .beam-pulse {
  animation: beam-downlink 3.2s linear infinite;
}

.signal-arc {
  opacity: 0;
  stroke: rgba(200, 245, 93, 0.72);
  stroke-width: 1.4;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: arc-breathe 2.7s ease-out infinite both;
}

.arc-two {
  animation-delay: 0.35s;
}

.arc-three {
  animation-delay: 0.7s;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 7vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-lede {
  max-width: 740px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(1.06rem, 1.6vw, 1.34rem);
  line-height: 1.46;
}

.hero-lede span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 740px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 760;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(200, 245, 93, 0.78);
  background: rgba(200, 245, 93, 0.1);
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #d8ff76;
  box-shadow: 0 0 24px rgba(200, 245, 93, 0.32);
}

.signal-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.signal-strip span {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(13, 16, 14, 0.86);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.intro,
.projects,
.signal-lab,
.research,
.experience,
.contact {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.intro {
  padding-top: 42px;
}

.section-heading {
  display: block;
  max-width: 900px;
  margin-bottom: 46px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.7vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro .section-heading h2 {
  max-width: 820px;
  font-size: clamp(2.25rem, 4.2vw, 3.8rem);
  font-weight: 780;
}

.projects .section-heading h2 {
  max-width: 780px;
  font-size: clamp(2.1rem, 3.5vw, 3.15rem);
}

.signal-lab {
  position: relative;
  padding: 72px 0 86px;
  overflow: clip;
}

.signal-lab::before {
  position: absolute;
  inset: 12% 6% 10%;
  z-index: -1;
  background:
    radial-gradient(circle at 32% 56%, rgba(200, 245, 93, 0.06), transparent 34%),
    radial-gradient(circle at 74% 38%, rgba(94, 228, 223, 0.045), transparent 28%);
  content: "";
}

.signal-lab-heading {
  position: relative;
  z-index: 3;
  max-width: 460px;
  margin-bottom: -54px;
}

.signal-lab-heading .eyebrow {
  margin-bottom: 10px;
}

.signal-lab-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.05;
}

.signal-lab-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
  gap: 20px;
  min-height: 540px;
  align-items: center;
}

.signal-scene {
  position: relative;
  min-width: 0;
}

.signal-scene svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.34));
}

.thought-path {
  fill: none;
  stroke: rgba(242, 240, 232, 0.35);
  stroke-width: 1.25;
  stroke-dasharray: 3 8;
  vector-effect: non-scaling-stroke;
}

.thought-dot {
  fill: rgba(242, 240, 232, 0.16);
  stroke: rgba(200, 245, 93, 0.55);
  stroke-width: 1;
}

.thought-responsive-tablet,
.thought-responsive-mobile {
  display: none;
}

.thought-responsive-path {
  fill: none;
  stroke: rgba(200, 245, 93, 0.48);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.thought-responsive-tablet circle,
.thought-responsive-mobile circle {
  fill: rgba(13, 16, 14, 0.92);
  stroke: rgba(200, 245, 93, 0.78);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.signal-prompt {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: 0;
}

.signal-prompt::before {
  position: absolute;
  top: 35%;
  right: 100%;
  width: 58px;
  border-top: 2px dotted rgba(242, 240, 232, 0.28);
  content: "";
}

.signal-question {
  position: relative;
  display: grid;
  place-content: center;
  gap: 6px;
  width: min(100%, 330px);
  min-height: 196px;
  padding: 32px;
  border: 1px solid rgba(200, 245, 93, 0.34);
  border-radius: 48% 52% 43% 57% / 54% 45% 55% 46%;
  background: rgba(242, 240, 232, 0.96);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  box-shadow:
    -24px 18px 0 -13px rgba(242, 240, 232, 0.9),
    22px -18px 0 -12px rgba(242, 240, 232, 0.92),
    0 24px 56px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.signal-question:hover,
.signal-question:focus-visible {
  border-color: var(--green);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    -24px 18px 0 -13px rgba(242, 240, 232, 0.9),
    22px -18px 0 -12px rgba(242, 240, 232, 0.92),
    0 26px 64px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(200, 245, 93, 0.2);
}

.signal-question span {
  font-size: 0.88rem;
  font-weight: 650;
}

.signal-question strong {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.signal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 330px);
}

.signal-options[hidden] {
  display: none;
}

.signal-options button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(13, 16, 14, 0.86);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.signal-options button:hover,
.signal-options button:focus-visible,
.signal-options button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(200, 245, 93, 0.24);
  transform: translateY(-1px);
}

.signal-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
}

.signal-result {
  width: min(100%, 500px);
  padding: 18px 14px 15px;
  border: 1px solid rgba(94, 228, 223, 0.28);
  border-radius: 8px;
  background: rgba(13, 16, 14, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.signal-result[hidden],
.signal-formula[hidden] {
  display: none;
}

.link-equation {
  display: block;
  margin: 0;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.6;
  white-space: nowrap;
}

.link-equation sub {
  color: var(--cyan);
  font-size: 0.68em;
}

.signal-result small {
  display: block;
  margin-top: 10px;
  color: rgba(242, 240, 232, 0.62);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
}

.signal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(13, 16, 14, 0.86);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.signal-close[hidden] {
  display: none;
}

.signal-close span {
  color: var(--green);
  font-size: 1.15rem;
  line-height: 1;
}

.signal-close:hover,
.signal-close:focus-visible {
  border-color: rgba(200, 245, 93, 0.62);
  background: rgba(200, 245, 93, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.research-heading h2 {
  max-width: 760px;
  color: rgba(242, 240, 232, 0.88);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 620;
  line-height: 1.18;
}

.experience .section-heading h2 {
  max-width: 670px;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 650;
  line-height: 1.2;
}

.contact-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.section-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.62fr);
  gap: 42px;
}

.intro-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p + p {
  margin-top: 20px;
}

.facts {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.facts div {
  padding: 18px;
  background: rgba(13, 16, 14, 0.88);
}

.facts dt {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 790;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 660;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  min-width: 0;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 16, 14, 0.72);
  overflow: hidden;
}

.project-featured {
  grid-column: auto;
}

.project-code,
.project-chess {
  min-height: 420px;
  margin-top: 0;
}

.project-image {
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #11140f;
}

.project-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(5, 6, 5, 0.72)),
    linear-gradient(90deg, rgba(5, 6, 5, 0.18), transparent 45%);
  content: "";
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 260ms ease, filter 260ms ease;
}

.project-card .project-image {
  min-height: 420px;
  aspect-ratio: auto;
}

.project-card .project-image img {
  min-height: 420px;
}

.project-image.diagram {
  background: #e7e8e4;
}

.project-image.diagram img {
  padding: 10px;
  object-fit: contain;
}

.project-card:hover .project-image img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.025);
}

.project-image.chess img {
  object-fit: contain;
  object-position: center top;
}

.project-image.chess::after {
  background: linear-gradient(180deg, transparent 80%, rgba(5, 6, 5, 0.12));
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  padding: clamp(24px, 4vw, 44px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta span + span::before {
  margin-right: 8px;
  color: var(--soft);
  content: "/";
}

.project-body h3 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.6vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.project-card .project-body {
  justify-content: center;
}

.project-featured .project-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.project-code .project-body h3,
.project-chess .project-body h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.project-body p {
  max-width: 640px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 24px;
}

.tag-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.text-link {
  width: fit-content;
  color: var(--green);
  font-weight: 800;
  border-bottom: 1px solid rgba(200, 245, 93, 0.42);
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.research-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.research-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.research-map div {
  min-height: 260px;
  padding: 24px;
  background: rgba(13, 16, 14, 0.9);
}

.research-map span {
  display: block;
  margin-bottom: 42px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 820;
}

.research-map strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.12;
}

.research-map p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.timeline article {
  position: relative;
  padding: 30px clamp(24px, 4vw, 54px) 8px 28px;
  border-left: 1px solid var(--line);
}

.timeline article::before {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(200, 245, 93, 0.52);
  content: "";
}

.timeline span {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding-bottom: 64px;
}

.contact-heading {
  margin-bottom: 38px;
}

.contact-heading .section-subtitle {
  max-width: none;
  white-space: nowrap;
}

.contact-board {
  --contact-accent: #8aa7e8;
  --contact-accent-soft: rgba(80, 112, 180, 0.16);
  --contact-image: url("assets/contact-research-collaboration.webp");
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  min-height: 410px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 6, 5, 0.72);
}

.contact-board[data-active="github"] {
  --contact-accent: #c8f55d;
  --contact-accent-soft: rgba(200, 245, 93, 0.12);
  --contact-image: url("assets/contact-signal-network.webp");
}

.contact-board[data-active="gmail"] {
  --contact-accent: #e4bd7c;
  --contact-accent-soft: rgba(228, 189, 124, 0.13);
  --contact-image: url("assets/contact-gmail-workstation.webp");
}

.contact-preview {
  position: relative;
  min-height: 410px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--contact-accent-soft), transparent 50%),
    var(--contact-image) center / cover;
  transition: background-image 180ms ease;
}

.contact-preview::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 20%, var(--contact-accent-soft), transparent 38%),
    linear-gradient(160deg, rgba(5, 6, 5, 0.12), rgba(5, 6, 5, 0.92) 82%);
  content: "";
}

.contact-preview::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, transparent 45%, rgba(5, 6, 5, 0.88));
  background-size: 16px 16px, 16px 16px, auto;
  opacity: 0.38;
  content: "";
}

.contact-preview-content {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 8px;
}

.contact-preview-content span {
  color: var(--contact-accent);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 830;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.contact-preview-content strong {
  color: var(--text);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  line-height: 1;
}

.contact-preview-content p {
  max-width: 28ch;
  margin: 0;
  color: rgba(242, 240, 232, 0.78);
  font-size: 0.96rem;
}

.contact-menu {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.contact-card {
  --brand: var(--green);
  --brand-soft: rgba(200, 245, 93, 0.07);
  position: relative;
  display: grid;
  place-items: center;
  min-height: 136px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 830;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  background: rgba(13, 16, 14, 0.72);
  transition: color 190ms ease, background 190ms ease;
}

.contact-card[data-channel="linkedin"] {
  --brand: #88aaf2;
  --brand-soft: rgba(86, 126, 213, 0.1);
}

.contact-card[data-channel="github"] {
  --brand: #c8f55d;
  --brand-soft: rgba(200, 245, 93, 0.07);
}

.contact-card[data-channel="gmail"] {
  --brand: #e4bd7c;
  --brand-soft: rgba(228, 189, 124, 0.08);
}

.contact-card:last-child {
  border-bottom: 0;
}

.contact-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, var(--brand-soft), transparent 76%);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity 220ms ease, transform 260ms ease;
  content: "";
}

.contact-card::after {
  position: absolute;
  inset: 26% auto 26% 0;
  z-index: 1;
  width: 3px;
  background: var(--brand);
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms ease;
  content: "";
}

.contact-card span {
  position: relative;
  z-index: 1;
}

.contact-card:focus-visible,
.contact-card.is-active {
  color: var(--text);
  background: rgba(17, 21, 18, 0.92);
}

.contact-card:focus-visible::before,
.contact-card.is-active::before {
  opacity: 1;
  transform: translateX(0);
}

.contact-card:focus-visible::after,
.contact-card.is-active::after {
  opacity: 0.9;
  transform: scaleY(1);
}

@media (hover: hover) and (pointer: fine) {
  .contact-card:hover {
    color: var(--text);
    background: rgba(17, 21, 18, 0.92);
  }

  .contact-card:hover::before {
    opacity: 1;
    transform: translateX(0);
  }

  .contact-card:hover::after {
    opacity: 0.9;
    transform: scaleY(1);
  }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes robot-wave {
  0%, 24%, 100% { transform: rotate(0deg); }
  34% { transform: rotate(-12deg); }
  44% { transform: rotate(7deg); }
  54% { transform: rotate(-9deg); }
  64% { transform: rotate(0deg); }
}

@keyframes beam-uplink {
  to { stroke-dashoffset: -120; }
}

@keyframes beam-downlink {
  to { stroke-dashoffset: 120; }
}

@keyframes arc-breathe {
  0% { opacity: 0; transform: scale(0.72); }
  32% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.12); }
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: clamp(3.8rem, 6.6vw, 6.5rem);
  }
}

@media (max-width: 880px) {
  .site-header {
    padding-inline: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--header) 12px auto 12px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 16, 14, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .intro-grid,
  .research-layout,
  .contact-board,
  .timeline,
  .signal-lab-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88svh;
    padding-bottom: 28px;
  }

  .hero-media {
    top: var(--header);
    left: 50%;
    right: auto;
    bottom: 0;
    width: 100vw;
    opacity: 0.78;
    transform: translateX(-50%);
  }

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

  .hero-content {
    max-width: 620px;
  }

  .signal-lab-heading {
    margin-bottom: 10px;
  }

  .signal-lab-stage {
    gap: 0;
  }

  .signal-scene {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .signal-prompt {
    margin-top: -26px;
  }

  .signal-prompt::before {
    display: none;
  }

  .thought-path,
  .thought-dot {
    display: none;
  }

  .thought-responsive-tablet {
    display: block;
  }

  .signal-feedback {
    width: 100%;
    max-width: none;
    white-space: nowrap;
  }

  .signal-strip,
  .research-map {
    grid-template-columns: 1fr 1fr;
  }

  .research-map div:last-child {
    grid-column: 1 / -1;
  }

  .contact-board {
    min-height: 0;
  }

  .contact-heading .section-subtitle {
    white-space: normal;
  }

  .contact-preview {
    min-height: 280px;
  }

  .contact-menu {
    grid-template-rows: repeat(3, minmax(94px, auto));
  }

  .contact-card {
    min-height: 94px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .project-code,
  .project-chess {
    min-height: 0;
    margin-top: 0;
  }

  .project-image,
  .project-image img {
    min-height: 250px;
  }

  .project-featured .project-image,
  .project-featured .project-image img {
    min-height: 300px;
  }

  .timeline article {
    padding-right: 8px;
    padding-bottom: 28px;
  }
}

@media (min-width: 561px) and (max-width: 880px) {
  .signal-scene .tower,
  .signal-scene .signal-arcs {
    transform: translate(-22px, -16px);
  }

  .signal-scene .directional-beam path {
    d: path("M192 194 C252 140 330 94 418 69");
  }
}

@media (max-width: 560px) {
  .section-panel {
    width: min(100% - 28px, var(--max));
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding-top: calc(var(--header) + 30px);
    padding-bottom: 22px;
  }

  .hero-content {
    max-width: 100%;
    transform: translateY(-60px);
  }

  .hero-media {
    opacity: 0.86;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(5, 6, 5, 0.96) 0%, rgba(5, 6, 5, 0.75) 48%, rgba(5, 6, 5, 0.2) 82%, rgba(5, 6, 5, 0.42) 100%),
      linear-gradient(180deg, rgba(5, 6, 5, 0.08) 0%, rgba(5, 6, 5, 0.22) 54%, rgba(5, 6, 5, 0.9) 100%);
  }

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

  .hero-kicker-row {
    display: grid;
    justify-items: start;
    gap: 9px;
    margin-bottom: 16px;
  }

  .receiver-status {
    max-width: 100%;
    font-size: 0.61rem;
  }

  .hero-content > .receiver-status {
    margin-inline: auto;
    transform: translate(-50px, -15px);
  }

  h1 {
    max-width: none;
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 10.2vw, 2.75rem);
    line-height: 1;
    white-space: nowrap;
  }

  .hero-lede {
    max-width: 29ch;
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .hero-actions {
    display: flex;
    transform: translate(-90px, -15px);
  }

  .hero-actions .button.primary {
    width: min(190px, 100%);
  }

  .research-map {
    grid-template-columns: 1fr;
  }

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

  .intro,
  .projects,
  .signal-lab,
  .research,
  .experience,
  .contact {
    padding: 72px 0;
  }

  .intro {
    padding-top: 36px;
  }

  .signal-lab {
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .signal-lab-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .signal-lab-stage {
    min-height: 0;
  }

  .signal-scene {
    margin-top: -8px;
  }

  .signal-prompt {
    margin-top: 14px;
  }

  .robot-greeting text {
    font-size: 18px;
  }

  .robot-greeting-desktop {
    display: none;
  }

  .robot-greeting-mobile {
    display: inline;
  }

  .thought-responsive-tablet {
    display: none;
  }

  .thought-responsive-mobile {
    display: block;
  }

  .signal-question {
    width: min(100%, 286px);
    min-height: 164px;
    padding: 26px 28px;
  }

  .signal-options {
    width: min(100%, 286px);
  }

  .signal-feedback {
    max-width: none;
    font-size: 0.62rem;
    line-height: 1.45;
    white-space: nowrap;
  }

  .signal-result {
    padding: 16px 8px 13px;
  }

  .link-equation {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: clamp(1.72rem, 8.4vw, 2.4rem);
    line-height: 1.12;
  }

  .intro .section-heading h2 {
    font-size: clamp(2rem, 9.2vw, 2.7rem);
  }

  .research-heading h2,
  .experience .section-heading h2 {
    font-size: clamp(1.62rem, 7.4vw, 2rem);
  }

  .contact-heading {
    margin-bottom: 28px;
  }

  .contact-preview {
    min-height: 230px;
    background-position: 58% center;
  }

  .contact-preview-content {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .contact-card {
    min-height: 82px;
    font-size: clamp(1.35rem, 7.5vw, 1.9rem);
  }

  .project-image,
  .project-image img,
  .project-featured .project-image,
  .project-featured .project-image img {
    min-height: 210px;
  }

  .project-card .project-image.chess,
  .project-card .project-image.chess img {
    height: 210px;
    min-height: 210px;
  }

  .project-body {
    padding: 22px;
  }

  .project-meta {
    display: grid;
    gap: 3px;
  }

  .project-meta span + span::before {
    content: "";
    margin: 0;
  }
}

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

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