/* ==========================================================================
   Dr. Hassnah Omar Dammas — Executive Portfolio
   Mobile-first. No framework. No build step.
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ivory: #F8F6F1;
  --ivory-2: #F1EDE4;
  --paper: #FFFFFF;
  --navy: #17283D;
  --navy-2: #1F3550;
  --navy-ink: #0F1C2B;
  --gold: #B39A70;
  --gold-deep: #7A6442;   /* AA-contrast gold for text on light backgrounds */
  --sage-text: #56695F;   /* AA-contrast sage for small text */
  --gold-soft: #D9C9AA;
  --sage: #677C76;
  --sage-soft: #DCE3DF;
  --ink: #1B2736;
  --muted: #55606C;
  --line: rgba(23, 40, 61, .14);
  --line-light: rgba(248, 246, 241, .18);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --maxw: 72rem;
  --radius: 2px;
  --header-h: 4rem;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-h2: clamp(2.1rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-hero: clamp(2.9rem, 1.9rem + 5.2vw, 6.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + .5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
button { font: inherit; color: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--navy); color: var(--ivory); padding: .75rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.5rem;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-sm { min-height: 2.5rem; padding: .55rem 1rem; font-size: .72rem; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: .75rem 0; min-height: 44px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 246, 241, .9);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap { height: 100%; max-width: 84rem; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  font-family: var(--serif); font-size: .95rem; font-style: italic; letter-spacing: .02em;
  color: var(--navy); border: 1px solid var(--gold); border-radius: 50% 50% 2px 2px;
}
.brand-text { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); white-space: nowrap; }
.primary-nav { display: none; }
.nav-card { display: none; }

.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; position: relative; z-index: 120; }
.menu-bars { width: 22px; height: 10px; position: relative; display: block; }
.menu-bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--navy); transition: transform .35s var(--ease), top .35s var(--ease), background-color .3s; }
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8.5px; }
.menu-open .menu-bars span { background: var(--ivory); }
.menu-open .menu-bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-bars span:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-open .brand { visibility: hidden; }
.menu-open .site-header { z-index: 130; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--navy); color: var(--ivory);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 2rem; overflow-y: auto;
  background-image:
    radial-gradient(circle at 110% 0%, rgba(103,124,118,.45) 0 22%, transparent 22.2%),
    linear-gradient(transparent calc(100% - 1px), var(--line-light) 0);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menuIn .4s var(--ease) both; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-links { counter-reset: none; }
