/* =========================================================
   MicroSystems Lab (µSL) — School of Computer & Systems Sciences, JNU
   Design tokens
   ========================================================= */

:root {
  /* Color */
  --white: #ffffff;
  --paper: #f9fafc;
  --navy-950: #0a1e42;
  --navy-900: #0d264f;
  --navy-800: #123468;
  --blue-600: #1f4e96;
  --blue-500: #2f63b4;
  --blue-100: #eaf1fb;
  --blue-50: #f3f7fd;
  --line: #dfe6f0;
  --line-soft: #eef2f8;
  --ink: #16202f;
  --ink-soft: #4c5866;
  --ink-faint: #7a8494;

  /* Type */
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 900px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 66, 0.06), 0 1px 1px rgba(10, 30, 66, 0.04);
  --shadow-md: 0 6px 20px rgba(10, 30, 66, 0.08), 0 2px 6px rgba(10, 30, 66, 0.05);
  --shadow-lg: 0 18px 48px rgba(10, 30, 66, 0.12), 0 4px 12px rgba(10, 30, 66, 0.06);
  --nav-h: 76px;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue-600);
  display: inline-block;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--alt {
  background: var(--blue-50);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 14px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------------- Circuit trace signature motif ---------------- */
.trace-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-500);
  margin: 0 0 40px;
}

.trace-divider::before,
.trace-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.trace-divider svg {
  flex-shrink: 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--navy-950);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--navy-950);
}

.btn-outline:hover {
  background: var(--navy-950);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-600);
  padding: 8px 0;
}

.btn-ghost::after {
  content: "→";
  margin-left: 8px;
  transition: transform .2s ease;
  display: inline-block;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-brand-text {
  line-height: 1.25;
}

.nav-brand-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy-950);
  display: block;
}

.nav-brand-text .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 6px;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-links a:hover {
  color: var(--navy-950);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--navy-950);
  font-weight: 600;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-950);
  margin: 5px 0;
  transition: all .2s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-links.open {
    max-height: 480px;
    box-shadow: var(--shadow-md);
  }

  .nav-links a {
    padding: 16px 32px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-600);
}

.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-meta div {
  font-family: var(--font-mono);
}

.hero-meta .num {
  font-size: 26px;
  color: var(--navy-950);
  font-weight: 600;
  display: block;
}

.hero-meta .lbl {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-500);
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

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

@media (max-width: 980px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-art {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}

/* Research area card */
.research-card {
  padding: 30px 26px;
}

.research-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.research-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.research-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Facility card */
.facility-card {
  overflow: hidden;
}

.facility-card .thumb {
  height: 170px;
  background: var(--navy-950);
  position: relative;
  overflow: hidden;
}

.facility-card .thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.facility-card .body {
  padding: 22px 24px;
}

.facility-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.facility-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Person preview card (home) */
.person-card {
  padding: 26px;
  text-align: center;
}

.person-card .avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--blue-100);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  overflow: hidden;
}

.person-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy-950);
  font-weight: 600;
}

.person-card .role {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* PI preview (home) - larger */
.pi-preview {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.pi-preview .photo {
  width: 100%;
  aspect-ratio: 1/1.05;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-900), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
}

.pi-preview h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.pi-preview .role {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 16px;
}

.pi-preview p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .pi-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pi-preview .photo {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Collaborators */
.collab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.collab-chip {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.collab-chip .mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.collab-chip .txt strong {
  display: block;
  font-size: 14px;
  color: var(--navy-950);
}

.collab-chip .txt span {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Announcements */
.announce-list {
  border-top: 1px solid var(--line);
}

.announce-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.announce-item .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-600);
}

.announce-item h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 6px;
}

.announce-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 20px;
  padding: 5px 12px;
  height: fit-content;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .announce-item {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid .g-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-900), var(--blue-500));
  position: relative;
}

.gallery-grid .g-item span {
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info dl {
  margin: 0;
}

.contact-info .row {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info .row .k {
  width: 110px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-faint);
  padding-top: 2px;
}

.contact-info .row .v {
  font-size: 15px;
  color: var(--ink);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 260px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-500);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
}

.footer-top {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.footer-brand .sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  letter-spacing: .03em;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color .2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--blue-600);
}

.page-header h1 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.page-header .lede {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px
}

/* =========================================================
   About PI page
   ========================================================= */
.pi-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.pi-photo-block {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.pi-photo {
  width: 100%;
  aspect-ratio: 3/3.6;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-900), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.pi-photo-caption {
  text-align: center;
}

.pi-photo-caption .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-950);
}

.pi-photo-caption .role {
  font-size: 13.5px;
  color: var(--blue-600);
  margin-top: 4px;
  font-weight: 600;
}

.pi-photo-caption .dept {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.pi-section {
  margin-bottom: 52px;
}

.pi-section h2 {
  font-size: 21px;
  margin-bottom: 22px;
}

/* Key:Value professional info */
.kv-list {
  border-top: 1px solid var(--line);
}

.kv-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.kv-row .k {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 2px;
}

.kv-row .v {
  font-size: 15.5px;
  color: var(--ink);
}

.kv-row .v a {
  color: var(--blue-600);
}

@media (max-width: 640px) {
  .kv-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 20px;
  background: var(--blue-100);
  color: var(--navy-900);
  border: 1px solid var(--line);
  font-weight: 500;
}

/* Academic timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-600);
}

.timeline-item .period {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--blue-600);
  margin-bottom: 4px;
  display: block;
}

.timeline-item h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 3px;
}

.timeline-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* Awards list */
.awards-list {
  list-style: none;
}

.awards-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.awards-list li::before {
  content: "—";
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
}

.awards-list li .yr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-left: auto;
  padding-left: 16px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .pi-layout {
    grid-template-columns: 1fr;
  }

  .pi-photo-block {
    position: static;
    max-width: 240px;
    margin: 0 auto 40px;
  }
}

