/* Abhishek Chaudhary - site styles */
:root {
  --accent: #FF9933;
  --accent-dark: #E8830F;
  --accent-text: #B85C00; /* saffron deep enough to read as text on white */
  --navy: #0B1F3A;
  --navy2: #16335A;
  --ice: #D6E4F0;
  --bg: #fff;
  --soft: #F2F5F9;
  --ink: #0B1F3A;
  --muted: #44506A;
  --card: #fff;
  --line: #DCE3EC;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1830;
    --soft: #111D38;
    --ink: #EEF2FA;
    --muted: #B9C3DA;
    --card: #16233F;
    --line: #263558;
    --accent-text: #FF9933
  }
}

:root[data-theme="dark"] {
  --bg: #0E1830;
  --soft: #111D38;
  --ink: #EEF2FA;
  --muted: #B9C3DA;
  --card: #16233F;
  --line: #263558;
  --accent-text: #FF9933
}

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

html {
  height: 100%;
  background: var(--navy);
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 70px)
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  overflow-x: hidden
}

a { color: inherit }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 99
}
.skip-link:focus { left: 8px }

.visually-hidden { position: absolute; left: -999px }

#scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 90
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative }
section { padding: 100px 0; position: relative }
.section--alt { background: var(--soft) }

.section-title {
  font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--font-heading);
  letter-spacing: .01em;
  margin: 0
}

.panel-heading {
  font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--font-heading);
  color: var(--accent-text);
  margin: 0 0 18px
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1)
}
.reveal.is-visible { opacity: 1; transform: none }

.fade-in { animation: fade-up .7s both; opacity: 0 }

@keyframes fade-up { to { opacity: 1; transform: none } }

.spin { animation: spin 90s linear infinite; transform-box: fill-box; transform-origin: center }
@keyframes spin { to { transform: rotate(360deg) } }
.spin--reverse { animation-direction: reverse; animation-duration: 60s }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--navy);
  border: 0;
  border-radius: 24px;
  padding: 10px 22px;
  font: 500 .78rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #FF993366; background: var(--accent-dark) }
.btn--dark { background: var(--navy); color: #fff }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background .3s, box-shadow .3s
}
.site-header.is-scrolled { background: #0B1F3Af2; backdrop-filter: blur(12px); box-shadow: 0 8px 30px #0006 }

.site-header nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font: 500 1.1rem/1 var(--font-heading);
}
/* AC monogram logo (images/logo.svg) */
.brand-logo img { width: 40px; height: 40px; display: block; border-radius: 11px; flex: none; transition: transform .35s }
.brand-logo:hover img { transform: rotate(-6deg) scale(1.06) }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font: 500 .90rem var(--font-body)
}
.nav-links a { text-decoration: none; opacity: .8; transition: opacity .25s; position: relative }
.nav-links a:hover { opacity: 1 }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .3s
}
.nav-links a:hover::after { width: 100% }

.header-actions { display: flex; gap: 12px; align-items: center }

.icon-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffffff66;
  display: grid;
  place-items: center;
  transition: background .25s
}
.icon-link:hover { background: #fff3 }
.icon-link svg { width: 15px; height: 15px; fill: currentColor }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #fff6;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(660px, 100vh);
  min-height: max(660px, 100svh);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0B1F3A
}
/* Taller than the hero so the parallax shift never exposes empty space */
.hero-bg { position: absolute; inset: -35% 0 0 }
.hero-bg img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 80% 35% }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08162Bf0 0%, #0B1F3Ab8 30%, #0B1F3A40 52%, #0B1F3A00 70%), linear-gradient(0deg, #0B1F3A88, transparent 30%), linear-gradient(180deg, #0B1F3A88, transparent 22%)
}

.hero-inner { position: relative; z-index: 3; width: 100%; padding-top: 70px }

.hero-title {
  font: 300 clamp(2.6rem, 6.2vw, 4.7rem)/1.04 var(--font-heading);
  margin: 0 0 22px;
  max-width: 13ch
}
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: fade-up .8s cubic-bezier(.2, .8, .2, 1) forwards
}

.hero-text {
  max-width: 46ch;
  font: 300 .98rem/1.7 var(--font-body);
  margin: 0 0 30px;
  opacity: 0;
  animation: fade-up 1s .9s forwards
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: .72rem;
  opacity: 0;
  animation: fade-up 1s 1.2s forwards
}
.scroll-cue i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #fff7;
  display: grid;
  place-items: center;
  animation: bounce 2s infinite
}
@keyframes bounce { 50% { transform: translateY(6px) } }

.hero-cards {
  position: absolute;
  z-index: 4;
  right: max(28px, calc((100% - 1240px)/2 + 28px));
  bottom: 54px;
  display: grid;
  gap: 12px
}
.hero-card {
  width: 200px;
  height: 118px;
  border-radius: 12px;
  padding: 14px;
  font: 400 .76rem/1.35 var(--font-body);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 14px 34px #0005;
  transition: transform .3s
}
.hero-card:nth-child(2) { animation-delay: -3s }
.hero-card:hover { transform: translateY(-6px) scale(1.03) }
@keyframes float { 50% { translate: 0 -8px } }
.hero-card--dark { background: var(--navy); color: #fff }
.hero-card--light { background: #fff; color: var(--navy) }
.hero-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 14px solid #FF993355
}
.hero-card__btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff }
.hero-card--dark .hero-card__btn { background: var(--accent); color: var(--navy) }
.hero-card--light .hero-card__btn { background: var(--navy) }
.hero-card svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2 }

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: 1fr; gap: 48px }
.expertise-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end }
.expertise-intro .section-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 56ch; margin: 0 }

