/* =========================================================
   Sarvesh Galgale — Launch Candidate
   Academic + editorial + computational
   ========================================================= */

:root {
  --bg: #f4f1e8;
  --surface: #ece9df;
  --surface-2: #e6e6dc;
  --wash: #eef1e8;
  --card-ivory: #faf8f1;
  --text: #171b17;
  --muted: #626a62;
  --faint: #667066;
  --border: rgba(21, 29, 22, 0.15);
  --border-strong: rgba(21, 29, 22, 0.28);

  --accent: #3f674b;
  --accent-deep: #274f35;
  --accent-soft: #d8e4d8;

  --amber: #865819;
  --amber-soft: #eee1c9;
  --neutral-soft: #e6e7e2;

  --shadow: 0 16px 36px rgba(27, 35, 29, 0.07);
  --radius: 14px;
  --radius-sm: 9px;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --max: 1180px;
  --header-h: 72px;
}

html[data-theme="dark"] {
  --bg: #121612;
  --surface: #192019;
  --surface-2: #202820;
  --wash: #171f18;
  --card-ivory: #1c241d;
  --text: #efeee8;
  --muted: #adb5ad;
  --faint: #808a81;
  --border: rgba(232, 238, 232, 0.12);
  --border-strong: rgba(232, 238, 232, 0.24);

  --accent: #91b39a;
  --accent-deep: #bad3bf;
  --accent-soft: #243428;

  --amber: #d1a765;
  --amber-soft: #3d3020;
  --neutral-soft: #252c26;

  --shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

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

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

button {
  font: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-170%);
}

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

/* NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}

.site-header.scrolled {
  border-color: var(--border);
}

.nav-shell {
  width: min(var(--max), calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark {
  font-family: var(--mono);
  color: var(--accent-deep);
  font-weight: 750;
  letter-spacing: -.04em;
}

.brand-name {
  font-weight: 650;
  letter-spacing: -.02em;
}

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

.site-nav > a {
  position: relative;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 560;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right .2s ease;
}

.site-nav > a:hover,
.site-nav > a.active {
  color: var(--text);
}

.site-nav > a:hover::after,
.site-nav > a.active::after {
  right: 0;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform .2s ease, top .2s ease;
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }

.menu-toggle.open span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}

/* COMMON */

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

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-tone {
  background: var(--wash);
  box-shadow: 0 0 0 100vmax var(--wash);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 27px;
}

.section-index,
.eyebrow,
.mini-label,
.takeaway-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .71rem;
  color: var(--accent-deep);
  font-weight: 750;
}

.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.7vw, 5rem);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 500;
}

.section-lede {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.card-number {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .09em;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-deep);
  font-weight: 700;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(.28);
  transform-origin: left;
  opacity: .5;
  transition: transform .2s ease, opacity .2s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.button-link {
  display: inline-flex;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--bg);
  font-size: .91rem;
  font-weight: 720;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.tags span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .67rem;
}

.status {
  width: fit-content;
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .67rem;
  line-height: 1.3;
  white-space: nowrap;
}

.status-green {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
}

.status-amber {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 44%, transparent);
}

.status-neutral {
  color: var(--muted);
  background: var(--neutral-soft);
  border: 1px solid var(--border);
}

.status-note,
.version-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .69rem;
}

/* HERO */

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.08fr .72fr;
  gap: clamp(48px, 7vw, 105px);
  align-items: center;
  padding-top: 56px;
  padding-bottom: 70px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.07em;
  font-size: clamp(4.15rem, 9.4vw, 8.35rem);
  line-height: .79;
}

.hero-intro {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
  line-height: 1.62;
}

.hero-intro strong {
  color: var(--text);
  font-weight: 620;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
  margin-top: 30px;
}

.hero-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: .79rem;
}

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

.hero-cta {
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  width: min(100%, 420px);
  justify-self: end;
}

.portrait-frame {
  aspect-ratio: .78;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 31%;
  transform: scale(1.035);
}

.sequence-note,
.location-note {
  position: absolute;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--faint);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
}

.sequence-note-top {
  top: -17px;
  left: -20px;
}

