/*
  Main website styles.
  Colors and spacing are collected near the top so the client can change the
  overall look without hunting through the full file.
*/
:root {
  color-scheme: light dark;
  --ink: #232735;
  --muted: #626878;
  --paper: #fefefe;
  --surface: #ffffff;
  --field: #fafbfc;
  --line: #e4e7eb;
  --accent: #16a34a;
  --accent-dark: #087532;
  --gold: #b3863f;
  --coral: #dc2626;
  --ambient-haze: rgba(243, 245, 247, 0.46);
  --crater-shadow: rgba(71, 78, 88, 0.065);
  --crater-rim: rgba(255, 255, 255, 0.42);
  --space-haze: rgba(22, 163, 74, 0.035);
  --hero-veil-start: rgba(254, 254, 254, 0.7);
  --hero-veil-end: rgba(254, 254, 254, 0.96);
  --portrait-backdrop: #f2f4f5;
  --portrait-ring: rgba(246, 247, 248, 0.9);
  --portrait-ring-strong: rgba(255, 255, 255, 0.98);
  --overlay: rgba(31, 34, 45, 0.58);
  --focus-ring: rgba(22, 163, 74, 0.22);
  --accent-border: rgba(22, 163, 74, 0.32);
  --hover-surface: #ffffff;
  --button-ink: #ffffff;
  --shadow-color: rgba(35, 39, 53, 0.13);
  --shadow: 0 24px 60px var(--shadow-color);
  --nav-safe-inline: 24px;
  --nav-safe-block-end: 0px;
  --map-project-stroke: #ffffff;
  --map-project-fill: #16a34a;
  --map-empty-stroke: #aeb5aa;
  --map-empty-fill: #edf0eb;
  --map-active-stroke: #ffffff;
  --map-active-fill: #dc2626;
  --map-hover-fill: #e2e6df;
  --map-gradient-inner: rgba(255, 255, 255, 0.94);
  --map-gradient-mid: rgba(240, 243, 238, 0.64);
  --map-gradient-outer: rgba(225, 230, 222, 0.78);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
  }
}

:root[data-theme="dark"] {
  --ink: #e3e1da;
  --muted: #b9b6ad;
  --paper: #1d1e23;
  --surface: #28292f;
  --field: #222329;
  --line: #3d3e45;
  --accent: #4ade80;
  --accent-dark: #86efac;
  --gold: #d2ae64;
  --coral: #f87171;
  --ambient-haze: rgba(217, 214, 205, 0.13);
  --crater-shadow: rgba(3, 3, 5, 0.22);
  --crater-rim: rgba(235, 232, 224, 0.075);
  --space-haze: rgba(74, 222, 128, 0.09);
  --hero-veil-start: rgba(29, 30, 35, 0.6);
  --hero-veil-end: rgba(29, 30, 35, 0.92);
  --portrait-backdrop: #292b30;
  --portrait-ring: rgba(217, 214, 205, 0.24);
  --portrait-ring-strong: rgba(217, 214, 205, 0.42);
  --overlay: rgba(12, 12, 15, 0.7);
  --focus-ring: rgba(74, 222, 128, 0.24);
  --accent-border: rgba(74, 222, 128, 0.34);
  --hover-surface: #303137;
  --button-ink: #1d1e23;
  --shadow-color: rgba(3, 3, 5, 0.36);
  --map-project-stroke: #e3e1da;
  --map-project-fill: #22c55e;
  --map-empty-stroke: #85868e;
  --map-empty-fill: #36373d;
  --map-active-stroke: #f1eee6;
  --map-active-fill: #ef4444;
  --map-hover-fill: #5a5b62;
  --map-gradient-inner: rgba(217, 214, 205, 0.15);
  --map-gradient-mid: rgba(82, 83, 90, 0.34);
  --map-gradient-outer: rgba(30, 31, 36, 0.94);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink: #e3e1da;
    --muted: #b9b6ad;
    --paper: #1d1e23;
    --surface: #28292f;
    --field: #222329;
    --line: #3d3e45;
    --accent: #4ade80;
    --accent-dark: #86efac;
    --gold: #d2ae64;
    --coral: #f87171;
    --ambient-haze: rgba(217, 214, 205, 0.13);
    --crater-shadow: rgba(3, 3, 5, 0.22);
    --crater-rim: rgba(235, 232, 224, 0.075);
    --space-haze: rgba(74, 222, 128, 0.09);
    --hero-veil-start: rgba(29, 30, 35, 0.6);
    --hero-veil-end: rgba(29, 30, 35, 0.92);
    --portrait-backdrop: #292b30;
    --portrait-ring: rgba(217, 214, 205, 0.24);
    --portrait-ring-strong: rgba(217, 214, 205, 0.42);
    --overlay: rgba(12, 12, 15, 0.7);
    --focus-ring: rgba(74, 222, 128, 0.24);
    --accent-border: rgba(74, 222, 128, 0.34);
    --hover-surface: #303137;
    --button-ink: #1d1e23;
    --shadow-color: rgba(3, 3, 5, 0.36);
    --map-project-stroke: #e3e1da;
    --map-project-fill: #22c55e;
    --map-empty-stroke: #85868e;
    --map-empty-fill: #36373d;
    --map-active-stroke: #f1eee6;
    --map-active-fill: #ef4444;
    --map-hover-fill: #5a5b62;
    --map-gradient-inner: rgba(217, 214, 205, 0.15);
    --map-gradient-mid: rgba(82, 83, 90, 0.34);
    --map-gradient-outer: rgba(30, 31, 36, 0.94);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-block: 0;
  scroll-snap-type: y proximity;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 78% 18%, var(--ambient-haze), transparent 24rem),
    radial-gradient(circle at 12% 82%, var(--space-haze), transparent 22rem),
    linear-gradient(145deg, var(--paper), color-mix(in srgb, var(--paper) 86%, var(--line)));
  background-attachment: fixed;
}

