/* Earth AI portfolio — themes, layout, and components */

:root,
:root[data-theme="orbit"] {
  color-scheme: dark;
  --bg: #050a14;
  --bg-alt: #08111f;
  --surface: rgba(15, 27, 47, 0.72);
  --surface-solid: #0d1727;
  --line: rgba(148, 190, 255, 0.16);
  --line-strong: rgba(148, 190, 255, 0.32);
  --ink: #eaf2ff;
  --ink-soft: #a9b8d0;
  --accent: #38e1c6;
  --accent-2: #5b9dff;
  --accent-3: #ffb454;
  --on-accent: #03121a;
  --land: linear-gradient(135deg, #1b6f82, #38e1c6 55%, #5b9dff);
  --glow-a: rgba(56, 225, 198, 0.22);
  --glow-b: rgba(91, 157, 255, 0.24);
  --star: rgba(255, 255, 255, 0.85);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(5, 10, 20, 0.72);
}

:root[data-theme="aurora"] {
  color-scheme: dark;
  --bg: #060f0d;
  --bg-alt: #0a1815;
  --surface: rgba(14, 34, 29, 0.72);
  --surface-solid: #0f221e;
  --line: rgba(140, 255, 200, 0.16);
  --line-strong: rgba(140, 255, 200, 0.32);
  --ink: #e9fff5;
  --ink-soft: #a5c4b8;
  --accent: #6df2a3;
  --accent-2: #a78bfa;
  --accent-3: #f9d65c;
  --on-accent: #04170e;
  --land: linear-gradient(135deg, #136b50, #6df2a3 55%, #a78bfa);
  --glow-a: rgba(109, 242, 163, 0.2);
  --glow-b: rgba(167, 139, 250, 0.26);
  --header-bg: rgba(6, 15, 13, 0.74);
}

:root[data-theme="glacier"] {
  color-scheme: light;
  --bg: #f4f8fc;
  --bg-alt: #e8f0f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --line: rgba(11, 37, 70, 0.12);
  --line-strong: rgba(11, 37, 70, 0.28);
  --ink: #0b1b30;
  --ink-soft: #44586f;
  --accent: #0b5fd6;
  --accent-2: #0b8f86;
  --accent-3: #c2410c;
  --on-accent: #ffffff;
  --land: linear-gradient(135deg, #0b5fd6, #3d8bff 55%, #0b8f86);
  --glow-a: rgba(11, 95, 214, 0.16);
  --glow-b: rgba(11, 143, 134, 0.18);
  --star: rgba(11, 95, 214, 0.35);
  --shadow: 0 24px 60px rgba(11, 37, 70, 0.14);
  --header-bg: rgba(244, 248, 252, 0.8);
}

:root[data-theme="terra"] {
  color-scheme: light;
  --bg: #f6efe2;
  --bg-alt: #efe5d2;
  --surface: rgba(255, 250, 240, 0.85);
  --surface-solid: #fffaf0;
  --line: rgba(60, 45, 20, 0.14);
  --line-strong: rgba(60, 45, 20, 0.3);
  --ink: #1f2a22;
  --ink-soft: #55604f;
  --accent: #b4532a;
  --accent-2: #1f6f5c;
  --accent-3: #8a5a00;
  --on-accent: #fffaf0;
  --land: linear-gradient(135deg, #1f6f5c, #5aa27f 50%, #b4532a);
  --glow-a: rgba(180, 83, 42, 0.16);
  --glow-b: rgba(31, 111, 92, 0.18);
  --star: rgba(138, 90, 0, 0.3);
  --shadow: 0 24px 60px rgba(60, 45, 20, 0.16);
  --header-bg: rgba(246, 239, 226, 0.82);
}

:root {
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
  --wrap: 1180px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms ease, color 300ms ease;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.namaste-welcome {
  position: absolute;
  top: 50px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.namaste-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.namaste-trigger:hover,
.namaste-trigger:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.namaste-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.namaste-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  font-size: 19px;
  line-height: 1;
  animation: namaste-bob 2.4s ease-in-out infinite;
}

.namaste-trigger[aria-expanded="true"] .namaste-icon {
  animation: none;
}

.namaste-hint {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.namaste-message {
  position: absolute;
  top: -8px;
  right: auto;
  left: 0;
  width: min(200px, calc(100vw - 48px));
  max-width: 50ch;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent) 12%);
  color: var(--ink-soft);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.namaste-message[hidden] {
  display: none;
}

.namaste-message a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.namaste-message a:hover {
  text-decoration: underline;
}

@keyframes namaste-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav > a:hover {
  background: var(--surface);
  color: var(--ink);
}

.site-nav > .nav-contact {
  margin-left: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.site-nav > .nav-contact:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.theme-control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent-3), var(--accent));
}

.theme-control select {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.theme-control select option {
  background: var(--surface-solid);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease;
}

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

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px var(--glow-a);
  color: var(--on-accent);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--accent);
}

.text-link,
.project-link,
.publication-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.project-link:hover,
.publication-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contour-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  opacity: 0.3;
}

#contour-blob {
  vector-effect: non-scaling-stroke;
}

