/*
  FINAL SINGLE STYLESHEET
  Merged from styles.css and homepage.css.

  Load only this file.
  The old homepage rules from styles.css were removed.
*/

:root {
  --paper: #ffffff;
  --paper-soft: #f7faff;
  --paper-blue: #eef5ff;
  --ink: #102640;
  --ink-strong: #071a31;
  --muted: #5e7187;
  --faint: #8b9aae;
  --line: #dce6f1;
  --line-strong: #bfd0e3;
  --blue: #2563eb;
  --blue-dark: #1747b0;
  --cyan: #0ea5e9;
  --teal: #0d9488;
  --violet: #7c3aed;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow-soft: 0 14px 42px rgba(31, 67, 112, 0.08);
  --nav-height: 62px;
  --content-max: 1760px;
}

* { box-sizing: border-box; }
html, body, #react-entry-point, #_dash-app-content { width: 100%; height: 100%; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.app-shell { width: 100%; height: 100dvh; overflow: hidden; background: var(--paper); }
.page-shell { width: 100%; height: calc(100dvh - var(--nav-height)); overflow: auto; background: var(--paper); }

/* Navigation */
.portfolio-navbar {
  width: 100%;
  height: var(--nav-height);
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  z-index: 1000;
}
.nav-container { width: 100%; height: 100%; padding: 0 clamp(14px, 2.2vw, 38px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; padding: 0; }
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--blue);
  background: var(--paper-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name strong { color: var(--ink-strong); font-size: .93rem; letter-spacing: -.015em; }
.brand-name small { color: var(--muted); margin-top: 4px; font-size: .62rem; font-weight: 500; }
.nav-links { gap: 4px; }
.nav-links .nav-link {
  color: var(--muted);
  padding: 8px 11px !important;
  border-radius: 9px;
  font-size: .75rem;
  font-weight: 650;
}
.nav-links .nav-link:hover, .nav-links .nav-link.active { color: var(--blue); background: var(--paper-blue); }
.nav-contact { margin-left: 6px; color: #fff !important; background: var(--blue) !important; }
.nav-contact:hover { background: var(--blue-dark) !important; }
.portfolio-toggler { padding: 5px 7px; border-color: var(--line-strong); }

/* Clean scientific styling retained for domain pages; detailed content comes next. */
h1, h2, h3 { color: var(--ink-strong); }
p { color: var(--muted); line-height: 1.6; }
.content-section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0; }
.section-heading { max-width: 880px; margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; }
.section-eyebrow, .hero-kicker, .story-label, .card-eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .69rem;
  font-weight: 800;
}
.domain-hero {
  width: min(1500px, calc(100% - 26px));
  min-height: 560px;
  margin: 14px auto 0;
  padding: clamp(48px, 7vw, 100px);
  display: grid;
  grid-template-columns: 1fr .78fr;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: linear-gradient(135deg, #fff, var(--paper-soft));
}
.domain-hero h1 { margin: 12px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5.4vw, 5.7rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.domain-hero-icon { margin-right: 14px; color: var(--blue); font-family: Inter, sans-serif; font-size: .24em; vertical-align: middle; }
.domain-hero-copy { max-width: 720px; font-size: 1.05rem; }
.visual-frame { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-soft); }
.animated-svg { width: 100%; height: 100%; object-fit: contain; }
.domain-hero-visual { min-height: 360px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.capability-chip, .tech-chip { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: #355b86; background: #fff; font-size: .72rem; }
.ownership-ribbon { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ownership-stage { min-height: 94px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.ownership-label { color: var(--ink); font-size: .73rem; line-height: 1.25; }
.ownership-check { color: var(--teal); }
.project-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.project-preview-card, .story-panel, .enterprise-experience-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 25px rgba(31,67,112,.035); }
.project-preview-card h3, .enterprise-experience-card h3 { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.mini-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 18px 0; }
.mini-metric { padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.mini-metric span { color: var(--muted); font-size: .65rem; }
.text-link, .artifact-link { color: var(--blue); font-weight: 700; }
.project-story { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 75px 0; border-top: 1px solid var(--line); }
.project-title-block { max-width: 900px; }
.project-title-block h2 { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 500; }
.project-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 36px; }
.story-panel-wide { grid-column: 1 / -1; }
.pipeline { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 10px 0; }
.pipeline-node { min-width: 135px; min-height: 96px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-soft); display: flex; flex-direction: column; justify-content: space-between; font-size: .78rem; }
.pipeline-index { color: var(--blue); font-size: .61rem; font-weight: 800; }
.pipeline-arrow { display: grid; place-items: center; color: var(--blue); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.evidence-metric { min-height: 100px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.evidence-value { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.evidence-label { margin-top: 7px; color: var(--muted); font-size: .68rem; }
.contribution-list { margin: 0; padding-left: 18px; color: var(--muted); }
.media-placeholder { margin-top: 12px; min-height: 120px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--paper-soft); }
.enterprise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.simple-page-hero { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 50px; }
.simple-page-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 500; }

@media (max-width: 1200px) {
  .home-overview { grid-template-columns: 1.22fr 1fr; gap: 20px; }
  .home-domain-body { grid-template-columns: minmax(95px, .72fr) minmax(0, 1.28fr); }
  .home-wordmarks .credibility-wordmark:nth-child(n+7) { display: none; }
  .career-label-column { max-width: 220px; }
}

@media (max-width: 980px) {
  :root { --nav-height: 58px; }
  .brand-name small { display: none; }
  .home-page { padding: 9px 11px; gap: 8px; }
  .home-overview { grid-template-columns: 1.08fr 1fr; gap: 12px; }
  .home-intro h1 { font-size: clamp(1.45rem, 3.5vw, 2.2rem); }
  .home-intro-copy { font-size: .68rem; }
  .home-metric-card { min-height: 48px; padding: 7px; }
  .home-domain-header { grid-template-columns: 1fr; gap: 3px; }
  .home-wordmarks { justify-content: flex-start; }
  .home-wordmarks .credibility-wordmark:nth-child(n+6) { display: none; }
  .home-domain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(3, minmax(0,1fr)); }
  .home-domain-body { grid-template-columns: minmax(90px, .62fr) minmax(0, 1.38fr); }
  .home-domain-copy h2 { font-size: clamp(.86rem, 2vw, 1.15rem); }
  .home-career-strip { grid-template-columns: 150px minmax(0,1fr); gap: 10px; }
  .career-summary { font-size: .55rem; }
  .career-focus { display: none; }
  .domain-hero { grid-template-columns: 1fr; }
  .ownership-ribbon { grid-template-columns: repeat(4,1fr); }
  .enterprise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-height: 54px; }
  .portfolio-navbar .navbar-collapse {
    position: absolute;
    top: calc(var(--nav-height) - 1px);
    left: 0;
    right: 0;
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(31,67,112,.1);
  }
  .nav-contact { margin: 4px 0 0; }
  .home-page { padding: 7px 8px; gap: 6px; background-size: 22px 22px; }
  .home-overview { grid-template-columns: 1fr; gap: 6px; padding: 0; }
  .home-kicker { margin-bottom: 3px; font-size: .49rem; }
  .home-intro h1 { max-width: none; font-size: clamp(1.16rem, 5.2vw, 1.48rem); line-height: 1; }
  .home-intro-copy {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: .56rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .home-hero-links { position: absolute; right: 8px; top: 7px; margin: 0; gap: 4px; }
  .home-link-primary, .home-link-secondary { min-height: 24px; padding: 4px 7px; font-size: .5rem; }
  .home-link-secondary:nth-child(2) { display: none; }

  .home-domain-header { gap: 1px; }
  .home-section-heading { justify-content: space-between; gap: 6px; }
  .home-section-label { font-size: .45rem; }
  .home-section-heading strong { font-size: .48rem; }
  .home-wordmarks { gap: 5px; }
  .home-wordmarks .credibility-wordmark:nth-child(n+5) { display: none; }
  .credibility-wordmark { font-size: .42rem; }
  .credibility-wordmark + .credibility-wordmark::before { margin-right: 5px; }
  .home-domain-grid { gap: 5px; }
  .home-domain-card { padding: 6px; border-radius: 10px; }
  .home-domain-topline { height: 12px; }
  .home-domain-index { font-size: .43rem; }
  .home-domain-eyebrow { font-size: .36rem; }
  .home-domain-body { height: calc(100% - 12px); grid-template-columns: 42% 58%; gap: 5px; }
  .home-domain-gif { border-radius: 7px; }
  .home-domain-copy h2 { font-size: clamp(.64rem, 3.1vw, .82rem); line-height: 1.02; }
  .home-domain-copy p { margin-top: 3px; font-size: .42rem; line-height: 1.18; -webkit-line-clamp: 2; }
  .home-domain-capabilities { gap: 2px; margin-top: 3px; max-height: 17px; }
  .home-domain-capabilities span { padding: 2px 3px; font-size: .32rem; }
  .home-domain-action { display: none; }
  .home-career-strip { min-height: 70px; grid-template-columns: 88px minmax(0,1fr); gap: 6px; padding: 6px; border-radius: 10px; }
  .career-label-column { gap: 3px; }
  .career-summary { font-size: .42rem; line-height: 1.18; }
  .career-timeline { gap: 2px; }
  .career-timeline::before { top: 11px; }
  .career-node { padding-top: 18px; }
  .career-node::before { top: 6px; width: 9px; height: 9px; border-width: 2px; }
  .career-date { font-size: .34rem; }
  .career-company { margin-top: 1px; font-size: .43rem; }
  .career-focus { display: none; }
  .domain-hero { width: calc(100% - 16px); margin-top: 8px; padding: 42px 20px; border-radius: 18px; }
  .domain-hero-visual { min-height: 260px; }
  .content-section, .project-story { width: calc(100% - 26px); padding: 56px 0; }
  .project-preview-grid, .project-story-grid { grid-template-columns: 1fr; }
  .story-panel-wide { grid-column: auto; }
  .ownership-ribbon { grid-template-columns: repeat(2,1fr); }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
}

/* Very short screens: preserve the one-screen desktop layout by compressing spacing. */
@media (max-height: 720px) and (min-width: 768px) {
  .home-page { padding-top: 7px; padding-bottom: 7px; gap: 7px; }
  .home-intro h1 { font-size: clamp(1.45rem, 2.2vw, 2.3rem); }
  .home-intro-copy { margin-top: 4px; font-size: .68rem; }
  .home-hero-links { margin-top: 6px; }
  .home-link-primary, .home-link-secondary { min-height: 27px; padding: 4px 9px; }
  .home-metric-card { min-height: 43px; padding: 6px 8px; }
  .home-metric-label { margin-top: 3px; }
  .home-career-strip { min-height: 72px; padding-top: 7px; padding-bottom: 7px; }
  .career-node { padding-top: 21px; }
  .career-timeline::before { top: 13px; }
  .career-node::before { top: 7px; }
}

@media (max-height: 610px) and (max-width: 767px) {
  .home-page { gap: 4px; padding-top: 5px; padding-bottom: 5px; }
  .home-intro-copy { -webkit-line-clamp: 1; }
  .home-hero-links { display: none; }
  .home-metric-card { min-height: 31px; padding-top: 3px; padding-bottom: 3px; }
  .home-domain-copy p { -webkit-line-clamp: 1; }
  .home-domain-capabilities { display: none; }
  .home-career-strip { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/*
  FINAL MERGED STYLESHEET
  - One homepage implementation only
  - Shared dark navigation retained
  - Detailed Architecture, Materials, Biomedical, Enterprise,
    Generative AI, and other domain-page styles preserved
  - Duplicate legacy homepage rules removed
*/

/* Homepage v3: white scientific layout, portrait, nine credibility metrics, dark header. */

/* High-contrast scientific header. */
.portfolio-navbar {
  background: #0a1f3b !important;
  border-bottom-color: #17395f !important;
  box-shadow: 0 5px 18px rgba(7, 26, 49, .12);
}
.brand-mark {
  color: #ffffff !important;
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.10) !important;
}
.brand-name strong,
.brand-name small {
  color: #ffffff !important;
}
.brand-name small { opacity: .88; }
.nav-links .nav-link {
  color: rgba(255,255,255,.82) !important;
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  color: #ffffff !important;
  background: rgba(255,255,255,.10) !important;
}
.nav-contact {
  color: #0a1f3b !important;
  background: #ffffff !important;
}
.nav-contact:hover {
  color: #ffffff !important;
  background: #2563eb !important;
}
.portfolio-toggler {
  border-color: rgba(255,255,255,.42) !important;
  background: rgba(255,255,255,.08);
}
.portfolio-toggler .navbar-toggler-icon { filter: invert(1); }

/* Architecture domain: compact, image-led scientific case-study layout. */
.domain-page-architecture {
  background: #f8fafc;
}

.architecture-domain-hero {
  min-height: 410px;
  padding: clamp(34px, 4.5vw, 68px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(24px, 3vw, 46px);
}

.architecture-domain-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 4.7vw, 4.9rem);
}

.architecture-domain-hero .domain-hero-copy {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.architecture-hero-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 66, 112, .08);
}

.architecture-hero-gif {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.architecture-hero-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px 14px;
  gap: 5px;
}

.architecture-hero-workflow span {
  position: relative;
  color: #526982;
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
}

.architecture-hero-workflow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  color: #8ea5bf;
}

.architecture-project-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.architecture-project-jump {
  padding: 6px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #3f5e7e;
  background: rgba(255,255,255,.82);
  font-size: .65rem;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.architecture-project-jump:hover {
  color: var(--blue);
  border-color: #9db8d6;
  transform: translateY(-1px);
}

.architecture-projects-section {
  width: min(1480px, calc(100% - 34px));
  padding: clamp(34px, 4vw, 58px) 0 clamp(52px, 5vw, 80px);
}

.architecture-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 20px;
}

.architecture-section-intro .section-heading {
  max-width: 840px;
  margin: 0;
}

.architecture-section-intro .section-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.architecture-section-intro .section-lede {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.architecture-ownership-summary {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.architecture-ownership-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.architecture-ownership-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.architecture-ownership-inline span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #43617e;
  background: #f1f6fb;
  font-size: .58rem;
  font-weight: 650;
}

.architecture-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.architecture-project-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 82px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(35, 63, 101, .05);
}

.architecture-media-gallery {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef3f8;
}

.architecture-media-gallery-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.architecture-media-gallery-single {
  grid-template-columns: 1fr;
}

.architecture-media-figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f0f4f8;
}