.location-note {
  right: -12px;
  bottom: 24px;
  color: var(--accent-deep);
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1.55fr .7fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.about-copy {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.95vw, 1.70rem);
  line-height: 1.43;
  letter-spacing: -.02em;
}

.about-copy p:first-child { margin-top: 0; }
.about-copy p:last-child { margin-bottom: 0; }

.about-note {
  position: sticky;
  top: calc(var(--header-h) + 34px);
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}

.about-note p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
}

/* RESEARCH */

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

.research-card {
  min-height: 280px;
  padding: 28px 28px 30px;
  border-right: 1px solid var(--border);
}

.research-card:last-child {
  border-right: 0;
}

.research-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.research-card h3,
.project-featured h3,
.project-compact h3,
.project-row h3,
.pipeline-card h3,
.other-card h3,
.output-item h3,
.poster-item h3,
.timeline-content h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
}

.research-card h3 {
  margin: 42px 0 11px;
  font-size: clamp(1.7rem, 2.35vw, 2.24rem);
  line-height: 1.05;
}

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

.research-motif {
  position: relative;
  width: 58px;
  height: 38px;
  opacity: .9;
}

/* sequence motif */
.motif-sequence {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 4px;
}

.motif-sequence span {
  height: 7px;
  border-radius: 999px;
  border: 1px solid var(--accent);
}

.motif-sequence span:nth-child(2),
.motif-sequence span:nth-child(5) {
  height: 18px;
  background: var(--accent-soft);
}

/* network motif */
.motif-network i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.motif-network i:nth-child(1) { left: 2px; top: 15px; }
.motif-network i:nth-child(2) { left: 22px; top: 2px; }
.motif-network i:nth-child(3) { right: 3px; top: 13px; }
.motif-network i:nth-child(4) { left: 20px; bottom: 0; }
.motif-network i:nth-child(5) { right: 16px; bottom: 5px; }

.motif-network::before,
.motif-network::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 19px;
  width: 44px;
  height: 1px;
  background: var(--accent);
  transform: rotate(-15deg);
  transform-origin: left;
}

.motif-network::after {
  transform: rotate(19deg);
}

/* systems motif */
.motif-system i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px 50% 50% 50%;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.motif-system i:nth-child(1) { left: 2px; top: 4px; }
.motif-system i:nth-child(2) { left: 23px; top: 14px; }
.motif-system i:nth-child(3) { right: 0; top: 2px; }
.motif-system i:nth-child(4) { right: 8px; bottom: 0; }

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .64rem;
}

.research-tags span::before {
  content: "+";
  margin-right: 5px;
  color: var(--accent);
}

/* PROJECTS */

.projects-layout {
  display: grid;
  gap: 16px;
}

.project-featured,
.project-compact,
.project-row {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-ivory) 82%, transparent);
}

.project-featured {
  padding: 31px;
  border-radius: var(--radius);
  border-color: var(--border-strong);
}

.project-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.featured-project-grid {
  display: grid;
  grid-template-columns: 1.5fr .55fr;
  gap: 64px;
  align-items: end;
  margin-top: 44px;
}

.project-featured h3 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 4.7vw, 4.5rem);
  line-height: .98;
}

.project-featured p,
.project-compact p,
.project-row p {
  color: var(--muted);
}

.featured-project-grid > div:first-child > p {
  max-width: 730px;
  margin: 22px 0 0;
}

.featured-side {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.featured-side p {
  margin: 8px 0 22px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--text);
}

.takeaway-label {
  margin-bottom: 0;
}

.project-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-compact {
  min-height: 390px;
  padding: 28px;
  border-radius: var(--radius);
}

.project-compact h3 {
  margin: 44px 0 15px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.03;
}

.project-compact > p {
  margin: 0;
}

.metric-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
}

.metric-value {
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -.04em;
}

.process-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: .71rem;
}

.process-line i {
  color: var(--faint);
  font-style: normal;
}

.project-compact .status-note {
  margin: 14px 0 0;
}

.project-row {
  display: grid;
  grid-template-columns: 150px 1fr .62fr;
  gap: 30px;
  align-items: start;
  padding: 25px 27px;
  border-radius: var(--radius);
}

