.page-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 24px 20px 56px;
  box-sizing: border-box;
}

.hero-card {
  margin-bottom: 34px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(252, 254, 255, 0.94), rgba(244, 249, 252, 0.88)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card[id] {
  scroll-margin-top: 110px;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 206, 221, 0.28), transparent 68%);
  transform: translate(-35%, -35%);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 225, 234, 0.24), transparent 70%);
  transform: translate(28%, 32%);
  pointer-events: none;
}

.hero-copy,
.hero-image-wrap {
  position: relative;
  z-index: 1;
}

.hero-copy::after {
  content: '';
  display: block;
  clear: both;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px 0;
}

.site-header-inner {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(245, 248, 251, 0.86);
  box-shadow: 0 12px 24px rgba(49, 47, 40, 0.06);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c5b2d;
}

.hero-name {
  text-align: left;
  padding-top: 0;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
  color: #183241;
}

.hero-role {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #4b606b;
}

.hero-contact {
  margin-bottom: 16px;
  color: #4b606b;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 95, 125, 0.09);
  border: 1px solid rgba(24, 95, 125, 0.12);
  color: #184d65;
  font-size: 14px;
  font-weight: 600;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 0;
}

.hero-links span {
  color: #a7a19a;
}

.hero-image-wrap {
  float: right;
  width: min(24%, 180px);
  margin: -260px 0 16px 22px;
}

.hero-photo {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  border: 6px solid rgba(255, 252, 248, 0.9);
  box-shadow: 0 18px 38px rgba(43, 39, 28, 0.16);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  justify-content: flex-end;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 95, 125, 0.08);
  border: 1px solid rgba(24, 95, 125, 0.1);
  color: #184d65;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.section-nav a:hover,
.section-nav a:focus {
  color: white;
  background: linear-gradient(135deg, #185f7d, #2a7c95);
  border-color: transparent;
}

.content-section {
  margin-bottom: 26px;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.content-section[id] {
  scroll-margin-top: 110px;
}

.content-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.content-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(24, 95, 125, 0.22), transparent);
}

.content-section p,
.content-section li {
  line-height: 1.7;
}

.section-intro {
  margin-bottom: 14px;
  color: var(--muted);
}

.research-list {
  counter-reset: research-item;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.research-list li {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 18px 18px 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 95, 125, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.research-list li::before {
  counter-increment: research-item;
  content: counter(research-item);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
  background: linear-gradient(135deg, #185f7d, #2a7c95);
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-item,
.citation-item {
  padding: 18px 20px;
  border: 1px solid rgba(24, 95, 125, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 24px rgba(49, 47, 40, 0.05);
}

.stack-item p:last-child,
.citation-item p:last-child {
  margin-bottom: 0;
}

.stack-title {
  font-weight: 600;
  color: #173240;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(24, 95, 125, 0.08);
}

.timeline-item[hidden] {
  display: none;
}

.timeline-date {
  font-weight: 600;
  color: #184d65;
}

.timeline-toggle {
  margin-top: 12px;
}

.timeline-toggle button {
  border: 1px solid rgba(24, 95, 125, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: #185f7d;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
}

.timeline-toggle button:hover,
.timeline-toggle button:focus {
  color: #b55d1d;
  border-color: rgba(181, 93, 29, 0.24);
}

.photo-album-section {
  overflow: hidden;
}

.album-shell {
  display: grid;
  grid-template-areas: 'prev stage next';
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.album-stage {
  grid-area: stage;
  position: relative;
  min-height: 420px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(233, 241, 245, 0.88), rgba(251, 248, 243, 0.92));
  border: 1px solid rgba(24, 95, 125, 0.1);
}

.album-slide {
  margin: 0;
  display: grid;
  gap: 12px;
}

.album-slide[hidden] {
  display: none;
}

.album-photo {
  display: block;
  width: 100%;
  height: min(54vw, 540px);
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 40px rgba(36, 40, 28, 0.14);
}

.album-caption {
  margin: 12px 4px 0;
  color: #4b606b;
  text-align: center;
}

.album-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(24, 95, 125, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #185f7d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.album-arrow[data-album-prev] {
  grid-area: prev;
}

.album-arrow[data-album-next] {
  grid-area: next;
}

.album-arrow:hover,
.album-arrow:focus {
  transform: translateY(-1px);
  background: #185f7d;
  color: #ffffff;
}

.album-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  background: rgba(255, 255, 255, 0.84);
  color: #185f7d;
}

.album-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.album-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 95, 125, 0.22);
  cursor: pointer;
}

.album-dot.is-active {
  background: #185f7d;
}

.clustrmaps-footer {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

#clustrmaps-widget {
  width: 180px;
  max-width: 100%;
  overflow: hidden;
}

.site-footer {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 2px 20px 40px;
  box-sizing: border-box;
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px 36px;
  }

  .hero-card {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .site-header {
    padding: 10px 16px 0;
  }

  .site-header-inner {
    gap: 12px;
    padding: 14px;
  }

  .hero-copy {
    order: initial;
  }

  .hero-name {
    text-align: center;
    font-size: 46px;
  }

  .hero-eyebrow,
  .hero-role,
  .hero-contact,
  .hero-links {
    justify-content: center;
    text-align: center;
  }

  .hero-tags {
    justify-content: center;
  }

  .hero-image-wrap {
    float: none;
    width: min(100%, 180px);
    margin: 0 auto 22px;
  }

  .content-section {
    padding: 22px 20px 24px;
    border-radius: 20px;
  }

  .section-nav {
    justify-content: center;
  }

  .section-nav a {
    flex: 1 1 140px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .album-shell {
    grid-template-areas:
      'stage stage'
      'prev next';
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .album-stage {
    min-height: auto;
    padding: 14px;
  }

  .album-photo {
    height: min(68vw, 380px);
  }

  .album-arrow {
    justify-self: stretch;
    width: 100%;
  }

  #clustrmaps-widget {
    width: 140px;
  }

  .research-list li {
    padding: 64px 16px 16px;
  }

  .research-list li::before {
    left: 16px;
    top: 16px;
  }
}
