:root {
  --bg: #0b1020;
  --panel: #121935;
  --panel-2: #182244;
  --text: #e9eefc;
  --muted: #aab7dd;
  --line: rgba(255,255,255,0.08);
  --accent: #8fb4ff;
  --accent-2: #d5e2ff;
  --shadow: 0 24px 60px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(143,180,255,0.12), transparent 30%),
    linear-gradient(180deg, #09101f 0%, #0f1730 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: fixed; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(9, 16, 31, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}
.nav nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.brand {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #6c86ff);
  color: #081121; font-weight: 800;
}
.brand-text { padding: 0.75rem 1rem; }
.nav-cta, .button {
  border: 1px solid var(--line);
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover, .nav-cta:hover, .text-link:hover { transform: translateY(-1px); }
.button.primary, .nav-cta {
  background: linear-gradient(135deg, var(--accent), #bacfff);
  color: #081121; font-weight: 700;
}
.button.secondary { background: rgba(255,255,255,0.03); }
.text-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
.hero { padding: 5.5rem 0 3rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.45fr 0.8fr; gap: 2rem; align-items: start;
}
.eyebrow, .section-label {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: 0.98; margin: 0.2rem 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.05; margin: 0.2rem 0 1rem; }
h3 { margin-top: 0; font-size: 1.12rem; }
.hero-subtitle, .lead { font-size: 1.15rem; line-height: 1.7; color: var(--accent-2); max-width: 800px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2rem; }
.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.hero-stats li, .hero-card, .card, .list-card, .bullet-panel > div, .callout {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.hero-stats li { padding: 1.2rem; }
.hero-stats strong { display: block; font-size: 1.5rem; margin-bottom: 0.45rem; }
.hero-stats span, p { color: var(--muted); line-height: 1.75; }
.hero-card { padding: 1.5rem; position: fixed; top: 96px; }
.hero-card ul { margin: 0; padding-left: 1.1rem; color: var(--accent-2); line-height: 2; }
.section { padding: 4.2rem 0; }
.section.alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.cards { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card, .list-card, .bullet-panel > div, .callout { padding: 1.5rem; }
.timeline { display: grid; gap: 1rem; margin-top: 1rem; }
.timeline-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.timeline-year {
  color: var(--accent); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.bullet-panel { display: grid; gap: 1rem; }
.site-footer { padding: 3.5rem 0 5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 28px; padding: 2rem;
}
.stack-block { margin-top: 2rem; }
code {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
  color: var(--accent-2);
}
@media (max-width: 900px) {
  .hero-grid, .two-col, .footer-grid, .cards.three, .cards.two, .hero-stats { grid-template-columns: 1fr; }
  .hero-card { position: static; }
  .timeline-item { grid-template-columns: 1fr; }
}


/* Debug numbering */
.debug-num{
  display:inline-block;
  min-width:2.75rem;
  margin-right:0.35rem;
  font-weight:800;
  color:#ffcc33;
  background:rgba(0,0,0,0.18);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:999px;
  padding:0.08rem 0.5rem;
  line-height:1.3;
}



.hero-companies {
  margin-top: 12px;
  font-size: 0.95rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}


.hero-current {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}


.contact-form {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin-top: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
}

.contact-note {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.82;
}


.list-card {
  padding: 14px 18px;
}

.list-card h3 {
  margin: 0;
  line-height: 1.2;
}


/* v34 fixed spacing after removing labels */
.hero .eyebrow + h1 {
  margin-top: 0.25rem;
}
.section > .container > h2:first-child,
.section > .container > .cards:first-child,
.section.alt > .container > h2:first-child,
.section.alt > .container > .cards:first-child {
  margin-top: 0;
}
.section-label + h2 {
  margin-top: 0.25rem;
}


/* Bio paragraphs white text */
#bio p {
  color: #ffffff;
}


/* Keep first bio paragraph ([15]) blue */
#bio p:first-of-type {
  color: #3b82f6; /* original blue tone */
}

/* Keep rest white */
#bio p:not(:first-of-type) {
  color: #ffffff;
}


/* Restore original color for first bio paragraph */
#bio p:first-of-type {
  color: inherit;
}

/* Keep following paragraphs white */
#bio p:not(:first-of-type) {
  color: #ffffff;
}


/* v53 tighten card height to content for publications and patents */
#papers .cards,
.section.alt .cards,
section .cards.two {
  align-items: start;
}
#papers .list-card,
.section.alt .list-card,
section .cards.two .list-card {
  height: auto;
  min-height: 0;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
#papers .list-card h3,
section .cards.two .list-card h3 {
  margin-bottom: 0.45rem;
}
#papers .list-card p,
section .cards.two .list-card p {
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
}


/* v54: ensure publications and patents cards shrink to content */
.cards.two,
.cards.three,
.cards {
  align-items: start;
}
.cards.two .list-card,
.cards.three .list-card,
.cards .list-card {
  height: fit-content;
  min-height: unset !important;
  align-self: start;
}
.link-row {
  margin-top: 0.35rem;
}
.list-card {
  padding-top: 1rem;
  padding-bottom: 1rem;
}


/* paper viewer page */
.viewer-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.viewer-frame-wrap {
  padding: 0.9rem;
  background:
    radial-gradient(circle at top, rgba(143,180,255,0.10), transparent 35%),
    linear-gradient(180deg, #09101f 0%, #0f1730 100%);
}
.viewer-frame {
  width: 100%;
  height: min(80vh, 980px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}
@media (max-width: 760px) {
  .viewer-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .viewer-frame {
    height: 70vh;
  }
}



/* v81 centered paper page */
.viewer-page {
  padding-top: 2rem;
}
.viewer-page-container {
  display: flex;
  justify-content: center;
}
.viewer-page-frame {
  width: min(900px, 100%);
  height: 78vh;
  border: none;
  border-radius: 0;
  background: transparent;
}


/* v82 centered paper page with exact header */
.viewer-page {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.viewer-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer-download-row {
  width: min(900px, 100%);
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.viewer-page-frame {
  width: min(900px, 100%);
  height: calc(100vh - 74px - 2rem - 2rem);
  min-height: 720px;
  border: none;
  border-radius: 0;
  background: transparent;
}


/* v83 refined paper viewer page */
.viewer-page {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.viewer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.viewer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.viewer-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.viewer-download {
  font-size: 0.92rem;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  white-space: nowrap;
}

.viewer-frame-wrapper {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(143,180,255,0.08), transparent 35%),
    linear-gradient(180deg, #09101f 0%, #0f1730 100%);
  box-shadow: var(--shadow);
}

.viewer-frame {
  width: 100%;
  height: calc(100vh - 170px);
  min-height: 720px;
  border: none;
  display: block;
  background: rgba(255,255,255,0.02);
}

@media (max-width: 760px) {
  .viewer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .viewer-frame {
    height: calc(100vh - 220px);
    min-height: 560px;
  }
}


/* v84 paper page fit/download tuning */
html, body {
  overflow-x: hidden;
}

.viewer-page {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.viewer-top {
  margin-bottom: 0.45rem;
}

.viewer-title {
  line-height: 1.25;
}

.viewer-frame {
  height: calc(100vh - 138px);
  min-height: 0;
}

@media (max-width: 760px) {
  .viewer-page {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .viewer-top {
    margin-bottom: 0.4rem;
  }

  .viewer-frame {
    height: calc(100vh - 170px);
    min-height: 0;
  }
}


/* v85 stronger paper viewer overrides */
.viewer-page {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

.viewer-top {
  margin-bottom: 0.35rem !important;
}

.viewer-container {
  max-width: 1100px !important;
}

.viewer-frame-wrapper {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(143,180,255,0.08), transparent 35%),
    linear-gradient(180deg, #09101f 0%, #0f1730 100%);
  box-shadow: var(--shadow);
}

.viewer-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 128px) !important;
  min-height: 0 !important;
  border: none !important;
  background: transparent;
}

.viewer-download {
  cursor: pointer;
}

@media (max-width: 760px) {
  .viewer-frame {
    height: calc(100vh - 158px) !important;
  }
}


/* v86 narrower centered paper viewer to better match PDF page width */
.viewer-container {
  max-width: 900px !important;
}

.viewer-top {
  width: 100%;
}

.viewer-frame-wrapper {
  width: 100%;
  max-width: 820px !important;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(143,180,255,0.08), transparent 35%),
    linear-gradient(180deg, #09101f 0%, #0f1730 100%);
  box-shadow: var(--shadow);
}

.viewer-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 140px) !important;
  min-height: 0 !important;
  border: none !important;
  background: transparent;
}

@media (max-width: 760px) {
  .viewer-container {
    max-width: 100% !important;
  }

  .viewer-frame-wrapper {
    max-width: calc(100vw - 2rem) !important;
  }

  .viewer-frame {
    height: calc(100vh - 170px) !important;
  }
}


/* v87 slides page */
.slides-viewer-container {
  max-width: 1180px !important;
}

.slides-frame-wrapper {
  max-width: 1080px !important;
}

.slides-viewer-frame {
  height: calc(100vh - 140px) !important;
}

@media (max-width: 760px) {
  .slides-viewer-container {
    max-width: 100% !important;
  }
  .slides-frame-wrapper {
    max-width: calc(100vw - 2rem) !important;
  }
  .slides-viewer-frame {
    height: calc(100vh - 170px) !important;
  }
}


/* v89 footer */
.site-footer {
  text-align: center;
  padding: 2rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}


/* CHANGE 1: sticky header + hover states */
.site-header{
  position: fixed;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(9,16,31,0.72);
  border-bottom: 1px solid var(--line);
}
.brand{
  transition: opacity 160ms ease, transform 160ms ease;
}
.brand:hover{
  opacity: 0.92;
  transform: translateY(-1px);
}
.nav nav a{
  position: relative;
  transition: color 160ms ease, opacity 160ms ease;
}
.nav nav a:hover{
  color: var(--text);
  opacity: 1;
}
.nav nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.nav nav a:hover::after{
  transform: scaleX(1);
}

/* CHANGE 2: spacing + typography hierarchy cleanup */
.section{
  padding-top: 3.8rem;
  padding-bottom: 3.8rem;
}
.section.alt{
  padding-top: 4rem;
  padding-bottom: 4rem;
}
h2{
  margin-bottom: 0.8rem;
}
h3{
  line-height: 1.32;
}
.list-card h3,
.card h3{
  color: var(--text);
  font-weight: 700;
}
.list-card p,
.card p{
  color: var(--muted);
}
#bio p + p{
  margin-top: 0.95rem;
}

/* CHANGE 3: contact form styling */
.contact-form{
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: var(--muted);
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(143,180,255,0.45);
  box-shadow: 0 0 0 3px rgba(143,180,255,0.12);
}
.contact-form button{
  width: fit-content;
  padding: 0.82rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(143,180,255,0.18), rgba(143,180,255,0.08));
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.contact-form button:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* CHANGE 4: card and link micro-interactions */
.card, .list-card{
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover, .list-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  border-color: rgba(143,180,255,0.18);
}
.text-link, .bullet-panel a{
  transition: opacity 160ms ease, color 160ms ease;
}
.text-link:hover, .bullet-panel a:hover{
  color: var(--accent-2);
  opacity: 1;
}

/* CHANGE 5: viewer page polish */
.viewer-page{
  padding-top: 0.9rem;
  padding-bottom: 1rem;
}
.viewer-top{
  margin-bottom: 0.6rem;
}
.viewer-frame-wrapper{
  box-shadow: 0 20px 40px rgba(0,0,0,0.24);
}
.viewer-frame{
  display: block;
}

/* CHANGE 6: footer polish */
.site-footer{
  padding-top: 1.5rem;
  padding-bottom: 1.2rem;
  color: var(--muted);
  opacity: 0.72;
  text-align: center;
  font-size: 0.85rem;
}


/* CHANGE 7: fixed header (freeze pane style) */
.site-header{
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(9,16,31,0.85);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

main{
  padding-top: 80px;
}


/* v97 bugfix: restore At a glance card behavior after fixed header change */
.hero-card{
  position: sticky !important;
  top: 96px !important;
}


/* CHANGE 8: responsive grid for "At a glance" cards */
.bullet-panel {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.bullet-panel li {
  list-style: none;
}


/* CHANGE 8b: fix actual At a glance container */
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch !important;
}
.hero-stats li {
  min-width: 0 !important;
}
.hero-stats strong {
  display: block !important;
}


/* CHANGE 9: wider At-a-glance cards + text control */
.hero-stats {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

.hero-stats li {
  padding: 1rem 1.1rem;
}

/* title single line */
.hero-stats strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* text max 4 lines */
.hero-stats span {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* CHANGE 10: force At-a-glance cards into single row */
.hero-stats {
  grid-template-columns: repeat(5, 1fr) !important;
}

/* prevent wrapping due to container constraints */
.hero-stats {
  overflow-x: auto;
}


/* CHANGE 10b: make hero stats span full hero width */
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-stats {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 1.25rem !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.hero-stats li {
  min-width: 0 !important;
}


/* CHANGE 11: link hero 2025 card to papers */
.hero-link-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.hero-link-card:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}


/* CHANGE 12: spacing between Paper and Slides links */
.card a + a {
  margin-left: 0.75rem;
}

.card a + a::before {
  content: "|";
  margin: 0 0.6rem;
  color: var(--muted);
}


/* v121 explicit non-link separator between Paper and Slides */
.link-row .link-separator {
  color: var(--muted);
  text-decoration: none !important;
  pointer-events: none;
}
.link-row .no-sep-link {
  text-decoration: underline;
}


/* CHANGE 13: proper non-clickable separator */
.sep {
  color: var(--muted);
  pointer-events: none;
}


/* CHANGE 13b: explicit plain-text separator between Paper and Slides */
.link-row .sep {
  color: var(--muted);
  pointer-events: none;
  text-decoration: none !important;
}


/* CHANGE 14: center titles relative to PDF frame */
.viewer-top h1,
.viewer-top h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.viewer-frame-wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}


/* company links hover */
.company-link{
  color: var(--text);
  text-decoration: none;
  transition: opacity 150ms ease, color 150ms ease;
}
.company-link:hover{
  color: var(--accent-2);
  opacity: 1;
}


/* fix inline company link to match sentence color */
.inline-company{
  color: inherit !important;
  text-decoration: none;
}
.inline-company:hover{
  color: var(--accent-2);
}


/* v135 mobile-only responsive fixes: desktop unchanged */
@media (max-width: 900px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img, iframe, embed, object, video {
    max-width: 100%;
  }

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr !important;
  }

  .hero-card {
    position: static !important;
    top: auto !important;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-stats {
    grid-column: auto !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cards.two,
  .cards.three {
    grid-template-columns: 1fr !important;
  }

  .viewer-container,
  .slides-viewer-container,
  .viewer-frame-wrapper,
  .slides-frame-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }

  .viewer-frame,
  .slides-viewer-frame {
    width: 100% !important;
    height: calc(100vh - 180px) !important;
    min-height: 480px !important;
  }

  .viewer-top {
    width: 100% !important;
  }

  .viewer-top h1,
  .viewer-top h2,
  .viewer-title {
    max-width: 100% !important;
    text-align: left !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  .nav {
    min-height: auto !important;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-end;
  }

  .brand {
    white-space: nowrap;
  }

  .hero-actions {
    margin: 1.2rem 0 1.2rem !important;
  }

  .container {
    width: min(1120px, calc(100% - 1rem)) !important;
  }

  main {
    padding-top: 92px !important;
  }
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.05 !important;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }

  .hero-subtitle,
  .lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  .viewer-frame,
  .slides-viewer-frame {
    height: calc(100vh - 210px) !important;
    min-height: 420px !important;
  }

  main {
    padding-top: 108px !important;
  }
}


/* v136 desktop anchor offset fix for fixed header */
#bio,
#focus,
#publications,
#links,
#patents,
#contact,
#top {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  #bio,
  #focus,
  #publications,
  #links,
  #patents,
  #contact,
  #top {
    scroll-margin-top: 116px;
  }
}


/* v137 DesignCon summary page */
.designcon-summary {
  max-width: 900px;
}
.summary-title {
  margin-bottom: 0.55rem;
  line-height: 1.15;
}
.summary-authors {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.2rem;
}
.summary-abstract h2 {
  margin-bottom: 0.5rem;
}
.summary-links {
  margin-top: 1rem;
  text-align: left;
}
.summary-sep {
  color: var(--muted);
  pointer-events: none;
}
@media (max-width: 900px) {
  .designcon-summary {
    max-width: 100%;
  }
}


/* v141 reduce DesignCon page title size */
.summary-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.2;
}


/* v142 better DesignCon typography */
.summary-title {
  font-size: clamp(2rem, 3vw, 2.6rem); /* less aggressive reduction */
  line-height: 1.15;
}

.summary-abstract h2 {
  font-size: 1.25rem; /* clearly smaller than title */
  font-weight: 600;
  text-transform: none; /* remove ALL CAPS */
}


/* v146 sec page award link */
.summary-award-link {
  margin-top: 1rem;
}


/* v147 conference meta line */
.summary-meta {
  color: var(--muted);
  margin-top: 0.25rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}


/* v168 mobile brand swap only: no nav sizing/alignment changes */
.brand-full { display: inline; }
.brand-short { display: none; }

@media (max-width: 900px) {
  .site-header .container.nav .brand .brand-full { display: none !important; }
  .site-header .container.nav .brand .brand-short { display: inline !important; }
}


/* v172 hero image */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 240px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  .hero-image {
    margin-top: 1rem;
  }
  .hero-image img {
    width: 160px;
  }
}


/* v173 align hero image to top/title */
.hero-image {
  display: flex;
  align-items: flex-start !important;
  justify-content: flex-end !important;
}

.hero-image img {
  margin-top: 4px;
}


/* v174 hero layout: desktop and mobile specific image placement */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
  grid-template-areas:
    "intro photo"
    "stats card";
  column-gap: 2rem;
  row-gap: 1.25rem;
  align-items: start;
}

.hero-grid > div:first-child {
  grid-area: intro;
}

.hero-image {
  grid-area: photo;
  display: flex;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  align-self: start !important;
}

.hero-image img {
  width: 240px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin-top: 0 !important;
}

.hero-card {
  grid-area: card;
  position: sticky !important;
  top: 96px !important;
  align-self: start !important;
}

.hero-stats {
  grid-area: stats;
  align-self: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "intro"
      "photo"
      "card"
      "stats";
    row-gap: 1rem !important;
  }

  .hero-image {
    justify-content: center !important;
    margin-top: 0 !important;
  }

  .hero-image img {
    width: 180px;
  }

  .hero-card {
    position: static !important;
    top: auto !important;
    width: 100%;
  }
}


/* v175 desktop hero tuning */
.hero-image img {
  width: 280px !important;           /* slightly larger */
  border: none !important;           /* no white-ish frame */
  outline: none !important;
  background: transparent !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22) !important;
}