.intro,
.bio-intro p,
.logo-strip-intro,
.experience-intro,
.bio-grid article > p:not(.eyebrow),
.approach-block > .section-heading > p:last-child,
.bio-note p,
.principles > .section-heading > p:last-child,
.principle-list article p,
.map-section > .section-heading > p:last-child,
.contact-section > .section-heading p {
  text-align: justify;
}

@media (max-width: 820px) {
  body {
    --nav-safe-inline: 0px;
    --nav-safe-block-end: 86px;
  }
}

@media (min-width: 821px) and (max-width: 1060px),
  (min-width: 821px) and (max-height: 700px) {
  body {
    --nav-safe-inline: 24px;
    --nav-safe-block-end: 86px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, transparent 0 34px, var(--crater-shadow) 35px 37px, var(--crater-rim) 38px 39px, transparent 41px),
    radial-gradient(circle at 82% 17%, transparent 0 52px, var(--crater-shadow) 53px 56px, var(--crater-rim) 57px 59px, transparent 61px),
    radial-gradient(circle at 66% 72%, transparent 0 74px, var(--crater-shadow) 75px 78px, var(--crater-rim) 79px 81px, transparent 84px),
    radial-gradient(circle at 30% 78%, transparent 0 24px, var(--crater-shadow) 25px 27px, var(--crater-rim) 28px 29px, transparent 31px),
    radial-gradient(circle at 46% 44%, transparent 0 42px, color-mix(in srgb, var(--crater-shadow) 64%, transparent) 43px 45px, transparent 48px),
    radial-gradient(circle at 8% 62%, transparent 0 88px, color-mix(in srgb, var(--crater-shadow) 52%, transparent) 89px 92px, transparent 95px);
  opacity: 0.58;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

body.contact-composer-open {
  overflow: hidden;
}

main {
  position: relative;
  z-index: 1;
}

.snap-section {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.bio-section {
  scroll-snap-align: start;
}

.site-nav {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 25;
  display: grid;
  gap: 8px;
  width: max-content;
  transform: translateY(-50%);
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px 8px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  box-shadow: 0 10px 28px var(--shadow-color);
  backdrop-filter: blur(14px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 140ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link.is-active {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-color: var(--accent-border);
  outline: none;
  transform: translateX(3px);
}

.site-nav__link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-nav__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.52;
}

.site-nav__link.is-active .site-nav__dot {
  opacity: 1;
  box-shadow: 0 0 0 5px var(--focus-ring);
}

@media (min-width: 821px) and (max-width: 1060px),
  (min-width: 821px) and (max-height: 700px) {
  .site-nav {
    top: auto;
    right: 12px;
    bottom: 10px;
    left: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: auto;
    padding: 6px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 999px;
    box-shadow: 0 16px 38px var(--shadow-color);
    transform: none;
    backdrop-filter: blur(16px);
  }

  .site-nav__link {
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.72rem;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .site-nav__link:hover,
  .site-nav__link:focus,
  .site-nav__link.is-active {
    background: var(--field);
    transform: none;
  }
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px 8px 10px;
  color: var(--accent-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  box-shadow: 0 12px 30px var(--shadow-color);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 120ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  color: var(--button-ink);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.theme-toggle:active {
  transform: scale(0.97);
}

.theme-toggle__icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--surface) 76%, var(--line));
  border: 1px solid color-mix(in srgb, var(--accent-dark) 38%, transparent);
  border-radius: 50%;
  box-shadow:
    inset -4px -3px 0 color-mix(in srgb, var(--line) 78%, transparent),
    0 0 16px var(--ambient-haze);
}

.theme-toggle__icon::before,
.theme-toggle__icon::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 50%;
}

.theme-toggle__icon::before {
  top: 4px;
  left: 5px;
  width: 4px;
  height: 4px;
}

.theme-toggle__icon::after {
  right: 4px;
  bottom: 5px;
  width: 3px;
  height: 3px;
}

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

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 7vh, 72px) 24px calc(clamp(58px, 9vh, 92px) + var(--nav-safe-block-end)) var(--nav-safe-inline);
  background: transparent;
}

