/* ============================================================================
   Urvashi Nain — site styles
   Palette : ivory #FAF9F6 · navy #0F172A · emerald #0F766E · gold #C9A227
             slate #334155 · divider #D9D6CC   (gold used sparingly)
   Type    : Fraunces (serif headlines) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ============================================================================ */
:root {
  --ivory:   #FAF9F6;
  --ivory-2: #F3F1EA;
  --navy:    #0F172A;
  --emerald: #0F766E;
  --emerald-deep: #0B5952;
  --gold:    #C9A227;
  --slate:   #334155;
  --muted:   #6B7280;
  --divider: #D9D6CC;

  --maxw: 1080px;
  --r: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--ivory);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 60;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 20px 0 16px;
}
.brand { text-decoration: none; color: inherit; display: grid; line-height: 1.15; }
.brand-name {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.35rem; letter-spacing: -.01em;
}
.brand-tag {
  font-family: "IBM Plex Mono", monospace; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}

.tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tab {
  text-decoration: none; color: var(--slate);
  font-weight: 500; font-size: .95rem; padding: 8px 13px; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tab:hover { color: var(--navy); background: var(--ivory-2); }
.tab.is-active { color: var(--emerald-deep); background: var(--ivory-2); }
.tab--cta {
  margin-left: 6px; border: 1px solid var(--emerald);
  color: var(--emerald-deep); padding: 7px 16px;
}
.tab--cta:hover { background: var(--emerald); color: #fff; }
.tab--cta.is-active { background: var(--emerald); color: #fff; }

/* hamburger (hidden on desktop) */
.nav-toggle {
  display: none; width: 44px; height: 40px; border: 0; background: transparent;
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ledger signature line */
.ledger {
  height: 12px; border-top: 1px solid var(--divider);
  background-image: repeating-linear-gradient(to right, var(--divider) 0 1px, transparent 1px 28px);
  background-position: top; background-size: 28px 6px; background-repeat: repeat-x; opacity: .75;
}

/* ---------------------------------------------------------------- panels */
.panel { padding: 60px 0 24px; }
.panel[hidden] { display: none; }
.panel-enter { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--emerald);
  margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--emerald); }

.headline {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 26px; max-width: 20ch; color: var(--navy);
}
.lede {
  font-size: clamp(1.12rem, 2.3vw, 1.42rem); line-height: 1.45;
  color: var(--slate); max-width: 46ch; margin: 0 0 30px; font-weight: 400;
}
.prose { max-width: 60ch; }
.prose p { margin: 0 0 16px; color: var(--slate); }
.prose p:last-child { margin-bottom: 0; }

.section-label {
  font-family: "IBM Plex Mono", monospace; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 54px 0 0; padding-top: 16px; border-top: 1px solid var(--divider);
}

/* ---------------------------------------------------------------- about hero */
.hero--split {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.hero-photo { position: relative; align-self: start; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--divider); background: var(--ivory-2); display: block;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid color-mix(in srgb, var(--emerald) 45%, transparent);
  border-radius: var(--r); z-index: -1;
}

/* metrics */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 44px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); padding: 26px 0;
}
.metric .num { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.metric .lbl { font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* about → leadership preview */
.preview {
  margin-top: 8px; padding: 26px; background: var(--ivory-2);
  border: 1px solid var(--divider); border-radius: var(--r);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.preview p { margin: 0; max-width: 54ch; color: var(--slate); }
.link-arrow {
  font-weight: 500; color: var(--emerald-deep); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--emerald) 45%, transparent); white-space: nowrap;
}
.link-arrow:hover { border-bottom-color: var(--emerald); }
.link-arrow::after { content: " \2192"; }

/* ---------------------------------------------------------------- expertise cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card {
  background: var(--ivory-2); border: 1px solid var(--divider); border-radius: var(--r);
  padding: 24px 22px; transition: border-color .25s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--emerald) 40%, var(--divider)); }
.card h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; margin: 0 0 9px; }
.card p { margin: 0; color: var(--slate); font-size: .95rem; }

/* ---------------------------------------------------------------- leadership */
/* A. featured navy panel */
.featured {
  background: var(--navy); color: var(--ivory); border-radius: var(--r);
  padding: 34px 34px 30px; margin-top: 26px; position: relative; overflow: hidden;
}
.featured .flabel {
  font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.featured .flabel::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.featured .event { font-family: "IBM Plex Sans"; font-size: .95rem; color: color-mix(in srgb, var(--ivory) 80%, transparent); margin: 0 0 6px; }
.featured .ftitle { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.12; margin: 0 0 14px; color: var(--ivory); }
.featured .fdesc { max-width: 62ch; color: color-mix(in srgb, var(--ivory) 82%, transparent); margin: 0 0 24px; }
.ffacts { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; border-top: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent); padding-top: 20px; }
.ffacts .fl { font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.ffacts .fv { font-size: .95rem; color: var(--ivory); margin-top: 3px; }

/* B. judging — thin top rules, no heavy cards */
.judging { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 26px; }
.jitem { border-top: 2px solid var(--navy); padding-top: 14px; }
.jitem .jorg { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.2; margin: 0 0 4px; color: var(--navy); }
.jitem .jrole { font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-deep); margin: 0 0 10px; }
.jitem .jdetail { font-size: .88rem; color: var(--slate); margin: 0; }

/* C. advisory — wide horizontal band */
.advisory {
  margin-top: 30px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr);
  gap: 30px; align-items: start;
  border-left: 3px solid var(--gold); background: var(--ivory-2);
  border-radius: 0 var(--r) var(--r) 0; padding: 26px 28px;
}
.advisory .aorg { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; margin: 0 0 4px; color: var(--navy); }
.advisory .arole { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-deep); margin: 0; }
.advisory p.adetail { margin: 0 0 10px; color: var(--slate); }
.advisory p.aextra { margin: 0; color: var(--muted); font-size: .93rem; }

