:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --ink: #10243f;
  --muted: #58708c;
  --line: #d7e5f3;
  --blue: #145da0;
  --blue-dark: #0b315f;
  --blue-soft: #eaf4ff;
  --sky: #62a8e5;
  --shadow: 0 24px 60px rgba(16, 36, 63, 0.14);
  --max: 1160px;
  --gutter: clamp(24px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-y: scroll;
}

a {
  color: inherit;
}

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

.site-header {
  align-items: center;
  background: rgba(247, 251, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.site-header,
.site-header * {
  font-family: Arial, Helvetica, sans-serif;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 224px;
  gap: 12px;
  min-width: 224px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  color: #fff;
  display: grid;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: -4px;
}

.main-nav {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 50px;
  white-space: nowrap;
}

.main-nav a {
  align-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  min-height: 50px;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  background: #fff;
  border-color: var(--line);
  color: var(--blue-dark);
  outline: none;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  display: none;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.menu-button span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  margin: 0 0 22px;
}

.home-copy h1 {
  font-size: clamp(3rem, 6.4vw, 5.25rem);
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 14px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.28;
  margin: 0 0 8px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.lead {
  color: #2f4c6d;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  max-width: 720px;
}

.home-hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  margin: 0 auto;
  min-height: 0;
  max-width: none;
  padding: clamp(32px, 5.5vw, 66px) 0 clamp(38px, 5vw, 64px);
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--max));
}

.home-copy {
  max-width: 720px;
}

.home-actions,
.filter-controls,
.quick-links,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter,
.quick-links a,
.link-list a {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  text-decoration: none;
}

.button.primary,
.filter.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button.secondary,
.quick-links a,
.link-list a {
  background: #fff;
  color: var(--blue-dark);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.profile-photo {
  box-shadow: var(--shadow);
  margin: 0;
}

.profile-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 48%;
  width: 100%;
}

.home-panel {
  background: var(--blue-dark);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 380px;
  margin: 0 auto;
  max-width: none;
  padding: clamp(28px, 4vw, 44px) max(var(--gutter), calc((100vw - var(--max)) / 2));
}

.home-panel p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  max-width: 760px;
}

.quick-links {
  align-content: center;
  display: grid;
  gap: 10px;
}

.quick-links a {
  justify-content: flex-start;
  width: 100%;
}

.quick-links a:nth-child(-n + 2) {
  background: var(--blue-soft);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-hero,
.section {
  margin: 0 auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--max));
}

.page-hero {
  padding-bottom: clamp(28px, 4.5vw, 48px);
  padding-top: clamp(38px, 5.5vw, 66px);
}

.section {
  border-top: 1px solid var(--line);
  padding-bottom: clamp(38px, 5.5vw, 62px);
  padding-top: clamp(36px, 5vw, 58px);
}

.compact-section {
  border-top: 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-lead {
  color: var(--muted);
  margin-top: -8px;
  max-width: 760px;
}

.area-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.area-grid article,
.publication,
.timeline article,
.coming-soon,
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 36, 63, 0.06);
}

.area-grid article {
  min-height: 214px;
  padding: 24px;
}

.area-grid p,
.publication p,
.timeline p,
.coming-soon p,
.split-section p {
  color: var(--muted);
  margin: 0;
}

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

.detail-grid article {
  min-height: 260px;
}

.number {
  color: var(--sky);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 36px;
}

.filter-controls {
  margin-bottom: 20px;
}

.filter {
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  min-width: 92px;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication {
  display: grid;
  gap: 18px;
  grid-template-columns: 126px minmax(0, 1fr);
  padding: 20px;
}

.publication[hidden] {
  display: none;
}

.publication h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 8px;
}

.publication a {
  color: var(--blue);
  font-weight: 800;
}

.pub-year {
  color: var(--blue);
  font-weight: 800;
}

.split-section {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.status-card {
  padding: 26px;
}

.status-card span,
.timeline span {
  color: var(--blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  border-left: 5px solid var(--blue);
  padding: 22px 24px;
}

.timeline h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.skills span {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 8px 11px;
}

.homepage-skills {
  max-width: 940px;
}

.methods-section {
  padding-top: 28px;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 36, 63, 0.06);
  display: grid;
  gap: 26px;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 26px;
}

.project-card .number {
  margin-bottom: 0;
}

.project-card h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-bottom: 6px;
}

.project-meta {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.project-card p:last-child {
  color: var(--muted);
  margin: 0;
}

.feature-project p + p {
  margin-top: 12px;
}

.research-thread-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.research-thread-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 36, 63, 0.06);
  min-height: 210px;
  padding: 24px;
}

.research-thread-grid p {
  color: var(--muted);
  margin: 0;
}

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

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

.research-work-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 36, 63, 0.06);
  min-height: 210px;
  padding: 24px;
}

.research-work-grid p {
  color: var(--muted);
  margin: 0;
}

.research-work-grid .project-meta {
  margin-bottom: 10px;
}

.coming-soon {
  background:
    linear-gradient(135deg, rgba(20, 93, 160, 0.1), rgba(98, 168, 229, 0.2)),
    #fff;
  min-height: 280px;
  padding: 34px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 44px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.stacked-button {
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 1000px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 10px 18px 18px;
    position: absolute;
    right: 0;
    top: 71px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    min-height: 44px;
    width: 100%;
  }

  .home-hero,
  .home-panel,
  .split-section {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .area-grid,
  .detail-grid,
  .research-thread-grid,
  .research-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand small {
    display: none;
  }

  .brand {
    flex-basis: auto;
    min-width: 0;
  }

  h1 {
    font-size: 3.15rem;
  }

  .home-copy h1 {
    font-size: clamp(2.65rem, 13vw, 3.15rem);
  }

  .area-grid,
  .detail-grid,
  .publication,
  .project-card,
  .research-thread-grid,
  .research-work-grid {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}