.architecture-media-gallery-dual .architecture-media-figure:first-child {
  border-right: 1px solid rgba(255,255,255,.78);
}

.architecture-media-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.architecture-project-card:hover .architecture-media-image {
  transform: scale(1.018);
}

.architecture-media-figure figcaption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(9, 26, 45, .78);
  font-size: .56rem;
  font-weight: 650;
  backdrop-filter: blur(7px);
}

.architecture-project-content {
  padding: clamp(18px, 2vw, 26px);
}

.architecture-project-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.architecture-project-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cad9e8;
  border-radius: 8px;
  color: var(--blue);
  background: #f3f7fc;
  font-size: .62rem;
  font-weight: 800;
}

.architecture-project-content h2 {
  margin: 11px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.architecture-project-problem {
  margin: 0;
  color: #566b80;
  font-size: .82rem;
  line-height: 1.52;
}

.architecture-system-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6edf4;
}

.architecture-system-block .story-label {
  margin-bottom: 7px;
}

.architecture-system-block .pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 0;
}

.architecture-system-block .pipeline-node {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border-radius: 8px;
  font-size: .58rem;
  line-height: 1.2;
}

.architecture-system-block .pipeline-index {
  font-size: .48rem;
}

.architecture-system-block .pipeline-arrow {
  display: none;
}

