/* ==========================================================================
   Aneeka Kazmi Portfolio — styles.css
   Mobile-first. Sections:
   1. Design tokens   2. Base & reset   3. Layout utilities   4. Buttons
   5. Header/nav      6. Hero           7. Section labels      8. About
   9. Expertise      10. Case studies  11. Modal             12. AI & credentials
  13. Timeline       14. Contact & form 15. Footer & to-top   16. Motion
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #0B132B;
  --navy-800: #101D42;
  --navy-700: #1A2A5A;
  --canvas: #F8F9FA;
  --white: #FFFFFF;
  --gold: #E5A93C;          /* decorative + text on navy only */
  --gold-ink: #9A6510;      /* AA-safe gold for text on light backgrounds */
  --teal: #2EC4B6;          /* decorative + text on navy only */
  --teal-ink: #0E7C72;      /* AA-safe teal for text on light backgrounds */
  --ink: #1E293B;
  --muted: #64748B;         /* 4.76:1 on white */
  --muted-on-navy: #A9B4CC;
  --line: #E2E8F0;
  --line-navy: rgba(255, 255, 255, 0.12);
  --danger: #B42318;
  --success: #067647;

  /* Typography */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.35rem, 1.45rem + 4vw, 4.6rem);
  --fs-label: clamp(3.5rem, 2rem + 6vw, 7.5rem);

  /* Spacing & shape */
  --gutter: 1.25rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 43, 0.06), 0 2px 8px rgba(11, 19, 43, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 19, 43, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- 2. Base & reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; 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: -100px; z-index: 200;
  background: var(--gold); color: var(--navy-900); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gold-ink);
}

/* ---------- 3. Layout utilities ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy .accent-serif { color: var(--gold); }
.section--alt { background: var(--white); }

.split { display: grid; gap: 2.5rem; }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; gap: 1.25rem; }
.section-head--row { align-items: end; }

@media (min-width: 900px) {
  :root { --gutter: 2.5rem; }
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; }
  .split__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .section-head--row { grid-template-columns: 1fr auto; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  border-radius: 999px; border: 2px solid transparent; text-decoration: none;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--navy { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-lg); }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }
.btn--outline:hover svg { transform: translateY(2px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #F0BD5F; box-shadow: 0 10px 30px -10px rgba(229, 169, 60, 0.7); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; gap: 0.4rem; margin-top: 1.5rem;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-arrow:hover { color: var(--teal-ink); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 249, 250, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--navy-900); letter-spacing: 0.02em; text-transform: uppercase; }
.brand__role { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; border-radius: 10px;
}
.nav__toggle-bar { display: block; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu: full-width drop panel */
.nav__menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
  margin: 0; padding: 1rem var(--gutter) 1.5rem; list-style: none;
  background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__link {
  display: block; padding: 0.75rem 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  position: relative;
}
.nav__cta { margin-top: 0.75rem; }

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; flex-direction: row; align-items: center; gap: 1.9rem;
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__link { font-size: 0.92rem; padding: 0.4rem 0; color: var(--ink); }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--navy-900); }
  .nav__cta { margin-top: 0; margin-left: 0.5rem; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); position: relative; overflow: hidden; }
.hero::before { /* soft teal/gold glow for depth */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -10%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.16), transparent 60%);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.9rem; margin-bottom: 1.75rem;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-900); background: var(--white); border: 1px solid var(--line); border-radius: 999px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(46, 196, 182, 0); } }

.hero__title { font-size: var(--fs-h1); font-weight: 800; color: var(--navy-900); letter-spacing: -0.035em; margin-bottom: 1.5rem; text-wrap: balance; }
.hero__lead { font-size: var(--fs-lead); color: #3A475C; max-width: 36rem; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__portrait { margin: 0; position: relative; justify-self: center; width: min(100%, 420px); }
.portrait-frame {
  position: relative; border-radius: var(--radius-lg) var(--radius-lg) 160px var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800); box-shadow: var(--shadow-lg);
}
.portrait-frame::after { /* gold offset frame line */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease); }
.hero__portrait:hover .portrait-frame img { transform: scale(1.03); }
.hero__portrait::before { /* decorative offset outline */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 2px solid var(--gold); border-radius: var(--radius-lg) var(--radius-lg) 160px var(--radius-lg);
}

.glass-badge {
  position: absolute; left: -0.5rem; bottom: 1.5rem; right: 2.5rem;
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1rem; font-size: 0.82rem; line-height: 1.4; color: var(--white);
  background: rgba(11, 19, 43, 0.62); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 30px -10px rgba(11, 19, 43, 0.5);
  animation: float 6s ease-in-out infinite;
}
.glass-badge strong { display: block; color: var(--gold); font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.15rem; }
.glass-badge__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(46, 196, 182, 0.2); color: var(--teal); }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; }
  .hero__portrait { justify-self: end; }
  .glass-badge { left: -3rem; }
}