.contour-ring:nth-child(odd) {
  stroke: var(--accent-2);
}

.contour-system {
  animation: contour-drift 40s ease-in-out infinite alternate;
}

.contour-system--b {
  animation-duration: 52s;
  animation-direction: alternate-reverse;
}

@keyframes contour-drift {
  from {
    translate: 0 0;
  }
  to {
    translate: -26px 14px;
  }
}

.orbit-track {
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.sat-panel {
  fill: var(--accent-2);
  stroke: var(--ink);
  stroke-width: 1;
}

.sat-grid,
.sat-boom,
.sat-antenna {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 1.4;
  opacity: 0.8;
}

.sat-body {
  fill: var(--accent-3);
  stroke: var(--ink);
  stroke-width: 1;
}

.sat-sensor {
  fill: var(--bg);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-glow--a {
  top: -160px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: var(--glow-a);
}

.hero-glow--b {
  right: -140px;
  bottom: -180px;
  width: 620px;
  height: 620px;
  background: var(--glow-b);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 54ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18.5px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.affiliation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.affiliation-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
}

.chip-label {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
}

.earth-console {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.console-title {
  flex: 1;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.console-map {
  position: relative;
  aspect-ratio: 1.78;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 45%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
    transparent;
}

.console-map-land,
.map-boundary {
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
}

.console-map-land {
  position: absolute;
  inset: 0;
  background: var(--land);
  opacity: 0.85;
  -webkit-mask-image: url("assets/world-boundary-mask.png");
  mask-image: url("assets/world-boundary-mask.png");
}

.console-contours {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    ellipse at 72% 48%,
    transparent 0 15px,
    color-mix(in srgb, var(--accent-2) 22%, transparent) 15px 16px
  );
  mask-image: radial-gradient(ellipse at 70% 48%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 48%, #000 25%, transparent 78%);
}

.console-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-me {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent-3);
  transform: translate(-50%, -50%);
}

.map-me::before {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent-3);
  border-radius: 50%;
  content: "";
  animation: pulse 2.6s ease-out infinite;
}

.map-me img {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 58px;
  max-width: none;
  height: 58px;
  border: 3px solid var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 4px color-mix(in srgb, var(--accent-3) 25%, transparent);
  object-fit: cover;
  object-position: 50% 22%;
  transform: translateX(-50%);
}

.map-me::after {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--accent-3);
  content: "";
  transform: translateX(-50%);
}

.map-me-label {
  position: absolute;
  right: 42px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

.map-me-label strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.map-me-label span:last-child {
  color: var(--accent-3);
}

.console-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.console-readout li {
  padding: 12px 16px;
}

.console-readout li + li {
  border-left: 1px solid var(--line);
}

.console-readout span {
  display: block;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.console-readout strong {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* Stats */

.stats {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-block: 0;
}

.stats-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 32px 24px;
}

.stats-grid > div + div {
  border-left: 1px solid var(--line);
}

.stats-grid dd {
  margin: 0;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats-grid dt {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Sections */

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2,
.about-copy h2,
.contact-inner h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11.5px;
}

.tag-list--large li {
  padding: 7px 15px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.about-photo {
  position: relative;
  margin: 0;
}

.about-photo::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  content: "";
  opacity: 0.5;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.about-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.about-copy > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--ink-soft);
}

.about-copy h2 {
  max-width: 20ch;
}

.about-note {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink) !important;
}

/* Research focus */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.focus-card,
.project-card,
.teaching-card,
.education-card,
.publication-entry,
.community-card,
.github-profile-card,
.github-stats > div,
.recognition-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.focus-card:hover,
.project-card:hover,
.teaching-card:hover,
.education-card:hover,
.community-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.focus-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.focus-card .tag-list {
  margin-top: auto;
  padding-top: 6px;
}

.focus-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.focus-card h3 {
  font-size: 21px;
}

.focus-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.earth-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.earth-diagram p {
  max-width: 24ch;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.3;
}

.earth-diagram em {
  color: var(--accent);
  font-style: normal;
}

.system-map {
  width: min(100%, 280px);
}

.system-ring {
  stroke: var(--line-strong);
  stroke-dasharray: 3 7;
}

.system-ring--mid {
  stroke: var(--line);
}

.system-ring--inner {
  stroke: var(--line);
}

.system-link {
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.6;
}

.system-node {
  fill: var(--surface-solid);
  stroke: var(--accent-2);
  stroke-width: 1.5;
}

.system-center {
  fill: color-mix(in srgb, var(--accent-2) 24%, var(--surface-solid));
  stroke: var(--accent);
  stroke-width: 2;
}

.system-line {
  stroke: var(--accent);
  opacity: 0.5;
}

.system-land {
  fill: var(--accent);
  opacity: 0.75;
}

.system-label {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  grid-column: span 3;
  flex-direction: column;
  overflow: hidden;
}

.project-card--feature {
  grid-column: span 6;
}

.project-visual {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    repeating-radial-gradient(
      ellipse at var(--cx, 30%) var(--cy, 120%),
      transparent 0 17px,
      color-mix(in srgb, var(--hue) 30%, transparent) 17px 18.5px
    ),
    linear-gradient(135deg, color-mix(in srgb, var(--hue) 22%, var(--surface-solid)), var(--surface-solid));
}

.project-card--feature .project-visual {
  min-height: 190px;
}

.project-visual span {
  position: absolute;
  bottom: 14px;
  left: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--hue);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.project-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pa-fill > * {
  fill: var(--hue);
  opacity: 0.22;
}

.pa-fill--strong > * {
  fill: var(--hue);
  opacity: 0.55;
}

.pa-stroke > * {
  fill: none;
  stroke: var(--hue);
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.pa-stroke.pa-dash > * {
  stroke-dasharray: 5 5;
  stroke-width: 1.4;
}

.pa-stroke.pa-faint > * {
  opacity: 0.4;
  stroke-width: 1.2;
}

.pa-text text {
  fill: var(--hue);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.project-card--roof {
  --hue: var(--accent-3);
  --cx: 20%;
  --cy: 130%;
}

.project-card--ship {
  --hue: var(--accent-2);
  --cx: 80%;
  --cy: 120%;
}

.project-card--air {
  --hue: var(--accent);
  --cx: 50%;
  --cy: 110%;
}

.project-card--llm {
  --hue: var(--accent-2);
  --cx: 10%;
  --cy: -20%;
}

.project-card--drone {
  --hue: var(--accent-3);
  --cx: 90%;
  --cy: -10%;
}

.project-card--land {
  --hue: var(--accent);
  --cx: 40%;
  --cy: 130%;
}


.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 26px 26px;
}

.project-meta {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-body h3 {
  font-size: 22px;
}

.project-body > p:not(.project-meta) {
  color: var(--ink-soft);
  font-size: 15px;
}

.project-body .project-link {
  margin-top: auto;
}

.toolkit {
  margin-top: 56px;
}

/* Publications */

.book-feature {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse at 0% 0%, var(--glow-a), transparent 60%),
    var(--surface);
}

.book-cover {
  display: flex;
  aspect-ratio: 3 / 4;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px;
  border-radius: 6px 14px 14px 6px;
  background:
    repeating-radial-gradient(ellipse at 20% 120%, transparent 0 12px, rgba(255, 255, 255, 0.12) 12px 13px),
    linear-gradient(150deg, #0e3b5c, #0b6a73 60%, #1a8f7a);
  box-shadow: var(--shadow), inset 4px 0 0 rgba(255, 255, 255, 0.18);
  color: #f2fbff;
}

.book-kicker,
.book-subtitle,
.book-publisher {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.book-cover strong {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
}

.book-cover strong span {
  color: #ffd08a;
}

.book-copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
}

.book-copy > p:not(.eyebrow) {
  max-width: 60ch;
  margin-block: 14px 24px;
  color: var(--ink-soft);
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 22px 26px;
}

.publication-entry:hover {
  border-color: var(--line-strong);
}

.publication-kind {
  padding-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-entry h3 {
  font-size: 18px;
  line-height: 1.3;
}

.publication-entry p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.publication-link {
  padding-top: 4px;
  white-space: nowrap;
}

.more-publications {
  margin-top: 18px;
  padding: 18px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.more-publications summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.more-publications ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.more-publications li span {
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--mono);
}

.more-publications strong {
  color: var(--ink);
  font-weight: 500;
}

.community-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.community-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  text-decoration: none;
}

.community-type {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.community-card strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
}

.community-card > span:not(.community-type):not(.community-cta) {
  color: var(--ink-soft);
  font-size: 15px;
}

.community-cta {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
}

.writing {
  margin-top: 48px;
}

.writing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.writing-head h3 {
  font-size: 24px;
}

.writing-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.writing-head a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.writing-head a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.article-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.article-source {
  padding-inline: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.article-source--esri {
  color: var(--accent-3);
}

.article-card strong {
  padding-inline: 18px;
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
}

.footnote {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footnote a {
  color: var(--accent);
  font-weight: 600;
}

/* Experience timeline */

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 215px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 52px;
  padding-block: 22px;
}

.timeline-item::before {
  position: absolute;
  top: 31px;
  left: 210px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  content: "";
}

.timeline-item:first-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}

.timeline-period {
  padding-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: right;
}

.timeline-item h3 {
  font-size: 21px;
}

.timeline-item h3 small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.timeline-item p {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

.timeline code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.88em;
}

/* Teaching */

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.teaching-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.teaching-level {
  color: var(--accent-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teaching-card h3 {
  font-size: 21px;
}

.teaching-card > p {
  color: var(--ink-soft);
  font-size: 15px;
}

.teaching-card .tag-list {
  margin-top: auto;
}

.talk-list {
  display: grid;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.talk-list span {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

/* Recognition */

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.recognition-column {
  padding: 28px;
}

.recognition-column h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.recognition-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.recognition-list li:first-child {
  margin-top: 12px;
}

.recognition-year {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.recognition-list strong {
  display: block;
  font-weight: 600;
}

.recognition-list div span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.memberships {
  margin-top: 44px;
}

/* Education */

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.education-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
}

.education-year {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.education-card h3 {
  font-size: 22px;
}

.education-card p {
  color: var(--ink);
}

.education-note {
  color: var(--ink-soft);
  font-size: 14px;
}

.cert-list {
  margin-top: 44px;
}

.cert-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.cert-list li {
  display: flex;
  flex-direction: column;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.cert-list li span {
  color: var(--ink-soft);
  font-size: 14px;
}

/* Journey maps */

.journey-maps {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(0, 0.883fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 36px);
}

.locus-map {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
}

.journey-map-canvas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 72% 38%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 60%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.journey-map-canvas::before {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    ellipse at 70% 45%,
    transparent 0 18px,
    color-mix(in srgb, var(--accent-2) 20%, transparent) 18px 19px
  );
  content: "";
  pointer-events: none;
}

.locus-map--world .journey-map-canvas {
  aspect-ratio: 1.78;
}

.locus-map--india .journey-map-canvas {
  aspect-ratio: 0.883;
}

.map-boundary {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.map-boundary--world {
  background: var(--land);
  opacity: 0.9;
  -webkit-mask-image: url("assets/world-boundary-mask.png?v=2");
  mask-image: url("assets/world-boundary-mask.png?v=2");
}

.map-boundary--india {
  background: linear-gradient(135deg, var(--accent-3), var(--accent) 80%);
  opacity: 0.9;
  -webkit-mask-image: url("assets/india-boundary-mask.png?v=2");
  mask-image: url("assets/india-boundary-mask.png?v=2");
  -webkit-mask-size: 96% 96%;
  mask-size: 96% 96%;
}

.journey-annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.journey-route {
  fill: none;
  stroke: var(--accent-3);
  stroke-dasharray: 1.1 1.5;
  stroke-linecap: round;
  stroke-width: 0.3;
}

.journey-leaders {
  fill: none;
  stroke: var(--ink);
  stroke-dasharray: 1.2 0.9;
  stroke-linecap: round;
  stroke-width: 0.38;
  opacity: 0.7;
}

.journey-city {
  stroke: var(--bg);
  stroke-width: 0.45;
}

.journey-city--home {
  fill: var(--accent-3);
}

.journey-city--study {
  fill: var(--accent-2);
}

.journey-city--work {
  fill: var(--accent);
}

.journey-marker {
  position: absolute;
  top: calc(var(--point-y) + var(--marker-offset-y, 0%));
  left: calc(var(--point-x) + var(--marker-offset-x, 0%));
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-accent);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.journey-marker::before {
  position: absolute;
  inset: 8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  content: "";
  transition: transform 160ms ease;
}

.journey-marker::after {
  position: absolute;
  inset: 4px;
  border: 1px solid var(--accent-3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: journey-pulse 3.2s ease-out infinite;
  animation-delay: var(--journey-delay, 0s);
}

@keyframes journey-pulse {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }
  10% {
    opacity: 0.8;
  }
  42% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.journey-marker--home::before {
  background: var(--accent-3);
}

.journey-marker--study::before {
  background: var(--accent-2);
}

.journey-marker span {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.journey-marker:hover::before,
.journey-marker[aria-expanded="true"]::before {
  transform: scale(1.2);
}

.journey-popup {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: min(290px, calc(100% - 32px));
  padding: 18px 42px 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  color: var(--ink);
  line-height: 1.45;
}

.journey-popup[hidden] {
  display: none;
}

.journey-popup-kicker {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.journey-popup h4 {
  font-size: 17px;
}

.journey-popup-detail {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.journey-popup-close {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}

.locus-map figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.journey-map-instruction {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* GitHub */

.github-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 20px;
}

.github-profile-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}

.github-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.github-username {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.github-bio {
  color: var(--ink-soft);
  font-size: 15px;
}

.github-affiliation-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
}

.github-affiliation-status {
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
}

.github-affiliation-status--former {
  background: var(--line);
  color: var(--ink-soft);
}

.github-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.github-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px;
}

.github-stats dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.github-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
}

.github-profile-status,
.github-data-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.github-data-note {
  margin-top: 4px;
}

.contrib {
  margin-top: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contrib-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 16px;
}

.contrib-head h3 {
  font-size: 18px;
}

.contrib-head a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.contrib-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.contrib-graph {
  max-width: none;
}

.contrib-month {
  fill: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.contrib-cell,
.contrib-legend i {
  fill: var(--cell-0);
}

.contrib {
  --cell-0: color-mix(in srgb, var(--ink) 9%, transparent);
  --cell-1: color-mix(in srgb, var(--accent) 30%, var(--surface-solid));
  --cell-2: color-mix(in srgb, var(--accent) 55%, var(--surface-solid));
  --cell-3: color-mix(in srgb, var(--accent) 80%, var(--surface-solid));
  --cell-4: var(--accent);
}

.contrib-cell.lv-0 { fill: var(--cell-0); }
.contrib-cell.lv-1 { fill: var(--cell-1); }
.contrib-cell.lv-2 { fill: var(--cell-2); }
.contrib-cell.lv-3 { fill: var(--cell-3); }
.contrib-cell.lv-4 { fill: var(--cell-4); }

.contrib-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.contrib-legend span {
  margin-inline: 4px;
}

.contrib-legend i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.contrib-legend .lv-0 { background: var(--cell-0); }
.contrib-legend .lv-1 { background: var(--cell-1); }
.contrib-legend .lv-2 { background: var(--cell-2); }
.contrib-legend .lv-3 { background: var(--cell-3); }
.contrib-legend .lv-4 { background: var(--cell-4); }

.contrib-status {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.contrib-status:empty {
  display: none;
}

/* Contact */

.contact-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, var(--glow-b), transparent 60%),
    radial-gradient(ellipse at 50% 100%, var(--glow-a), transparent 60%);
  content: "";
}

.contact-inner {
  display: flex;
  max-width: 820px;
  flex-direction: column;
  align-items: center;
}

.contact-inner > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 17px;
}

.contact-inner .hero-actions {
  justify-content: center;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.profile-links a:hover {
  border-color: var(--accent);
}

.profile-badge {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Scroll reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

/* Responsive */

@media (max-width: 1060px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-inner,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 680px;
  }

  .about-photo {
    max-width: 420px;
  }

  .focus-grid,
  .teaching-grid,
  .education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teaching-card:last-child,
  .education-card:last-child {
    grid-column: 1 / -1;
  }

  .project-card,
  .project-card--feature {
    grid-column: span 6;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid > div:nth-child(4) {
    border-left: 0;
  }

  .stats-grid > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-solid);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 12px 8px;
    border-radius: 8px;
  }

  .site-nav > .nav-contact {
    margin: 8px 0 0;
    text-align: center;
  }

  .theme-control {
    align-self: flex-start;
    margin: 10px 0 0;
  }
}

@media (max-width: 900px) {  .timeline::before {
    left: 5px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 32px;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-period {
    text-align: left;
  }

  .publication-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .book-feature {
    grid-template-columns: 1fr;
  }

  .book-cover {
    width: 180px;
  }

  .journey-maps {
    grid-template-columns: 1fr;
  }

  .locus-map--india {
    width: min(78%, 360px);
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 36px));
  }

  .focus-grid,
  .teaching-grid,
  .education-grid,
  .recognition-grid,
  .article-grid,
  .community-links,
  .github-dashboard,
  .cert-list ul {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--feature {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid > div {
    padding: 24px 14px;
    border-left: 0 !important;
  }

  .stats-grid > div:nth-child(even) {
    border-left: 1px solid var(--line) !important;
  }

  .stats-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .console-readout {
    grid-template-columns: 1fr;
  }

  .console-readout li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .map-me img {
    width: 40px;
    height: 40px;
    bottom: 14px;
  }

  .map-me-label {
    display: none;
  }

  .github-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-marker {
    width: 36px;
    height: 36px;
  }

  .recognition-list li {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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