.project-row-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.project-row h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.05;
}

.project-row-main > p {
  max-width: 650px;
  margin: 14px 0 0;
}

.project-row-main .status-note {
  margin-top: 12px;
}

.project-row-tags {
  margin-top: 2px;
  justify-content: flex-end;
}

.project-row-godavari {
  grid-template-columns: 175px 1fr .55fr;
}

.godavari-flow {
  max-width: 720px;
  margin-top: 16px;
}

.project-row-godavari .status {
  white-space: normal;
  text-align: center;
}


.project-featured,
.project-compact,
.project-row {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-featured:hover,
.project-compact:hover,
.project-row:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 10px 24px rgba(27, 35, 29, 0.055);
}

.project-actions .text-link,
.featured-side .text-link {
  transition: color .18s ease, transform .18s ease;
}

.project-actions .text-link:hover,
.featured-side .text-link:hover {
  transform: translateX(2px);
}

/* PIPELINES */

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pipeline-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-ivory) 78%, transparent);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pipeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.pipeline-card-wide {
  grid-column: 1 / -1;
}

.pipeline-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.pipeline-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3.05vw, 2.9rem);
  line-height: 1.03;
}

.pipeline-card > p,
.pipeline-wide-grid p {
  max-width: 680px;
  color: var(--muted);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .69rem;
}

.flow span,
.dual-flow span,
.wgs-diagram span {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}

.flow i,
.dual-flow i {
  color: var(--faint);
  font-style: normal;
}

.branch-note {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
}

.branch-note span::before {
  content: "↳ ";
  color: var(--accent-deep);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
}

.dual-flow {
  display: grid;
  gap: 7px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .68rem;
}

.dual-flow > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dual-flow b {
  padding-left: 24px;
  color: var(--faint);
  font-weight: 400;
}

.dual-flow strong {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.pipeline-wide-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: end;
}

.wgs-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.wgs-diagram {
  padding-left: 32px;
  border-left: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .67rem;
}

.wgs-input {
  display: block;
  width: fit-content;
}

.wgs-branch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 30px;
}

.wgs-branch::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

.wgs-output {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.development-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  padding: 21px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.development-strip .mini-label {
  min-width: 112px;
  margin: 0;
}

.development-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.development-strip div span {
  color: var(--muted);
}

/* OUTPUT */

.output-layout {
  display: grid;
  gap: 34px;
}

.output-block {
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}

.output-item,
.poster-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.featured-output {
  padding-top: 9px;
  padding-bottom: 25px;
}

.output-year,
.output-marker {
  color: var(--faint);
  font-family: var(--mono);
  font-size: .71rem;
  letter-spacing: .08em;
}

.output-item h3,
.poster-item h3 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(1.28rem, 2.2vw, 1.98rem);
  line-height: 1.18;
}

.poster-item p {
  margin: 7px 0 0;
  color: var(--muted);
}

.featured-output .text-link {
  margin-top: 16px;
}


.publication-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

/* OTHER WORK */

.other-card {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-ivory) 80%, transparent);
}

.dnafreak-preview {
  position: relative;
  min-height: 400px;
  padding: 34px;
  overflow: hidden;
  border-right: 1px solid #a5c3a6;
  background: #f1f8ef;
  color: #153320;
  font-family: var(--mono);
}

.dna-preview-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #456c4c;
  font-size: .69rem;
  letter-spacing: .12em;
}

.dna-preview-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #abc4ad;
}

.dna-preview-input {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 46px;
  border: 1px solid #6f8f73;
  font-family: var(--sans);
}

.dna-preview-input span {
  padding: 22px 18px;
  font-size: 1.05rem;
  color: #102619;
}

.dna-preview-input strong {
  display: grid;
  place-items: center;
  padding: 0 20px;
  background: #aff42d;
  border-left: 1px solid #6f8f73;
  color: #0f2112;
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .05em;
}

.dna-preview-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  color: #4e6b52;
  font-size: .64rem;
}

.dna-preview-output {
  margin-top: 50px;
  padding: 24px;
  background: #d9efdb;
}

.dna-preview-output small {
  display: block;
  margin-bottom: 12px;
  color: #54745a;
  letter-spacing: .1em;
}