/* Metric strip */
.metrics { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); background: var(--navy-900); color: var(--white); }
.metrics__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.metric { padding: 1.75rem 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; border-bottom: 1px solid var(--line-navy); }
.metric:nth-child(odd) { border-right: 1px solid var(--line-navy); padding-right: 1rem; }
.metric:nth-child(even) { padding-left: 1.25rem; }
.metric__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); letter-spacing: -0.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.metric__label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-navy); }
@media (min-width: 768px) {
  .metrics__grid { grid-template-columns: repeat(4, 1fr); }
  .metric { border-bottom: 0; padding: 2.5rem 1.5rem; border-right: 1px solid var(--line-navy); }
  .metric:nth-child(odd), .metric:nth-child(even) { padding: 2.5rem 1.5rem; }
  .metric:first-child { padding-left: 0; }
  .metric:last-child { border-right: 0; }
}

/* ---------- 7. Section labels & titles ---------- */
.section-label { display: flex; flex-direction: column; gap: 0.25rem; }
.section-label__num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-label); line-height: 0.85;
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--navy-900);
}
.section-label__name { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-ink); }
.section-label--light .section-label__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }
.section-label--light .section-label__name { color: var(--teal); }

.section-title { font-size: var(--fs-h2); font-weight: 800; color: var(--navy-900); letter-spacing: -0.03em; text-wrap: balance; max-width: 22ch; }
.section-title--light { color: var(--white); }
.subhead { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: clamp(3rem, 2rem + 3vw, 5rem) 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- 8. About ---------- */
.about .section-label { position: relative; }
@media (min-width: 900px) { .about .section-label { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.about .section-title { max-width: 24ch; margin-bottom: 2rem; }
.about__columns { display: grid; gap: 0.5rem 2.5rem; color: #3A475C; font-size: 1.05rem; }
@media (min-width: 768px) { .about__columns { grid-template-columns: 1fr 1fr; } }

.showcase { margin: 2.5rem 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.showcase img { width: 100%; aspect-ratio: 1648 / 640; object-fit: cover; transition: transform 1s var(--ease); }
.showcase:hover img { transform: scale(1.02); }
.showcase__caption { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem 1.75rem; border-top: 3px solid var(--gold); }
.showcase__kicker { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.showcase__tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem); color: var(--white); }

/* ---------- 9. Expertise ---------- */
.expertise { overflow: hidden; }
.expertise::before {
  content: ""; position: absolute; left: -20%; bottom: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.12), transparent 60%); pointer-events: none;
}
.cards-grid { display: grid; gap: 1px; background: var(--line-navy); border: 1px solid var(--line-navy); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-card {
  position: relative; padding: 2.25rem 2rem 2.5rem; background: var(--navy-900);
  transition: background-color 0.4s var(--ease);
}
.skill-card::before { /* hover accent line */
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.skill-card:hover, .skill-card:focus-within { background: var(--navy-800); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.5rem;
  border-radius: 14px; background: rgba(46, 196, 182, 0.12); color: var(--teal);
  transition: transform 0.4s var(--ease), background-color 0.4s;
}
.skill-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skill-card:hover .skill-card__icon { transform: translateY(-4px) rotate(-6deg); background: rgba(229, 169, 60, 0.16); color: var(--gold); }
.skill-card__title { font-size: var(--fs-h3); color: var(--white); margin-bottom: 0.75rem; }
.skill-card p { color: var(--muted-on-navy); font-size: 0.95rem; margin: 0; }

/* ---------- 10. Case studies ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: var(--navy-900); }
.filter.is-active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.case-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

.case-card { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.case-card.is-hidden { display: none; }
.case-card__btn {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
  background: var(--white); color: inherit; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.case-card__btn:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.case-card__visual {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: 1.75rem; color: var(--white); overflow: hidden;
}
.case-card__visual::after { /* geometric polygon overlay, nods to the neural logo */
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,0.18) 50%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.12) 50%, transparent 51%);
  border: 1px solid rgba(255,255,255,0.18); transform: rotate(18deg); transition: transform 0.8s var(--ease);
}
.case-card__btn:hover .case-card__visual::after { transform: rotate(45deg) scale(1.1); }
.case-card__visual--navy { background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); }
.case-card__visual--teal { background: linear-gradient(140deg, #0B4F55, #0E7C72); }
.case-card__visual--gold { background: linear-gradient(140deg, #5A3A06, #9A6510); }
.case-card__stat { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; }
.case-card__visual--navy .case-card__stat { color: var(--gold); }
.case-card__stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; margin-top: 0.4rem; }

.case-card__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem 1.75rem 1.75rem; flex: 1; }
.case-card__meta { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); font-weight: 600; }
.case-card__title { font-size: 1.25rem; color: var(--navy-900); }
.case-card__more { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.case-card__more span { display: inline-block; transition: transform 0.3s var(--ease); }
.case-card__btn:hover .case-card__more span { transform: translateX(5px); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); color: #475569; }
.case-empty { text-align: center; color: var(--muted); margin-top: 2rem; }

/* ---------- 11. Modal ---------- */
.modal {
  width: min(760px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(11, 19, 43, 0.6);
}
.modal::backdrop { background: rgba(11, 19, 43, 0.6); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal__inner { position: relative; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.15); color: var(--white); backdrop-filter: blur(8px);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.modal__close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.modal__hero { padding: 2.5rem 2rem 2rem; background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.modal__kicker { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 0.75rem; padding-right: 3rem; }
.modal__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); padding-right: 2rem; }
.modal__stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.modal__stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold); letter-spacing: -0.03em; line-height: 1.1; }
.modal__stat span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-navy); }
.modal__body { padding: 2rem; display: grid; gap: 1.5rem; }
.modal__block h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 0.5rem; }
.modal__block p { margin: 0; color: #3A475C; }
.modal__block ul { margin: 0; padding-left: 1.1rem; color: #3A475C; }
.modal__block li { margin-bottom: 0.35rem; }
@media (min-width: 700px) { .modal__hero, .modal__body { padding-inline: 2.75rem; } }

/* ---------- 12. AI & credentials ---------- */
.spotlights { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .spotlights { grid-template-columns: 1.15fr 1fr; } }
.spotlight {
  position: relative; padding: 2.25rem; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-900); color: var(--muted-on-navy);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.spotlight::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,182,0.35), transparent 65%);
}
.spotlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.spotlight__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.spotlight__level { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.spotlight__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); color: var(--white); margin-bottom: 0.5rem; }
.spotlight__org { font-weight: 600; color: var(--teal); margin-bottom: 1rem; }
.spotlight p:last-child { margin: 0; position: relative; z-index: 1; }

