:root {
  --navy: #012f63;
  --navy-soft: #e9f0f7;
  --pink: #ec707d;
  --pink-rgb: 236, 112, 125;
  --venue-rgb: 108, 149, 181;
  --venue: rgb(108, 149, 181);
  --teal: rgb(108, 149, 181);
  --violet: #8a7fbb;
  --orange: #ec707d;
  --text: #012f63;
  --muted: #41638a;
  --border: rgba(var(--venue-rgb), 0.2);
  --shadow: 0 14px 34px rgba(22, 45, 72, 0.1);
  --shadow-hover: 0 20px 46px rgba(22, 45, 72, 0.13);
  --surface: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.92));
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at 10% 12%, rgba(var(--pink-rgb), 0.2), rgba(var(--pink-rgb), 0) 32%),
    radial-gradient(circle at 90% 9%, rgba(var(--venue-rgb), 0.22), rgba(var(--venue-rgb), 0) 34%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 20%, #ffffff 100%);
}

a {
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a::after {
  background: var(--pink);
  bottom: -2px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease;
  width: 100%;
}

a:hover {
  color: var(--pink);
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

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

.masthead {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(108, 149, 181, 0.22);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.4rem;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 56px;
  padding: 0.55rem 1.25rem;
}

.nav a {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--pink);
}

.nav__brand {
  font-weight: 700;
}

.nav__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.4rem;
  margin-left: 1.25rem;
}

.language-switcher {
  align-items: center;
  background: rgba(var(--venue-rgb), 0.1);
  border: 1px solid rgba(var(--venue-rgb), 0.25);
  border-radius: 999px;
  display: flex;
  margin-left: auto;
  padding: 0.18rem;
}

.language-switcher__button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  min-width: 2.65rem;
  padding: 0.48rem 0.66rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.language-switcher__button.is-active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 45, 72, 0.13);
  color: var(--navy);
}

.language-switcher__button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 260px minmax(0, 950px);
  margin: 0 auto;
  max-width: 1280px;
  padding: 2rem 1.4rem 3.5rem;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 5.5rem;
}

.profile {
  color: var(--navy);
  text-align: left;
}

.profile__avatar {
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  height: 190px;
  margin: 0 auto 1rem;
  object-fit: cover;
  width: 190px;
}

.profile__name {
  font-size: 1.2rem;
  margin: 0.45rem 0 0.2rem;
  padding: 0;
  text-align: center;
}

.profile__name::before {
  display: none;
}