/* research interests */
.research { margin-top: 40px; }
.research .rintro { max-width: 60ch; color: var(--slate); margin: 12px 0 18px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.topics li {
  font-size: .86rem; color: var(--navy); background: var(--ivory);
  border: 1px solid var(--divider); border-radius: 999px; padding: 7px 14px;
}
.rinvite { color: var(--slate); margin: 0; font-size: .95rem; }

/* ---------------------------------------------------------------- passion / beyond — definition rows */
.deflist { margin-top: 34px; border-top: 1px solid var(--divider); }
.defrow {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--divider);
}
.defrow h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; margin: 0; color: var(--navy); }
.defrow p { margin: 0; color: var(--slate); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; margin-top: 20px; }
.contact-details a { color: var(--emerald-deep); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--emerald) 40%, transparent); }
.contact-details a:hover { border-bottom-color: var(--emerald); }
.cdetail { margin: 0 0 16px; }
.cdetail .cl { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }

.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .82rem; color: var(--slate); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: .95rem; color: var(--navy);
  background: var(--ivory); border: 1px solid var(--divider); border-radius: 8px; padding: 11px 12px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald);
}
.hp { position: absolute; left: -9999px; }
.btn {
  justify-self: start; margin-top: 4px; cursor: pointer;
  background: var(--navy); color: var(--ivory); border: 0; border-radius: 999px;
  font: inherit; font-weight: 500; padding: 12px 26px; transition: background .2s var(--ease);
}
.btn:hover { background: var(--emerald-deep); }
.form-status { margin: 4px 0 0; font-size: .9rem; color: var(--emerald-deep); min-height: 1em; }
.form-status.err { color: #9a3324; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--divider); background: var(--ivory-2); }
.footer-inner { padding: 34px 24px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: baseline; justify-content: space-between; }
.footer-id .fname { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.footer-id .frole { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-family: "IBM Plex Mono", monospace; font-size: .8rem; letter-spacing: .03em; color: var(--slate); text-decoration: none; }
.footer-links a:hover { color: var(--emerald-deep); }
.footer-meta { flex-basis: 100%; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--divider); font-size: .76rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.footer-meta .disclaimer { max-width: 70ch; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .tabs {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ivory); border: 1px solid var(--divider); border-radius: var(--r);
    padding: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.1);
    display: none;
  }
  .tabs.open { display: flex; }
  .tab { padding: 12px 14px; border-radius: 8px; }
  .tab--cta { margin-left: 0; text-align: center; margin-top: 4px; }
  .ffacts { grid-template-columns: 1fr; gap: 12px; }
  .judging { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .advisory { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero--split { grid-template-columns: 1fr; gap: 30px; }
  .hero-photo { max-width: 300px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .cards { grid-template-columns: 1fr; }
  .judging { grid-template-columns: 1fr; }
  .defrow { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .preview { flex-direction: column; align-items: flex-start; }
  .panel { padding: 40px 0 16px; }
  .brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel-enter { animation: none; }
  * { transition: none !important; }
}