.spotlight--light { background: var(--canvas); color: #3A475C; border: 1px solid var(--line); }
.spotlight--light .spotlight__title { color: var(--navy-900); }
.spotlight--light .spotlight__org { color: var(--teal-ink); }
.spotlight--light .spotlight__level { color: var(--gold-ink); }
.spotlight--light::after { background: radial-gradient(circle, rgba(229,169,60,0.25), transparent 65%); }

.pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pill--live { background: rgba(46,196,182,0.15); color: var(--teal); }
.spotlight--light .pill--live { color: var(--teal-ink); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.cred-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cred-grid { grid-template-columns: repeat(3, 1fr); } .cred--wide { grid-column: span 3; } }
@media (min-width: 640px) and (max-width: 1023px) { .cred--wide { grid-column: span 2; } }
.cred {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.4rem 1.5rem;
  background: var(--canvas); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.35s var(--ease), background-color 0.3s;
}
.cred:hover { transform: translateY(-3px); border-left-color: var(--teal); background: var(--white); }
.cred__type { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.cred strong { font-family: var(--font-display); color: var(--navy-900); font-size: 1.02rem; line-height: 1.3; }
.cred span:last-child { font-size: 0.88rem; color: var(--muted); }
.cred cite { font-style: italic; }

/* ---------- 13. Timeline ---------- */
.experience .section-title { margin-top: 1.25rem; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(var(--gold), var(--teal), var(--line)); }
.timeline__item { position: relative; padding-bottom: 2.75rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-2rem + 1px); top: 0.35rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--canvas); border: 2px solid var(--gold); transition: background-color 0.3s, transform 0.3s var(--ease);
}
.timeline__item:first-child::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(229,169,60,0.22); }
.timeline__item:hover::before { background: var(--teal); border-color: var(--teal); transform: scale(1.25); }
.timeline__date { display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); font-weight: 700; margin-bottom: 0.5rem; }
.timeline__role { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); color: var(--navy-900); margin-bottom: 0.3rem; }
.timeline__org { color: var(--muted); font-weight: 500; margin-bottom: 0.75rem; }
.timeline__item p:last-child { margin-bottom: 0; }
.timeline__item > p:not(.timeline__org) { color: #3A475C; max-width: 60ch; }

/* ---------- 14. Contact & form ---------- */
.contact__grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.contact .section-title { margin: 1.25rem 0 1.25rem; }
.contact__lead { color: var(--muted-on-navy); font-size: 1.05rem; max-width: 34rem; margin-bottom: 2rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; font-size: 1.02rem; }
.contact-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--line-navy); fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.35s var(--ease); }
.contact-list a:hover { background-size: 100% 2px; }

.contact-form {
  display: grid; gap: 1.15rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem; font: inherit; color: var(--ink);
  background: var(--canvas); border: 1.5px solid #CBD5E1; border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); background: var(--white); box-shadow: 0 0 0 4px rgba(46,196,182,0.2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--success); }
.field__error { min-height: 0; margin: 0; font-size: 0.82rem; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 0.92rem; font-weight: 500; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.form-status:empty { display: none; }
.form-note { margin: 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ---------- 15. Footer & back to top ---------- */
.site-footer { background: var(--navy-900); color: var(--muted-on-navy); border-top: 1px solid var(--line-navy); padding-block: 2rem; font-size: 0.88rem; }
.footer__grid { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer__copy { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--gold); }
@media (min-width: 900px) { .footer__grid { flex-direction: row; justify-content: space-between; align-items: center; } }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 16. Motion: scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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