.architecture-evidence-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 13px;
}

.architecture-evidence-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0e8f1;
  border-radius: 9px;
  background: #fbfcfe;
}

.architecture-evidence-item strong,
.architecture-evidence-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.architecture-evidence-item strong {
  color: #183a5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
}

.architecture-evidence-item span {
  margin-top: 3px;
  color: #73869a;
  font-size: .5rem;
  line-height: 1.2;
}

.architecture-project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 7px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e6edf4;
}

.architecture-contribution ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #5c7085;
  font-size: .67rem;
  line-height: 1.42;
}

.architecture-contribution li + li {
  margin-top: 3px;
}

.architecture-technology .chip-row {
  margin-top: 8px;
  gap: 5px;
}

.architecture-technology .tech-chip {
  padding: 4px 7px;
  font-size: .56rem;
}

.architecture-artifact-links {
  margin-top: 13px;
}

.architecture-artifact-links .artifact-link {
  font-size: .68rem;
}

@media (max-width: 1120px) {
  .architecture-domain-hero {
    grid-template-columns: 1fr .8fr;
  }

  .architecture-section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .architecture-system-block .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .architecture-domain-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .architecture-hero-visual {
    max-width: 720px;
  }

  .architecture-project-grid {
    grid-template-columns: 1fr;
  }

  .architecture-media-gallery {
    min-height: 290px;
  }

  .architecture-media-image {
    min-height: 290px;
  }
}

@media (max-width: 600px) {
  .architecture-domain-hero {
    width: calc(100% - 16px);
    padding: 28px 18px;
    gap: 20px;
  }

  .architecture-domain-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .architecture-project-jumps {
    display: none;
  }

  .architecture-hero-workflow {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
  }

  .architecture-projects-section {
    width: calc(100% - 20px);
    padding-top: 28px;
  }

  .architecture-section-intro .section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .architecture-media-gallery-dual {
    grid-template-columns: 1fr;
  }

  .architecture-media-gallery-dual .architecture-media-figure:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.78);
  }

  .architecture-media-gallery,
  .architecture-media-image {
    min-height: 220px;
  }

  .architecture-project-content {
    padding: 17px;
  }

  .architecture-system-block .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-project-footer {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}
/* Biomedical AI — clean, compact, screenshot-inspired layout. */
.domain-page-biomedical {
  width: 100%;
  max-width: none;
  background: #ffffff;
}

.biomedical-domain-hero {
  width: 100%;
  max-width: none;
  min-height: 430px;
  margin: 0;
  padding: clamp(34px, 4vw, 58px) max(24px, calc((100vw - 1480px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 66px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(69, 116, 255, .08), transparent 31%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 55%, #f5f9ff 100%);
  box-shadow: none;
}

.biomedical-hero-content {
  min-width: 0;
}

.biomedical-domain-hero .hero-kicker {
  margin-bottom: 14px;
  color: #225eea;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.biomedical-domain-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0f2545;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.4vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.biomedical-domain-hero .domain-hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  color: #4e6580;
  font-size: clamp(.92rem, 1.08vw, 1.08rem);
  line-height: 1.58;
}

.biomedical-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.biomedical-hero-metric {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe7f2;
  border-radius: 11px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 22px rgba(31, 64, 112, .05);
}

.biomedical-hero-metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #bfd2ff;
  border-radius: 8px;
  color: #245fee;
  background: #f3f7ff;
  font-size: .58rem;
  font-weight: 850;
}

.biomedical-hero-metric-copy {
  min-width: 0;
}

.biomedical-hero-metric-copy strong,
.biomedical-hero-metric-copy span {
  display: block;
}

.biomedical-hero-metric-copy strong {
  overflow: hidden;
  color: #102a4d;
  font-size: clamp(.72rem, .88vw, .92rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biomedical-hero-metric-copy span {
  margin-top: 4px;
  color: #6f8298;
  font-size: clamp(.47rem, .56vw, .58rem);
  line-height: 1.2;
}

.biomedical-hero-visual {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.biomedical-hero-image {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.biomedical-projects-section {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 66px;
}

.biomedical-projects-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe7f1;
}

.biomedical-projects-heading .section-eyebrow {
  margin-bottom: 6px;
}

.biomedical-projects-heading h2 {
  position: relative;
  margin: 0;
  color: #102747;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  line-height: 1;
}

.biomedical-projects-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -13px;
  width: 62px;
  height: 3px;
  border-radius: 99px;
  background: #2e67f4;
}

.biomedical-project-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.biomedical-project-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #ced9e8;
  border-radius: 7px;
  color: #17469f;
  background: #ffffff;
  font-size: .67rem;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.biomedical-project-jump span {
  color: #2f68f5;
  font-size: .58rem;
  font-weight: 850;
}

.biomedical-project-jump:hover {
  color: #ffffff;
  background: #2f68f5;
  transform: translateY(-1px);
}

.biomedical-project-jump:hover span {
  color: #ffffff;
}

.biomedical-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.biomedical-project-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  scroll-margin-top: 84px;
  border: 1px solid #dbe4ef;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(30, 58, 97, .05);
}

.biomedical-project-visual-wrap {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-bottom: 1px solid #e0e7f0;
  background: #f6f9fd;
}

.biomedical-project-number-overlay {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
}

.biomedical-project-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #2f68f5;
  box-shadow: 0 6px 16px rgba(47, 104, 245, .25);
  font-size: .62rem;
  font-weight: 850;
}

.biomedical-media-gallery,
.biomedical-media-figure {
  width: 100%;
  height: 100%;
  min-height: 270px;
  margin: 0;
}

.biomedical-media-gallery {
  display: grid;
  overflow: hidden;
  background: #f7faff;
}

.biomedical-media-gallery-single {
  grid-template-columns: 1fr;
}

.biomedical-media-gallery-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.biomedical-media-figure {
  min-width: 0;
  overflow: hidden;
}

.biomedical-media-image {
  width: 100%;
  height: 100%;
  min-height: 270px;
  background-color: #f7faff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .3s ease;
}

.biomedical-project-card:hover .biomedical-media-image {
  transform: scale(1.015);
}

.biomedical-project-content {
  padding: 18px 18px 20px;
}

.biomedical-project-content .section-eyebrow {
  font-size: .58rem;
}

.biomedical-project-content h2 {
  margin: 9px 0 7px;
  color: #112a4b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.85vw, 1.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.biomedical-project-problem {
  margin: 0;
  color: #566d85;
  font-size: .76rem;
  line-height: 1.5;
}

.biomedical-evidence-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.biomedical-evidence-item {
  min-width: 0;
  min-height: 58px;
  padding: 9px 7px;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fbfcff;
  text-align: center;
}

.biomedical-evidence-item strong,
.biomedical-evidence-item span {
  display: block;
}

.biomedical-evidence-item strong {
  overflow: hidden;
  color: #245de5;
  font-size: .76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biomedical-evidence-item span {
  margin-top: 4px;
  color: #6d8094;
  font-size: .47rem;
  line-height: 1.22;
}

.biomedical-project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4eaf2;
}

.biomedical-project-footer .story-label {
  color: #245de5;
  font-size: .59rem;
}

.biomedical-contribution ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #526981;
  font-size: .65rem;
  line-height: 1.44;
}

.biomedical-contribution li + li {
  margin-top: 4px;
}

.biomedical-technology .chip-row {
  margin-top: 8px;
  gap: 5px;
}

.biomedical-technology .tech-chip {
  padding: 4px 7px;
  border-color: #d7e1ee;
  color: #2758b2;
  background: #ffffff;
  font-size: .53rem;
}

.biomedical-artifact-links {
  margin-top: 13px;
}

.biomedical-artifact-links .artifact-link {
  font-size: .65rem;
}

@media (max-width: 1180px) {
  .biomedical-domain-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  }

  .biomedical-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biomedical-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .biomedical-domain-hero {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  .biomedical-hero-visual {
    max-width: 760px;
  }

  .biomedical-project-grid {
    grid-template-columns: 1fr;
  }

  .biomedical-projects-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .biomedical-domain-hero {
    min-height: 0;
    padding: 28px 16px;
    gap: 20px;
  }

  .biomedical-domain-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .biomedical-hero-metrics {
    gap: 7px;
    margin-top: 19px;
  }

  .biomedical-hero-metric {
    min-height: 64px;
    padding: 9px;
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .biomedical-hero-metric-icon {
    width: 26px;
    height: 26px;
  }

  .biomedical-hero-image {
    max-height: 270px;
  }

  .biomedical-projects-section {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .biomedical-projects-toolbar {
    display: block;
  }

  .biomedical-project-jumps {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .biomedical-project-jump {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding-inline: 8px;
  }

  .biomedical-project-visual-wrap,
  .biomedical-media-gallery,
  .biomedical-media-figure,
  .biomedical-media-image {
    min-height: 210px;
  }

  .biomedical-project-content {
    padding: 16px;
  }

  .biomedical-project-footer {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

@media (max-width: 390px) {
  .biomedical-hero-metrics {
    grid-template-columns: 1fr;
  }

  .biomedical-project-jump {
    flex-basis: 100%;
  }
}

/* Enterprise AI domain: compact, image-led production systems layout. */
.domain-page-enterprise {
  background: #f8fafc;
}

.enterprise-domain-hero {
  min-height: 410px;
  padding: clamp(34px, 4.5vw, 68px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(24px, 3vw, 46px);
}

.enterprise-domain-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 4.7vw, 4.9rem);
}

.enterprise-domain-hero .domain-hero-copy {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.enterprise-hero-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 66, 112, .08);
}

.enterprise-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.enterprise-hero-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px 14px;
  gap: 5px;
}

.enterprise-hero-workflow span {
  position: relative;
  color: #526982;
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
}

.enterprise-hero-workflow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  color: #8ea5bf;
}

.enterprise-project-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.enterprise-project-jump {
  padding: 6px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #3f5e7e;
  background: rgba(255,255,255,.82);
  font-size: .65rem;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.enterprise-project-jump:hover {
  color: var(--blue);
  border-color: #9db8d6;
  transform: translateY(-1px);
}

.enterprise-projects-section {
  width: min(1540px, calc(100% - 34px));
  padding: clamp(34px, 4vw, 58px) 0 clamp(52px, 5vw, 80px);
}

.enterprise-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 20px;
}

.enterprise-section-intro .section-heading {
  max-width: 880px;
  margin: 0;
}

.enterprise-section-intro .section-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.enterprise-section-intro .section-lede {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.enterprise-ownership-summary {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.enterprise-ownership-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.enterprise-ownership-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.enterprise-ownership-inline span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #43617e;
  background: #f1f6fb;
  font-size: .58rem;
  font-weight: 650;
}

.enterprise-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 7px;
}

.enterprise-project-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 82px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(35, 63, 101, .05);
}

.enterprise-media-gallery {
  display: grid;
  min-height: 198px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef3f8;
}

.enterprise-media-gallery-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enterprise-media-gallery-single {
  grid-template-columns: 1fr;
}

.enterprise-media-figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f0f4f8;
}