.hero-card {
  margin-top: -0.4rem !important;    /* lift closer to image */
  top: 88px !important;
}

.hero-stats {
  margin-top: 0.35rem !important;    /* add separation from card */
}

@media (max-width: 900px) {
  .hero-image img {
    width: 180px !important;
  }

  .hero-card {
    margin-top: 0 !important;
    top: auto !important;
  }

  .hero-stats {
    margin-top: 0 !important;
  }
}


/* v176 hero structural fix */
.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  grid-template-areas:
    "intro photo"
    "intro card"
    "stats stats" !important;
  column-gap: 2rem !important;
  row-gap: 1rem !important;
  align-items: start !important;
}

.hero-intro {
  grid-area: intro !important;
  min-width: 0;
}

.hero-image {
  grid-area: photo !important;
  align-self: start !important;
  justify-self: end !important;
  display: block !important;
  margin: 0 !important;
}

.hero-image img {
  display: block !important;
  width: 300px !important;
  max-width: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important;
  margin: 0 !important;
}

.hero-card {
  grid-area: card !important;
  position: static !important;
  top: auto !important;
  align-self: start !important;
  margin: 0 !important;
  width: auto !important;
}

.hero-stats {
  grid-area: stats !important;
  grid-column: 1 / -1 !important;
  margin-top: 0.5rem !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.hero-stats > li {
  list-style: none;
}

.hero-stats .hero-link-card {
  display: block !important;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.hero-stats .hero-link-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "intro"
      "photo"
      "card"
      "stats" !important;
    row-gap: 1rem !important;
  }

  .hero-image {
    justify-self: center !important;
  }

  .hero-image img {
    width: 190px !important;
  }

  .hero-card {
    position: static !important;
    top: auto !important;
  }

  .hero-stats {
    grid-template-columns: 1fr !important;
  }
}