.dna-preview-output b {
  display: block;
  max-width: 420px;
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 500;
}

.dna-sequence-edge {
  position: absolute;
  right: 9px;
  bottom: 24px;
  writing-mode: vertical-rl;
  color: #78957b;
  font-size: .62rem;
  letter-spacing: .18em;
}

.other-copy {
  padding: 34px;
  align-self: center;
}

.other-copy h3 {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: .95;
}

.other-copy > p {
  max-width: 600px;
  margin-top: 22px;
  color: var(--muted);
}

/* JOURNEY */

.timeline {
  position: relative;
  max-width: 980px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 20px;
  left: 198px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--border-strong));
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 28px 1fr;
  gap: 14px;
  padding-bottom: 42px;
}

.timeline-year {
  padding-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .74rem;
}

.timeline-dot {
  z-index: 2;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  justify-self: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg);
}

.timeline-content {
  padding-left: 20px;
}

.timeline-content h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  line-height: 1.05;
}

.institution {
  margin: 9px 0 15px !important;
  color: var(--accent-deep) !important;
  font-weight: 650;
}

.timeline-content p {
  max-width: 690px;
  color: var(--muted);
}

.journey-thread {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  width: fit-content;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .69rem;
}

.journey-thread i {
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 700;
}

/* BEYOND */

.beyond-grid {
  display: grid;
  grid-template-columns: 1.35fr .72fr;
  gap: clamp(44px, 7vw, 95px);
  align-items: start;
}

.beyond-copy {
  max-width: 740px;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.95vw, 1.70rem);
  line-height: 1.43;
  letter-spacing: -.02em;
}

.beyond-copy p:first-child { margin-top: 0; }
.beyond-copy p:last-child { margin-bottom: 0; }

.clash-card {
  position: relative;
  min-height: 300px;
  padding: 20px 145px 24px 0;
  border-top: 1px solid var(--border-strong);
}

.clash-copy {
  position: relative;
  z-index: 2;
}

.clash-card p {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: 1.38rem;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.clash-card strong {
  color: var(--accent-deep);
}

.barbarian {
  position: absolute;
  right: -26px;
  bottom: -12px;
  width: 190px;
  max-height: 275px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 13px 16px rgba(0, 0, 0, .12));
  transform: rotate(-2deg);
  transform-origin: bottom center;
}


html[data-theme="dark"] .project-featured:hover,
html[data-theme="dark"] .project-compact:hover,
html[data-theme="dark"] .project-row:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

/* CONTACT */

.contact-section {
  margin-top: 42px;
  padding: 82px 0 32px;
  background: var(--text);
  color: var(--bg);
}

.contact-inner .section-index {
  color: color-mix(in srgb, var(--bg) 70%, var(--accent));
}

.contact-inner h2 {
  color: var(--bg);
  font-size: clamp(3.5rem, 7.5vw, 7rem);
}

.contact-inner > p {
  max-width: 650px;
  margin: 26px 0 0;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 42px;
}