.enterprise-media-gallery-dual .enterprise-media-figure:first-child {
  border-right: 1px solid rgba(255,255,255,.78);
}

.enterprise-media-image {
  width: 100%;
  height: 100%;
  min-height: 198px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.enterprise-project-card:hover .enterprise-media-image {
  transform: scale(1.018);
}

.enterprise-media-figure figcaption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(9, 26, 45, .78);
  font-size: .56rem;
  font-weight: 650;
  backdrop-filter: blur(7px);
}

.enterprise-project-content {
  padding: clamp(16px, 1.55vw, 23px);
}

.enterprise-project-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.enterprise-project-number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #cad9e8;
  border-radius: 8px;
  color: var(--blue);
  background: #f3f7fc;
  font-size: .62rem;
  font-weight: 800;
}

.enterprise-project-content h2 {
  margin: 11px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.65vw, 1.92rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.enterprise-project-problem {
  margin: 0;
  color: #566b80;
  font-size: .77rem;
  line-height: 1.5;
}

.enterprise-system-block {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #e6edf4;
}

.enterprise-system-block .story-label {
  margin-bottom: 7px;
}

.enterprise-system-block .pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 0;
}

.enterprise-system-block .pipeline-node {
  min-width: 0;
  min-height: 54px;
  padding: 7px;
  border-radius: 8px;
  font-size: .54rem;
  line-height: 1.18;
}

.enterprise-system-block .pipeline-index {
  font-size: .45rem;
}

.enterprise-system-block .pipeline-arrow {
  display: none;
}

.enterprise-evidence-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.enterprise-evidence-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0e8f1;
  border-radius: 9px;
  background: #fbfcfe;
}

.enterprise-evidence-item strong,
.enterprise-evidence-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enterprise-evidence-item strong {
  color: #183a5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}

.enterprise-evidence-item span {
  margin-top: 3px;
  color: #73869a;
  font-size: .49rem;
  line-height: 1.2;
}

.enterprise-project-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #e6edf4;
}

.enterprise-contribution ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #5c7085;
  font-size: .63rem;
  line-height: 1.4;
}

.enterprise-contribution li + li {
  margin-top: 3px;
}

.enterprise-technology .chip-row {
  margin-top: 8px;
  gap: 5px;
}

.enterprise-technology .tech-chip {
  padding: 4px 7px;
  font-size: .53rem;
}

.enterprise-artifact-links {
  margin-top: 12px;
}

.enterprise-artifact-links .artifact-link {
  font-size: .66rem;
}

@media (max-width: 1280px) {
  .enterprise-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-system-block .pipeline {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .enterprise-evidence-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .enterprise-project-footer {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 7px;
  }
}

@media (max-width: 1120px) {
  .enterprise-domain-hero {
    grid-template-columns: 1fr .8fr;
  }

  .enterprise-section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .enterprise-system-block .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .enterprise-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-project-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .enterprise-domain-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .enterprise-hero-visual {
    max-width: 720px;
  }

  .enterprise-project-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-media-gallery,
  .enterprise-media-image {
    min-height: 280px;
  }

  .enterprise-system-block .pipeline {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .enterprise-evidence-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .enterprise-project-footer {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }
}

@media (max-width: 600px) {
  .enterprise-domain-hero {
    width: calc(100% - 16px);
    padding: 28px 18px;
    gap: 20px;
  }

  .enterprise-domain-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .enterprise-project-jumps {
    display: none;
  }

  .enterprise-hero-workflow {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
  }

  .enterprise-projects-section {
    width: calc(100% - 20px);
    padding-top: 28px;
  }

  .enterprise-section-intro .section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .enterprise-media-gallery-dual {
    grid-template-columns: 1fr;
  }

  .enterprise-media-gallery-dual .enterprise-media-figure:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.78);
  }

  .enterprise-media-gallery,
  .enterprise-media-image {
    min-height: 220px;
  }

  .enterprise-project-content {
    padding: 17px;
  }

  .enterprise-system-block .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-project-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Materials domain: compact, image-led scientific case-study layout. */
.domain-page-materials {
  background: #f8fafc;
}

.materials-domain-hero {
  min-height: 410px;
  padding: clamp(34px, 4.5vw, 68px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(24px, 3vw, 46px);
}

.materials-domain-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 4.7vw, 4.9rem);
}

.materials-domain-hero .domain-hero-copy {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.materials-hero-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 66, 112, .08);
}

.materials-hero-gif {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.materials-hero-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px 14px;
  gap: 5px;
}

.materials-hero-workflow span {
  position: relative;
  color: #526982;
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
}

.materials-hero-workflow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  color: #8ea5bf;
}

.materials-project-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.materials-project-jump {
  padding: 6px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #3f5e7e;
  background: rgba(255,255,255,.82);
  font-size: .65rem;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.materials-project-jump:hover {
  color: var(--blue);
  border-color: #9db8d6;
  transform: translateY(-1px);
}

.materials-projects-section {
  width: min(1480px, calc(100% - 34px));
  padding: clamp(34px, 4vw, 58px) 0 clamp(52px, 5vw, 80px);
}

.materials-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 20px;
}