.mobile-links li { border-bottom: 1px solid var(--line-light); }
.mobile-links a {
  display: flex; align-items: baseline; gap: 1rem; padding: .85rem 0; min-height: 44px;
  font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2rem); color: var(--ivory); text-decoration: none;
}
.mobile-links a span { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; color: var(--gold); }
.mobile-menu-note { margin-top: auto; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

@media (min-width: 1024px) {
  .menu-toggle, .mobile-menu { display: none !important; }
  .primary-nav { display: block; }
  .primary-nav ul { display: flex; gap: clamp(1rem, 1.8vw, 2rem); }
  .primary-nav a {
    position: relative; display: inline-block; padding: .5rem 0;
    font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--navy);
  }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-card { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + 1rem) 0 4.5rem;
  background: var(--ivory);
  overflow: hidden;
}
.hero::before { /* faint editorial grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 25%;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; max-width: 84rem; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 1.75rem; }

.hero-visual { position: relative; width: min(78vw, 22rem); margin: 0 auto; aspect-ratio: 4 / 5; }
.hero-geo { position: absolute; inset: -6% -10% 0; width: 120%; height: 106%; overflow: visible; }
.geo-line { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.geo-arch-2 { stroke: rgba(23,40,61,.25); }
.geo-sage { fill: var(--sage); opacity: .22; }
.geo-dot { fill: var(--gold); }
.portrait-frame {
  position: absolute; inset: 0;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 20%, #24405f 0%, var(--navy) 55%, var(--navy-ink) 100%);
  box-shadow: 0 30px 60px -30px rgba(15, 28, 43, .55);
}
.portrait-frame::after { /* soft gold rim light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(179,154,112,.45);
}
.portrait { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: none; height: auto; transform: translateX(-50%); }

.hero-copy { position: relative; text-align: center; padding-top: 2.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: var(--gold); }
.hero-title { font-size: var(--fs-hero); font-weight: 500; letter-spacing: -.015em; line-height: .98; }
.hero-title .t-small { display: block; font-size: .32em; font-style: italic; letter-spacing: .04em; color: var(--sage-text); margin-bottom: .35em; }
.hero-title em { font-weight: 400; color: var(--gold-deep); }
.hero-headline { margin: 1.4rem auto .5rem; max-width: 28rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.hero-tagline { margin: 0 auto 2rem; max-width: 30rem; font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); color: var(--muted); }
.hero-ctas { display: flex; flex-direction: column; gap: .75rem; max-width: 22rem; margin: 0 auto; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-cue span { width: 1px; height: 2.25rem; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--navy); animation: cue 2.4s var(--ease) infinite; }
}
@keyframes cue { to { top: 110%; } }

@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; max-width: none; justify-content: center; }
}
@media (min-width: 960px) {
  .hero { display: flex; align-items: center; padding-bottom: 3rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); width: 100%; }
  .hero-visual { width: min(100%, 30rem); order: 0; }
  .hero-copy { text-align: left; padding-top: 0; }
  .hero-headline, .hero-tagline { margin-left: 0; }
  .hero-ctas { justify-content: flex-start; margin: 0; }
  .eyebrow::after { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2.25rem, 5vw, 4rem); max-width: 46rem; }
.section-index { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
.section-index::after { content: ""; flex: 0 0 3rem; height: 1px; background: var(--gold); }
.section-title { font-size: var(--fs-h2); letter-spacing: -.01em; }
.section-title em { color: var(--gold-deep); font-weight: 400; }
.section-intro { margin: 1.25rem 0 0; font-size: var(--fs-lead); color: var(--muted); max-width: 38rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about::before { content: ""; position: absolute; top: 0; right: 0; width: min(40vw, 22rem); height: min(40vw, 22rem); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 100%; pointer-events: none; }

/* ---------- Dimensions (navy) ---------- */
.dimensions { background: var(--navy); color: var(--ivory); overflow: hidden; }
.dimensions::before { content: ""; position: absolute; left: -12rem; bottom: -12rem; width: 28rem; height: 28rem; border-radius: 50%; border: 1px solid rgba(179,154,112,.28); box-shadow: 0 0 0 3rem rgba(179,154,112,.04), 0 0 0 6rem rgba(179,154,112,.03); pointer-events: none; }
.dimensions .section-title, .dimensions h3 { color: var(--ivory); }
.dimensions .section-title em { color: var(--gold); }
.dimensions .section-index { color: var(--gold); }
.dimensions .section-intro { color: rgba(248,246,241,.72); }

.tab-list { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)) 2rem; padding: 0 var(--gutter) .25rem; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: .65rem;
  min-height: 48px; padding: .7rem 1.1rem; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid var(--line-light); border-radius: 999px; color: rgba(248,246,241,.8);
  font-size: var(--fs-sm); font-weight: 500; transition: all .3s var(--ease);
}
.tab-list [role="tab"]:hover { border-color: var(--gold); color: var(--ivory); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.tab-num { font-family: var(--serif); font-style: italic; font-size: 1rem; min-width: 1.4em; }
.tab-panel { display: grid; gap: 2rem; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 8px; }
.panel-intro h3 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 1rem; }
.panel-intro p { color: rgba(248,246,241,.78); font-size: var(--fs-lead); line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.is-entering .panel-intro { animation: rise .6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .tabs { display: grid; grid-template-columns: 19rem 1fr; gap: 4rem; align-items: start; }
  .tab-list { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--line-light); }
  .tab-list [role="tab"] { border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0; padding: 1.35rem 0; font-family: var(--serif); font-size: 1.25rem; white-space: normal; position: relative; }
  .tab-list [role="tab"]::after { content: "→"; margin-left: auto; font-family: var(--sans); opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); }
  .tab-list [role="tab"][aria-selected="true"] { background: transparent; color: var(--gold); }
  .tab-list [role="tab"][aria-selected="true"]::after, .tab-list [role="tab"]:hover::after { opacity: 1; transform: none; }
  .tab-panel { grid-template-columns: 1fr; min-height: 30rem; }
}

/* ---------- Impact ---------- */
.impact { background: var(--ivory); }

