/* =========================================================
   ASRITA DODDI — HEALTHCARE TECH RESEARCH PORTFOLIO
   Palette: deep slate ink, clinical teal, warm paper white
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (data)
   ========================================================= */

:root {
  --ink: #16212c;
  --ink-soft: #45536a;
  --ink-faint: #7b8aa0;

  --teal: #1f7a70;
  --teal-deep: #144f47;
  --teal-tint: #e9f4f2;

  --paper: #fbfbf8;
  --paper-dim: #f1f3f1;
  --white: #ffffff;
  --line: #dde3e1;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  --max: 1180px;
  --radius: 14px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 10px;
}
.eyebrow-light { color: var(--teal-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 248, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.primary-nav {
  display: flex;
  gap: 32px;
}
.primary-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.primary-nav a:hover { color: var(--teal-deep); }
.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 40px;
  overflow: hidden;
}
.hero-inner { text-align: left; max-width: 760px; }
.hero-name {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-name span { color: var(--teal); }
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pulse-wrap {
  margin-top: 50px;
  width: 100%;
  height: 70px;
}
.pulse-line {
  width: 100%;
  height: 100%;
}
.pulse-line polyline {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s ease forwards 0.3s;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Divider trace between sections */
.divider {
  width: 100%;
  height: 32px;
  background: var(--paper);
}
.divider svg { width: 100%; height: 100%; }
.divider polyline {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  font-size: 13.5px;
  padding: 10px 20px;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-tint); }
.btn-large { padding: 16px 34px; font-size: 15.5px; }

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }
.section-tinted { background: var(--teal-tint); }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.section-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-faint);
  padding-top: 6px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
}
.section-intro {
  max-width: 620px;
  font-size: 16.5px;
  margin-left: 54px;
  margin-bottom: 48px;
}

/* ---------- Biography ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  margin-left: 54px;
}
.bio-text p { font-size: 16.5px; }
.bio-text strong { color: var(--ink); }
.cv-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color var(--transition);
}
.cv-link:hover { color: var(--teal); }

.focus-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}
.panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.focus-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--paper-dim);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.focus-list li:last-child { border-bottom: none; }
.focus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ---------- Advancements grid ---------- */
.adv-grid {
  margin-left: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.adv-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 16px 34px -18px rgba(20, 79, 71, 0.35);
}
.adv-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.adv-card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.adv-card p { font-size: 14.5px; margin-bottom: 18px; }
.read-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition);
}
.read-link:hover { color: var(--teal-deep); }

/* ---------- Research list ---------- */
.research-list {
  margin-left: 54px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.research-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.research-index {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-faint);
}
.research-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.research-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.research-body p { font-size: 15px; margin-bottom: 0; max-width: 560px; }
/* ---------- CTA / Contact ---------- */
.cta-section {
  background: var(--ink);
  padding: 110px 0;
}
.cta-inner { max-width: 640px; }
.cta-heading {
  color: var(--white);
  font-size: clamp(30px, 4.4vw, 42px);
  margin-bottom: 18px;
}

/* ---------- CTA text tweak ---------- */
.cta-text {
  color: var(--paper);
  font-size: 17px;
  margin-bottom: 32px;
}


/* ---------- Contact form ---------- */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 480px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.form-row input,
.form-row textarea {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  transition: border-color var(--transition), background var(--transition);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #a9b3c2;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.18);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
}
/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-name {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}
.footer-role {
  font-size: 13px;
  color: #8b98aa;
  margin: 2px 0 0;
}
.footer-contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-contact a {
  font-size: 13.5px;
  color: #c3ccd8;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--teal); }
.footer-meta {
  text-align: right;
  font-size: 12.5px;
  color: #6f7c8f;
}
.footer-meta p { margin: 0 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; margin-left: 0; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); margin-left: 0; }
  .research-list { margin-left: 0; }
  .section-intro { margin-left: 0; }
  .section-head { gap: 14px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .primary-nav.is-open { max-height: 300px; }
  .primary-nav a {
    padding: 16px 32px;
    border-bottom: 1px solid var(--paper-dim);
  }

  .hero { padding: 90px 0 20px; }
  .adv-grid { grid-template-columns: 1fr; }
  .research-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .research-index { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-line polyline { animation: none; stroke-dashoffset: 0; }
  .btn, .adv-card { transition: none; }
}