.materials-section-intro .section-heading {
  max-width: 860px;
  margin: 0;
}

.materials-section-intro .section-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.materials-section-intro .section-lede {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.materials-ownership-summary {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.materials-ownership-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.materials-ownership-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.materials-ownership-inline span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #43617e;
  background: #f1f6fb;
  font-size: .58rem;
  font-weight: 650;
}

.materials-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.materials-project-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 82px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(35, 63, 101, .05);
}

.materials-media-gallery {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef3f8;
}

.materials-media-gallery-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.materials-media-gallery-single {
  grid-template-columns: 1fr;
}

.materials-media-figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f0f4f8;
}

.materials-media-gallery-dual .materials-media-figure:first-child {
  border-right: 1px solid rgba(255,255,255,.78);
}

.materials-media-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.materials-project-card:hover .materials-media-image {
  transform: scale(1.018);
}

.materials-media-figure figcaption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(9, 26, 45, .78);
  font-size: .56rem;
  font-weight: 650;
  backdrop-filter: blur(7px);
}

.materials-project-content {
  padding: clamp(18px, 2vw, 26px);
}

.materials-project-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.materials-project-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cad9e8;
  border-radius: 8px;
  color: var(--blue);
  background: #f3f7fc;
  font-size: .62rem;
  font-weight: 800;
}

.materials-project-content h2 {
  margin: 11px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.materials-project-problem {
  margin: 0;
  color: #566b80;
  font-size: .82rem;
  line-height: 1.52;
}

.materials-system-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6edf4;
}

.materials-system-block .story-label {
  margin-bottom: 7px;
}

.materials-system-block .pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 0;
}

.materials-system-block .pipeline-node {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border-radius: 8px;
  font-size: .58rem;
  line-height: 1.2;
}

.materials-system-block .pipeline-index {
  font-size: .48rem;
}

.materials-system-block .pipeline-arrow {
  display: none;
}

.materials-evidence-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 13px;
}

.materials-evidence-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0e8f1;
  border-radius: 9px;
  background: #fbfcfe;
}

.materials-evidence-item strong,
.materials-evidence-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.materials-evidence-item strong {
  color: #183a5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
}

.materials-evidence-item span {
  margin-top: 3px;
  color: #73869a;
  font-size: .5rem;
  line-height: 1.2;
}

.materials-project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 7px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e6edf4;
}

.materials-contribution ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #5c7085;
  font-size: .67rem;
  line-height: 1.42;
}

.materials-contribution li + li {
  margin-top: 3px;
}

.materials-technology .chip-row {
  margin-top: 8px;
  gap: 5px;
}

.materials-technology .tech-chip {
  padding: 4px 7px;
  font-size: .56rem;
}

.materials-artifact-links {
  margin-top: 13px;
}

.materials-artifact-links .artifact-link {
  font-size: .68rem;
}

@media (max-width: 1120px) {
  .materials-domain-hero {
    grid-template-columns: 1fr .8fr;
  }

  .materials-section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .materials-system-block .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .materials-domain-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .materials-hero-visual {
    max-width: 720px;
  }

  .materials-project-grid {
    grid-template-columns: 1fr;
  }

  .materials-media-gallery {
    min-height: 290px;
  }

  .materials-media-image {
    min-height: 290px;
  }
}

@media (max-width: 600px) {
  .materials-domain-hero {
    width: calc(100% - 16px);
    padding: 28px 18px;
    gap: 20px;
  }

  .materials-domain-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .materials-project-jumps {
    display: none;
  }

  .materials-hero-workflow {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
  }

  .materials-projects-section {
    width: calc(100% - 20px);
    padding-top: 28px;
  }

  .materials-section-intro .section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .materials-media-gallery-dual {
    grid-template-columns: 1fr;
  }

  .materials-media-gallery-dual .materials-media-figure:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.78);
  }

  .materials-media-gallery,
  .materials-media-image {
    min-height: 220px;
  }

  .materials-project-content {
    padding: 17px;
  }

  .materials-system-block .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-project-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Generative AI & RAG: compact, image-led case-study layout. */
.domain-page-generative {
  background: #f8fafc;
}

.generative-domain-hero {
  min-height: 410px;
  padding: clamp(34px, 4.5vw, 68px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(24px, 3vw, 46px);
}

.generative-domain-hero h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 4.7vw, 4.9rem);
}

.generative-domain-hero .domain-hero-copy {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.generative-hero-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(32, 66, 112, .08);
}

.generative-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.generative-hero-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px 14px;
  gap: 5px;
}

.generative-hero-workflow span {
  position: relative;
  color: #526982;
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
}

.generative-hero-workflow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  color: #8ea5bf;
}

.generative-project-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.generative-project-jump {
  padding: 6px 9px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #3f5e7e;
  background: rgba(255,255,255,.82);
  font-size: .65rem;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.generative-project-jump:hover {
  color: var(--blue);
  border-color: #9db8d6;
  transform: translateY(-1px);
}

.generative-projects-section {
  width: min(1480px, calc(100% - 34px));
  padding: clamp(34px, 4vw, 58px) 0 clamp(52px, 5vw, 80px);
}

.generative-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 20px;
}

.generative-section-intro .section-heading {
  max-width: 860px;
  margin: 0;
}

.generative-section-intro .section-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.generative-section-intro .section-lede {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.generative-ownership-summary {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.generative-ownership-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.generative-ownership-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.generative-ownership-inline span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #43617e;
  background: #f1f6fb;
  font-size: .58rem;
  font-weight: 650;
}

.generative-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.generative-project-card {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 82px;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(35, 63, 101, .05);
}

.generative-media-gallery {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef3f8;
}

.generative-media-gallery-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generative-media-gallery-single {
  grid-template-columns: 1fr;
}

.generative-media-figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f0f4f8;
}

.generative-media-gallery-dual .generative-media-figure:first-child {
  border-right: 1px solid rgba(255,255,255,.78);
}

.generative-media-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.generative-media-fallback {
  min-height: 260px;
  background: #eef3f8;
}

.generative-project-card:hover .generative-media-image {
  transform: scale(1.018);
}

.generative-media-figure figcaption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(9, 26, 45, .78);
  font-size: .56rem;
  font-weight: 650;
  backdrop-filter: blur(7px);
}

.generative-project-content {
  padding: clamp(18px, 2vw, 26px);
}

.generative-project-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.generative-project-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cad9e8;
  border-radius: 8px;
  color: var(--blue);
  background: #f3f7fc;
  font-size: .62rem;
  font-weight: 800;
}

.generative-project-content h2 {
  margin: 11px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.generative-project-problem {
  margin: 0;
  color: #566b80;
  font-size: .82rem;
  line-height: 1.52;
}

.generative-system-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6edf4;
}

.generative-system-block .story-label {
  margin-bottom: 7px;
}

.generative-system-block .pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 0;
}

.generative-system-block .pipeline-node {
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border-radius: 8px;
  font-size: .58rem;
  line-height: 1.2;
}

.generative-system-block .pipeline-index {
  font-size: .48rem;
}

.generative-system-block .pipeline-arrow {
  display: none;
}

.generative-evidence-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 13px;
}

.generative-evidence-item {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0e8f1;
  border-radius: 9px;
  background: #fbfcfe;
}

.generative-evidence-item strong,
.generative-evidence-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generative-evidence-item strong {
  color: #183a5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
}

.generative-evidence-item span {
  margin-top: 3px;
  color: #73869a;
  font-size: .5rem;
  line-height: 1.2;
}

.generative-project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 7px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e6edf4;
}

.generative-contribution ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #5c7085;
  font-size: .67rem;
  line-height: 1.42;
}

.generative-contribution li + li {
  margin-top: 3px;
}