.hero::after {
  content: none;
}

.hero__content,
.map-section {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: center;
  min-height: 0;
  animation: page-rise 620ms ease-out both;
}

.hero__copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
}

.title {
  max-width: 760px;
  color: var(--accent-dark);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.tagline {
  max-width: 780px;
  margin: clamp(14px, 3vh, 26px) 0;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.25;
}

.intro {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro:last-child {
  margin-bottom: 0;
}

.hero__portrait {
  --portrait-rotate-x: 0deg;
  --portrait-rotate-y: 0deg;
  position: relative;
  isolation: isolate;
  width: min(350px, 84vw);
  aspect-ratio: 1;
  overflow: visible;
  perspective: 900px;
}

.portrait-lens {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.portrait-lens::before,
.portrait-lens::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.portrait-lens::before {
  inset: 5%;
  z-index: -2;
  background:
    radial-gradient(circle at 38% 28%, color-mix(in srgb, var(--portrait-ring-strong) 86%, transparent) 0 4%, transparent 4.5%),
    radial-gradient(circle at 66% 70%, color-mix(in srgb, var(--gold) 32%, transparent) 0 2.5%, transparent 3%),
    linear-gradient(145deg, color-mix(in srgb, var(--portrait-backdrop) 88%, var(--surface)), var(--portrait-backdrop));
  border: 1px solid color-mix(in srgb, var(--portrait-ring-strong) 72%, var(--line));
  box-shadow:
    0 30px 65px color-mix(in srgb, var(--shadow-color) 82%, transparent),
    0 0 0 10px color-mix(in srgb, var(--surface) 48%, transparent);
}

.portrait-lens::after {
  inset: -1%;
  z-index: -3;
  border: 1px dashed color-mix(in srgb, var(--accent) 46%, transparent);
  animation: portrait-orbit 24s linear infinite;
}

.portrait-lens__orbit {
  position: absolute;
  inset: 12%;
  z-index: -1;
  border-radius: 50%;
  background:
    conic-gradient(
      from 18deg,
      var(--accent) 0 8deg,
      transparent 8deg 112deg,
      var(--gold) 112deg 121deg,
      transparent 121deg 248deg,
      var(--coral) 248deg 256deg,
      transparent 256deg
    );
  opacity: 0.72;
  -webkit-mask: radial-gradient(transparent 0 66%, #000 67% 69%, transparent 70%);
  mask: radial-gradient(transparent 0 66%, #000 67% 69%, transparent 70%);
}

.portrait-lens picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  transform:
    perspective(900px)
    rotateX(var(--portrait-rotate-x))
    rotateY(var(--portrait-rotate-y))
    translateZ(24px);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.portrait-lens img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px color-mix(in srgb, var(--shadow-color) 82%, transparent));
}

.portrait-lens__note {
  --chip-rotation: 0deg;
  --chip-shadow: 0 10px 24px color-mix(in srgb, var(--shadow-color) 78%, transparent);
  position: absolute;
  z-index: 3;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.portrait-lens__note::before,
.portrait-lens__caption::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface);
  border: 1px solid var(--chip-border, var(--line));
  border-radius: inherit;
  box-shadow: var(--chip-shadow);
  transform: rotate(var(--chip-rotation));
}

.portrait-lens__note-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--button-ink);
  background: var(--accent-dark);
  border-radius: 50%;
}