.contact-links a {
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  border-radius: 999px;
  font-size: .85rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.contact-links a:hover {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  font-family: var(--mono);
  font-size: .69rem;
}

.footer a {
  justify-self: end;
}

.footer span:nth-child(2) {
  color: color-mix(in srgb, var(--bg) 48%, transparent);
}

.hero-links a,
.contact-links a,
.site-nav > a {
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-links a:hover {
  transform: translateY(-1px);
}

.research-card:hover .research-motif {
  transform: translateY(-2px);
}

.research-motif {
  transition: transform .22s ease;
}

/* MOTION */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .58s ease, transform .58s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr .58fr;
    gap: 48px;
  }

  .featured-project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .featured-side {
    max-width: 620px;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .project-row {
    grid-template-columns: 120px 1fr;
  }

  .project-row-tags {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 0;
  }
}

/* MOBILE NAV + STACKS */

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  }

  .section-shell,
  .nav-shell {
    width: min(100% - 38px, var(--max));
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 102;
  }

    .site-nav {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 101;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    padding: calc(var(--header-h) + 34px) 24px 32px;

    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    overflow-y: auto;

    background: var(--bg);
  }

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

  .site-nav > a {
    color: var(--text);
    font-family: var(--serif);
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.08;
  }

  .site-nav > a::after {
    display: none;
  }

  .theme-toggle {
    margin-top: 12px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
    row-gap: 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
  }

  .hero h1 {
    order: 2;
  }

  .hero-intro {
    order: 3;
  }

  .hero-links {
    order: 4;
  }

  .hero-visual {
    order: 5;
    width: min(74vw, 410px);
    justify-self: start;
    margin-top: 46px;
  }

  .hero-cta {
    order: 6;
    justify-self: start;
    margin-top: 34px;
  }

  .about-grid,
  .beyond-grid {
    grid-template-columns: 1fr;
  }

  .about-note {
    position: static;
  }

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

  .research-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .research-card h3 {
    margin-top: 42px;
  }

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

  .project-compact {
    min-height: auto;
  }

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

  .pipeline-card-wide {
    grid-column: auto;
  }

  .pipeline-wide-grid {
    grid-template-columns: 1fr;
  }

  .wgs-diagram {
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .dnafreak-preview {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid #a5c3a6;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    grid-template-columns: 28px 1fr;
    gap: 14px;
  }

  .timeline-year {
    grid-column: 2;
    margin-bottom: -7px;
    padding: 0;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-content {
    grid-column: 2;
    padding-left: 0;
  }

  .clash-card {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  .hero-intro {
    margin-top: 26px;
  }

  .hero-cta {
    margin-top: 30px;
  }

  .hero-visual {
    width: min(82vw, 380px);
  }

  .sequence-note-top {
    left: -7px;
  }

  .location-note {
    right: -7px;
  }

  .section-heading {
    margin-bottom: 31px;
  }

  .project-featured,
  .project-compact,
  .pipeline-card {
    padding: 22px;
  }

  .project-featured h3 {
    font-size: 2.35rem;
  }

  .project-compact h3 {
    margin-top: 38px;
    font-size: 2rem;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .project-row-meta {
    flex-direction: row;
    justify-content: space-between;
  }

  .project-row-tags {
    grid-column: auto;
  }

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

  .pipeline-topline {
    margin-bottom: 28px;
  }

  .wgs-status {
    align-items: flex-end;
  }

  .development-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .output-item,
  .poster-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dna-preview-input {
    grid-template-columns: 1fr;
  }

  .dna-preview-input strong {
    min-height: 46px;
    border-top: 1px solid #6f8f73;
    border-left: 0;
  }

  .dnafreak-preview,
  .other-copy {
    padding: 24px 21px;
  }

  .journey-thread {
    border-radius: 12px;
  }

  .clash-card {
    min-height: 275px;
    padding-right: 120px;
  }

  .barbarian {
    right: -20px;
    width: 155px;
  }

  .footer {
    margin-top: 62px;
    grid-template-columns: 1fr;
  }

  .footer a,
  .footer span:nth-child(2) {
    justify-self: start;
  }
}

/* PRINT CLEANUP */

@media print {
  :root,
  html[data-theme="dark"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --wash: #ffffff;
    --card-ivory: #ffffff;
    --text: #111111;
    --muted: #444444;
    --faint: #555c55;
    --border: rgba(0, 0, 0, .16);
    --border-strong: rgba(0, 0, 0, .28);
    --accent: #31533a;
    --accent-deep: #23432d;
    --accent-soft: #e8f0e8;
    --amber: #6f4a18;
    --amber-soft: #f5ead7;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .skip-link,
  .theme-toggle,
  .menu-toggle,
  .hero-cta,
  .sequence-note,
  .location-note {
    display: none !important;
  }

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

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .section,
  .contact-section {
    break-inside: auto;
  }

  .project-featured,
  .project-compact,
  .project-row,
  .pipeline-card,
  .other-card,
  .timeline-item {
    break-inside: avoid;
  }

  .contact-section {
    background: #fff;
    color: #111;
  }

  .contact-inner h2,
  .contact-inner .section-index,
  .contact-inner > p,
  .footer,
  .contact-links a {
    color: #111 !important;
  }

  .contact-links a {
    border-color: #bbb;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }

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