.generative-technology .chip-row {
  margin-top: 8px;
  gap: 5px;
}

.generative-technology .tech-chip {
  padding: 4px 7px;
  font-size: .56rem;
}

.generative-artifact-links {
  margin-top: 13px;
}

.generative-artifact-links .artifact-link {
  font-size: .68rem;
}

@media (max-width: 1120px) {
  .generative-domain-hero {
    grid-template-columns: 1fr .8fr;
  }

  .generative-section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .generative-system-block .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .generative-domain-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .generative-hero-visual {
    max-width: 720px;
  }

  .generative-project-grid {
    grid-template-columns: 1fr;
  }

  .generative-media-gallery,
  .generative-media-image,
  .generative-media-fallback {
    min-height: 290px;
  }
}

@media (max-width: 600px) {
  .generative-domain-hero {
    width: calc(100% - 16px);
    padding: 28px 18px;
    gap: 20px;
  }

  .generative-domain-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .generative-project-jumps {
    display: none;
  }

  .generative-hero-workflow {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
  }

  .generative-projects-section {
    width: calc(100% - 20px);
    padding-top: 28px;
  }

  .generative-section-intro .section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .generative-media-gallery-dual {
    grid-template-columns: 1fr;
  }

  .generative-media-gallery-dual .generative-media-figure:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.78);
  }

  .generative-media-gallery,
  .generative-media-image,
  .generative-media-fallback {
    min-height: 220px;
  }

  .generative-project-content {
    padding: 17px;
  }

  .generative-system-block .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generative-evidence-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generative-project-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* =========================================================
   CLEAN SCIENTIFIC HOMEPAGE
   ========================================================= */

:root {
    --home-navy: #061a35;
    --home-navy-soft: #0d294c;
    --home-blue: #1f63f2;
    --home-blue-dark: #154fc7;
    --home-cyan: #15a6a0;
    --home-violet: #7357e8;
    --home-orange: #dc7b26;
    --home-ink: #10233f;
    --home-copy: #526984;
    --home-muted: #73859a;
    --home-border: #dce5f0;
    --home-surface: #ffffff;
    --home-background: #fbfdff;
}


/* Page */

.home-page {
    width: 100%;
    min-height: calc(100dvh - var(--nav-height));
    padding: 14px clamp(18px, 2.6vw, 44px) 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
    color: var(--home-ink);
    background:
        radial-gradient(
            circle at 96% 16%,
            rgba(31, 99, 242, 0.075),
            transparent 24%
        ),
        radial-gradient(
            circle at 2% 22%,
            rgba(21, 166, 160, 0.045),
            transparent 18%
        ),
        linear-gradient(
            rgba(31, 99, 242, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(31, 99, 242, 0.025) 1px,
            transparent 1px
        ),
        var(--home-background);
    background-size:
        auto,
        auto,
        32px 32px,
        32px 32px,
        auto;
}


/* =========================================================
   HERO
   ========================================================= */

.home-overview {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(420px, 0.85fr);
    align-items: center;
    gap: clamp(18px, 2.2vw, 38px);
}

.home-hero-main {
    min-width: 0;
    display: grid;
    grid-template-columns:
        clamp(140px, 13vw, 205px)
        minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 2.2vw, 36px);
}


/* Portrait */

.home-profile-photo-frame {
    position: relative;
    width: 100%;
    max-width: 205px;
    aspect-ratio: 0.84;
    overflow: hidden;
    border: 1px solid rgba(188, 202, 220, 0.75);
    border-radius: 18px;
    background: #edf2f8;
    box-shadow:
        0 16px 36px rgba(17, 45, 82, 0.11),
        0 3px 10px rgba(17, 45, 82, 0.05);
}

.home-profile-photo-frame::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.home-profile-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 22%;
}


/* Main title */

.home-intro {
    min-width: 0;
}