.profile__bio {
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.profile__tagline {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.94rem;
  margin: 1rem 0;
  padding: 0.8rem 0;
}

.profile__contact {
  text-align: left;
}

.profile__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile__links li {
  margin-bottom: 0.55rem;
  padding: 0;
}

.profile__links li:hover {
  transform: none;
}

.profile__links a {
  text-decoration: underline;
  text-decoration-color: rgba(1, 47, 99, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile__links a::after {
  display: none;
}

.profile__links a:hover {
  text-decoration-color: var(--pink);
}

.content {
  isolation: isolate;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.content::before {
  background-image: radial-gradient(rgba(86, 121, 152, 0.18) 0.8px, transparent 0.8px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

section {
  margin-bottom: 2.1rem;
}

h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 1.1rem 0 0.7rem;
  padding-left: 0.9rem;
  position: relative;
}

h2 {
  background: linear-gradient(130deg, rgba(var(--pink-rgb), 0.16), rgba(var(--venue-rgb), 0.16));
  border: 1px solid rgba(var(--venue-rgb), 0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-size: 1.45rem;
  padding: 0.45rem 0.92rem 0.45rem 1rem;
}

h3 {
  font-size: 1.08rem;
}

h3::before {
  background: var(--navy);
  border-radius: 2px;
  content: "";
  height: 70%;
  left: 0;
  position: absolute;
  top: 15%;
  width: 4px;
}

h2::before {
  display: none;
}

p {
  margin: 0 0 0.72rem;
}

.anchor {
  display: block;
  height: 4.8rem;
  margin-top: -4.8rem;
}

.research-note,
.news-box,
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  box-shadow: var(--shadow);
  margin: 1.1rem 0;
  padding: 1rem 1.15rem;
  backdrop-filter: blur(8px);
}

.thinking-section__header {
  margin-bottom: 1.15rem;
}

.thinking-section__header h2 {
  margin-bottom: 0.55rem;
}

.section-kicker {
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 0.4rem 0.15rem;
  text-transform: uppercase;
}

.section-lead {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 760px;
}

.thesis-list {
  display: grid;
  gap: 1rem;
}

.thesis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  overflow: hidden;
  padding: 1.2rem 1.3rem;
  position: relative;
}

.thesis-card::before {
  background: linear-gradient(180deg, var(--pink), var(--venue));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.thesis-card__number {
  color: rgba(var(--venue-rgb), 0.65);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 0.16rem;
}

.thesis-card__content h3 {
  font-size: 1.22rem;
  margin: 0 0 0.75rem;
  padding-left: 0;
}

.thesis-card__content h3::before {
  display: none;
}

.thesis-card__conclusion {
  background: linear-gradient(110deg, rgba(var(--pink-rgb), 0.1), rgba(var(--venue-rgb), 0.09));
  border-radius: 0.65rem;
  margin: 0.95rem 0 0;
  padding: 0.78rem 0.9rem;
}

.thesis-points {
  counter-reset: thesis-point;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.thesis-points li {
  counter-increment: thesis-point;
  margin: 0.5rem 0;
  padding-left: 1.85rem;
  position: relative;
}

.thesis-points li::before {
  align-items: center;
  background: rgba(var(--venue-rgb), 0.14);
  border-radius: 50%;
  color: var(--navy);
  content: counter(thesis-point);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  height: 1.25rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0.22rem;
  width: 1.25rem;
}

.content p a,
.content li a {
  padding-bottom: 1px;
  text-decoration: underline;
  text-decoration-color: rgba(1, 47, 99, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content p a::after,
.content li a::after {
  display: none;
}

.content p a:hover,
.content li a:hover {
  text-decoration-color: var(--pink);
}

.plain-list,
.education-list,
.paper-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
}

.plain-list li,
.education-list li,
.paper-box li {
  margin-bottom: 0.45rem;
  padding: 0.2rem 0;
  transition: transform 0.2s ease;
}

.plain-list li:hover,
.education-list li:hover,
.paper-box li:hover {
  transform: translateX(5px);
}

.education-list {
  list-style: none;
  padding-left: 0;
}

.education-list li {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.edu-logo {
  display: inline-block;
  flex: 0 0 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  width: 22px;
}

.news-box p {
  background: linear-gradient(110deg, rgba(var(--pink-rgb), 0.07), rgba(var(--venue-rgb), 0.05));
  border-bottom: 0;
  border-left: 3px solid var(--pink);
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
}

.news-box p:last-child {
  border-bottom: 0;
}

.insight-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.insight-card {
  margin: 0;
  min-height: 148px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.insight-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.insight-card h3 {
  margin-top: 0;
}

.insight-card p {
  margin-bottom: 0;
}

.paper-box {
  align-items: flex-start;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(200px, 38%) minmax(0, 1fr);
  margin: 1rem 0;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

.paper-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.paper-box::before {
  background: linear-gradient(135deg, rgba(var(--pink-rgb), 0.42), rgba(var(--venue-rgb), 0.34));
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.68;
  padding: 1px;
  pointer-events: none;
  position: absolute;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.paper-box::after {
  background: radial-gradient(circle at 22% 18%, rgba(var(--pink-rgb), 0.11), rgba(var(--pink-rgb), 0) 36%);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.paper-box__image {
  position: relative;
  z-index: 1;
}

.paper-box__image img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(var(--venue-rgb), 0.24);
  border-radius: 0.72rem;
  box-shadow: 3px 3px 8px rgba(43, 58, 76, 0.22);
  object-fit: cover;
  width: 100%;
}

.badge {
  background: linear-gradient(115deg, rgba(var(--pink-rgb), 0.92), rgba(var(--venue-rgb), 0.88));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(22, 45, 72, 0.2);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  left: -0.35rem;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem;
  position: absolute;
  top: 0.5rem;
  z-index: 2;
}

.badge--teal {
  background: var(--venue);
}

.badge--violet {
  background: var(--pink);
}

.badge--orange {
  background: var(--pink);
}

.badge--navy {
  background: var(--venue);
}

.paper-box__text p {
  color: var(--navy);
  font-size: 1.02rem;
  margin-top: 0;
}

.paper-box__text {
  position: relative;
  z-index: 1;
}

.footer {
  border-top: 1px solid rgba(108, 149, 181, 0.22);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.1rem 1.4rem 2rem;
  text-align: center;
}

@media (max-width: 820px) {
  .layout {
    display: block;
    padding-top: 1.25rem;
  }

  .sidebar {
    position: static;
  }

  .anchor {
    height: 7.2rem;
    margin-top: -7.2rem;
  }

  .profile {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.7rem;
    padding-bottom: 1.1rem;
    text-align: center;
  }

  .profile__avatar {
    height: 150px;
    width: 150px;
  }

  .profile__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
  }

  .paper-box {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: grid;
    gap: 0.45rem 0.9rem;
    grid-template-columns: 1fr auto;
    padding: 0.5rem 0.9rem;
  }

  .nav__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav__links {
    gap: 0.25rem 0.9rem;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 14px;
  }

  .layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .education-list li {
    align-items: flex-start;
  }

  .paper-box {
    padding: 1rem;
  }

  .thesis-card {
    gap: 0.55rem;
    grid-template-columns: 1fr;
    padding: 1rem 1rem 1rem 1.15rem;
  }

  .thesis-card__number {
    font-size: 1rem;
  }
}