/* Spotlight panels: the active one opens to show its description */
.expertise-cards { display: flex; gap: 14px; height: 470px }
.expertise-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--b);
  color: #fff;
  cursor: default;
  transition: flex-grow .65s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, opacity .8s, transform .8s;
  transform: none !important
}
.expertise-card.is-active, .expertise-card:hover { flex-grow: 2.6; box-shadow: 0 26px 54px #0B1F3A4d }
.expertise-cards:hover .expertise-card.is-active:not(:hover) { flex-grow: 1; box-shadow: none }

.expertise-card__image { position: absolute; inset: 0; background: linear-gradient(150deg, var(--a), var(--b)); overflow: hidden }
.expertise-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; scale: 1.2 }
.expertise-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0B1F3A1f 0%, #0B1F3A80 45%, #0B1F3AF2 100%)
}
.expertise-card__ring { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; z-index: 2 }
/* Ring uses ice blue so it differs from the saffron bar above each heading (CSS overrides the SVG stroke attribute) */
.expertise-card__ring circle { stroke: var(--ice); opacity: .9 }

.expertise-card h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 26px 26px;
  color: #fff;
  transition: margin .4s
}
.expertise-card h3::before { content: ""; display: block; width: 38px; height: 3px; background: var(--accent); margin-bottom: 14px }
.expertise-card p {
  position: relative;
  z-index: 2;
  margin: 0 26px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: #E6ECF7;
  font-size: 1rem;
  line-height: 1.55;
  transition: max-height .6s, opacity .5s .1s, margin .4s
}
.expertise-card.is-active h3, .expertise-card:hover h3 { margin-bottom: 10px }
.expertise-card.is-active p, .expertise-card:hover p { max-height: 150px; opacity: 1; margin-bottom: 28px }
.expertise-cards:hover .expertise-card.is-active:not(:hover) h3 { margin-bottom: 26px }
.expertise-cards:hover .expertise-card.is-active:not(:hover) p { max-height: 0; opacity: 0; margin-bottom: 0 }

/* ---------- About ---------- */
.about { overflow: hidden; min-height: 780px; display: flex; align-items: center }

.about-visual {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(600px, 46vw);
  height: 700px;
  overflow: hidden
}
/* Decorative circles behind the portrait */
.about-visual::before, .about-visual::after { content: ""; position: absolute; z-index: 0 }
.about-visual::before { left: -120px; top: 80px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid #D6E4F0 }
.about-visual::after { right: 40px; top: 120px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent) }
.about-visual svg { width: 100%; height: 100%; overflow: visible }
/* Upper body only: top of the photo is kept, the lower part is cropped off */
.about-visual img { position: absolute; left: 0; top: -24px; z-index: 1; width: 100%; height: calc(100% + 48px); object-fit: cover; object-position: 50% 0; display: block }

.about-grid { display: grid; grid-template-columns: 1fr 1fr }
.about-grid > div:first-child { min-height: 1px }
.about h2 { margin: 0 0 20px }
.about .section-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 46ch; margin: 0 0 36px }

.tab-list { display: flex; gap: 10px; margin: 0 0 34px }
.tab-list button {
  position: relative;
  width: 50px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--muted);
  font: 500 .7rem var(--font-body);
  text-align: left;
  padding: 8px 9px;
  cursor: pointer;
  transition: all .3s;
  overflow: hidden
}
.tab-list button.is-active { background: var(--accent); border-color: var(--accent); color: var(--navy) }
.tab-list button.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 2px;
  background: #0B1F3A99;
  transform-origin: left;
  animation: tab-progress 6.5s linear forwards
}
@keyframes tab-progress { from { transform: scaleX(0) } }

.tab-panels { min-height: 200px }
.tab-panels p { color: var(--ink); font-size: 1.05rem; max-width: 46ch; margin: 0 }

/* ---------- Milestones (base rules; the redesign further down overrides these) ---------- */
.milestones { background: var(--soft); overflow: hidden }
.milestones > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }

.milestone-counter { font-size: .7rem; color: var(--muted); margin: 10px 0 18px }

.milestone-card {
  width: 190px;
  height: 290px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #E3ECF6, #C3D4E8);
  margin-left: 70px;
  box-shadow: 0 22px 50px #0B1F3A33
}
.milestone-card b {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 42%;
  font: 600 1.9rem/1 var(--font-heading);
  color: var(--navy);
}
.milestone-card::after {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 28px solid var(--accent)
}

.slider-controls { display: flex; gap: 12px; margin-top: 26px }
.slider-controls button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: all .25s
}
.slider-controls button:hover { background: var(--accent); color: var(--navy); border-color: var(--accent) }

.milestone-content { display: flex; flex-direction: column; justify-content: space-between; padding-top: 14px }
.milestone-content p { font: 400 clamp(1.15rem, 2vw, 1.55rem)/1.4 var(--font-body); margin: 0; max-width: 30ch }

.milestone-footer { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; margin-top: 40px }
.milestone-source { display: flex; gap: 12px; align-items: center; font-size: .72rem }
.milestone-source i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font: 500 1rem var(--font-heading);
  font-style: normal;
  box-shadow: 0 0 0 3px var(--accent)
}
.milestone-source small { display: block; color: var(--muted) }