.home-intro h1 {
    max-width: 800px;
    margin: 0;
    color: var(--home-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(1.9rem, 2.85vw, 3.55rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.home-intro h1 span {
    color: var(--home-blue);
}

.home-intro h1::after {
    content: "";
    width: 46px;
    height: 3px;
    display: block;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--home-blue);
}


/* Hide old description if still rendered elsewhere */

.home-intro-copy {
    display: none !important;
}


/* Hero principles */

.home-principles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 16px;
}

.hero-principle {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    color: #304866;
    border-right: 1px solid #d9e2ed;
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
}

.hero-principle:first-child {
    padding-left: 0;
}

.hero-principle:last-child {
    border-right: 0;
}

.hero-principle-icon {
    color: var(--home-blue);
    font-size: 1rem;
    font-weight: 800;
}


/* Hero links */

.home-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.home-link-primary,
.home-link-secondary {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 160ms ease,
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.home-link-primary {
    color: #ffffff;
    border: 1px solid var(--home-blue);
    background: var(--home-blue);
    box-shadow: 0 8px 20px rgba(31, 99, 242, 0.18);
}

.home-link-secondary {
    color: var(--home-blue-dark);
    border: 1px solid #cad8ea;
    background: rgba(255, 255, 255, 0.88);
}

.home-link-primary:hover,
.home-link-secondary:hover {
    transform: translateY(-2px);
}

.home-link-primary:hover {
    color: #ffffff;
    background: var(--home-blue-dark);
    border-color: var(--home-blue-dark);
    box-shadow: 0 12px 26px rgba(31, 99, 242, 0.24);
}

.home-link-secondary:hover {
    color: var(--home-blue-dark);
    border-color: #97b6df;
    background: #ffffff;
}


/* =========================================================
   METRICS
   ========================================================= */

.home-metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.home-metric-card {
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 7px 22px rgba(23, 54, 92, 0.035);
    backdrop-filter: blur(10px);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.home-metric-card:hover {
    transform: translateY(-2px);
    border-color: #bfd1eb;
    box-shadow: 0 14px 30px rgba(23, 54, 92, 0.075);
}

.home-metric-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid #d5e2f8;
    border-radius: 50%;
    color: var(--home-blue);
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf3ff
        );
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.56rem;
    font-weight: 750;
}

.home-metric-copy {
    min-width: 0;
}

.home-metric-value {
    overflow: hidden;
    color: var(--home-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(0.72rem, 0.82vw, 0.86rem);
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-metric-label {
    margin-top: 2px;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.47rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   FIVE DOMAIN CARDS
   ========================================================= */

.home-expertise {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.home-domain-grid-five {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.home-domain-link {
    min-width: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-domain-card {
    position: relative;
    height: 100%;
    min-height: 198px;
    padding: 15px 14px 13px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 9px 28px rgba(21, 49, 86, 0.045);
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.home-domain-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    opacity: 0;
    background: var(--home-blue);
    transition: opacity 180ms ease;
}

.home-domain-link:nth-child(2) .home-domain-card::after {
    background: var(--home-cyan);
}

.home-domain-link:nth-child(3) .home-domain-card::after {
    background: var(--home-violet);
}

.home-domain-link:nth-child(4) .home-domain-card::after {
    background: var(--home-orange);
}

.home-domain-link:nth-child(5) .home-domain-card::after {
    background: #527cf4;
}

.home-domain-link:hover .home-domain-card {
    transform: translateY(-6px);
    border-color: #c3d4e9;
    box-shadow: 0 20px 40px rgba(21, 49, 86, 0.105);
}

.home-domain-link:hover .home-domain-card::after {
    opacity: 1;
}

.home-domain-visual {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 9px;
    border-radius: 11px;
    background:
        radial-gradient(
            circle at center,
            rgba(31, 99, 242, 0.055),
            transparent 70%
        );
}

.home-domain-gif {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home-domain-copy {
    min-width: 0;
}

.home-domain-topline {
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.home-domain-index {
    color: var(--home-blue);
    font-size: 0.71rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.home-domain-link:nth-child(2) .home-domain-index {
    color: var(--home-cyan);
}

.home-domain-link:nth-child(3) .home-domain-index {
    color: var(--home-violet);
}

.home-domain-link:nth-child(4) .home-domain-index {
    color: var(--home-orange);
}

.home-domain-eyebrow {
    flex: 1;
    overflow: hidden;
    color: #8293a8;
    font-size: 0.49rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-domain-copy h2 {
    min-height: 46px;
    margin: 0;
    color: var(--home-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(1.02rem, 1.25vw, 1.34rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.home-domain-copy p {
    min-height: 49px;
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--home-copy);
    font-size: 0.62rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-domain-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.home-domain-capabilities span {
    max-width: 100%;
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 999px;
    color: #315f9f;
    background: #f1f6fd;
    font-size: 0.49rem;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-domain-link:nth-child(2)
.home-domain-capabilities span {
    color: #237d78;
    background: #edf9f7;
}

.home-domain-link:nth-child(3)
.home-domain-capabilities span {
    color: #614db8;
    background: #f3f0ff;
}

.home-domain-link:nth-child(4)
.home-domain-capabilities span {
    color: #a65b1d;
    background: #fff5e9;
}


/* Remove previous unused action */

.home-domain-action {
    display: none !important;
}


/* =========================================================
   CAREER TRAJECTORY
   ========================================================= */

.home-career-strip {
    width: 100%;
    min-width: 0;
    padding: 13px 18px;
    display: grid;
    grid-template-columns:
        minmax(190px, 0.7fr)
        minmax(0, 3.7fr);
    align-items: center;
    gap: 28px;
    border: 1px solid #dce6f2;
    border-radius: 20px;
    background:
        linear-gradient(
            110deg,
            rgba(238, 245, 255, 0.92),
            rgba(255, 255, 255, 0.94)
        );
    box-shadow: 0 10px 30px rgba(24, 52, 87, 0.045);
}

.career-label-column {
    min-width: 0;
}

.home-section-label {
    color: var(--home-blue);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.career-summary {
    max-width: 230px;
    margin: 9px 0 0;
    color: var(--home-copy);
    font-size: 0.65rem;
    line-height: 1.5;
}

.career-timeline {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.career-timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 6%;
    left: 6%;
    height: 1px;
    background: #adc6e9;
}

.career-node {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-top: 24px;
    text-align: center;
}

.career-dot {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 15px;
    height: 15px;
    display: block;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--home-blue);
    box-shadow:
        0 0 0 1px #8cb2e5,
        0 3px 8px rgba(31, 99, 242, 0.18);
    transform: translateX(-50%);
}

.career-date {
    color: var(--home-blue);
    font-size: 0.57rem;
    font-weight: 800;
}

.career-company {
    margin-top: 5px;
    overflow: hidden;
    color: var(--home-ink);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.career-focus {
    margin-top: 5px;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.5rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1420px) {
    .home-page {
        padding-inline: 28px;
    }

    .home-overview {
        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(380px, 0.9fr);
        gap: 36px;
    }

    .home-hero-main {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 30px;
    }

    .home-domain-card {
        padding: 17px 15px;
    }

    .home-domain-copy h2 {
        font-size: 1.05rem;
    }
}


@media (max-width: 1180px) {
    .home-overview {
        grid-template-columns: 1fr;
    }

    .home-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-domain-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-domain-link:nth-child(4),
    .home-domain-link:nth-child(5) {
        grid-column: span 1;
    }

    .home-career-strip {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .career-summary {
        max-width: 620px;
    }
}


@media (max-width: 820px) {
    .home-page {
        padding: 26px 18px;
        gap: 22px;
    }

    .home-hero-main {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 22px;
    }

    .home-intro h1 {
        font-size: clamp(1.9rem, 6vw, 3rem);
    }

    .home-principles {
        display: none;
    }

    .home-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-domain-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .career-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 26px;
    }

    .career-timeline::before {
        display: none;
    }

    .career-node {
        padding-top: 21px;
    }
}


@media (max-width: 560px) {
    .home-page {
        padding-inline: 13px;
    }

    .home-hero-main {
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: start;
        gap: 15px;
    }

    .home-profile-photo-frame {
        border-radius: 15px;
    }

    .home-intro h1 {
        font-size: clamp(1.45rem, 7.4vw, 2.2rem);
        line-height: 1.08;
    }

    .home-intro h1::after {
        width: 30px;
        margin-top: 14px;
    }

    .home-hero-links {
        margin-top: 14px;
    }

    .home-link-primary,
    .home-link-secondary {
        min-height: 34px;
        padding: 0 11px;
        font-size: 0.62rem;
    }

    .home-metrics {
        gap: 7px;
    }

    .home-metric-card {
        min-height: 64px;
        padding: 10px;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }

    .home-metric-icon {
        width: 30px;
        height: 30px;
    }

    .home-metric-value {
        font-size: 0.72rem;
    }

    .home-metric-label {
        font-size: 0.48rem;
    }

    .home-domain-grid-five {
        grid-template-columns: 1fr;
    }

    .home-domain-card {
        min-height: 0;
    }

    .home-domain-copy h2,
    .home-domain-copy p {
        min-height: 0;
    }

    .home-career-strip {
        padding: 18px 15px;
    }

    .career-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (prefers-reduced-motion: reduce) {
    .home-metric-card,
    .home-domain-card,
    .home-link-primary,
    .home-link-secondary {
        transition: none;
    }

    .home-domain-link:hover .home-domain-card,
    .home-link-primary:hover,
    .home-link-secondary:hover {
        transform: none;
    }
}

/* Final homepage flow reset: prevents spacing from older/shared stylesheets. */
.home-page > .home-overview,
.home-page > .home-expertise,
.home-page > .home-career-strip {
    margin: 0 !important;
}

.home-overview,
.home-expertise,
.home-domain-grid,
.home-domain-grid-five {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home-expertise {
    min-height: 0 !important;
}

.home-domain-grid,
.home-domain-grid-five {
    margin: 0 !important;
}

.home-career-strip {
    margin-top: -6px !important;
}

@media (min-width: 1181px) {
    .home-page {
        gap: 12px !important;
    }
}

/* =========================================================
   FINAL ONE-SCREEN COMPACTION
   ========================================================= */

.home-page {
    height: auto !important;
    min-height: calc(100dvh - var(--nav-height)) !important;
    align-content: start !important;
}

.home-overview,
.home-expertise,
.home-domain-grid-five,
.home-career-strip {
    margin: 0 !important;
}

.home-overview {
    padding: 0 !important;
}

.home-expertise {
    min-height: 0 !important;
    flex: 0 0 auto !important;
}

.home-domain-grid-five {
    grid-template-rows: auto !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
    align-content: start !important;
}

.home-domain-link,
.home-domain-card {
    min-height: 0;
}

.home-career-strip {
    flex: 0 0 auto !important;
}

@media (min-width: 1181px) {
    .home-page {
        gap: 10px !important;
    }

    .home-overview {
        align-items: center;
    }

    .home-profile-photo-frame {
        max-height: 244px;
    }

    .home-metrics {
        align-content: center;
    }

    .home-metric-card {
        height: 48px;
        min-height: 48px;
    }

    .home-domain-card {
        min-height: 198px;
    }
}

@media (max-height: 850px) and (min-width: 1181px) {
    .home-page {
        padding-top: 9px !important;
        padding-bottom: 8px !important;
        gap: 7px !important;
    }

    .home-profile-photo-frame {
        max-width: 180px;
        max-height: 214px;
    }

    .home-intro h1 {
        font-size: clamp(1.75rem, 2.45vw, 3rem);
    }

    .home-intro h1::after {
        margin-top: 11px;
    }

    .home-principles {
        margin-top: 11px;
    }

    .home-hero-links {
        margin-top: 10px;
    }

    .home-domain-card {
        min-height: 180px;
    }

    .home-domain-visual {
        height: 56px;
    }

    .home-career-strip {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* =========================================================
   PUBLICATIONS & RESEARCH PAGE
   ========================================================= */

.research-page {
    width: 100%;
    min-height: calc(100dvh - var(--nav-height));
    color: var(--ink);
    background:
        radial-gradient(circle at 92% 8%, rgba(37, 99, 235, .08), transparent 24%),
        linear-gradient(rgba(37, 99, 235, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .022) 1px, transparent 1px),
        #fbfdff;
    background-size: auto, 30px 30px, 30px 30px, auto;
}

.research-hero {
    width: min(1500px, calc(100% - 42px));
    margin: 0 auto;
    padding: clamp(46px, 5.2vw, 80px) 0 clamp(36px, 4vw, 60px);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
    align-items: center;
    gap: clamp(34px, 5vw, 80px);
}

.research-hero-content {
    min-width: 0;
}

.research-hero-kicker,
.research-section-kicker,
.research-profile-label,
.recognition-label {
    color: var(--blue);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.research-hero h1 {
    max-width: 980px;
    margin: 15px 0 0;
    color: var(--ink-strong);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 5vw, 5.25rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.05em;
}

.research-hero h1 span {
    color: var(--blue);
}

.research-hero-copy {
    max-width: 820px;
    margin: 21px 0 0;
    color: var(--muted);
    font-size: clamp(.88rem, 1.05vw, 1.05rem);
    line-height: 1.62;
}

.research-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.research-hero-stat {
    min-width: 154px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
}

.research-hero-stat strong,
.research-hero-stat span {
    display: block;
}

.research-hero-stat strong {
    color: var(--ink-strong);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 650;
}

.research-hero-stat span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .56rem;
}

.research-hero-aside {
    display: grid;
    gap: 12px;
}

.research-profile-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 38px rgba(31, 67, 112, .06);
}

.research-profile-card h2 {
    margin: 10px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 1.9vw, 1.9rem);
    font-weight: 600;
    line-height: 1.12;
}

.research-profile-card p {
    margin: 0;
    font-size: .74rem;
    line-height: 1.55;
}

.research-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.research-topic-list span {
    padding: 6px 9px;
    border: 1px solid #d9e5f4;
    border-radius: 999px;
    color: #315b91;
    background: #f3f7fd;
    font-size: .58rem;
    font-weight: 650;
}

.research-publications-section,
.research-conferences-section,
.research-recognition-section {
    width: min(1500px, calc(100% - 42px));
    margin: 0 auto;
    padding: clamp(38px, 4vw, 62px) 0;
    border-top: 1px solid var(--line);
}

.research-section-heading {
    margin-bottom: 20px;
}

.research-section-heading h2 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.4vw, 3.45rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
}

.research-section-heading-wide {
    max-width: 850px;
}

.research-section-heading-wide p {
    margin: 12px 0 0;
    font-size: .82rem;
    line-height: 1.55;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.publication-card {
    position: relative;
    min-width: 0;
    padding: clamp(21px, 2.1vw, 30px);
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(31, 67, 112, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.publication-card:hover {
    transform: translateY(-3px);
    border-color: #adc4e4;
    box-shadow: 0 18px 38px rgba(31, 67, 112, .09);
}

.publication-card-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.publication-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #c8d9ef;
    border-radius: 9px;
    color: var(--blue);
    background: #f2f7ff;
    font-size: .62rem;
    font-weight: 850;
}

.publication-meta-top {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.publication-type {
    overflow: hidden;
    color: #667d96;
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.publication-status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: .49rem;
    font-weight: 800;
}

.publication-status-published {
    color: #08756c;
    background: #e8f8f4;
}

.publication-status-accepted {
    color: #2057b5;
    background: #edf4ff;
}

.publication-status-submitted {
    color: #9a5d14;
    background: #fff4e4;
}

.publication-status-thesis {
    color: #6546b9;
    background: #f2edff;
}

.publication-year {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .88rem;
    font-weight: 650;
}

.publication-card h2 {
    margin: 17px 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 2.05rem);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -.025em;
}

.publication-authors {
    margin: 0;
    color: #304d6e;
    font-size: .69rem;
    font-weight: 700;
    line-height: 1.4;
}

.publication-venue {
    margin: 5px 0 0;
    color: var(--blue);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.4;
}

.publication-description {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.55;
}

.publication-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5ecf4;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: .67rem;
    font-weight: 800;
}

.publication-link-muted {
    color: #8a99aa;
}

.conference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.conference-card {
    min-width: 0;
    padding: 22px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.conference-monogram {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid #c8daf0;
    border-radius: 14px;
    color: var(--blue);
    background: #f3f7fd;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .78rem;
    font-weight: 750;
}

.conference-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.16rem;
    font-weight: 650;
    line-height: 1.18;
}

.conference-card p {
    margin: 8px 0;
    font-size: .68rem;
    line-height: 1.5;
}

.conference-card div > span {
    color: var(--blue);
    font-size: .55rem;
    font-weight: 750;
}

.recognition-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 16px;
}

.recognition-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 67, 112, .04);
}

.recognition-card-feature {
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 28px;
    background:
        radial-gradient(circle at 90% 15%, rgba(37, 99, 235, .10), transparent 30%),
        #fff;
}

.recognition-copy h3 {
    margin: 10px 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.3vw, 2.35rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.recognition-copy p {
    margin: 0;
    font-size: .74rem;
    line-height: 1.55;
}

.recognition-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: var(--blue);
    font-size: .68rem;
    font-weight: 800;
}

.recognition-source {
    min-height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #d4e1f1;
    border-radius: 15px;
    background: rgba(244, 248, 254, .9);
}

.recognition-source strong,
.recognition-source span {
    display: block;
}

.recognition-source strong {
    margin: 8px 0 6px;
    color: var(--ink-strong);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.24rem;
    line-height: 1.15;
}

.recognition-source span {
    color: var(--muted);
    font-size: .57rem;
}

.recognition-mini-label {
    color: var(--blue) !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.recognition-card-marquis {
    padding: 24px;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 21px;
}

.marquis-badge {
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.recognition-card-marquis .recognition-copy h3 {
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
}

.recognition-year {
    display: inline-block;
    margin-top: 14px;
    color: #8c6a33;
    font-size: .63rem;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .research-hero {
        grid-template-columns: 1fr;
    }

    .research-hero-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 760px) {
    .research-hero,
    .research-publications-section,
    .research-conferences-section,
    .research-recognition-section {
        width: calc(100% - 24px);
    }

    .research-hero {
        padding-top: 32px;
    }

    .research-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.65rem);
    }

    .research-hero-aside,
    .publication-grid {
        grid-template-columns: 1fr;
    }

    .recognition-card-feature {
        grid-template-columns: 1fr;
    }

    .recognition-card-marquis {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .marquis-badge {
        width: 94px;
        height: 94px;
    }
}

@media (max-width: 480px) {
    .research-hero-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .publication-card {
        padding: 18px;
    }

    .publication-card-header {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .publication-year {
        grid-column: 2;
    }

    .conference-card {
        grid-template-columns: 45px minmax(0, 1fr);
        padding: 17px;
    }

    .conference-monogram {
        width: 45px;
        height: 45px;
        font-size: .62rem;
    }

    .recognition-card-marquis {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .marquis-badge {
        margin: 0 auto;
    }
}

/* Mobile navbar dropdown */
@media (max-width: 767px) {
  .portfolio-navbar .navbar-collapse {
    background: #0a1f3b !important;
    border-bottom: 1px solid #17395f !important;
    box-shadow: 0 18px 30px rgba(7, 26, 49, 0.22);
  }

  .portfolio-navbar .nav-links {
    width: 100%;
    padding-top: 6px;
    gap: 4px;
  }

  .portfolio-navbar .nav-links .nav-link {
    width: 100%;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 11px 12px !important;
    border-radius: 8px;
  }

  .portfolio-navbar .nav-links .nav-link:hover,
  .portfolio-navbar .nav-links .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
}

.brand-logo {
  width: 34px;
  height: 34px;
  padding: 2px;
  object-fit: contain;
  border-radius: 7px;
  background: #ffffff;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .brand-logo {
    width: 30px;
    height: 30px;
  }
}