.portrait-lens__note-icon svg {
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portrait-lens__note--research {
  --chip-rotation: -2deg;
  top: 10%;
  left: -7%;
}

.portrait-lens__note--evidence {
  --chip-rotation: 2deg;
  top: 37%;
  right: -21%;
}

.portrait-lens__note--evidence .portrait-lens__note-icon {
  background: var(--coral);
}

.portrait-lens__note--learning {
  --chip-rotation: -1.5deg;
  right: -8%;
  bottom: 14%;
}

.portrait-lens__note--learning .portrait-lens__note-icon {
  color: var(--ink);
  background: var(--gold);
}

.portrait-lens__caption {
  --chip-border: var(--accent-border);
  --chip-rotation: -2deg;
  --chip-shadow: 0 14px 30px var(--shadow-color);
  position: absolute;
  bottom: -4%;
  left: 2%;
  z-index: 4;
  isolation: isolate;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 13px;
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  transform: none;
}

.portrait-lens__caption small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-lens__pin {
  position: relative;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  background: var(--coral);
  border: 3px solid var(--surface);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--coral) 58%, transparent);
  transform: rotate(-45deg);
}

.portrait-lens__pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--surface);
  border-radius: 50%;
}

@keyframes portrait-orbit {
  to {
    transform: rotate(360deg);
  }
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.section-scroll-cue {
  display: grid;
  width: max-content;
  margin: 30px auto 0;
  justify-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus,
.section-scroll-cue:hover,
.section-scroll-cue:focus {
  color: var(--coral);
  outline: none;
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus {
  transform: translateX(-50%) translateY(-2px);
}

.section-scroll-cue:hover,
.section-scroll-cue:focus {
  transform: translateY(-2px);
}

/*
  The arrow is CSS-only so the scroll hint stays lightweight and easy to edit.
*/
.hero__scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-cue 1.5s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(7px) rotate(45deg);
  }
}

@keyframes scroll-cue-up {
  0%,
  100% {
    transform: translateY(0) rotate(225deg);
  }

  50% {
    transform: translateY(-7px) rotate(225deg);
  }
}

.map-section {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 18px;
  overflow: hidden;
  padding: 32px 24px calc(42px + var(--nav-safe-block-end)) var(--nav-safe-inline);
  scroll-margin-top: 18px;
}

.bio-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px calc(88px + var(--nav-safe-block-end)) var(--nav-safe-inline);
  scroll-margin-top: 18px;
}

.content-section {
  width: min(1120px, 100%);
  height: 100vh;
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(28px, 6vh, 56px) 24px calc(clamp(28px, 6vh, 56px) + var(--nav-safe-block-end)) var(--nav-safe-inline);
  scroll-margin-top: 18px;
}

.section-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 20px;
}

.section-heading p:last-child {
  color: var(--muted);
}

#skills {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 16px;
}

.skills-layout {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.language-skills,
.contribution-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px var(--shadow-color);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.language-skills:hover,
.contribution-grid article:hover {
  border-color: var(--accent-border);
  box-shadow: 0 18px 42px var(--shadow-color);
  transform: translateY(-3px);
}

.language-skills {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.language-skills h3,
.contribution-section h3,
.language-list h4,
.contribution-grid h4 {
  margin-bottom: 6px;
}

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

.language-list article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  background: var(--field);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
}

.language-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--button-ink);
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--accent-dark);
  border-radius: 50%;
}

.language-list h4,
.contribution-grid h4 {
  color: var(--accent-dark);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.language-list p,
.contribution-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.contribution-section .section-heading {
  margin-bottom: 14px;
}

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

.contribution-grid article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-height: 150px;
  padding: 15px;
}

.contribution-icon {
  position: relative;
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  border: 1px solid var(--accent-border);
  border-radius: 8px;
}

.contribution-icon svg {
  width: 68%;
  height: 68%;
  overflow: visible;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 480px);
  gap: 44px;
  align-items: start;
  align-content: center;
  padding-bottom: clamp(58px, 9vh, 76px);
}

.contact-section > .section-scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 20px;
  transform: translateX(50%);
}

.contact-section > .section-scroll-cue:hover,
.contact-section > .section-scroll-cue:focus {
  transform: translateX(50%) translateY(-2px);
}

.contact-section .section-heading {
  margin-bottom: 0;
}

