/* ==========================================================================
   Dr. Gomathy Narasimhan — Personal Website
   Design system + component styles.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #fafaf7;
  --bg-alt: #f3efe7;
  --primary: #1e3a5f;
  --primary-ink: #14263f;
  --secondary: #4f6d8c;
  --accent: #b9975b;
  --accent-soft: #d9c396;
  --text: #222222;
  --muted: #5a5a5a;
  --line: rgba(30, 58, 95, 0.12);
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 38, 63, 0.05);
  --shadow-md: 0 12px 32px -18px rgba(20, 38, 63, 0.25);
  --shadow-lg: 0 30px 60px -30px rgba(20, 38, 63, 0.35);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover {
  color: var(--accent);
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--primary-ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
p {
  margin: 0 0 1em;
}

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-y) 0;
}

.section__head {
  max-width: 780px;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}
.section__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.section__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.section__eyebrow--gold {
  color: var(--accent);
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 22ch;
}
.section__lede {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  color: var(--primary);
  border: 1px solid var(--line);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn i {
  transition: transform 0.3s var(--ease);
}
.btn:hover i {
  transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease);
  padding: 1.3rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-ink);
  font-family: var(--serif);
}
.nav__mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: background 0.3s var(--ease);
}
.nav__wordmark {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav.is-scrolled .nav__wordmark {
  opacity: 1;
  transform: translateX(0);
}
.nav__menu ul {
  display: flex;
  gap: 2rem;
}
.nav__menu a {
  color: var(--primary-ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.8rem 0;
}
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--primary-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav__mobile {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
}
.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav__mobile a {
  display: block;
  padding: 0.9rem 0;
  color: var(--primary-ink);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, #fbf8f2 0%, var(--bg) 60%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 1.6rem;
}
.hero__eyebrow-line {
  width: 44px;
  height: 1px;
  background: var(--accent);
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  color: var(--primary-ink);
}
.hero__roles {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--secondary);
  margin: 0 0 1.6rem;
}
.hero__roles span {
  display: inline-block;
}
.hero__badge {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.8rem;
  background: rgba(185, 151, 91, 0.05);
}
.hero__lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--accent-soft);
  transform: translate(18px, 18px);
  z-index: -1;
  border-radius: 4px;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero__portrait:hover img {
  transform: scale(1.03);
}
.hero__portrait-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(180deg, rgba(20, 38, 63, 0) 0%, rgba(20, 38, 63, 0.75) 100%);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__portrait-line {
  width: 28px;
  height: 1px;
  background: var(--accent-soft);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--secondary);
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.hero__scroll:hover {
  opacity: 1;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(6px);
    opacity: 0;
  }
}

/* ---------- About ---------- */
.section--about {
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__portrait {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__prose {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.85;
}
.about__prose p + p {
  margin-top: 1.2em;
}
.about__lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--primary-ink);
  font-style: italic;
  margin-bottom: 1.6em !important;
}

.stats {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: none;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stat__num--text {
  color: var(--accent);
}
.stat__num sup {
  font-size: 0.5em;
  vertical-align: super;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
  display: block;
}

/* ---------- Timeline ---------- */
.section--timeline {
  background: var(--bg-alt);
}
.timeline {
  position: relative;
  padding: 0 0 0 2rem;
  margin: 0;
  counter-reset: t;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  padding: 0 0 3rem 2rem;
  counter-increment: t;
}
.timeline__dot {
  position: absolute;
  left: -0.55rem;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.timeline__item.is-visible .timeline__dot {
  background: var(--accent);
  transform: scale(1.15);
}
.timeline__year {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.timeline__body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.55rem;
}
.timeline__body p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Expertise ---------- */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
}
.card__icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Leadership splits ---------- */
.section--leadership {
  background: var(--bg-alt);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.split--reverse .split__media {
  order: 2;
}
.split__media {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.split:hover .split__media img {
  transform: scale(1.04);
}
.split__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.split__body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 1rem;
}
.split__body p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 46ch;
  margin: 0;
}

/* ---------- World Map ---------- */
.section--map {
  background: var(--bg);
}
.worldmap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.worldmap__svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.worldmap__base path {
  transition: fill 0.4s var(--ease);
}
.marker {
  cursor: pointer;
}
.marker circle:first-child {
  fill: var(--primary);
  transition: fill 0.3s var(--ease), r 0.3s var(--ease);
}
.marker__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
  transform-origin: center;
  animation: markerPulse 2.6s ease-out infinite;
}
@keyframes markerPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.marker text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--primary-ink);
}
.marker:hover circle:first-child,
.marker:focus circle:first-child,
.marker.is-active circle:first-child {
  fill: var(--accent);
}

.worldmap__panel {
  min-height: 180px;
}
.worldmap__card {
  padding: 1rem 0;
  animation: fadeIn 0.5s var(--ease);
}
.worldmap__country {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.worldmap__card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.7rem;
}
.worldmap__card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Awards ---------- */
.section--awards {
  background: linear-gradient(180deg, #14263f 0%, #0f1f36 100%);
  color: #eae5d8;
}
.section--awards .section__title {
  color: #f7f2e6;
}
.section--awards .section__eyebrow::before {
  background: var(--accent);
}
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.award {
  padding: 2rem;
  border: 1px solid rgba(185, 151, 91, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.award:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(185, 151, 91, 0.06);
}
.award__year {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.award h3 {
  color: #f7f2e6;
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
}
.award p {
  color: #c9c2b0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Research ---------- */
.section--research {
  background: var(--bg);
}
.research__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.pub {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.pub:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pub__type {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.9rem;
}
.pub h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 0.8rem;
}
.pub__meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 1rem;
}
.pub__more summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pub__more summary::-webkit-details-marker {
  display: none;
}
.pub__more summary::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.pub__more[open] summary::after {
  transform: rotate(90deg);
}
.pub__more p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.research__cta {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- Roles ---------- */
.section--roles {
  background: var(--bg-alt);
}
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.role {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.role:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}
.role__icon {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.role h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.role p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Quote ---------- */
.section--quote {
  background: var(--bg);
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
}
.quote__eyebrow {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2rem;
  font-weight: 600;
}
.quote {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.quote__mark {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.5;
  color: var(--primary-ink);
  margin: 0 0 2rem;
}
.quote__attribution {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.section--contact {
  background: var(--bg-alt);
}
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.contact__portrait {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.contact__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact__lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 1.2rem 0 2rem;
}
.contact__list {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.contact__list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact__label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: #14263f;
  color: #c9c2b0;
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer p {
  margin: 0;
}
.footer__tag {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.4s var(--ease);
  z-index: 90;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--accent);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__menu {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__wordmark {
    display: none;
  }

  .hero {
    padding-top: 7rem;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__portrait {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .hero__scroll {
    display: none;
  }

  .about__grid,
  .contact {
    grid-template-columns: 1fr;
  }
  .about__portrait,
  .contact__portrait {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    position: static;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.75rem;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }
  .stat:last-child {
    border-bottom: none;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }

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

@media (max-width: 600px) {
  .section__eyebrow {
    font-size: 0.72rem;
  }
  .contact__list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .footer__inner {
    flex-direction: column;
    text-align: left;
  }
  .to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