/* ---------- Journey / timeline ---------- */
.journey { background: var(--paper); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.chip { min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: var(--fs-sm); color: var(--navy); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 1px; background: linear-gradient(var(--gold), var(--line) 30%, var(--line) 80%, transparent); }
.tl-item { position: relative; padding-left: 2rem; }
.tl-item[hidden] { display: none; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); transition: background-color .3s; }
.tl-major::before { background: var(--gold); }
.tl-future::before { border-style: dashed; }
.tl-item details { border-bottom: 1px solid var(--line); }
.tl-item summary {
  list-style: none; cursor: pointer; display: grid; gap: .2rem; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; min-height: 44px;
}
.tl-item summary::-webkit-details-marker { display: none; }
.tl-item summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.6rem; width: .55rem; height: .55rem;
  border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.tl-item details[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.tl-item details[open] ~ *, .tl-item details[open] { }
.tl-item details[open]::before { }
.tl-item:has(details[open])::before { background: var(--navy); border-color: var(--navy); }
.tl-year { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.tl-year small { font-weight: 500; letter-spacing: .08em; color: var(--sage-text); margin-left: .3rem; }
.tl-title { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); color: var(--navy); line-height: 1.25; }
.tl-org { font-size: var(--fs-sm); color: var(--muted); }
.tl-item summary:hover .tl-title { color: var(--gold-deep); }
.tl-body { padding: 0 0 1.4rem; color: #3A4654; font-size: .95rem; }
.tl-body p { margin: 0 0 .5rem; }
.tl-body ul li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; }
.tl-body ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .tl-item details[open] .tl-body { animation: rise .45s var(--ease) both; }
}
.timeline-actions { margin-top: 1.5rem; }

@media (min-width: 768px) {
  .timeline::before { left: 10.35rem; }
  .tl-item { padding-left: 12rem; }
  .tl-item::before { left: 10rem; }
  .tl-item summary { display: block; padding-right: 3rem; }
  .tl-item summary > span { display: block; }
  .tl-item summary .tl-year { position: absolute; left: -12rem; top: 1.45rem; width: 8.75rem; text-align: right; }
  .tl-title { margin-bottom: .2rem; }
}

/* ---------- Credentials ---------- */
.credentials { background: var(--ivory-2); }
.designations { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 2.5rem; }
.designations span { font-size: .75rem; font-weight: 600; letter-spacing: .12em; padding: .45rem .8rem; color: var(--navy); border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.pubs { border-top: 1px solid var(--navy); }
.pub { display: grid; grid-template-columns: 3.75rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.pub-year { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-deep); padding-top: .15rem; }
.pub h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.3; margin-bottom: .5rem; }
.pub-authors { font-size: var(--fs-sm); color: var(--muted); margin-bottom: .25rem; }
.pub-authors b { color: var(--navy); font-weight: 600; }
.pub-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 0; line-height: 1.2; min-height: auto; padding: .35rem 0; }
.pub-link::after { content: " ↗"; color: var(--gold-deep); white-space: pre; }
.pub-link:hover { color: var(--gold-deep); }
@media (min-width: 768px) { .pub { grid-template-columns: 8rem 1fr; gap: 2rem; padding: 2rem 0; } .pub-year { font-size: 1.5rem; } }