.contact-section .section-heading p {
  color: var(--muted);
}

.linkedin-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}

.linkedin-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.linkedin-button:hover,
.linkedin-button:focus {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 10px 24px var(--shadow-color);
  outline: none;
  transform: translateY(-2px);
}

.linkedin-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.linkedin-button:active {
  transform: translateY(0) scale(0.98);
}

.section-scroll-cue--up .hero__scroll-arrow {
  transform: rotate(225deg);
  animation-name: scroll-cue-up;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px var(--shadow-color);
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.contact-form:not(.is-expanded) {
  max-height: 100%;
}

.contact-composer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--overlay);
  animation: fade-in 180ms ease both;
}

.contact-composer-backdrop[hidden] {
  display: none;
}

.contact-form.is-expanded {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 36;
  width: min(1120px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  height: calc(100svh - 32px);
  gap: 12px;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  transform: translateX(-50%);
  box-shadow: 0 28px 80px var(--shadow-color);
  animation: composer-pop-up 220ms ease-out both;
}

.contact-form.is-collapsing {
  animation: composer-pop-down 170ms ease-in both;
}

.contact-form.is-expanded .message-field {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.contact-form.is-expanded .message-input {
  height: 100%;
  min-height: 160px;
  overflow: auto;
}

.contact-recipient {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-recipient span,
.contact-form label span,
.message-field > span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-recipient strong {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.35rem;
}

.contact-form label,
.message-field {
  display: grid;
  gap: 8px;
}

.contact-form input,
.message-input {
  width: 100%;
  color: var(--ink);
  font: inherit;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form input {
  min-height: 44px;
  padding: 9px 12px;
}

.contact-form input:focus,
.message-input:focus {
  border-color: var(--accent);
  outline: 3px solid var(--focus-ring);
}

.composer-size-button {
  display: none;
  place-items: center;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--accent-dark);
  background: var(--field);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 120ms ease;
}

.contact-form.is-expanded .composer-size-button {
  display: inline-grid;
}

.composer-size-button:hover,
.composer-size-button:focus {
  color: var(--button-ink);
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.composer-size-button:active {
  transform: scale(0.96);
}

.composer-size-button svg {
  display: block;
}

.message-input {
  min-height: 130px;
  padding: 13px;
  resize: none;
  overflow: auto;
  overflow-wrap: anywhere;
}

.form-error {
  margin: 0;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-submit {
  justify-self: start;
  height: 46px;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--button-ink);
  font: inherit;
  font-weight: 700;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}

.contact-submit:hover,
.contact-submit:focus {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 10px 24px var(--shadow-color);
  outline: none;
}

.contact-submit:active {
  transform: translateY(1px) scale(0.98);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: stretch;
  min-height: 0;
}

.map-column {
  display: grid;
  min-height: 0;
}

.india-map-card,
.project-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px var(--shadow-color);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.india-map-card:hover,
.project-panel:hover {
  border-color: var(--accent-border);
  box-shadow: 0 18px 42px var(--shadow-color);
}

.india-map-card {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.india-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 6px;
  background:
    radial-gradient(circle at 52% 42%, var(--map-gradient-inner), var(--map-gradient-mid) 34%, var(--map-gradient-outer) 100%);
}

.map-status {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.map-status h3,
.map-status p {
  max-width: 34rem;
  margin: 0 auto;
}

.leaflet-container {
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  cursor: default;
}

.leaflet-control,
.leaflet-control a,
.leaflet-control-attribution,
.leaflet-tooltip,
.project-panel,
.project-button {
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

.leaflet-pane,
.leaflet-overlay-pane svg,
.leaflet-overlay-pane path {
  pointer-events: auto;
}

.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
  transition: fill 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.state-tooltip {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.project-panel {
  height: 100%;
  min-height: 0;
  padding: 22px;
  overflow: auto;
}

.state-summary p {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.project-button {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 160ms ease;
  animation: list-rise 220ms ease-out both;
}

.project-button strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 0.96rem;
}

.project-button span {
  color: var(--muted);
  font-size: 0.88rem;
}

.project-button:hover,
.project-button:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 24px var(--shadow-color);
  transform: translateY(-2px);
  outline: 3px solid var(--focus-ring);
}

.project-button:active {
  transform: translateY(0) scale(0.99);
}

.bio-intro {
  display: grid;
  width: 100%;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.bio-intro p {
  margin-bottom: 0;
}

.logo-strip-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.1rem;
}

.logo-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: 12px;
  grid-auto-rows: 1fr;
  max-width: 920px;
  margin: 4px auto 36px;
  padding: 32px clamp(14px, 3vw, 34px);
  isolation: isolate;
}

.logo-strip::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 28%, var(--focus-ring), transparent 12rem),
    radial-gradient(circle at 72% 70%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 13rem),
    linear-gradient(90deg, transparent 0 4%, color-mix(in srgb, var(--line) 62%, transparent) 4.2% 4.4%, transparent 4.6% 95.4%, color-mix(in srgb, var(--line) 62%, transparent) 95.6% 95.8%, transparent 96% 100%),
    linear-gradient(180deg, transparent 0 calc(50% - 1px), color-mix(in srgb, var(--line) 58%, transparent) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px) 100%);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 8px;
  opacity: 0.78;
}

.logo-strip::after {
  content: "";
  position: absolute;
  inset: 20px clamp(22px, 5vw, 72px);
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 10%, color-mix(in srgb, var(--accent-border) 62%, transparent) 10% 90%, transparent 90% 100%),
    linear-gradient(180deg, transparent 0 10%, color-mix(in srgb, var(--accent-border) 42%, transparent) 10% 90%, transparent 90% 100%);
  background-size: 100% 50%, 33.333% 100%;
  background-position: center, center;
  opacity: 0.58;
}

.logo-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 62px;
  padding: 8px 13px 8px 34px;
  --tag-glow: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--field)), color-mix(in srgb, var(--field) 74%, var(--surface))),
    color-mix(in srgb, var(--surface) 86%, var(--field));
  border: 1px solid color-mix(in srgb, var(--accent-border) 48%, var(--line));
  border-radius: 8px;
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--shadow-color) 72%, transparent),
    0 0 0 1px color-mix(in srgb, var(--surface) 72%, transparent) inset,
    0 0 18px var(--tag-glow);
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    outline-color 180ms ease;
}