/* ---------- Info cards (appointments, education, awards) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px }

.info-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  background: var(--card);
  position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s
}
.info-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 18px 40px #FF993322 }
.info-card__number { font: 500 2.2rem/1 var(--font-heading); color: var(--accent-text); display: block; margin-bottom: 10px }
.info-card__badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font: 600 .95rem var(--font-heading);
  color: var(--accent-text);
  margin-bottom: 12px
}
.info-card h3 { font: 500 1.3rem/1.15 var(--font-heading); margin: 0 0 8px }
.info-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55 }
.info-card__source { display: block; margin-top: 10px; font-size: .72rem; color: var(--muted) }

/* Award icons */
.info-card__badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8 }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 36px 0 0 }
details { border-bottom: 1px solid var(--line) }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font: 400 1.4rem/1.2 var(--font-heading);
  display: flex;
  justify-content: space-between;
  gap: 16px
}
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; color: var(--accent-text); font-size: 1.8rem; line-height: 1; transition: transform .3s }
details[open] summary::after { transform: rotate(135deg) }
details p { margin: 0; padding: 0 0 22px; color: var(--muted); max-width: 70ch; animation: fade-up .5s both }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; overflow: hidden }
.contact::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 70px solid #FF9933;
  opacity: .9
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative }
.contact-grid h2 {
  font: 300 clamp(2.4rem, 5vw, 4rem)/1.05 var(--font-heading);
  margin: 0 0 20px
}
.contact-grid p { color: #B9C4DE; max-width: 40ch }

.contact-form-card {
  background: #fff;
  color: var(--navy);
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 30px 70px #0006
}
.contact-form-card .form-label { font: 500 .72rem var(--font-body); color: var(--muted); display: block }
.contact-form-card input[type=text],
.contact-form-card input[type=email],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  padding: 8px 0;
  margin-bottom: 16px;
  border: 0;
  border-bottom: 1px solid #C9D0DC;
  background: transparent;
  color: var(--navy);
  border-radius: 0;
  transition: border-color .25s
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 1px 0 var(--accent) }

.checkbox-label { display: flex; gap: 8px; align-items: center; font-size: .82rem; margin: 0 0 18px }
.checkbox-label input { accent-color: var(--accent) }

