:root {
  --navy: #091e3a;
  --navy-soft: #12345b;
  --blue: #2563eb;
  --blue-bright: #4d8dff;
  --blue-pale: #eaf1ff;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #12233d;
  --text-soft: #41536d;
  --muted: #708097;
  --border: #dfe6ef;
  --border-light: #eaf0f6;
  --shadow-sm: 0 10px 30px rgba(9, 30, 58, 0.06);
  --shadow-md: 0 24px 60px rgba(9, 30, 58, 0.12);
  --container: 1180px;
  --read-width: 800px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(77, 141, 255, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 230, 239, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--container), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.07em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-main {
  min-height: calc(100vh - 280px);
}

/* Home hero */
.landing-hero {
  position: relative;
  width: min(var(--container), calc(100% - 40px));
  min-height: 630px;
  margin: 32px auto 0;
  padding: 76px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 72px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(77, 141, 255, 0.28), transparent 31%),
    linear-gradient(135deg, #07192f 0%, #0a2547 58%, #103969 100%);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.landing-hero::before {
  position: absolute;
  top: -160px;
  right: -110px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.landing-hero::after {
  position: absolute;
  right: 43%;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.18);
  content: "";
  filter: blur(2px);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.landing-hero .eyebrow {
  color: #76aaff;
}

.landing-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.1vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.landing-hero h1 span {
  color: #82b4ff;
}

.hero-lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-identity {
  margin-top: 34px;
  padding-left: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 3px solid var(--blue-bright);
}

.hero-identity strong {
  flex: 0 0 auto;
  font-size: 1.12rem;
}

.hero-identity span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.button--primary:hover {
  background: #3271f0;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.11);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 390px);
}

.portrait-frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  transform: rotate(1.3deg);
}

.portrait-frame::before {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 88px;
  height: 88px;
  border-top: 2px solid rgba(130, 180, 255, 0.65);
  border-right: 2px solid rgba(130, 180, 255, 0.65);
  border-radius: 0 20px 0 0;
  content: "";
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 28%;
}

.hero-badge {
  position: absolute;
  right: -26px;
  bottom: 34px;
  min-width: 238px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  background: rgba(7, 25, 47, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

.hero-badge strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #59d596;
  box-shadow: 0 0 0 5px rgba(89, 213, 150, 0.12);
}

/* Home sections */
.section-block {
  width: min(var(--container), calc(100% - 40px));
  margin: 112px auto 0;
}

.section-heading {
  margin-bottom: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.summary-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.section-heading > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.section-heading--compact {
  margin-bottom: 30px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.expertise-card {
  position: relative;
  min-height: 320px;
  padding: 30px 26px 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.expertise-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #71a9ff);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.expertise-card:hover {
  border-color: #cbd9ec;
  box-shadow: 0 18px 42px rgba(9, 30, 58, 0.1);
  transform: translateY(-5px);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-pale);
  color: var(--blue);
}

.expertise-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-number {
  position: absolute;
  top: 30px;
  right: 25px;
  color: #a4b2c5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.expertise-card h3 {
  margin: 27px 0 12px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.4;
}

.expertise-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.75;
}

.card-keywords {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.featured-post {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.featured-post__accent {
  min-height: 300px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 80% 20%, rgba(77, 141, 255, 0.42), transparent 38%),
    var(--navy);
  color: #fff;
}

.featured-post__accent span {
  color: #86b6ff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.featured-post__accent strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.featured-post__body {
  padding: 42px 48px;
  align-self: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.new-label {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.62rem;
}

.featured-post__body h3 {
  max-width: 790px;
  margin: 14px 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.38;
}

.featured-post__body h3 a,
.post-grid-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.featured-post__body h3 a:hover,
.post-grid-card h3 a:hover {
  color: var(--blue);
}

.featured-post__body p {
  max-width: 790px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link span,
.section-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.section-link:hover span {
  transform: translateX(4px);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-grid-card {
  position: relative;
  min-height: 285px;
  padding: 27px 25px 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-grid-card:hover {
  border-color: #c8d8ed;
  box-shadow: 0 18px 42px rgba(9, 30, 58, 0.1);
  transform: translateY(-4px);
}

.post-grid-card .post-meta {
  justify-content: space-between;
}

.post-grid-card .post-meta span {
  color: var(--blue);
}

.post-grid-card h3 {
  margin: 22px 0 12px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.52;
}

.post-grid-card p {
  margin: 0 0 25px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.card-arrow {
  width: 36px;
  height: 36px;
  margin-top: auto;
  display: grid;
  place-items: center;
  align-self: flex-end;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.card-arrow:hover {
  background: var(--blue);
  color: #fff;
  transform: translateX(3px);
}

.profile-summary {
  margin-bottom: 112px;
  padding: 62px 64px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 80px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 88%, rgba(77, 141, 255, 0.2), transparent 30%),
    var(--navy);
  color: #fff;
}

.summary-intro .eyebrow {
  color: #79adff;
}

.summary-intro h2 {
  color: #fff;
}

.summary-intro > p:last-child {
  max-width: 360px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.summary-list {
  display: grid;
}

.summary-item {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  scroll-margin-top: 105px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-item:first-child {
  padding-top: 4px;
  border-top: 0;
}

.summary-item > span {
  padding-top: 4px;
  color: #79adff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.summary-item h3 {
  margin: 0 0 7px;
  font-size: 1.05rem;
}

.summary-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.72;
}

.summary-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8ab7ff;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.summary-link span {
  transition: transform 180ms ease;
}

.summary-link:hover {
  color: #fff;
}

.summary-link:hover span {
  transform: translateX(4px);
}

/* Research publications */
.research-page .reading-shell {
  width: min(1100px, calc(100% - 40px));
}

.research-page .prose-content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.research-hero {
  position: relative;
  padding: 66px 68px 56px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 16%, rgba(77, 141, 255, 0.35), transparent 30%),
    linear-gradient(135deg, #07192f 0%, #0a2547 64%, #103969 100%);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.research-hero::after {
  position: absolute;
  top: -105px;
  right: -82px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.research-hero .eyebrow {
  position: relative;
  z-index: 1;
  color: #8ab7ff;
}

.research-page .research-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 15px;
  color: #fff;
  font-size: clamp(2.65rem, 6vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 1.15;
}

.research-page .research-hero > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  line-height: 1.85;
}

.research-overview {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.research-overview div {
  display: grid;
  gap: 3px;
}

.research-overview strong {
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.research-overview span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-note {
  margin: 28px 0 64px;
  padding: 17px 20px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #cfe0fa;
  border-radius: 12px;
  background: #f0f6ff;
}

.publication-note > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.research-page .publication-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.publication-year {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 38px;
  scroll-margin-top: 105px;
}

.publication-year + .publication-year {
  margin-top: 64px;
}

.publication-year__heading {
  padding-top: 6px;
}

.research-page .publication-year__heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--navy);
  font-size: 2.15rem;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.publication-year__heading span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.publication-card {
  position: relative;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(9, 30, 58, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.publication-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--blue-bright));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.publication-card:hover {
  border-color: #c6d7ed;
  box-shadow: 0 16px 38px rgba(9, 30, 58, 0.09);
  transform: translateY(-3px);
}

.publication-card:hover::before {
  opacity: 1;
}

.publication-index {
  padding-top: 4px;
  color: #9aa9bd;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.research-page .publication-card h3 {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: -0.025em;
  line-height: 1.58;
}

.research-page .publication-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.research-page .publication-card h3 a span {
  display: inline-block;
  margin-left: 4px;
  color: #91a4bd;
  font-size: 0.75em;
  transition: color 180ms ease, transform 180ms ease;
}

.research-page .publication-card h3 a:hover {
  color: var(--blue);
}

.research-page .publication-card h3 a:hover span {
  color: var(--blue);
  transform: translate(2px, -2px);
}

.research-page .publication-authors,
.research-page .publication-source {
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

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

.research-page .publication-source {
  margin-top: 3px;
  color: var(--muted);
}

.research-page .publication-source cite {
  color: #41536d;
  font-style: normal;
  font-weight: 700;
}

.research-page .publication-source a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.research-footer {
  margin-top: 76px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.research-page .research-footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.research-page .research-footer .button {
  color: #fff;
  text-decoration: none;
}

/* Teaching and education */
.teaching-page .reading-shell {
  width: min(1100px, calc(100% - 40px));
}

.teaching-page .prose-content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.teaching-hero {
  position: relative;
  padding: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 72px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(77, 141, 255, 0.35), transparent 31%),
    linear-gradient(135deg, #07192f 0%, #0a2547 62%, #103969 100%);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.teaching-hero::after {
  position: absolute;
  top: -150px;
  right: -105px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.teaching-hero__copy,
.teaching-overview {
  position: relative;
  z-index: 1;
}

.teaching-hero .eyebrow {
  color: #8ab7ff;
}

.teaching-page .teaching-hero h1 {
  margin: 12px 0 22px;
  color: #fff;
  font-size: clamp(2.7rem, 5.8vw, 4.65rem);
  letter-spacing: -0.065em;
  line-height: 1.16;
}

.teaching-page .teaching-hero h1 span {
  color: #8ab7ff;
}

.teaching-page .teaching-hero__copy > p:last-child {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.85;
}

.teaching-overview {
  display: grid;
  gap: 18px;
}

.teaching-overview div {
  padding: 0 0 18px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.teaching-overview div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.teaching-overview strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.teaching-overview span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
}

.teaching-section {
  margin-top: 84px;
}

.teaching-section__heading {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.teaching-section__heading .eyebrow {
  margin-bottom: 9px;
}

.teaching-page .teaching-section__heading h2,
.teaching-page .education-outcome h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.055em;
  line-height: 1.3;
}

.teaching-section__heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.75;
  text-align: right;
}

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

.course-card {
  position: relative;
  min-height: 355px;
  padding: 33px 32px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.course-card:hover {
  border-color: #c6d7ed;
  box-shadow: 0 18px 42px rgba(9, 30, 58, 0.1);
  transform: translateY(-4px);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card__number {
  position: absolute;
  top: 25px;
  right: 27px;
  color: #b1bdcd;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.teaching-page .course-card__label {
  margin: 0 0 19px;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.teaching-page .course-card h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.teaching-page .course-card > p:not(.course-card__label) {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.teaching-page .course-tags {
  margin: 22px 0 25px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.teaching-page .course-tags li {
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #dce7f7;
  border-radius: 999px;
  background: #f4f8fe;
  color: #375270;
  font-size: 0.65rem;
  font-weight: 700;
}

.course-link,
.record-item a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue) !important;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.course-link {
  margin-top: auto;
}

.course-link span,
.record-item a span {
  transition: transform 180ms ease;
}

.course-link:hover span,
.record-item a:hover span {
  transform: translate(2px, -2px);
}

.record-list {
  position: relative;
  display: grid;
}

.record-list::before {
  position: absolute;
  top: 9px;
  bottom: 30px;
  left: 111px;
  width: 1px;
  background: #cdd9e8;
  content: "";
}

.record-item {
  position: relative;
  padding: 0 0 42px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 48px;
}

.record-item::before {
  position: absolute;
  top: 7px;
  left: 106px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px #aac2e4;
  content: "";
}

.record-item time {
  padding-top: 1px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.record-item > div {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.record-item:last-child,
.record-item:last-child > div {
  padding-bottom: 0;
  border-bottom: 0;
}

.record-badge {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.teaching-page .record-item h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.teaching-page .record-item p {
  max-width: 780px;
  margin: 0 0 13px;
  color: var(--text-soft);
  font-size: 0.81rem;
  line-height: 1.75;
}

.teaching-method {
  padding: 54px 56px 58px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 15%, rgba(77, 141, 255, 0.28), transparent 28%),
    var(--navy);
}

.teaching-section__heading--light .eyebrow {
  color: #8ab7ff;
}

.teaching-page .teaching-section__heading--light h2 {
  color: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.method-grid article {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.method-grid article > span {
  color: #8ab7ff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.teaching-page .method-grid h3 {
  margin: 16px 0 8px;
  color: #fff;
  font-size: 1.04rem;
}

.teaching-page .method-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.72;
}

.education-outcome {
  margin: 26px 0 94px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.education-outcome > div:first-child {
  max-width: 680px;
}

.education-outcome .eyebrow {
  margin-bottom: 9px;
}

.teaching-page .education-outcome h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.teaching-page .education-outcome > div:first-child > p:last-child {
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.72;
}

.outcome-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.teaching-page .outcome-actions .button {
  text-decoration: none;
}

.teaching-page .outcome-actions .button--secondary {
  border-color: var(--border);
  color: var(--navy);
}

/* Blog and post reading pages */
.reading-shell {
  width: min(940px, calc(100% - 40px));
  margin: 54px auto 92px;
}

.post-page .reading-shell {
  width: min(880px, calc(100% - 40px));
}

.prose-content {
  padding: 60px 66px 70px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.post-context {
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-context a {
  color: var(--blue);
  text-decoration: none;
}

.prose-content > h1:first-of-type {
  margin-top: 0;
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.prose-content h1 {
  margin: 0 0 0.75em;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.28;
}

.prose-content h2 {
  margin: 2.25em 0 0.8em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.72rem;
}

.prose-content h3 {
  margin: 1.9em 0 0.7em;
  font-size: 1.3rem;
}

.prose-content h4 {
  margin: 1.6em 0 0.65em;
  font-size: 1.08rem;
}

.prose-content p {
  margin: 1em 0;
  color: #253750;
}

.prose-content a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.prose-content ul,
.prose-content ol {
  margin: 1em 0;
  padding-left: 1.35em;
}

.prose-content li {
  margin: 0.48em 0;
  color: #253750;
}

.prose-content blockquote {
  margin: 1.5em 0;
  padding: 1.15em 1.3em;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: #f2f6fd;
  color: var(--text-soft);
}

.prose-content blockquote p {
  margin: 0;
  color: inherit;
}

.prose-content hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.prose-content img {
  height: auto;
  margin: 2em auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.prose-content code {
  padding: 0.12em 0.4em;
  border: 1px solid #e0e7f0;
  border-radius: 6px;
  background: #f2f5f9;
  color: #17365f;
  font-size: 0.92em;
}

.prose-content pre,
.prose-content .highlight pre {
  margin: 1.5em 0;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #07182e;
  box-shadow: 0 14px 34px rgba(9, 30, 58, 0.14);
  color: #e7edf5;
  font-size: 0.9rem;
  line-height: 1.7;
}

.prose-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.highlight {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 9px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 0.7rem;
}

.prose-content table {
  width: 100%;
  margin: 1.6em 0;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  overflow: hidden;
}

.prose-content th,
.prose-content td {
  padding: 11px 13px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  text-align: left;
}

.prose-content th {
  background: #f2f6fb;
  color: var(--navy);
}

.prose-content tr:last-child td {
  border-bottom: 0;
}

.prose-content th:last-child,
.prose-content td:last-child {
  border-right: 0;
}

/* Blog listing cards kept compatible with existing markup */
.blog-intro {
  margin-bottom: 44px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.blog-intro .eyebrow {
  margin-bottom: 12px;
}

.blog-intro h1 {
  margin: 0 0 15px;
}

.blog-intro p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.blog-list-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blog-list-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.35rem;
}

.blog-list-heading span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card {
  margin: 18px 0;
  padding: 24px 25px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(9, 30, 58, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  border-color: #c7d7ec;
  box-shadow: 0 14px 32px rgba(9, 30, 58, 0.08);
  transform: translateY(-3px);
}

.post-card__title {
  display: block;
  color: var(--navy) !important;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.48;
  text-decoration: none;
}

.post-card__title:hover {
  color: var(--blue) !important;
}

.post-card__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.post-card__excerpt {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

.notice--info {
  padding: 14px 16px;
  border: 1px solid #cfe0fa;
  border-radius: 10px;
  background: #f0f6ff;
}

/* Footer */
.site-footer {
  padding: 54px 0 34px;
  background: #07182e;
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 40px;
}

.footer-brand {
  display: grid;
  gap: 7px;
}

.footer-brand strong {
  color: #fff;
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

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

.copyright {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
}

@media (max-width: 1040px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 44px;
    padding: 66px 52px;
  }

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

  .expertise-card {
    min-height: 285px;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 90px;
  }

  .header-inner {
    width: min(100% - 28px, var(--container));
    min-height: 70px;
    gap: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy small {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  .site-nav a::after {
    right: 8px;
    left: 8px;
  }

  .landing-hero {
    width: min(100% - 28px, var(--container));
    min-height: 0;
    margin-top: 14px;
    padding: 48px 32px 38px;
    grid-template-columns: 1fr;
    gap: 48px;
    border-radius: 22px;
  }

  .landing-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-visual {
    width: min(100%, 340px);
    justify-self: center;
  }

  .hero-badge {
    right: -8px;
    bottom: 25px;
  }

  .section-block {
    width: min(100% - 28px, var(--container));
    margin-top: 82px;
  }

  .section-heading {
    margin-bottom: 26px;
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading > p br {
    display: none;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post__accent {
    min-height: 94px;
    padding: 24px 28px;
    flex-direction: row;
    align-items: center;
  }

  .featured-post__accent strong {
    font-size: 1.45rem;
  }

  .featured-post__body {
    padding: 31px 28px 36px;
  }

  .profile-summary {
    margin-bottom: 82px;
    padding: 46px 34px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .reading-shell,
  .post-page .reading-shell {
    width: min(100% - 28px, 940px);
    margin: 30px auto 64px;
  }

  .prose-content {
    padding: 38px 30px 46px;
  }

  .prose-content table {
    display: block;
    overflow-x: auto;
  }

  .research-page .reading-shell {
    width: min(100% - 28px, 1100px);
  }

  .teaching-page .reading-shell {
    width: min(100% - 28px, 1100px);
  }

  .teaching-hero {
    padding: 50px 36px 42px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .teaching-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .teaching-overview div,
  .teaching-overview div:last-child {
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
  }

  .teaching-section {
    margin-top: 66px;
  }

  .teaching-section__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .teaching-section__heading > p {
    max-width: 620px;
    text-align: left;
  }

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

  .course-card {
    min-height: 325px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .education-outcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-hero {
    padding: 48px 34px 40px;
  }

  .research-overview {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .research-overview div:last-child {
    grid-column: 1 / -1;
  }

  .publication-year {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .publication-year + .publication-year {
    margin-top: 52px;
  }

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

  .footer-inner {
    width: min(100% - 28px, var(--container));
  }
}

@media (max-width: 560px) {
  body {
    word-break: normal;
  }

  .brand-copy {
    display: none;
  }

  .site-nav a {
    padding-inline: 6px;
    font-size: 0.74rem;
  }

  .landing-hero {
    padding: 42px 24px 32px;
  }

  .landing-hero .eyebrow {
    max-width: 260px;
    font-size: 0.62rem;
  }

  .landing-hero h1 {
    font-size: 2.45rem;
  }

  .hero-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    width: min(100%, 290px);
  }

  .hero-badge {
    right: -2px;
    min-width: 214px;
  }

  .expertise-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card,
  .post-grid-card {
    min-height: 270px;
  }

  .profile-summary {
    padding: 40px 25px;
  }

  .prose-content {
    padding: 32px 22px 40px;
    border-radius: 14px;
  }

  .prose-content h1 {
    font-size: 2rem;
  }

  .prose-content h2 {
    font-size: 1.48rem;
  }

  .research-hero {
    padding: 42px 24px 34px;
    border-radius: 18px;
  }

  .teaching-hero {
    padding: 42px 24px 36px;
    border-radius: 18px;
  }

  .teaching-page .teaching-hero h1 {
    font-size: 2.5rem;
  }

  .teaching-overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-card {
    min-height: 0;
    padding: 29px 24px 26px;
  }

  .record-list::before {
    left: 5px;
  }

  .record-item {
    padding-left: 28px;
    display: block;
  }

  .record-item::before {
    top: 5px;
    left: 0;
  }

  .record-item time {
    display: block;
    margin-bottom: 10px;
  }

  .teaching-method {
    padding: 42px 25px 45px;
  }

  .education-outcome {
    margin-bottom: 70px;
    padding: 35px 25px;
  }

  .outcome-actions {
    width: 100%;
    flex-direction: column;
  }

  .research-page .research-hero h1 {
    font-size: 2.55rem;
  }

  .research-overview {
    margin-top: 34px;
    grid-template-columns: 1fr;
  }

  .research-overview div:last-child {
    grid-column: auto;
  }

  .publication-note {
    margin-bottom: 50px;
  }

  .publication-card {
    padding: 22px 20px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .research-page .publication-card h3 {
    font-size: 0.96rem;
  }

  .publication-index {
    padding-top: 0;
  }

  .research-footer {
    padding: 28px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-self: start;
  }

  .copyright {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