.logo-strip span::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 9px;
  height: 9px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--tag-glow);
  opacity: 0.88;
}

.logo-strip span:hover,
.logo-strip span:focus-visible {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, currentColor 56%, var(--line));
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--shadow-color) 88%, transparent),
    0 0 0 1px color-mix(in srgb, var(--surface) 82%, transparent) inset,
    0 0 32px color-mix(in srgb, currentColor 28%, transparent),
    0 0 58px var(--tag-glow);
  outline-color: color-mix(in srgb, currentColor 28%, transparent);
}

.experience-intro {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.impact-stats div,
.bio-grid article,
.process-compass__panel,
.bio-note,
.principle-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px var(--shadow-color);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.impact-stats div:hover,
.bio-grid article:hover,
.process-compass__panel:hover,
.principle-list article:hover {
  border-color: var(--accent-border);
  box-shadow: 0 18px 42px var(--shadow-color);
  transform: translateY(-3px);
}

.impact-stats div {
  min-height: 138px;
  padding: 20px;
}

.impact-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.impact-stats span {
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 54px;
}

.bio-grid article,
.process-compass__panel,
.bio-note,
.principle-list article {
  padding: 24px;
}

.bio-grid p,
.process-compass__panel p,
.bio-note p,
.principle-list p {
  color: var(--muted);
}

.theme-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.theme-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--button-ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--accent);
  border-radius: 6px;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.theme-cloud .theme-cloud__primary {
  --primary-theme-glow: var(--coral);
  position: relative;
  z-index: 0;
  display: inline-grid;
  place-content: center;
  place-items: center;
  gap: 3px;
  min-width: 148px;
  padding: 7px 13px 9px;
  overflow: visible;
  color: var(--button-ink);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  background: var(--accent);
  border: 2px solid color-mix(in srgb, var(--primary-theme-glow) 72%, var(--accent));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--button-ink) 22%, transparent) inset,
    0 0 20px color-mix(in srgb, var(--primary-theme-glow) 52%, transparent);
  transform-origin: center;
  animation: primary-theme-glow 2.2s ease-in-out infinite;
}

.theme-cloud .theme-cloud__primary small {
  color: color-mix(in srgb, var(--button-ink) 88%, transparent);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-cloud .theme-cloud__primary::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 2px solid color-mix(in srgb, var(--primary-theme-glow) 66%, transparent);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.86);
  animation: primary-theme-ripple 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

.theme-cloud span:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