/* ---------- Connect ---------- */
.connect { background: var(--ivory); }
.connect-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.connect-grid > li { display: grid; }
.connect-card {
  position: relative; display: grid; gap: .25rem; padding: 1.5rem 3.5rem 1.5rem 1.5rem; min-height: 5.5rem;
  text-decoration: none; background: var(--ivory); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.connect-card:hover { background: var(--paper); }
.cc-label { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-text); }
.cc-value { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); color: var(--navy); overflow-wrap: anywhere; }
.cc-arrow { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--gold-deep); transition: transform .3s var(--ease); }
.connect-card:hover .cc-arrow { transform: translate(3px, -50%); }
.connect-primary { background: var(--navy); }
.connect-primary:hover { background: var(--navy-2); }
.connect-primary .cc-value { color: var(--ivory); }
.connect-primary .cc-label, .connect-primary .cc-arrow { color: var(--gold); }
@media (min-width: 768px) {
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid > li:first-child { grid-column: 1 / -1; }
  .connect-primary { min-height: 8rem; padding: 2.25rem 4rem 2.25rem 2.25rem; }
  .connect-primary .cc-value { font-size: 2rem; }
  .connect-card { padding: 1.75rem 4rem 1.75rem 2rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--ivory); padding: clamp(4.5rem, 10vw, 7rem) 0 calc(6rem + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.footer-cta { text-align: center; position: relative; }
.footer-geo { width: 7rem; height: 7rem; margin: 0 auto 1.5rem; fill: none; stroke: var(--gold); stroke-width: 1; }
.footer-title { font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem); color: var(--ivory); margin-bottom: 1rem; }
.footer-title em { color: var(--gold); font-weight: 400; }
.footer-cta p { color: rgba(248,246,241,.75); margin-bottom: 2rem; }
.footer-meta { margin-top: clamp(3.5rem, 8vw, 5.5rem); padding-top: 2rem; border-top: 1px solid var(--line-light); display: grid; gap: 1rem; font-size: var(--fs-sm); color: rgba(248,246,241,.7); }
.footer-meta p { margin: 0; }
.disclaimer { font-size: var(--fs-xs); line-height: 1.6; max-width: 46rem; }
@media (min-width: 768px) {
  .footer-meta { grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: start; }
  .site-footer { padding-bottom: 3rem; }
}

/* ---------- Floating mobile action ---------- */
.fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.1rem;
  background: var(--navy); color: var(--ivory); border: 1px solid rgba(179,154,112,.6); border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(15,28,43,.55);
  opacity: 0; transform: translateY(1.5rem); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.fab .ico { color: var(--gold); }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1024px) { .fab { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 150; transform: translateX(-50%);
  width: min(92vw, 26rem); padding: .9rem 1.1rem; text-align: center;
  background: var(--ink); color: var(--ivory); font-size: var(--fs-sm); border-left: 3px solid var(--gold);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.toast[hidden] { display: none; }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero .reveal { transition-duration: 1s; }
  .js .hero .reveal:nth-child(2) { transition-delay: .08s; }
  .js .hero .reveal:nth-child(3) { transition-delay: .16s; }
  .js .hero .reveal:nth-child(4) { transition-delay: .24s; }
  .js .hero .reveal:nth-child(5) { transition-delay: .32s; }
  .js .hero .reveal:nth-child(6) { transition-delay: .4s; }
  .js .geo-arch-1, .js .geo-arch-2 { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s .2s var(--ease) forwards; }
  .js .geo-arch-2 { animation-delay: .5s; }
  .js .portrait-frame { animation: portraitIn 1.2s var(--ease) both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes portraitIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Editorial review mode (append ?review to the URL) ---------- */
.review-mode [data-verify] { outline: 2px dashed #C0392B; outline-offset: 2px; position: relative; }
.review-mode [data-verify]::after {
  content: "⚑ VERIFY: " attr(data-verify);
  display: block; margin-top: .4rem; padding: .4rem .6rem; font: 500 .72rem/1.4 var(--sans); letter-spacing: 0; text-transform: none;
  background: #FDECEA; color: #7B1E14; border-left: 3px solid #C0392B; position: static; width: auto; height: auto; border-radius: 0; opacity: 1; transform: none;
}
.review-banner { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 95; background: #7B1E14; color: #fff; font-size: .8rem; text-align: center; padding: .4rem 1rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .fab, .scroll-cue, .mobile-menu, .toast, .filters, .timeline-actions { display: none !important; }
  .hero { min-height: auto; }
  .tl-body { display: block !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .dimensions, .site-footer, .connect-primary { background: #fff !important; color: #000 !important; }
  .tab-panel[hidden] { display: grid !important; }
}

/* ---------- Tight desktop range (1024–1199px) ---------- */
.btn { white-space: nowrap; }
.hero-ctas { flex-wrap: wrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .brand-text { display: none; }
  .primary-nav ul { gap: 1.1rem; }
  .hero-ctas .btn { padding-left: 1.15rem; padding-right: 1.15rem; }
}

/* ==========================================================================
   v2 — Editorial chapters & photography
   ========================================================================== */

/* Hero tweaks */
.hero .eyebrow { letter-spacing: .18em; }
.hero-headline { max-width: 32rem; }

/* 30-second summary band */
.glance { background: var(--navy); color: var(--ivory); padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; }
.glance::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.glance-grid { display: grid; gap: 1.5rem; }
.glance-grid li { padding-top: 1rem; border-top: 1px solid var(--line-light); }
.glance-k { display: block; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold); margin-bottom: .4rem; }
.glance-grid p { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(248,246,241,.82); }
@media (min-width: 768px) { .glance-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
@media (min-width: 1200px) { .glance-grid { grid-template-columns: repeat(4, 1fr); } }

/* Chapter 02 — About with office portrait */
.about-layout { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 0 0 0 0; box-shadow: 0 30px 60px -35px rgba(15,28,43,.5); }
.photo-rule { position: absolute; left: -1rem; top: 1.5rem; bottom: -1rem; width: 1px; background: var(--gold); }
.photo-rule::after { content: ""; position: absolute; left: 0; bottom: 0; width: 4rem; height: 1px; background: var(--gold); }
.about-copy .section-head { margin-bottom: 1.5rem; }
.about-copy .lead { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.3; color: var(--navy); margin-bottom: 1rem; }
.about-copy p { color: #33404E; max-width: 36rem; }
.principles { margin: 2rem 0; }
.principles-title, .current-title { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .75rem; }
.principles li { display: grid; grid-template-columns: 2rem 1fr; padding: .85rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: #3A4654; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li > span { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.principles b { color: var(--navy); font-weight: 600; }
.current { margin-top: 2rem; padding: 1.5rem; background: var(--ivory); border-left: 2px solid var(--gold); }
.current ul { display: grid; gap: .4rem; }
.current li { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
@media (min-width: 768px) {
  .about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-photo { position: sticky; top: calc(var(--header-h) + 2rem); }
  .about-photo img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1200px) {
  .about-layout { grid-template-columns: 1.15fr 1fr; }
  .about-photo img { aspect-ratio: 3 / 2.4; }
}

/* Expandable "more" details */
.more { margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--gold-deep); transition: transform .3s var(--ease); }
.more[open] > summary::after { transform: rotate(45deg); }
.more-body { padding-bottom: 1rem; }
.more-body p { font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .more[open] > *:not(summary) { animation: rise .45s var(--ease) both; } }

/* Credentials as compact accordions inside the Journey */
.credentials { background: transparent; margin-top: clamp(3.5rem, 8vw, 5.5rem); padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.sub-title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 1.5rem; }
.sub-title em { color: var(--gold-deep); font-weight: 400; }
.credentials .designations { margin: 0 0 2rem; }
.cred-accordion { display: grid; gap: .75rem; }
.cred-group { background: var(--ivory); border-top: 2px solid var(--navy); }
.cred-group > summary { list-style: none; cursor: pointer; min-height: 56px; padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.cred-group > summary::-webkit-details-marker { display: none; }
.cred-group > summary span { margin-left: auto; font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; min-width: 1.9rem; height: 1.9rem; display: grid; place-items: center; }
.cred-group > summary::after { content: ""; width: .5rem; height: .5rem; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); transition: transform .3s var(--ease); margin-left: .5rem; }
.cred-group[open] > summary::after { transform: rotate(-135deg); }
.cred-group ul { padding: 0 1.25rem 1rem; }
.cred-group li { padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; }
.cred-group li b { color: var(--navy); font-weight: 600; }
.cred-group li span { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--muted); }
@media (min-width: 1024px) {
  .cred-accordion { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

/* Chapter 05 — image-and-text features */
.knowledge { background: var(--ivory); }
.feature { display: grid; gap: 1.75rem; align-items: center; margin-bottom: clamp(4rem, 9vw, 7rem); }
.feature:last-child { margin-bottom: 0; }
.feature-photo { margin: 0; position: relative; }
.feature-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 15%; }
.feature-photo::after { content: ""; position: absolute; right: -.75rem; bottom: -.75rem; width: 45%; height: 45%; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); pointer-events: none; }
.feature-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-text); margin-bottom: .75rem; }
.feature-copy h3 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); margin-bottom: 1rem; }
.feature-copy > p { color: #33404E; max-width: 34rem; }
.feature-copy .note { font-size: var(--fs-sm); color: var(--muted); font-style: italic; }
.feature-sage { background: var(--sage); color: var(--ivory); padding: clamp(1.5rem, 4vw, 3rem); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.feature-sage .feature-label { color: var(--ivory); opacity: .85; }
.feature-sage h3 { color: var(--ivory); }
.feature-sage .feature-copy > p { color: rgba(248,246,241,.9); }
.feature-sage .note { color: rgba(248,246,241,.8); }
.feature-sage .feature-photo::after { border-color: var(--ivory); opacity: .6; }
.knowledge .pubs { border-top: 0; }
.knowledge .pub { grid-template-columns: 3.25rem 1fr; padding: 1.1rem 0; }
.knowledge .pub h4 { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1.35; color: var(--navy); margin: 0 0 .35rem; }
.knowledge .pub-authors { font-size: .8125rem; }
.knowledge .pub-year { font-size: 1rem; }
@media (min-width: 768px) {
  .feature { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5.5rem); }
  .feature-reverse .feature-photo { order: 2; }
  .feature-photo img { aspect-ratio: 4 / 5; }
  .feature-sage { margin-left: 0; margin-right: 0; }
}

/* Impact: 6 cards — 3-column rhythm */
@media (min-width: 1024px) {
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .impact-grid > :nth-child(6) { grid-column: span 2; } }
/* Connect: primary card + three secondary cards */
@media (min-width: 768px) {
  .connect-grid { grid-template-columns: repeat(3, 1fr); }
  .connect-grid > li:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   v3 — Final refinement
   ========================================================================== */

/* Impact in Action — three pillars */
.pillars { display: grid; gap: 1.25rem; }
.pillar {
  position: relative; background: var(--paper); padding: 2rem 1.5rem 1.75rem;
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.pillar::before { /* gold rule that extends on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 3.5rem; background: var(--gold);
  transition: width .6s var(--ease);
}
.pillar::after { /* faint arch watermark */
  content: ""; position: absolute; right: -2.5rem; top: -2.5rem; width: 9rem; height: 11rem;
  border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .18; pointer-events: none;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.pillar-head { margin-bottom: 1.25rem; }
.pillar-num { display: block; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--gold-deep); margin-bottom: .35rem; }
.pillar-verb { font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.4rem); font-style: italic; font-weight: 400; color: var(--navy); line-height: 1; }
.pillar-sub { margin: .6rem 0 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-text); }
.pillar-list li { padding: .95rem 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.5; color: #3A4654; }
.pillar-list b { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.3; color: var(--navy); margin-bottom: .15rem; }
.pi-meta { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .35rem; }
.pillar-note { margin: .5rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line-light); font-family: var(--serif); font-style: italic; font-size: .95rem; }
.pillar-dark { background: var(--navy); border-color: var(--navy); }
.pillar-dark .pillar-verb, .pillar-dark .pillar-list b { color: var(--ivory); }
.pillar-dark .pillar-num, .pillar-dark .pi-meta, .pillar-dark .pillar-note { color: var(--gold); }
.pillar-dark .pillar-sub { color: var(--gold-soft); }
.pillar-dark .pillar-list li { border-color: var(--line-light); color: rgba(248,246,241,.78); }
.pillar-dark::after { opacity: .3; }
@media (hover: hover) {
  .pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15,28,43,.45); border-color: rgba(179,154,112,.55); }
  .pillar:hover::before { width: 100%; }
  .pillar:hover::after { opacity: .35; transform: translateY(6px); }
}
.pillar:focus-within::before { width: 100%; }
@media (min-width: 768px) and (max-width: 1023px) {
  .pillar { display: grid; grid-template-columns: 13rem 1fr; column-gap: 2rem; padding: 2.25rem 2rem; }
  .pillar-head { margin: 0; }
  .pillar-note { grid-column: 2; }
}
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
  .pillar { padding: 2.5rem 2rem 2rem; }
  .pillar-dark { transform: translateY(-1rem); }
  .pillar-dark:hover { transform: translateY(calc(-1rem - 4px)); }
}

/* Four Dimensions — focus areas instead of repeated achievements */
.panel-focus { padding-top: 1.25rem; border-top: 1px solid var(--line-light); }
.focus-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.focus-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.focus-list li { padding: .5rem .95rem; border: 1px solid var(--line-light); border-radius: 999px; font-size: .875rem; color: var(--ivory); }
.panel-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-soft); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid rgba(179,154,112,.5); }
.panel-link:hover { color: var(--ivory); border-color: var(--ivory); }
@media (min-width: 1024px) { .tab-panel { min-height: 22rem; align-content: start; } }