/* v177 hero refinements */
.hero-image {
  position: relative;
  justify-self: end !important;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 6% 8% 10% 8%;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 35%, rgba(143,180,255,0.14), rgba(143,180,255,0.04) 55%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 264px !important;
  max-width: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16) !important;
  margin: 0 !important;
}

.hero-card {
  width: 264px !important;
  justify-self: end !important;
  margin-top: 0.15rem !important;
}

.hero-card h2 {
  text-align: center !important;
  margin-bottom: 0.9rem !important;
}

@media (max-width: 900px) {
  .hero-image {
    justify-self: center !important;
  }

  .hero-image::before {
    inset: 8% 10% 12% 10%;
    filter: blur(8px);
  }

  .hero-image img {
    width: 180px !important;
  }

  .hero-card {
    width: 100% !important;
    justify-self: stretch !important;
    margin-top: 0 !important;
  }

  .hero-card h2 {
    text-align: left !important;
  }
}


/* v178 remove card feel + tighten title */
.hero-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero-card h2 {
  font-size: 1.2rem !important;
  white-space: nowrap !important;
}

/* v180 title fix */
.hero-card h2 {
  font-size: 1.35rem !important;
  letter-spacing: 0.02em;
}

/* v181 enlarge At a Glance title ~2x */
.hero-card h2 {
  font-size: 2.4rem !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
