:root {
  color-scheme: light;
  --paper: #fafaf7;
  --paper-2: #f1f3ef;
  --ink: #15201c;
  --muted: #35433d;
  --leaf: #164c39;
  --leaf-soft: #dceae3;
  --accent: #215a44;
  --line: #c9d1cb;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(21, 32, 28, 0.07);
  --focus: #1b5c45;
  --header: rgba(250, 250, 247, 0.94);
  --button-ink: #f7fbf8;
  --hero-wash: linear-gradient(145deg, #eef5f0 0%, #fafaf7 42%, #f4f7f2 100%);
  --space: clamp(1rem, 0.55rem + 1.5vw, 1.85rem);
  --measure: 66ch;
  --serif: "Source Serif 4", "Noto Serif Devanagari", "Noto Serif Gujarati", Georgia, serif;
  --sans: "Source Sans 3", "Noto Sans Devanagari", "Noto Sans Gujarati", "Segoe UI", sans-serif;
  --float-offset: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  --float-reserve: 3.25rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1512;
  --paper-2: #17211d;
  --ink: #e7efe9;
  --muted: #b7c6be;
  --leaf: #8fcdb0;
  --leaf-soft: #1a2c24;
  --accent: #a9d8c0;
  --line: #2a3832;
  --card: #141d19;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  --focus: #8fcdb0;
  --header: rgba(14, 21, 18, 0.94);
  --button-ink: #0e1512;
  --hero-wash: linear-gradient(145deg, #13201a 0%, #0e1512 48%, #15241d 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 92% -8%, rgba(27, 92, 69, 0.09), transparent 58%),
    radial-gradient(700px 360px at 0% 18%, rgba(47, 111, 87, 0.05), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: var(--float-reserve);
}

html[lang="hi"] body,
html[lang="gu"] body {
  line-height: 1.75;
  font-size: 1.125rem;
}

html[lang="hi"] {
  --serif: "Noto Serif Devanagari", "Source Serif 4", Georgia, serif;
  --sans: "Noto Sans Devanagari", "Source Sans 3", "Segoe UI", sans-serif;
}

html[lang="gu"] {
  --serif: "Noto Serif Gujarati", "Source Serif 4", Georgia, serif;
  --sans: "Noto Sans Gujarati", "Source Sans 3", "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p,
li,
td {
  overflow-wrap: break-word;
}

a {
  color: var(--leaf);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button:focus,
.float-action:focus,
.float-toggle:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 40;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem var(--space);
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.lang summary {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.theme-toggle {
  font-size: 0.95rem;
}

.theme-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
}

.lang[open] summary::after {
  transform: translateY(0.15rem) rotate(225deg);
}

.lang:not([open]) > ul {
  display: none;
}

.lang[open] > ul {
  display: block;
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 11rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  z-index: 30;
}

.lang a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

.lang a[aria-current="page"] {
  background: var(--leaf-soft);
  font-weight: 600;
}

.lang a:hover {
  background: var(--paper-2);
}

.wrap {
  width: min(1140px, calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 1.75rem;
  margin: 1.1rem 0 0.4rem;
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--hero-wash);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--leaf);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

html[lang="hi"] .kicker,
html[lang="gu"] .kicker {
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(2.15rem, 1.15rem + 3.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.role {
  margin: 0.75rem 0 0;
  font-size: 1.22rem;
  font-weight: 600;
}

.place {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.lede {
  margin: 1rem 0 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 1.12rem;
}

.identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.identity-strip li {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-row li {
  margin: 0;
}

.action-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 0.65rem;
  background: var(--leaf);
  color: var(--button-ink);
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--accent);
  color: var(--button-ink);
}

.button-secondary {
  background: transparent;
  color: var(--leaf);
  border-color: var(--leaf);
}

.button-secondary:hover {
  background: var(--leaf-soft);
  color: var(--ink);
}

.button-phone {
  letter-spacing: 0.01em;
}

.phone-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .phone-number {
    white-space: normal;
    text-wrap: balance;
  }
}

.portrait {
  margin: 0;
  justify-self: start;
  position: relative;
}

.portrait img {
  display: block;
  width: min(230px, 64vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section-nav {
  display: flex;
  gap: 0.45rem 0.85rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.section-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}

.section-nav a:hover {
  color: var(--leaf);
}

section {
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 1.35rem;
}

.section-head > h2:only-child {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.25rem);
  line-height: 1.22;
  font-weight: 650;
}

h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 3px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--leaf), transparent);
  border-radius: 2px;
}

h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.3;
}

.note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.highlight-grid,
.cards,
.focus-grid {
  display: grid;
  gap: 1rem;
}

.highlight-card,
.focus-grid article,
.card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.05rem 1.15rem;
}

.highlight-card {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.highlight-card .eyebrow {
  margin: 0;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="hi"] .highlight-card .eyebrow,
html[lang="gu"] .highlight-card .eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.92rem;
}

.highlight-card h3 {
  color: var(--ink);
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
}

.card-label {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-card {
  display: flex;
  flex-direction: column;
}

.research-photo {
  margin: 0.65rem 0 0;
  order: 0;
}

.research-photo picture,
.research-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

.research-photo img {
  border: 1px solid var(--line);
  background: var(--leaf-soft);
  object-fit: cover;
}

.research-photo figcaption {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.research-card .facts {
  margin-top: 0.85rem;
}

.image-credits {
  margin-top: 1.5rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.image-credits h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--ink);
}

.image-credits ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.image-credits a {
  font-weight: 600;
}

html[lang="hi"] .card-label,
html[lang="gu"] .card-label {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
}

.meta {
  color: var(--muted);
  margin: 0.2rem 0 0.55rem;
  font-size: 0.98rem;
}

.facts {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.fact {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}

.fact-aim {
  background: color-mix(in srgb, var(--leaf-soft) 70%, var(--card));
  border-color: color-mix(in srgb, var(--leaf) 28%, var(--line));
}

.fact-methods,
.fact-application {
  background: var(--paper-2);
}

.fact dt {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--leaf);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[lang="hi"] .fact dt,
html[lang="gu"] .fact dt {
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.98rem;
}

.fact dd {
  margin: 0;
}

ul.clean,
.pubs {
  margin: 0;
  padding-left: 1.15rem;
}

.pubs {
  display: grid;
  gap: 0.85rem;
  padding-left: 0;
  list-style: none;
}

.pubs li {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  border-left: 3px solid var(--leaf);
}

.group-label {
  margin: 1.5rem 0 0.7rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

html[lang="hi"] .group-label,
html[lang="gu"] .group-label {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1.05rem;
}

.sci {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
}

.panel {
  margin-bottom: 0.85rem;
}

.panel:last-child {
  margin-bottom: 0;
}

.panel .meta {
  margin-bottom: 0.45rem;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.98rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.9rem;
  margin-top: 0.35rem;
}

@media (max-width: 700px) {
  .table-scroll {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0.85rem;
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    border: 0;
    padding: 0.2rem 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: var(--leaf);
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 0.1rem;
  }
}

th,
td {
  text-align: start;
  vertical-align: top;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--leaf);
  font-weight: 700;
  background: var(--leaf-soft);
}

.skills {
  display: grid;
  gap: 0.85rem;
}

.skills > div {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
}

.skills h3 {
  color: var(--leaf);
}

.inst,
.tool {
  font-weight: 700;
  color: var(--leaf);
  letter-spacing: 0.01em;
}

.edu-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0.85rem 0 1rem;
}

.edu-card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--card);
  border-left: 4px solid var(--leaf);
  box-shadow: var(--shadow);
}

.edu-card.edu-current {
  background: linear-gradient(135deg, var(--leaf-soft) 0%, var(--card) 55%);
}

.edu-degree {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.edu-place,
.edu-years {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.ref-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.ref-card {
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--card);
  border-top: 3px solid var(--accent);
}

.ref-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.ref-role {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.ref-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ref-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

.ref-contacts svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.ref-disclaimer {
  margin-top: 0.85rem;
  max-width: var(--measure);
}

@media (min-width: 860px) {
  .edu-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edu-card.edu-current {
    grid-column: 1 / -1;
  }

  .ref-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.credit {
  margin-top: 0.35rem;
}

.credit a {
  font-weight: 700;
}

footer.wrap {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.draft-note {
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--leaf);
  background: var(--leaf-soft);
  color: var(--ink);
}

/* Compact expandable contact control */
.float-contact {
  position: fixed;
  z-index: 40;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: var(--float-offset);
  width: 2.75rem;
  height: 2.75rem;
}

.float-toggle,
.float-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(21, 32, 28, 0.16);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.float-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--leaf);
  color: var(--button-ink);
  border-color: transparent;
}

.float-toggle[aria-expanded="true"] {
  background: var(--accent);
}

.float-toggle svg,
.float-action svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.float-actions {
  position: absolute;
  right: 0;
  bottom: calc(2.75rem + 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  z-index: 1;
}

.float-actions[hidden] {
  display: none !important;
}

.float-wa {
  background: #128c4b;
  color: #fff;
  border-color: #0e6e3a;
}

:root[data-theme="dark"] .float-wa {
  background: #1fa85c;
  color: #062314;
  border-color: #8fcdb0;
}

.float-call {
  background: var(--leaf);
  color: var(--button-ink);
  border-color: transparent;
}

.float-mail {
  background: var(--card);
  color: var(--leaf);
  border-color: var(--leaf);
}

.float-toggle:hover,
.float-action:hover {
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .float-contact.is-open .float-action {
    animation: float-pop 180ms ease both;
  }

  .float-contact.is-open .float-action:nth-child(1) {
    animation-delay: 20ms;
  }

  .float-contact.is-open .float-action:nth-child(2) {
    animation-delay: 50ms;
  }

  .float-contact.is-open .float-action:nth-child(3) {
    animation-delay: 80ms;
  }
}

@keyframes float-pop {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}

.reveal {
  /* visible by default if JS/observers fail */
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero {
    animation: hero-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .button:hover,
  .float-action:hover,
  .float-toggle:hover,
  .highlight-card:hover {
    transform: translateY(-2px);
  }

  .reveal.reveal-ready {
    transform: translateY(14px);
  }

  .reveal.reveal-in {
    transform: none;
    transition: transform 420ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.reveal-ready,
  .reveal.reveal-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes hero-in {
  from {
    opacity: 0.01;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 719px) {
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .brand {
    flex: 1 1 100%;
    font-size: 1.05rem;
  }

  .controls {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 360px) {
  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .theme-toggle {
    position: relative;
  }
}

@media (min-width: 720px) {
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }

  .skills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portrait img {
    width: 260px;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
    padding: 2.4rem 2.5rem;
  }

  .portrait {
    justify-self: end;
  }

  .portrait img {
    width: 300px;
  }

  .highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-nav {
    position: sticky;
    top: 62px;
    z-index: 15;
    background: var(--header);
    margin-inline: calc(var(--space) * -1);
    padding-inline: var(--space);
    backdrop-filter: blur(10px);
  }
}

@media (min-width: 1100px) {
  .float-contact {
    right: max(1.25rem, calc((100vw - 1140px) / 2 - 1.25rem));
  }
}

@media print {
  :root,
  :root[data-theme="dark"] {
    --paper: #fff;
    --ink: #111;
    --muted: #333;
    --leaf: #14382a;
    --line: #ccc;
    --card: #fff;
    --header: #fff;
    --hero-wash: #fff;
  }

  .site-header,
  .section-nav,
  .theme-toggle,
  .lang,
  .skip,
  .float-contact {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    background: #fff;
    font-size: 11pt;
  }

  .draft-note {
    display: block !important;
    border: 1px solid #333;
    background: #fff;
    color: #111;
  }

  a {
    color: #111;
    text-decoration: none;
  }

  a[href^="http"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  .hero,
  .card,
  .panel,
  .highlight-card,
  .pubs li,
  tr,
  .portrait,
  .research-photo {
    break-inside: avoid;
    box-shadow: none;
  }

  .portrait img {
    width: 140px;
  }

  .research-photo img {
    max-width: 240px;
  }

  .portrait::before {
    display: none;
  }

  .image-credits {
    border-top: 1px solid #333;
    color: #333;
  }
}
