/* =========================================================
   Dr. Bhakti M. Tolamatti — Editorial wellness portfolio
   Palette: parchment, linen, ink, forest sage, terracotta
   ========================================================= */

:root {
  --bg: #F8F5F0;
  --bg-alt: #EFEAE1;
  --bg-soft: #FBF9F5;
  --ink: #1F2421;
  --muted: #5B6059;
  --sage: #2F4F3E;
  --sage-deep: #263F32;
  --terracotta: #A86845;
  --line: #DDD5C7;
  --line-strong: #CFC5B4;
  --white: #FFFFFF;
  --shadow: 0 18px 50px rgba(31, 36, 33, 0.06);
  --shadow-soft: 0 8px 28px rgba(31, 36, 33, 0.035);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1040px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-space: clamp(4.75rem, 9vw, 7.5rem);
  --ease: 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: 0 0 0 3px rgba(168, 104, 69, 0.26);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--sage);
  text-decoration-color: rgba(47, 79, 62, 0.32);
  text-underline-offset: 3px;
  transition: color var(--ease), text-decoration-color var(--ease);
}

a:hover {
  color: var(--terracotta);
  text-decoration-color: rgba(168, 104, 69, 0.48);
}

p,
h1,
h2,
h3,
h4,
figure,
dl,
dd {
  margin: 0;
}

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

strong {
  color: var(--ink);
  font-weight: 600;
}

em {
  font-style: italic;
  font-weight: 500;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(47, 79, 62, 0.18);
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--sage);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--ease);
}

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

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}

/* ── Header / navigation ───────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.94);
  border-bottom: 1px solid rgba(221, 213, 199, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 78px;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(239, 234, 225, 0.55);
  color: var(--sage);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: border-color var(--ease), background var(--ease);
}

.brand:hover .brand-mark {
  border-color: var(--sage);
  background: rgba(47, 79, 62, 0.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.brand-sub {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-links a {
  position: relative;
  padding-block: 0.35rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="location"] {
  color: var(--sage);
}

.nav-links a:hover::after,
.nav-links a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  transition: border-color var(--ease), background var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line);
  background: rgba(239, 234, 225, 0.55);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform var(--ease);
}

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

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

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.65rem;
  border: 1px solid transparent;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn-primary {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--bg);
}

.btn-primary:hover {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--bg);
  transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  padding-block: clamp(4.75rem, 9vw, 7.5rem) clamp(4.25rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 1.4rem;
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.4vw, 5.35rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.91;
}

.name-accent {
  display: block;
  color: var(--sage);
  font-style: italic;
}

.credentials {
  max-width: 39rem;
  margin-bottom: 1.7rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.7;
}

.tagline {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.92rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.icon-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sage);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.icon-link:hover {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--bg);
  transform: translateY(-2px);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.icon-link svg .icon-fill {
  fill: currentColor;
  stroke: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 39rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.meta-label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--terracotta);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.meta-value {
  display: block;
  color: var(--ink);
  font-size: 0.79rem;
  line-height: 1.55;
}

.hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.portrait-frame::before {
  position: absolute;
  z-index: 0;
  inset: 22px -11px -11px 22px;
  border: 1px solid rgba(168, 104, 69, 0.28);
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) contrast(1.02);
}

.portrait-fallback {
  position: absolute;
  z-index: 1;
  inset: 11px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background: linear-gradient(155deg, #EFEAE1 0%, #E5DDD0 100%);
  color: var(--sage);
}

.portrait-frame.is-missing img {
  display: none;
}

.portrait-frame.is-missing .portrait-fallback {
  display: grid;
}

.monogram {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(47, 79, 62, 0.24);
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

.fallback-caption {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-align: center;
  text-transform: uppercase;
}

.visual-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  text-align: right;
}

/* ── Sections ──────────────────────────────────────────── */

.section {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
}

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

.section-head {
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--terracotta);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.6;
  text-transform: uppercase;
}