@keyframes primary-theme-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--button-ink) 18%, transparent) inset,
      0 0 16px color-mix(in srgb, var(--primary-theme-glow) 40%, transparent);
  }

  50% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--button-ink) 36%, transparent) inset,
      0 0 30px color-mix(in srgb, var(--primary-theme-glow) 72%, transparent),
      0 0 56px color-mix(in srgb, var(--primary-theme-glow) 42%, transparent);
  }
}

@keyframes primary-theme-ripple {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  18% {
    opacity: 0.72;
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-cloud .theme-cloud__primary,
  .theme-cloud .theme-cloud__primary::after {
    animation: none;
  }
}

.question-stack {
  display: grid;
  gap: 10px;
}

.question-stack p {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.15rem;
  background: var(--field);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.question-stack p:hover {
  border-left-color: var(--coral);
  transform: translateX(3px);
}

.approach-block {
  margin-top: 10px;
}

.principles {
  margin-top: clamp(56px, 8vw, 88px);
}

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

.process-compass__panel {
  min-height: 190px;
}

.process-compass__number {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-compass__question {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}

.process-compass__center {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--button-ink);
  text-align: center;
  background: var(--accent-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.process-compass__center h3 {
  margin-bottom: 6px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.process-compass__center p {
  max-width: 720px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--button-ink) 82%, transparent);
}

.bio-note {
  margin: 34px 0 54px;
  border-left: 5px solid var(--accent);
}

.bio-note p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.principle-list .principle-spoke {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.principle-list .principle-spoke p {
  text-align: left;
}

.principle-spoke::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 102px;
  height: 102px;
  border: 18px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.principle-spoke__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.principle-list .principle-core {
  display: grid;
  grid-row: span 2;
  align-content: center;
  min-height: 438px;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, #087532 94%, transparent),
      color-mix(in srgb, #232735 90%, transparent)
    ),
    #087532;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow);
}

.principle-list .principle-core:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, #ffffff);
}

.principle-core .eyebrow {
  color: color-mix(in srgb, #ffffff 76%, var(--accent));
  text-align: left;
}

.principle-core h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
}

.principle-list .principle-core p {
  color: rgba(255, 255, 255, 0.84);
  text-align: left;
}

.principle-core__statement {
  margin-bottom: 0;
  padding-top: 18px;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  animation: fade-in 180ms ease both;
}

.modal__content {
  position: relative;
  width: min(620px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 34px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: pop-up 220ms ease-out both;
}

.modal.is-closing .modal__backdrop {
  animation: fade-out 170ms ease-in both;
}

.modal.is-closing .modal__content {
  animation: pop-down 170ms ease-in both;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 120ms ease;
}

.modal__close:hover,
.modal__close:focus {
  color: var(--coral);
  outline: none;
}

.modal__close:active {
  transform: scale(0.92);
}

.modal__meta {
  color: var(--gold);
  font-weight: 700;
}

.modal #modal-body > p {
  color: var(--muted);
}

.reveal-on-scroll {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 520ms ease,
    translate 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes pop-up {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pop-down {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@keyframes list-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes composer-pop-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes composer-pop-down {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.985);
  }
}

@media (max-width: 820px) {
  body::before {
    opacity: 0.48;
  }

  .site-nav {
    top: auto;
    right: 12px;
    bottom: 10px;
    left: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: auto;
    padding: 6px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 999px;
    box-shadow: 0 16px 38px var(--shadow-color);
    transform: none;
    backdrop-filter: blur(16px);
  }

  .site-nav__link {
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.72rem;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .site-nav__link:hover,
  .site-nav__link:focus,
  .site-nav__link.is-active {
    background: var(--field);
    transform: none;
  }

  .hero,
  .map-section,
  .bio-section,
  .content-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    align-items: center;
    padding-top: 24px;
    padding-bottom: calc(80px + var(--nav-safe-block-end));
  }

  .hero__content,
  .map-layout,
  .bio-intro,
  .bio-grid,
  .process-compass,
  .principle-list,
  .language-skills {
    grid-template-columns: 1fr;
  }

  .language-list,
  .contribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__content {
    gap: 18px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .title {
    font-size: 1rem;
  }

  .tagline {
    margin: 14px 0;
    font-size: 1.22rem;
  }

  .intro {
    font-size: 0.96rem;
  }

  .map-section {
    padding-top: 24px;
    padding-bottom: calc(72px + var(--nav-safe-block-end));
  }

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

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

  .process-compass__panel {
    min-height: auto;
  }

  .process-compass__center {
    grid-column: auto;
  }

  .principle-list .principle-core {
    grid-row: auto;
    min-height: auto;
    padding: 28px;
  }

  .hero__portrait {
    order: -1;
    width: min(210px, 62vw);
  }

  .portrait-lens__note {
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  .portrait-lens__note-icon {
    width: 18px;
    height: 18px;
  }

  .portrait-lens__note-icon svg {
    width: 11px;
    height: 11px;
  }

  .portrait-lens__caption {
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .india-map-card {
    height: 100%;
    min-height: 0;
  }

  .project-panel {
    display: none;
  }

  .india-map {
    height: 100%;
    min-height: 0;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 20px;
    align-content: center;
    padding-bottom: calc(80px + var(--nav-safe-block-end));
  }

  .contact-section .section-heading p {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  body::before {
    opacity: 0.36;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding: 8px;
  }

  .theme-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
  }

  .hero,
  .map-section,
  .bio-section,
  .content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .map-section,
  .content-section {
    padding-top: 20px;
    padding-bottom: calc(76px + var(--nav-safe-block-end));
  }

  .tagline {
    margin: 10px 0;
  }

  .hero__scroll-cue {
    bottom: 16px;
    font-size: 0.72rem;
  }

  .section-scroll-cue {
    font-size: 0.72rem;
  }

  .site-nav {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 5px;
  }

  .site-nav__link {
    min-height: 36px;
    padding: 6px 4px;
    font-size: 0.66rem;
  }

  .site-nav__dot {
    width: 7px;
    height: 7px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .logo-strip {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 22px 10px;
  }

  .logo-strip span {
    max-width: 100%;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: calc(76px + var(--nav-safe-block-end));
  }

  .contact-section .section-heading {
    max-width: none;
  }

  .contact-section .section-heading p {
    display: none;
  }

  .contact-section .section-heading p:last-child {
    display: block;
    margin-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .hero__portrait {
    width: min(164px, 54vw);
  }

  .portrait-lens__note--research {
    left: -18%;
  }

  .portrait-lens__note--evidence {
    right: -38%;
  }

  .portrait-lens__note--learning {
    right: -24%;
  }

  .portrait-lens__caption {
    left: -6%;
  }

  .intro {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .language-list,
  .contribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .language-skills,
  .contribution-grid article {
    padding: 12px;
  }

  .contribution-grid article {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: auto;
  }

  .contribution-icon {
    width: 42px;
    height: 42px;
  }

  .language-list article {
    min-height: 58px;
    padding: 9px;
  }

  .language-icon {
    width: 36px;
    height: 36px;
    font-size: 0.68rem;
  }

  .language-list p,
  .contribution-grid p {
    display: none;
  }

  .contribution-section .section-heading {
    margin-bottom: 8px;
  }

  .contribution-grid h4 {
    margin-bottom: 0;
    font-size: 0.96rem;
  }

  .india-map-card {
    padding: 0;
  }

  .india-map {
    height: 100%;
    min-height: 0;
  }

  .modal__content {
    padding: 28px 22px;
  }

  .contact-form {
    gap: 10px;
    padding: 18px;
  }

  .contact-form input {
    min-height: 42px;
    padding: 8px 10px;
  }

  .message-input {
    min-height: 110px;
  }

  .contact-submit {
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 520px) and (max-height: 740px) {
  .content-section {
    padding-top: 14px;
    padding-bottom: calc(66px + var(--nav-safe-block-end));
  }

  #skills {
    gap: 8px;
  }

  #skills .section-heading {
    margin-bottom: 4px;
  }

  #skills h2 {
    margin-bottom: 4px;
    font-size: 1.72rem;
  }

  .skills-layout {
    gap: 10px;
  }

  .language-skills {
    gap: 8px;
    padding: 10px;
  }

  .language-skills h3,
  .contribution-section h3 {
    font-size: 1.05rem;
  }

  .language-list article {
    min-height: 48px;
  }

  .language-icon {
    width: 30px;
    height: 30px;
  }

  .contribution-grid article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .contribution-icon {
    width: 34px;
    height: 34px;
  }

  .contribution-grid h4 {
    font-size: 0.86rem;
  }

  #skills .section-scroll-cue {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-lens picture,
  .portrait-lens::after {
    animation: none;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

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

  .reveal-on-scroll {
    opacity: 1;
    translate: none;
  }
}