.form-status { min-height: 1.4em; margin: 12px 0 0; font: 500 .84rem var(--font-body) }
.form-status.is-success { color: #0B8F66 }
.form-status.is-error { color: #C0352B }

/* ---------- Footer ---------- */
.site-footer { background: #07142A; color: #9AA7C4; padding: 56px 0 28px; font-size: .82rem }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 34px }
.footer-grid .brand-logo { color: #fff }

.newsletter-form { display: flex; gap: 8px }
.newsletter-form input {
  flex: 1;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-radius: 24px;
  padding: 10px 18px;
  color: #fff;
  font: inherit;
  min-width: 0
}
.newsletter-form input::placeholder { color: #9AA7C4 }

.copyright { border-top: 1px solid #ffffff1f; padding-top: 20px; text-align: center }

/* ---------- Responsive ---------- */
@media (max-width:980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B1F3Af8;
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 18px
  }
  .site-header.is-open .nav-links { display: flex }
  .nav-links a { display: block; padding: 12px 0; opacity: 1 }
  .menu-toggle { display: block }
  .site-header.is-open { background: #0B1F3Af8 }

  .hero-bg img { object-position: 84% center }
  .hero-overlay {
    background: linear-gradient(0deg, #08162Bf2 0%, #0B1F3Acc 45%, #0B1F3A33 80%), linear-gradient(180deg, #0B1F3A99, transparent 22%)
  }
  .hero { align-items: flex-end; padding-bottom: 50px !important }

  .expertise-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr }
  .expertise-intro { grid-template-columns: 1fr; gap: 18px }
  .expertise-cards { flex-direction: column; height: auto }
  .expertise-card { flex: none !important; height: 300px }
  .expertise-card h3 { margin-bottom: 10px !important }
  .expertise-card p { max-height: none !important; opacity: 1 !important; margin-bottom: 26px !important }
  .about-grid { grid-template-columns: 1fr }

  .about-visual { position: relative; bottom: auto; width: 100%; height: 460px; margin-bottom: 10px }
  .about-visual::before { left: 50%; margin-left: -300px }
  .about { display: block; padding-top: 40px }


  .milestone-card { margin-left: 30px }
}

@media (max-width:520px) {
  section { padding: 70px 0 }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  .hero-word, .hero-text, .scroll-cue, .reveal, .fade-in { opacity: 1; transform: none }
  html { scroll-behavior: auto }
}


/* =====================================================
   Typography: Playfair Display (headings) + DM Sans (body)
   ===================================================== */
.section-title { font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.2 var(--font-heading); letter-spacing: -.01em }
.panel-heading { font: 500 clamp(2rem, 4.2vw, 3rem)/1.1 var(--font-heading); font-style: italic }
.brand-logo { font: 600 1.05rem/1.1 var(--font-heading) }
.hero-title { font: 500 clamp(2.3rem, 5.4vw, 4.2rem)/1.08 var(--font-heading); max-width: 16ch; letter-spacing: -.015em }
.milestone-card b { font: 600 1.55rem/1.1 var(--font-heading) }
.milestone-content p { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.5 }
.info-card h3 { font: 600 1.2rem/1.25 var(--font-heading) }
.info-card__number { font: 500 2rem/1 var(--font-heading); font-style: italic }
.info-card__badge { font: 600 .95rem var(--font-heading) }
summary { font: 500 1.2rem/1.35 var(--font-heading) }
.contact-grid h2 { font: 500 clamp(2.2rem, 4.4vw, 3.4rem)/1.1 var(--font-heading); letter-spacing: -.015em }
.milestone-source i { font: 600 .95rem var(--font-heading) }

/* =====================================================
   Extra animation layer
   ===================================================== */

/* Hero: slow zoom, drifting orbs, shimmering accent word */
.hero-bg img { animation: ken-burns 26s ease-in-out infinite alternate }
@keyframes ken-burns { from { transform: scale(1) } to { transform: scale(1.12) translate(-1.5%, 1%) } }

.hero-word { animation: word-in .95s cubic-bezier(.2, .8, .2, 1) both }
@keyframes word-in {
  from { opacity: 0; transform: translateY(60px) rotate(4deg); filter: blur(10px) }
  to { opacity: 1; transform: none; filter: blur(0) }
}
.hero-word--accent {
  font-style: italic;
  background: linear-gradient(90deg, #fff 0%, #FFD9A8 45%, #fff 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: word-in .95s cubic-bezier(.2, .8, .2, 1) both, shimmer 5s linear 1.8s infinite
}
@keyframes shimmer { to { background-position: -220% 0 } }

.hero-orbs { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden }
.hero-orbs span { position: absolute; border-radius: 50%; border: 2px solid #FF993355 }
.hero-orbs span:nth-child(1) { width: 420px; height: 420px; right: 24%; top: -120px; border-width: 38px; animation: drift 14s ease-in-out infinite alternate }
.hero-orbs span:nth-child(2) { width: 160px; height: 160px; right: 40%; bottom: 16%; border-color: #ffffff33; animation: drift 10s ease-in-out -3s infinite alternate-reverse }
.hero-orbs span:nth-child(3) { width: 70px; height: 70px; right: 12%; top: 34%; background: #FF993366; border: 0; animation: drift 8s ease-in-out -5s infinite alternate }
@keyframes drift { from { transform: translate(0, 0) scale(1) } to { transform: translate(-40px, 50px) scale(1.12) } }

/* Marquee band */
.marquee { background: var(--accent); color: #fff; overflow: hidden; white-space: nowrap; padding: 16px 0; position: relative; z-index: 5 }
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite }
.marquee:hover .marquee__track { animation-play-state: paused }
.marquee span { font: italic 500 1.5rem/1 var(--font-heading); display: inline-flex; align-items: center }
.marquee span::after { content: "\2726"; font-style: normal; font-size: .9rem; margin: 0 30px; opacity: .7 }
@keyframes marquee { to { transform: translateX(-50%) } }

/* Directional reveals */
.reveal--left { transform: translateX(-60px) }
.reveal--right { transform: translateX(60px) }
.reveal--zoom { transform: scale(.88) translateY(24px) }

/* Section title underline draws in */
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--accent); margin-top: 14px; transform: scaleX(0); transform-origin: left; transition: transform 1s .35s cubic-bezier(.2, .8, .2, 1) }
.section-title.is-visible::after, .reveal.is-visible .section-title::after { transform: none }

/* Cards: pointer spotlight + 3D tilt */
.expertise-card::before, .info-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #FF993326, transparent 65%)
}
.expertise-card:hover::before, .info-card:hover::before { opacity: 1 }
.expertise-card.is-tilting, .info-card.is-tilting { transition: transform .15s ease-out, box-shadow .3s, background .35s, color .35s !important; transition-delay: 0s !important }

/* Buttons: shine sweep */
.btn { position: relative; overflow: hidden }
.btn::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, #ffffff55, transparent); transform: skewX(-20deg); transition: left .6s }
.btn:hover::before { left: 130% }
.icon-link:hover { transform: rotate(12deg) scale(1.08) }
.icon-link { transition: background .25s, transform .3s }

/* Cursor glow */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 60; opacity: 0;
  background: radial-gradient(circle, #FF99331f 0%, transparent 65%); transition: opacity .4s; will-change: transform }
.cursor-glow.is-active { opacity: 1 }
@media (hover:none) { .cursor-glow { display: none } }

/* Milestones: stat pops in, ring floats */
.milestone-card b { animation: stat-in .6s cubic-bezier(.2, .8, .2, 1) both }
@keyframes stat-in { from { opacity: 0; transform: translateY(24px) scale(.9); filter: blur(6px) } to { opacity: 1; transform: none; filter: blur(0) } }
.milestone-card::after { animation: float 7s ease-in-out infinite }

/* Pulse used by the current-role dot */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #FF993399 } 100% { box-shadow: 0 0 0 12px #FF993300 } }

/* Slow breathing ring in contact */
.contact::before { animation: breathe 9s ease-in-out infinite alternate }
@keyframes breathe { from { transform: scale(1) } to { transform: scale(1.18) rotate(20deg) } }

/* =====================================================
   Parallax (driven by js/parallax.js via the CSS translate property)
   ===================================================== */
.hero-bg, .hero-inner, .hero-orbs span, .about-visual img, .about-visual svg, .stats-ring,
.milestones > svg, .milestone-card, .contact-form-card, .section-title,
.expertise-card__image img { will-change: translate }

@media (prefers-reduced-motion:reduce) {
  .reveal--left, .reveal--right, .reveal--zoom { transform: none }
  .hero-word--accent { -webkit-text-fill-color: #fff }
  .section-title::after { transform: none }
  .cursor-glow { display: none }
}


/* =====================================================
   Revision: varied shapes, richer hero, readable text
   ===================================================== */

/* Hero shapes */
.hero-orbs span:nth-child(4) { width: 120px; height: 120px; right: 30%; top: 20%; background: transparent; border: 2px solid rgba(255,255,255,.32); animation: drift 13s ease-in-out -2s infinite alternate }
.hero-orbs span:nth-child(5) { width: 56px; height: 56px; right: 6%; bottom: 24%; border: 0; background: rgba(255,255,255,.35); animation: drift 9s ease-in-out -4s infinite alternate-reverse }

/* Hero: dot grid, saffron glow, eyebrow, text, stat strip */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.2) 1.2px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%);
  mask-image: linear-gradient(90deg, #000, transparent 55%)
}
@media (min-width:981px) {
  .hero-overlay {
    background:
      radial-gradient(55% 60% at 88% 8%, #FF99332e, transparent 62%),
      radial-gradient(45% 55% at 0% 100%, #FF99331f, transparent 60%),
      linear-gradient(90deg, #08162Bf0 0%, #0B1F3Ab8 30%, #0B1F3A40 52%, #0B1F3A00 70%),
      linear-gradient(0deg, #0B1F3A88, transparent 30%),
      linear-gradient(180deg, #0B1F3A88, transparent 22%)
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font: 600 .76rem var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: fade-up .8s .05s forwards
}
.hero-eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--accent) }
.hero-title { text-shadow: 0 4px 30px rgba(0,0,0,.25) }
.hero-text { max-width: 50ch; font: 400 1.12rem/1.7 var(--font-body); color: #EAF0FA }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  opacity: 0;
  animation: fade-up 1s 1.05s forwards
}
.hero-stats li { padding: 4px 28px; border-left: 1px solid rgba(255,255,255,.28) }
.hero-stats li:first-child { padding-left: 0; border-left: 0 }
.hero-stats b { display: block; font: 600 2.1rem/1.1 var(--font-heading); color: var(--accent) }
.hero-stats span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #D6E0F2 }

/* Hero cards: serif text */
.hero-card { font: 500 1rem/1.35 var(--font-heading) }

/* Thumbnails and cards: serif headings */
.tab-list button { font-family: var(--font-heading) }

/* Readability: larger, darker body text */
.info-card p { font-size: .98rem; line-height: 1.6 }
.info-card__source { font-size: .82rem }
details p { font-size: 1.04rem; line-height: 1.7 }
.milestone-counter { font-size: .8rem }
.milestone-source { font-size: .82rem }
.contact-grid p { font-size: 1.06rem; color: #D3DBEC }
.contact-form-card .form-label { font-size: .8rem }
.checkbox-label { font-size: .92rem }
.site-footer { font-size: .92rem; color: #B5C0D8 }

@media (max-width:980px) {
  .hero-stats li { padding: 4px 18px }
  .hero-stats b { font-size: 1.7rem }
  .hero-eyebrow { font-size: .7rem; letter-spacing: .18em }
}

@media (prefers-reduced-motion:reduce) {
  .hero-eyebrow, .hero-stats { opacity: 1; transform: none }
}

/* Keep the panel-opening animation smooth while the card tilts */
.expertise-card.is-tilting { transition: flex-grow .65s cubic-bezier(.2, .8, .2, 1), box-shadow .4s !important }


/* =====================================================
   Calmer hero: fewer elements, softer effects
   ===================================================== */
.hero::after { display: none }                                   /* no dot grid */
.hero-title { text-shadow: none }
.hero-orbs span:nth-child(1) { border-color: #FF993338 }          /* one soft ring */
.hero-orbs span:nth-child(2) { border-color: #ffffff22 }          /* one thin ring */
.hero-word--accent { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); animation: word-in .95s cubic-bezier(.2, .8, .2, 1) both }
.hero-card { animation: none }                                   /* cards stay still */
.hero-card::after { display: none }
@media (min-width:981px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, #08162Bf2 0%, #0B1F3Ac0 32%, #0B1F3A40 55%, #0B1F3A00 72%),
      linear-gradient(0deg, #0B1F3A80, transparent 28%)
  }
}
@media (prefers-reduced-motion:reduce) { .hero-word--accent { -webkit-text-fill-color: var(--accent) } }

/* About portrait: zoom in from the top so only the upper body shows.
   Raise the scale value for a tighter crop, lower it for a wider one. */
.about-visual img { scale: 1.5; transform-origin: 50% 0 }


/* =====================================================
   Milestones: photo cards
   Each milestone's image comes from data-img in index.html.
   If the file is missing, the gradient card stays.
   ===================================================== */
.milestone-card { width: 240px; height: 350px; background-color: #C3D4E8 }
.milestone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #0B1F3A00 35%, #0B1F3Ad9 100%), var(--img, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s;
}
.milestone-card.has-img::before { opacity: 1 }
.milestone-card.has-img::after { z-index: 2 }

/* Stat moves to the bottom and turns white when a photo is present */
.milestone-card.has-img b {
  z-index: 1;
  top: auto;
  bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 12px #0B1F3A99;
}
.milestone-card.has-img b::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 10px;
}

@media (max-width:980px) { .milestone-card { width: 200px; height: 300px } }


/* =====================================================
   Milestones redesign: wide photo + overlapping text card
   ===================================================== */
.ms-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.ms-head h2 {
  font: 500 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--font-heading);
  letter-spacing: -.02em;
  margin: 0;
}
.ms-controls { display: flex; align-items: center; gap: 18px }
.ms-controls .milestone-counter { margin: 0; font-size: .9rem; letter-spacing: .08em }
.ms-controls .slider-controls { margin: 0 }

/* Stage: photo on the left, text card overlapping it */
.ms-stage {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
}

#milestone-card {
  width: 100%;
  height: auto;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 22px;
  background: linear-gradient(150deg, #16335A, #0B1F3A);
  box-shadow: 0 30px 70px #0B1F3A44;
}
#milestone-card::before {
  background-image: linear-gradient(180deg, #0B1F3A00 40%, #0B1F3Ae6 100%), var(--img, none);
}
#milestone-card::after {
  left: auto;
  bottom: auto;
  right: -46px;
  top: -46px;
  width: 190px;
  height: 190px;
  border-width: 30px;
  z-index: 2;
}
#milestone-card b {
  left: 34px;
  right: 34px;
  top: auto;
  bottom: 34px;
  z-index: 1;
  color: #fff;
  font: 600 clamp(2rem, 4vw, 3.2rem)/1.05 var(--font-heading);
  text-shadow: 0 2px 14px #0B1F3A99;
}
#milestone-card b::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 14px;
}

/* Text card */
.ms-panel {
  position: relative;
  z-index: 2;
  margin-left: -72px;
  padding: 40px 38px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 70px #0B1F3A2e;
  justify-content: center;
}
.ms-stage .ms-panel p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.45;
  max-width: none;
}
.ms-panel #milestone-text { min-height: 9.5rem }
.ms-panel .milestone-footer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Segmented progress / jump bar */
.ms-dots { display: flex; gap: 10px; margin-top: 40px }
.ms-dots button {
  position: relative;
  flex: 1;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ms-dots button::before,
.ms-dots button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 4px;
  border-radius: 4px;
}
.ms-dots button::before { background: var(--line) }
.ms-dots button::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.ms-dots button.is-done::after { transform: none }
.ms-dots button.is-active::after { animation: ms-fill 7s linear forwards }
.ms-dots.is-manual button.is-active::after { animation: none; transform: none }
@keyframes ms-fill { to { transform: scaleX(1) } }
@media (prefers-reduced-motion:reduce) { .ms-dots button.is-active::after { animation: none; transform: none } }

@media (max-width:980px) {
  .ms-stage { grid-template-columns: 1fr }
  #milestone-card { min-height: 280px; margin-left: 0 }
  .ms-panel { margin: -56px 16px 0; padding: 28px 24px 24px }
  .ms-panel #milestone-text { min-height: 0 }
}


/* =====================================================
   Career: intro band
   ===================================================== */
.career-grid {
  display: grid;
  grid-template-columns: .85fr 1.5fr;
  gap: 72px;
  align-items: start;
}
.career-intro { position: sticky; top: 120px }
.career-intro .section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 38ch;
  margin: 22px 0 32px;
}
.career-orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px }
.career-orgs li {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 10px 10px 0;
}
.career-orgs b { display: block; font: 600 1.1rem/1.2 var(--font-heading) }
.career-orgs span { font-size: .9rem; color: var(--muted) }






@media (max-width:980px) {
  .career-grid { grid-template-columns: 1fr; gap: 36px }
  .career-intro { position: static }
}


/* =====================================================
   Appointments / Education / Awards redesign
   ===================================================== */

/* Shared section header */
.sec-head { max-width: 640px; margin-bottom: 48px }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 600 .76rem var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.sec-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent) }
.sec-lead { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 52ch }

.appt-cell, .edu-cell, .awd-cell { display: flex }

/* ---------- Appointments: dark bento grid ---------- */
.appt { background: var(--navy); color: #fff; overflow: hidden }
.appt::before {
  content: "";
  position: absolute;
  left: -170px;
  bottom: -170px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 60px solid #FF99331a;
  pointer-events: none;
}
.appt::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid #ffffff0d;
  pointer-events: none;
}
.appt .container { z-index: 1 }
.appt .sec-eyebrow { color: var(--accent) }
.appt .sec-lead { color: #B9C4DE }

.appt-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}
.appt-cell--feature { grid-row: span 2 }
.appt-cell--wide { grid-column: span 2 }

.appt-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff14, #ffffff06);
  border: 1px solid #ffffff1f;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.appt-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 26px 54px #0007 }
.appt-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 22px solid #FF99331f;
  transition: transform .6s, border-color .4s;
}
.appt-card:hover::after { transform: scale(1.25); border-color: #FF993340 }

.appt-num {
  position: absolute;
  right: 24px;
  bottom: 10px;
  font: italic 500 4.4rem/1 var(--font-heading);
  color: #ffffff0f;
}
.appt-icon {
  position: relative;
  z-index: 1;
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 12px 26px #FF993340;
  transition: transform .4s;
}
.appt-card:hover .appt-icon { transform: rotate(-6deg) scale(1.08) }
.appt-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

.appt-body { position: relative; z-index: 1 }
.appt-tag { display: block; margin-bottom: 10px; font: 600 .72rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent) }
.appt-card h3 { margin: 0 0 10px; font: 600 1.3rem/1.25 var(--font-heading); color: #fff }
.appt-card p { margin: 0; color: #C9D3E8; font-size: 1rem; line-height: 1.6 }

/* Feature card */
.appt-card--feature { padding: 36px; background: linear-gradient(160deg, #ffffff1f, #ffffff08) }
.appt-card--feature .appt-icon { width: 68px; height: 68px; border-radius: 20px; margin-bottom: 30px }
.appt-card--feature .appt-icon svg { width: 34px; height: 34px }
.appt-card--feature h3 { font-size: 1.9rem; line-height: 1.15 }
.appt-card--feature p { font-size: 1.05rem }
.appt-card--feature .appt-num { font-size: 6.5rem; bottom: 4px }
.appt-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: auto 0 0;
  padding: 28px 0 0;
}
.appt-chips li {
  padding: 7px 14px;
  border: 1px solid #ffffff2e;
  border-radius: 20px;
  background: #ffffff0d;
  color: #E6ECF7;
  font-size: .86rem;
}

/* Wide card: icon beside text */
.appt-card--wide { flex-direction: row; align-items: center; gap: 26px }
.appt-card--wide .appt-icon { margin-bottom: 0 }

/* ---------- Education: light cards with icon tiles ---------- */
.edu { background: var(--bg) }
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px }

.edu-card {
  position: relative;
  flex: 1;
  padding: 34px 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.edu-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #FFC27A);
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.edu-card:hover { transform: translateY(-8px); border-color: #FF993366; box-shadow: 0 26px 54px #0B1F3A1f }
.edu-card:hover::before { transform: none }

.edu-mono {
  position: absolute;
  right: 16px;
  top: 14px;
  font: italic 600 3.6rem/1 var(--font-heading);
  color: var(--ink);
  opacity: .06;
  pointer-events: none;
}
.edu-icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--navy2), var(--navy));
  color: var(--accent);
  box-shadow: 0 14px 28px #0B1F3A33;
  transition: transform .4s;
}
.edu-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
}
.edu-card:hover .edu-icon { transform: rotate(-6deg) scale(1.06) }
.edu-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

.edu-level {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 11px;
  border-radius: 20px;
  background: #FF99331f;
  color: var(--accent-text);
  font: 600 .7rem var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.edu-card h3 { margin: 0 0 8px; font: 600 1.3rem/1.25 var(--font-heading) }
.edu-card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55 }

/* ---------- Awards: medal cards ---------- */
.awd { background: var(--soft); overflow: hidden }
.awd::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 48px solid #FF99331a;
  pointer-events: none;
}
.awd .container { z-index: 1 }
.awd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 22px; padding-top: 36px }

.awd-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 62px 28px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.awd-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 50% 0, #FF99331f, transparent 60%);
  pointer-events: none;
}
.awd-card:hover { transform: translateY(-8px); border-color: #FF993366; box-shadow: 0 26px 54px #0B1F3A1f }

.awd-medal {
  position: absolute;
  left: 50%;
  top: -42px;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFB35C, #E8830F);
  color: #fff;
  box-shadow: 0 0 0 6px var(--soft), 0 16px 30px #E8830F55;
  transition: transform .5s;
}
.awd-medal::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed #FF993388;
  animation: award-spin 24s linear infinite;
}
.awd-card:hover .awd-medal { transform: scale(1.08) rotate(-6deg) }
.awd-medal svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
@keyframes award-spin { to { transform: rotate(360deg) } }