/* Speaking — proposed topics */
.topics-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 1.5rem 0 .25rem; }
.topic-list { counter-reset: topic; margin-bottom: 1.25rem; }
.topic-list li { counter-increment: topic; position: relative; padding: .8rem 0 .8rem 2.4rem; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.topic-list li::before { content: counter(topic, decimal-leading-zero); position: absolute; left: 0; top: .95rem; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--gold-deep); }
.topic-list b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--navy); line-height: 1.3; }
.topic-list span { display: block; font-size: .875rem; color: var(--muted); margin-top: .1rem; }
@media (hover: hover) { .topic-list li:hover { padding-left: 2.8rem; } }

/* Mobile hero: bring both CTAs into the first screen */
.hide-sm { display: none; }
@media (min-width: 600px) { .hide-sm { display: inline; } }
@media (max-width: 959px) {
  .hero { padding-bottom: 3.5rem; }
  .hero-visual { width: min(64vw, 20rem); }
  .hero-copy { padding-top: 1.5rem; }
  .eyebrow { margin-bottom: .6rem; }
  .hero-headline { margin-top: 1rem; }
  .hero-tagline { margin-bottom: 1.5rem; }
}

/* Timeline filters: one swipeable row on small screens */
@media (max-width: 599px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 2rem; padding: 0 var(--gutter) .25rem; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
}