.section-marker::after {
  width: min(7.5rem, 20vw);
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.marker-num {
  font-variant-numeric: tabular-nums;
}

.section h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.1vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.section h2 em {
  color: var(--sage);
}

/* ── Profile ───────────────────────────────────────────── */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.lead {
  max-width: 29rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.46;
}

.profile-body {
  padding-top: 0.35rem;
}

.profile-body p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.profile-body p:last-child {
  margin-bottom: 0;
}

/* ── Cards ─────────────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 0 0 rgba(31, 36, 33, 0);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

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

.card:hover,
.card:focus-within {
  border-color: rgba(47, 79, 62, 0.36);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.card-kicker {
  margin-bottom: 1.05rem;
  color: var(--terracotta);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.42rem, 2vw, 1.67rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.78;
}

/* ── Competencies ──────────────────────────────────────── */

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.competency-col {
  padding: 1.9rem 1.9rem 1.9rem 0;
}

.competency-col + .competency-col {
  padding-left: 1.9rem;
  border-left: 1px solid var(--line);
}

.competency-col h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.46rem;
  font-weight: 500;
  line-height: 1.25;
}

.clean-list li {
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(221, 213, 199, 0.55);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.clean-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ── Experience / education ────────────────────────────── */

.experience-item,
.edu-item {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 1.85rem;
  border-top: 1px solid var(--line);
}

.experience-item:last-of-type,
.edu-item:last-child {
  border-bottom: 1px solid var(--line);
}

.exp-date {
  padding-top: 0.25rem;
  color: var(--terracotta);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.exp-body h3,
.edu-body h3 {
  margin-bottom: 0.28rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.48rem, 2.3vw, 1.76rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.23;
}

.exp-org {
  margin-bottom: 0.85rem;
  color: var(--sage);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.65;
}

.detail-list {
  padding-left: 1.05rem;
  list-style: disc;
}

.detail-list li {
  margin-bottom: 0.42rem;
  padding-left: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.detail-list li::marker {
  color: var(--terracotta);
}

.detail-list li:last-child {
  margin-bottom: 0;
}

.subsection {
  margin-top: 3rem;
}

.subsection-title {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.timeline-title {
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 500;
  line-height: 1.55;
}

.timeline-detail {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: right;
}

.timeline-date {
  color: var(--terracotta);
  font-weight: 500;
  white-space: nowrap;
}

.edu-score {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.edu-details {
  max-width: 29rem;
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(248, 245, 240, 0.5);
}

.section-alt .edu-details {
  background: rgba(251, 249, 245, 0.7);
}

.edu-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  color: var(--sage);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  list-style: none;
  text-transform: uppercase;
}

.edu-details summary::-webkit-details-marker {
  display: none;
}

.edu-details summary::after {
  color: var(--terracotta);
  content: "+";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.edu-details[open] summary::after {
  content: "−";
}

.edu-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.compact-list {
  padding: 0.35rem 0.9rem;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 0.4rem;
  border-bottom: 1px solid rgba(221, 213, 199, 0.5);
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-list li:last-child {
  border-bottom: 0;
}

.compact-list span:last-child {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ── Research ──────────────────────────────────────────── */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-title {
  margin-bottom: 0.7rem !important;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 1.14rem !important;
  font-style: italic;
  line-height: 1.48 !important;
}

/* ── Awards ────────────────────────────────────────────── */

.awards-list {
  border-top: 1px solid var(--line);
}

.award-item {
  display: grid;
  grid-template-columns: minmax(0, 275px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.award-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.32;
}

.award-detail {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.award-detail span {
  color: var(--terracotta);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Contact ───────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

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

.contact-intro {
  max-width: 33rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.contact-location {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.contact-city {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
}

.contact-availability {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}

.contact-card-title {
  margin-bottom: 1.25rem;
  color: var(--terracotta);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-row--labeled {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.icon-link--labeled {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 82px;
  padding: 0.85rem 0.4rem;
  grid-template-rows: auto auto;
  gap: 0.55rem;
}

.icon-link--labeled svg {
  width: 20px;
  height: 20px;
}

.icon-link--labeled span {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transition: color var(--ease);
}

.icon-link--labeled:hover span {
  color: var(--bg);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.6;
}

.contact-direct a {
  color: var(--ink);
  text-decoration: none;
}

.contact-direct a:hover {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ────────────────────────────────────────────── */

.site-footer {
  padding-block: 2rem 2.4rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.6;
}

.footer-note {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.93rem;
  font-style: italic;
}

.social-row--footer {
  gap: 0.45rem;
}

.social-row--footer .icon-link {
  width: 38px;
  height: 38px;
}

.social-row--footer .icon-link svg {
  width: 16px;
  height: 16px;
}

/* ── Scroll reveal ─────────────────────────────────────── */

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

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────── */

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

  .hero-visual {
    justify-self: center;
    max-width: 470px;
  }

  .visual-note {
    text-align: left;
  }

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

  .contact-section .section-head {
    max-width: 42rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 45px rgba(31, 36, 33, 0.08);
  }

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

  .nav-links a {
    padding-block: 0.95rem;
    border-bottom: 1px solid rgba(221, 213, 199, 0.55);
    font-size: 0.76rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .card-grid.three,
  .competency-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .competency-col {
    padding: 1.5rem 0;
  }

  .competency-col + .competency-col {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .experience-item,
  .edu-item,
  .award-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .exp-date {
    padding-top: 0;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.2rem;
  }

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

@media (max-width: 640px) {
  body.nav-open {
    overflow: hidden;
  }

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

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .social-row--labeled {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .icon-link--labeled {
    min-height: 76px;
  }

  .contact-direct {
    justify-content: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 3.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .portrait-frame::before {
    inset: 16px -8px -8px 16px;
  }

  .icon-link--labeled {
    min-height: 72px;
    padding-inline: 0.25rem;
  }

  .icon-link--labeled span {
    font-size: 0.55rem;
  }

  .footer-copy {
    display: block;
  }

  .footer-note {
    margin-top: 0.2rem;
  }
}

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

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

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

/* ── Print ─────────────────────────────────────────────── */

@page {
  size: A4 portrait;
  margin: 14mm;
}

@media print {
  html,
  body {
    background: #fff !important;
    color: #1F2421;
    font-size: 10pt;
    line-height: 1.45;
  }

  .site-nav,
  .hero-actions,
  .hero-socials,
  .social-row,
  .visual-note,
  .skip-link,
  .site-footer {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .hero,
  .section {
    padding-block: 1.1rem;
    background: #fff !important;
    border-color: #D9D2C7;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr 150px;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 30pt;
  }

  .portrait-frame {
    max-width: 140px;
  }

  .section-head {
    margin-bottom: 0.75rem;
  }

  .section h2 {
    font-size: 17pt;
  }

  .profile-grid,
  .card-grid.three,
  .competency-grid,
  .research-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
  }

  .card,
  .contact-card {
    padding: 0.65rem;
    background: #fff;
    box-shadow: none;
    transform: none !important;
  }

  .card h3 {
    font-size: 11pt;
  }

  .card p,
  .detail-list li,
  .clean-list li,
  .award-detail {
    font-size: 8pt;
  }

  .experience-item,
  .edu-item,
  .award-item {
    grid-template-columns: 85pt 1fr;
    gap: 0.6rem;
    padding-block: 0.45rem;
    break-inside: avoid;
  }

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

  .contact-card {
    border: 0;
  }

  .contact-card-title {
    display: none;
  }

  .contact-direct {
    justify-content: flex-start;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }

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

  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  p,
  li,
  .card,
  .timeline-item {
    break-inside: avoid;
    orphans: 3;
    widows: 3;
  }
}