.awd-kind {
  position: relative;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #FF99331f;
  color: var(--accent-text);
  font: 600 .7rem var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.awd-card h3 { position: relative; margin: 0 0 10px; font: 600 1.35rem/1.25 var(--font-heading) }
.awd-issuer { position: relative; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55 }
.awd-date {
  position: relative;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  font: 500 .82rem var(--font-body);
  letter-spacing: .04em;
}
.awd-source {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.awd-card h3 + .awd-issuer + .awd-source,
.awd-issuer + .awd-date + .awd-source { margin-top: 22px }
.awd-issuer ~ .awd-source { margin-top: 22px }

/* ---------- Responsive ---------- */
@media (max-width:1080px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width:980px) {
  .appt-grid { grid-template-columns: 1fr 1fr }
  .appt-cell--feature { grid-row: auto; grid-column: span 2 }
  .awd-grid { grid-template-columns: 1fr; gap: 68px 0; max-width: 520px }
}
@media (max-width:620px) {
  .appt-grid, .edu-grid { grid-template-columns: 1fr }
  .appt-cell--feature, .appt-cell--wide { grid-column: auto }
  .appt-card--wide { flex-direction: column; align-items: flex-start; gap: 0 }
  .appt-card--wide .appt-icon { margin-bottom: 22px }
  .appt-card--feature { padding: 30px }
  .appt-card--feature h3 { font-size: 1.6rem }
}


/* =====================================================
   Career + glance (combined section)
   ===================================================== */
.career { overflow: hidden }
.career .stats-ring { position: absolute; right: -150px; top: 40px; width: 420px; opacity: .3; z-index: 0; pointer-events: none }
.career .container { z-index: 1 }
.career .sec-head { max-width: 760px }
.career .sec-head .section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12 }

/* Stat panel */
.glance-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px;
  margin-bottom: 80px;
  border-radius: 32px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 70px #0B1F3A33;
}
.glance-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 70% at 100% 0, #FF99332b, transparent 65%), radial-gradient(40% 60% at 0 100%, #1B4F9655, transparent 65%);
}
.glance-cards { display: contents }
.glance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff1c, #ffffff08);
  border: 1px solid #ffffff22;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.glance-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 20px solid #ffffff12;
  transition: transform .6s;
}
.glance-card:hover { border-color: var(--accent); box-shadow: 0 22px 46px #0006 }
.glance-card:hover::after { transform: scale(1.25) }

.glance-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 12px 26px #FF993340;
}
.glance-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }

.glance-num {
  position: relative;
  z-index: 1;
  display: block;
  margin: 20px 0 6px;
  font: 600 clamp(2.8rem, 4.6vw, 3.8rem)/1 var(--font-heading);
  color: var(--accent);
  letter-spacing: -.02em;
}
.glance-label { position: relative; z-index: 1; font: 600 .74rem var(--font-body); letter-spacing: .14em; text-transform: uppercase }
.glance-card p { position: relative; z-index: 1; margin: 10px 0 0; color: #C9D3E8; font-size: .94rem; line-height: 1.55 }
.glance-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0 }
.glance-chips li { padding: 4px 10px; border: 1px solid #ffffff33; border-radius: 20px; background: #ffffff10; color: #E6ECF7; font-size: .78rem }

.glance-card--feature { background: linear-gradient(135deg, #F7941D, #E5700A); border-color: transparent }
.glance-card--feature::after { border-color: #ffffff2b }
.glance-card--feature .glance-icon { background: var(--navy); color: var(--accent); box-shadow: 0 12px 26px #0B1F3A55 }
.glance-card--feature .glance-num { color: #fff }
.glance-card--feature p { color: #FFF3E3 }
.glance-card--feature:hover { border-color: #fff }

.career-intro__title { margin: 0 0 20px; font: 600 1.5rem/1.2 var(--font-heading) }
.career-intro .btn { margin-top: 26px }

@media (max-width:1080px) { .glance-panel { grid-template-columns: repeat(2, 1fr) } }
@media (max-width:560px) {
  .glance-panel { grid-template-columns: 1fr; padding: 14px; border-radius: 26px; margin-bottom: 56px }
}

/* Career: single-column layout (intro as a horizontal band) */
.career-grid { grid-template-columns: 1fr; gap: 40px }
.career-intro {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}
.career-intro__title { margin: 0 }
.career-orgs { grid-template-columns: repeat(2, minmax(220px, 1fr)); flex: 1 1 460px; max-width: 640px }
.career-orgs li { background: var(--card) }
.career-intro .btn { margin-top: 0 }
@media (max-width:620px) { .career-orgs { grid-template-columns: 1fr } }

/* Career: org descriptions, tighter spacing now the timeline is gone */
.glance-panel { margin-bottom: 40px }
.career-orgs li { padding: 16px 20px }
.career-orgs p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.55 }
@media (max-width:560px) { .glance-panel { margin-bottom: 32px } }

/* =====================================================
   Awards: issuer logos in the medals
   ===================================================== */
.awd-medal--logo { background: #fff; box-shadow: 0 0 0 6px var(--soft), 0 0 0 8px var(--accent), 0 16px 30px #0B1F3A26 }
.awd-medal--logo img { width: 72px; height: 72px; border-radius: 50%; object-fit: contain; display: block }

/* =====================================================
   Gallery: tabs + photo grid + lightbox
   ===================================================== */
.gal { background: var(--bg) }
.gal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px }
.gal-tab {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  color: var(--ink);
  font: 500 .9rem var(--font-body);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.gal-tab:hover { border-color: var(--accent); transform: translateY(-2px) }
.gal-tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--navy); font-weight: 600; box-shadow: 0 10px 22px #FF993340 }

.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px }
.gal-grid [hidden] { display: none }
.gal-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy2), var(--navy));
  cursor: zoom-in;
  box-shadow: 0 14px 34px #0B1F3A22;
  transition: transform .35s, box-shadow .35s;
}
.gal-item:hover, .gal-item:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 48px #0B1F3A44 }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.06) }
.gal-item.is-missing img { display: none }
.gal-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 18px 16px;
  color: #fff;
  text-align: left;
  font: 600 1rem/1.3 var(--font-heading);
  background: linear-gradient(180deg, transparent, #0B1F3AE6);
}
.gal-cap::before { content: ""; display: block; width: 30px; height: 3px; background: var(--accent); margin-bottom: 8px }

.gal-lightbox {
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.gal-lightbox::backdrop { background: #050E1Ceb; backdrop-filter: blur(4px) }
.gal-lightbox[open] { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 12px }
.gal-lightbox figure { grid-column: 2; grid-row: 1; margin: 0 }
.gal-lightbox__img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; background: #0B1F3A }
.gal-lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font: 500 1rem var(--font-body) }
.gal-lightbox__count { color: #B9C4DE; white-space: nowrap }
.gal-prev, .gal-next, .gal-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  background: #ffffff1a;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.gal-prev:hover, .gal-next:hover, .gal-close:hover { background: var(--accent); color: var(--navy); border-color: var(--accent) }
.gal-prev { grid-column: 1; grid-row: 1 }
.gal-next { grid-column: 3; grid-row: 1 }
.gal-close { position: absolute; right: 0; top: -60px; z-index: 2 }

@media (max-width:620px) {
  .gal-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin }
  .gal-tab { white-space: nowrap; flex: none }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px }
  .gal-cap { font-size: .85rem; padding: 28px 12px 12px }
  .gal-lightbox[open] { grid-template-columns: 1fr 1fr; gap: 12px }
  .gal-lightbox figure { grid-column: 1 / 3; grid-row: 1 }
  .gal-prev { grid-column: 1; grid-row: 2; justify-self: end }
  .gal-next { grid-column: 2; grid-row: 2; justify-self: start }
}

/* Career now follows the (white) gallery, so it takes the soft background */
.career { background: var(--soft) }
.career-intro { background: var(--card) }
.career-orgs li { background: var(--soft) }


/* =====================================================
   Multi-page additions (formerly multipage.css)
   ===================================================== */
.nav-links a[aria-current="page"]{opacity:1}
.nav-links a[aria-current="page"]::after{width:100%}
.home-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* Inner pages: solid header and a compact banner instead of the full hero */
/* body.inner .site-header{background:#0B1F3Af2;backdrop-filter:blur(12px);box-shadow:0 8px 30px #0006} */
.page-hero{position:relative;background:var(--navy);color:#fff;overflow:hidden;padding:150px 0 72px}
.page-hero::before{content:"";position:absolute;right:-120px;top:-150px;width:420px;height:420px;border-radius:50%;border:60px solid #FF99331f;pointer-events:none}
.page-hero::after{content:"";position:absolute;right:16%;bottom:-70px;width:150px;height:150px;border-radius:50%;border:20px solid #ffffff10;pointer-events:none}
.page-hero .container{z-index:1}
.page-hero .sec-eyebrow{color:var(--accent)}
.page-hero h1{margin:0;font:500 clamp(2.2rem,5vw,3.6rem)/1.08 var(--font-heading);letter-spacing:-.015em;max-width:18ch}
.page-hero p{margin:18px 0 0;max-width:56ch;color:#D3DBEC;font-size:1.1rem;line-height:1.7}
@media (max-width:980px){.page-hero{padding:120px 0 56px}}
/* Page hero variants */

/* 1. Solid background */
.page-hero--solid{background:var(--navy)}

/* 2. Gradient background */
.page-hero--gradient{
  background:
    radial-gradient(60% 90% at 100% 0,#FF99332e,transparent 65%),
    linear-gradient(135deg,#0B1F3A 0%,#16335A 60%,#1B4F96 100%)
}

/* 3. Image background: image is set inline, overlay comes from CSS */
.page-hero--image{
  background-color:var(--navy);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat
}
.page-hero--image::before{
  inset:0;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  background:linear-gradient(90deg,#08162Bf0 0%,#0B1F3Ab8 45%,#0B1F3A80 100%)
}