/* Floating button: never cover the final content */
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); } }

@media (max-width: 599px) {
  .hero .eyebrow { display: none; }              /* headline already states "Physician Executive" */
  .hero-visual { width: min(58vw, 18rem); }
  .hero-copy { padding-top: 1.25rem; }
}
.pillar-verb { font-size: clamp(2.3rem, 1.7rem + 1.5vw, 2.9rem); overflow-wrap: anywhere; }
.pillar-list b { margin-bottom: .25rem; }
/* Hero portrait entrance: transform only, so it never delays first paint */
@keyframes portraitIn { from { transform: translateY(14px) scale(.985); } to { transform: none; } }
/* Hero portrait entrance: transform only, so it never delays first paint */
@keyframes portraitIn { from { transform: translateY(14px) scale(.985); } to { transform: none; } }
@media (max-width: 959px) { .hero::before { display: none; } }   /* keep grid lines off the text on phones */

/* ---------- Floating back-to-top ----------
   Bottom-left on phones/tablets (Save Contact owns bottom-right there);
   bottom-right on desktop, where the Save Contact button is not shown. */
.to-top-fab {
  position: fixed; z-index: 90;
  left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(248,246,241,.92); color: var(--navy); border: 1px solid rgba(179,154,112,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -12px rgba(15,28,43,.45); text-decoration: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.to-top-fab .ico { width: 1.25rem; height: 1.25rem; }
.to-top-fab:hover { background: var(--navy); color: var(--ivory); }
.js .to-top-fab:not(.is-visible) { opacity: 0; transform: translateY(1rem); pointer-events: none; }
@media (min-width: 1024px) {
  .to-top-fab { left: auto; right: max(1.5rem, env(safe-area-inset-right)); bottom: 1.5rem; }
}
/* keep the last footer line clear of the floating buttons on small screens */
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   v4 — LBS Executive MBA feature & Sustainable Healthcare feature
   ========================================================================== */

/* ---------- EMBA (end of "Beyond the White Coat") ---------- */
.emba {
  display: grid; gap: 2.5rem; margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--ivory); position: relative;
  border-top: 2px solid var(--navy);
}
.emba::before { content: ""; position: absolute; left: 0; top: -2px; width: 5rem; height: 2px; background: var(--gold); }
.emba-media { position: relative; margin: 0; padding-bottom: 2.25rem; }
.emba-main { margin: 0; }
.emba-main img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 60% 30%; box-shadow: 0 30px 60px -35px rgba(15,28,43,.55); }
.emba-inset {
  position: absolute; right: -.5rem; bottom: 0; width: 34%; max-width: 200px; margin: 0;
  padding: .4rem; background: var(--paper); box-shadow: 0 18px 40px -22px rgba(15,28,43,.55);
}
.emba-inset img { width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; object-position: 50% 30%; }
.emba-caption { position: absolute; left: 0; bottom: 0; margin: 0; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-text); max-width: 58%; }
.emba-eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.emba-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.08; margin-bottom: 1.1rem; }
.emba-title em { display: block; font-weight: 400; color: var(--gold-deep); }
.emba-credential { display: flex; flex-wrap: wrap; gap: .35rem 0; margin-bottom: 1.5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); }
.emba-credential span + span::before { content: "|"; margin: 0 .65rem; color: var(--gold); font-weight: 400; }
.emba-copy > p:not(.emba-eyebrow):not(.emba-credential) { color: #33404E; max-width: 36rem; }
.emba-copy .more { margin-top: 1.5rem; }
@media (min-width: 768px) {
  .emba { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .emba-main img { aspect-ratio: 4 / 3; }
  .emba-inset { right: -1.5rem; bottom: 0; width: 30%; }
}
@media (min-width: 1200px) { .emba-inset { right: -2.5rem; } }
.tl-link { color: var(--gold-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); margin-left: .25rem; }
.tl-link:hover { color: var(--navy); }

/* ---------- Sustainable healthcare (Knowledge & the Future) ---------- */
.sustain {
  position: relative; margin: 0 calc(-1 * var(--gutter)); padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  background: linear-gradient(180deg, rgba(220,227,223,.55), rgba(220,227,223,.2));
  border-top: 1px solid rgba(103,124,118,.35);
}
.sustain::before { content: ""; position: absolute; left: var(--gutter); top: -1px; width: 5rem; height: 2px; background: var(--sage); }
.sustain-lead { display: grid; gap: 2rem; align-items: start; }
.sustain-photo { margin: 0; position: relative; }
.sustain-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 12%; }
.sustain-photo::after { content: ""; position: absolute; left: -.75rem; top: -.75rem; width: 45%; height: 45%; border-left: 1px solid var(--sage); border-top: 1px solid var(--sage); pointer-events: none; }
.sustain-eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-text); margin-bottom: .9rem; }
.sustain-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.08; margin-bottom: 1rem; }
.sustain-title em { display: block; font-weight: 400; color: var(--sage-text); }
.sustain-sub { font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); line-height: 1.45; color: var(--navy); margin-bottom: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--sage); }
.sustain-copy > p:not(.sustain-eyebrow):not(.sustain-sub) { color: #33404E; max-width: 38rem; font-size: .98rem; }
.sustain-quote { margin: 1.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(103,124,118,.4); }
.sustain-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.4; color: var(--navy); margin-bottom: .6rem; }
.sustain-quote footer { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-text); }
.sustain-themes { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.theme { position: relative; background: var(--paper); padding: 1.75rem 1.5rem 1.5rem; border-top: 2px solid var(--sage); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.theme-num { position: absolute; right: 1.25rem; top: 1.1rem; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: rgba(103,124,118,.45); }
.theme-label { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-text); margin-bottom: .5rem; padding-right: 2.5rem; }
.theme h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--navy); margin: 0 0 .75rem; }
.theme p:not(.theme-label) { font-size: .92rem; line-height: 1.6; color: #3A4654; margin-bottom: .6rem; }
.theme p:last-child { margin-bottom: 0; }
.theme-note { font-style: italic; color: var(--sage-text) !important; }
@media (hover: hover) { .theme:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(15,28,43,.4); } }
.sustain-edu { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(103,124,118,.4); background: rgba(255,255,255,.55); display: grid; gap: .3rem; }
.sustain-edu-label { margin: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-text); }
.sustain-edu-text { margin: 0; font-size: .95rem; color: var(--navy); }
.sustain-edu-text span { display: block; font-size: .8125rem; color: var(--muted); }
@media (min-width: 768px) {
  .sustain { margin: 0; padding: clamp(2.5rem, 5vw, 4rem); }
  .sustain::before { left: clamp(2.5rem, 5vw, 4rem); }
  .sustain-lead { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .sustain-photo img { aspect-ratio: 4 / 5; }
  .sustain-photo { position: sticky; top: calc(var(--header-h) + 2rem); }
  .sustain-edu { grid-template-columns: auto 1fr; align-items: baseline; gap: 1.5rem; }
  .sustain-edu-text span { display: inline; margin-left: .75rem; }
}
@media (min-width: 1024px) { .sustain-themes { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
/* EMBA credential line: separators trail each item, so a wrapped line never starts with "|" */
.emba-credential span + span::before { content: none; }
.emba-credential span { white-space: nowrap; }
.emba-credential span:not(:last-child)::after { content: "|"; margin: 0 .65rem; color: var(--gold); font-weight: 400; }
.emba-main img { object-position: 50% 40%; }
/* Sustainability themes: swipeable row below desktop, three columns from 1024px */
@media (max-width: 1023px) {
  .sustain-themes {
    display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) .75rem; scroll-padding-left: var(--gutter); scrollbar-width: thin;
  }
  .theme { flex: 0 0 min(84%, 22rem); scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .sustain-themes { margin-left: calc(-1 * clamp(2.5rem, 5vw, 4rem)); margin-right: calc(-1 * clamp(2.5rem, 5vw, 4rem)); padding-left: clamp(2.5rem, 5vw, 4rem); padding-right: clamp(2.5rem, 5vw, 4rem); scroll-padding-left: clamp(2.5rem, 5vw, 4rem); }
  .theme { flex-basis: 46%; }
}
.sustain-themes:focus-visible { outline-offset: 4px; }