/* =========================================================
   Team page
   ========================================================= */
.team-group-title {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 56px 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-group-title:first-of-type {
  margin-top: 0;
}

.team-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.member-card {
  padding: 28px 24px 24px;
}

.member-card .avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 18px;
}

.member-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-950);
}

.member-card .pos {
  font-size: 13.5px;
  color: var(--blue-600);
  font-weight: 600;
  margin-top: 3px;
}

.member-card .dept {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 2px;
  margin-bottom: 16px;
}

.member-card .divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.member-card .field {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.member-card .field .lbl {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  width: 52px;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: .03em;
}

.member-card .field .val {
  color: var(--ink);
  word-break: break-word;
}

.member-card .interest {
  margin-top: 14px;
}

.member-card .interest .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-faint);
  letter-spacing: .03em;
  margin-bottom: 8px;
  display: block;
}

/* =========================================================
   Publications / Research reading layout
   ========================================================= */
.pub-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.pub-toolbar a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: all .2s ease;
}

.pub-toolbar a:hover,
.pub-toolbar a.active {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}

.reading {
  max-width: var(--container-narrow);
  margin: 0 auto;
  font-size: 16.5px;
  color: var(--ink);
}

.reading h2 {
  font-size: 24px;
  margin: 56px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy-950);
  color: var(--navy-950);
}

.reading h2:first-child {
  margin-top: 0;
}

.reading h3 {
  font-size: 18.5px;
  margin: 32px 0 14px;
  color: var(--blue-600);
  font-weight: 600;
}

.reading p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.reading strong,
.reading b {
  color: var(--navy-950);
  font-weight: 600;
}

.reading a {
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.reading a:hover {
  text-decoration-color: var(--blue-600);
}

.reading ol {
  list-style: none;
  counter-reset: pub;
  margin: 0 0 8px;
}

.reading ol>li {
  counter-increment: pub;
  position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.75;
}

.reading ol>li:first-child {
  padding-top: 4px;
}

.reading ol>li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue-600);
  font-weight: 600;
}

.reading ul {
  list-style: none;
  margin: 0 0 18px;
}

.reading ul>li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-soft);
}

.reading ul>li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.page-footer-nav {
  max-width: var(--container-narrow);
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* =========================================================
   Utility reveal animation (very subtle)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive media and image floats in reading content
   ========================================================= */
.reading::after {
  content: "";
  display: table;
  clear: both;
}

.reading img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  display: block;
}

/* Float Left style options */
.reading img.alignleft,
.reading img.short-image-left,
.reading img.float-start {
  float: left !important;
  margin: 8px 24px 24px 0 !important;
  max-width: 45% !important;
  width: auto !important;
  display: inline-block !important;
}

/* Float Right style options */
.reading img.alignright,
.reading img.short-image-right,
.reading img.float-end {
  float: right !important;
  margin: 8px 0 24px 24px !important;
  max-width: 45% !important;
  width: auto !important;
  display: inline-block !important;
}

/* Full Width/Screen style options */
.reading img.alignfull,
.reading img.large-image,
.reading img.fullscreen-image {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  height: auto !important;
  float: none !important;
  display: block !important;
}

/* Video / Embed media styling */
.reading video,
.reading iframe,
.reading embed,
.reading object {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
  display: block;
}

.reading iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* =========================================================
   Workshops Grid and Card styles
   ========================================================= */
.workshops-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.workshops-stats .stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.workshops-stats .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.workshops-stats .stat-content {
  display: flex;
  flex-direction: column;
}

.workshops-stats .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.workshops-stats .stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 4px;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.workshop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.workshop-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.workshop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.workshop-card:hover .workshop-card-image img {
  transform: scale(1.05);
}

.workshop-card-image i.placeholder-icon {
  font-size: 48px;
  opacity: 0.85;
}

.workshop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

.workshop-badge.organized {
  background: var(--blue-600);
  color: var(--white);
}

.workshop-badge.attended {
  background: #10b981;
  color: var(--white);
}

.workshop-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.workshop-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.workshop-meta-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.workshop-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.workshop-meta-item i {
  color: var(--blue-600);
  width: 14px;
}

.workshop-btn-row {
  margin-top: auto;
}

.workshop-btn-row .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Workshop Details styling */
.workshop-details-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 902px) {
  .workshop-details-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.workshop-sidebar-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.workshop-main-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.workshop-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-main-photo i {
  font-size: 64px;
}

.details-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.fact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-row .lbl {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fact-row .val {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

.details-content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

@media (max-width: 600px) {
  .details-content-card {
    padding: 24px;
  }
}

.details-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-section h2 i {
  color: var(--blue-600);
}

/* =========================================================
   Attractive Contact Thank-You Modal & Popup
   ========================================================= */
.usl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 30, 66, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.usl-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.usl-modal-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(10, 30, 66, 0.25);
  border: 1px solid rgba(220, 230, 245, 0.8);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.usl-modal-overlay.active .usl-modal-card {
  transform: scale(1) translateY(0);
}

.usl-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e6f7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.18);
  animation: popIn 0.5s ease 0.15s both;
}

@keyframes popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.usl-modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #28a745;
  background: #e6f7ed;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.usl-modal-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 12px;
}

.usl-modal-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}

.usl-modal-card .modal-close-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
  background: var(--navy-950);
  box-shadow: 0 4px 14px rgba(10, 30, 66, 0.2);
}

.usl-modal-card .modal-close-btn:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 18px rgba(47, 99, 180, 0.3);
}

/* Gallery Lightbox Enhancements */
.usl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 15, 35, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.usl-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid .g-item:hover img {
  transform: scale(1.08);
}