:root {
  --navy-950: #08111d;
  --navy-900: #0c1420;
  --navy-850: #111d2b;
  --navy-800: #172638;
  --teal-700: #0c7476;
  --teal-800: #07545c;
  --gold: #c99a44;
  --gold-strong: #d7aa4c;
  --ink: #152033;
  --text: #263140;
  --muted: #687586;
  --line: #dce3e8;
  --soft-line: #edf1f3;
  --paper: #ffffff;
  --paper-soft: #f7f8f7;
  --paper-warm: #fbfaf7;
  --shadow-soft: 0 18px 48px rgba(10, 20, 32, 0.14);
  --shadow-hero: 0 24px 72px rgba(0, 0, 0, 0.24);
  --max-width: 1280px;
  --section-pad: clamp(56px, 8vw, 92px);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Leelawadee UI", "Tahoma", "Segoe UI", system-ui, sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body[data-lang="th"] [data-en],
body[data-lang="en"] [data-th] {
  display: none;
}

a {
  color: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 10px clamp(18px, 3.2vw, 40px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 232, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-elevated {
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(8, 17, 29, 0.12);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  text-decoration: none;
  min-width: 0;
}

.brand strong {
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand span,
.english-name {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}

.brand span {
  font-size: 0.86rem;
  line-height: 1.22;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 32px);
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: rgba(21, 32, 51, 0.82);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--navy-900);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.header-actions a,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-actions a:hover,
.language-toggle:hover {
  background: var(--paper-soft);
  border-color: #cbd6dd;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #f6f8fb;
  background:
    radial-gradient(circle at 12% 24%, rgba(12, 116, 118, 0.58), transparent 33%),
    radial-gradient(circle at 86% 28%, rgba(201, 154, 68, 0.12), transparent 25%),
    linear-gradient(112deg, #0d3138 0%, var(--navy-900) 38%, #07101c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 46%;
  height: 62%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(201, 154, 68, 0.14), transparent 56%);
  background-size: 18px 18px, auto;
  opacity: 0.35;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.45fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: end;
  max-width: var(--max-width);
  min-height: 462px;
  margin: 0 auto;
  padding: clamp(30px, 4.2vw, 52px) clamp(22px, 4vw, 48px) 0;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(232, 240, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 240, 245, 0.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 48%, rgba(0, 0, 0, 0.62));
}

.formula {
  position: absolute;
  color: rgba(232, 240, 245, 0.26);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-style: italic;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.formula-a {
  top: 18%;
  left: 2%;
}

.formula-b {
  top: 58%;
  left: 6%;
}

.formula-c {
  bottom: 13%;
  left: 4%;
}

.formula-d {
  top: 24%;
  left: 37%;
  color: rgba(201, 154, 68, 0.2);
}

.formula-e {
  right: 5%;
  bottom: 24%;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  color: rgba(232, 240, 245, 0.17);
}

.formula-f {
  top: 72%;
  left: 31%;
  color: rgba(232, 240, 245, 0.14);
}

.graph-mark {
  position: absolute;
  top: 14%;
  right: clamp(30px, 8vw, 120px);
  width: min(24vw, 300px);
  color: rgba(235, 243, 247, 0.25);
  transform: rotate(-5deg);
}

.metric-mark {
  position: absolute;
  right: clamp(22px, 6vw, 92px);
  bottom: 11%;
  width: min(22vw, 280px);
  color: rgba(201, 154, 68, 0.18);
  transform: rotate(7deg);
}

.dlpd-mark {
  position: absolute;
  left: clamp(44px, 8vw, 132px);
  bottom: 17%;
  width: min(28vw, 350px);
  color: rgba(232, 240, 245, 0.16);
  transform: rotate(-3deg);
}

.graph-mark path,
.graph-mark circle,
.metric-mark path,
.metric-mark ellipse,
.metric-mark circle,
.dlpd-mark path,
.dlpd-mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.metric-mark .axis {
  stroke-width: 1.25;
  opacity: 0.55;
}

.dlpd-mark text {
  fill: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
}

.portrait-frame {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 404px;
  margin: 0;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 8% 2% 0 -12%;
  background:
    linear-gradient(90deg, rgba(7, 84, 92, 0.4), rgba(8, 17, 29, 0.04)),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.16), transparent 42%);
  border-radius: 50% 50% 0 0;
  filter: blur(0.3px);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--navy-900) 74%);
  pointer-events: none;
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  width: min(350px, 88%);
  max-height: 418px;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.3));
}

.hero-copy {
  align-self: center;
  padding: clamp(12px, 2.6vw, 28px) 0 clamp(34px, 4.4vw, 54px);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.english-name {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: clamp(1.85rem, 2.85vw, 3.05rem);
  line-height: 1.02;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.role-lines {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.96rem, 1.18vw, 1.05rem);
  line-height: 1.4;
}

.role-lines p {
  margin: 0;
}

.hero-lead {
  max-width: 690px;
  margin: 0 0 18px;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  color: rgba(247, 250, 252, 0.86);
  font-size: clamp(0.95rem, 1.08vw, 1rem);
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--gold-strong);
  color: #15120c;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-facts div {
  padding: 0 clamp(10px, 1.5vw, 20px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.quick-facts dt {
  margin-bottom: 4px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.38;
}

.quick-facts * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px clamp(22px, 4vw, 48px);
  background: var(--paper);
}

.feature-strip article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 96px;
  padding: 0 clamp(12px, 1.5vw, 22px);
  border-left: 1px solid var(--line);
}

.feature-strip article:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-700);
  box-shadow: 0 12px 26px rgba(12, 116, 118, 0.18);
}

.feature-icon.gold {
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(201, 154, 68, 0.2);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-icon path,
.feature-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-strip h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.collaboration-section {
  padding-bottom: clamp(40px, 4.5vw, 54px);
  background:
    linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  border-bottom: 1px solid var(--soft-line);
}

.collaboration-section .section-heading-row h2,
.featured-work-section .section-heading-row h2 {
  max-width: 620px;
  font-size: clamp(1.5rem, 2.35vw, 2.25rem);
}

.collaboration-section .section-heading-row,
.featured-work-section .section-heading-row {
  display: block;
  max-width: 760px;
}

.collaboration-section .section-note,
.featured-work-section .section-note {
  max-width: 660px;
  margin: 12px 0 0;
}

.collaboration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.collaboration-grid article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 164px;
  padding: 22px;
  background: #fff;
}

.collaboration-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.28;
}

.collaboration-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.featured-work-section {
  padding-top: clamp(32px, 3.4vw, 44px);
  background: var(--paper);
}

.featured-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.system-card {
  grid-area: auto;
}

.competition-card {
  grid-area: auto;
}

.calculus-card {
  grid-area: auto;
}

.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.23fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 20, 32, 0.05);
}

.competition-card .project-visual,
.system-card .project-visual {
  min-height: 100%;
}

.competition-card .project-visual::after,
.system-card .project-visual::after {
  display: none;
}

.competition-card .project-copy,
.system-card .project-copy {
  min-width: 0;
}

.calculus-card {
  min-height: 0;
}

.competition-card .project-copy,
.system-card .project-copy,
.calculus-card .project-copy {
  padding: 18px 20px;
}

.competition-card .project-visual,
.system-card .project-visual,
.calculus-card .project-visual {
  min-height: 100%;
}

.competition-card .project-facts,
.system-card .project-facts,
.calculus-card .project-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.competition-card .project-facts div,
.system-card .project-facts div,
.calculus-card .project-facts div {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 18% 24%, rgba(201, 154, 68, 0.38), transparent 28%),
    linear-gradient(135deg, #0c1420 0%, #0b3037 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.calculus-card .project-visual {
  background:
    radial-gradient(circle at 82% 24%, rgba(215, 170, 76, 0.42), transparent 26%),
    linear-gradient(135deg, #102338 0%, #0c7476 100%);
}

.competition-card .project-visual {
  background:
    linear-gradient(rgba(201, 154, 68, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 154, 68, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 20% 24%, rgba(178, 206, 81, 0.34), transparent 31%),
    linear-gradient(135deg, #082f29 0%, #0c1420 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.project-visual span,
.project-visual small {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.project-visual strong {
  display: block;
  position: relative;
  z-index: 1;
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1;
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-row span {
  padding: 4px 9px;
  border: 1px solid rgba(201, 154, 68, 0.28);
  border-radius: 999px;
  color: #805f22;
  background: rgba(201, 154, 68, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.featured-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.34;
}

.project-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.project-facts div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soft-line);
}

.project-facts dt {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.compact-project-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(12, 116, 118, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(12, 116, 118, 0.06), rgba(201, 154, 68, 0.06));
}

.compact-project-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.25;
}

.compact-project-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-project-list a {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(220, 227, 232, 0.92);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.compact-project-list strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.compact-project-list small {
  color: var(--teal-700);
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.25;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) clamp(22px, 4vw, 48px);
}

.section.collaboration-section {
  padding-bottom: clamp(40px, 4.5vw, 54px);
}

.section.featured-work-section {
  padding-top: clamp(40px, 4.5vw, 54px);
}

.publication-section {
  border-top: 1px solid var(--soft-line);
}

.publication-section .publication-panel {
  max-width: 980px;
}

.section-copy {
  padding-right: clamp(0px, 3vw, 24px);
  border-right: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.section h2,
.section-heading h2,
.section-heading-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-copy h2::after,
.section-heading h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 14px;
  background: var(--gold);
}

.section-copy p,
.section-heading p,
.section-note {
  color: var(--muted);
}

.section-copy p {
  margin: 22px 0;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-700);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.text-link::after {
  content: "↗";
  font-size: 0.9em;
}

.hero {
  order: 1;
}

.collaboration-section {
  order: 2;
}

.featured-work-section {
  order: 3;
}

.service-section {
  order: 4;
}

.research-section {
  order: 5;
}

.publication-section {
  order: 6;
}

.teaching-section {
  order: 7;
}

.profile-section {
  order: 8;
}

.sources-section {
  order: 9;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading-row .text-link {
  margin-top: 18px;
  white-space: nowrap;
}

.publication-table {
  width: 100%;
  border-top: 1px solid var(--line);
}

.publication-note {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pub-row {
  display: grid;
  grid-template-columns: 74px minmax(220px, 1.12fr) minmax(260px, 1.35fr) 110px;
  gap: 18px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.48;
}

.pub-row > *,
.course-block *,
.timeline-list *,
.source-links * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pub-head {
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.pub-row strong {
  color: var(--ink);
  font-weight: 850;
}

.pub-row .year {
  color: var(--teal-700);
  font-weight: 900;
}

.pub-row a {
  color: var(--teal-700);
  font-weight: 900;
  text-decoration: none;
}

.pub-row a::after {
  content: " ↗";
  font-size: 0.85em;
}

.citation-list {
  display: grid;
  gap: 0;
}

.citation-item {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
}

.citation-body p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.citation-body em {
  color: var(--ink);
}

.citation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}

.citation-links a {
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.research-section,
.service-section,
.sources-section {
  max-width: none;
  background: var(--paper-soft);
}

.research-section > *,
.service-section > *,
.sources-section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.research-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(12, 116, 118, 0.2);
  border-radius: var(--radius);
  background: rgba(12, 116, 118, 0.2);
}

.research-snapshot article {
  min-height: 126px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 247, 0.98));
}

.research-snapshot span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.research-snapshot strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.research-snapshot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.expertise-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
}

.expertise-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.35vw, 1.34rem);
  line-height: 1.22;
}

.expertise-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.research-directions {
  margin-top: 44px;
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.2;
}

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

.direction-list article,
.service-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.direction-list article {
  padding: 20px;
}

.direction-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-700);
  font-weight: 900;
}

.direction-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.service-section {
  background: var(--paper);
  border-top: 1px solid var(--soft-line);
}

.service-section .section-heading-row {
  align-items: center;
  margin-bottom: 22px;
}

.service-section .section-heading-row h2 {
  max-width: 560px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.22;
}

.service-section .section-note {
  max-width: 520px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

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

.service-grid article {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 26px;
}

.service-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-grid h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.28;
}

.service-grid p,
.service-grid li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.service-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(12, 116, 118, 0.22);
  border-radius: 999px;
  color: var(--teal-700);
  background: rgba(12, 116, 118, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.service-actions a::after {
  content: "↗";
  font-size: 0.86em;
}

.ai-profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 68, 0.32);
  border-radius: var(--radius);
  background: rgba(201, 154, 68, 0.32);
}

.ai-profile-panel > div {
  min-width: 0;
  padding: 26px;
  background: linear-gradient(135deg, #fff 0%, #fbfaf7 100%);
}

.ai-profile-panel h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.22;
}

.ai-profile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.ai-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ai-chip-list li {
  padding: 5px 10px;
  border: 1px solid rgba(12, 116, 118, 0.2);
  border-radius: 999px;
  color: var(--teal-700);
  background: rgba(12, 116, 118, 0.06);
  font-size: 0.76rem;
  font-weight: 900;
}

.ai-builds-panel {
  margin-top: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.compact-service-heading {
  align-items: start;
  margin-bottom: 20px;
}

.compact-service-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  line-height: 1.22;
}

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

.ai-build-grid article {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ai-build-grid h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.24;
}

.ai-build-grid p:not(.service-label) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.ai-build-grid .service-actions {
  padding-top: 16px;
}

.ai-build-grid .access-note {
  align-self: center;
  margin-left: 2px;
}

.teaching-section {
  background: var(--paper);
}

.teaching-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
}

.teaching-summary div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px;
  border-left: 1px solid var(--line);
}

.teaching-summary div:first-child {
  border-left: 0;
}

.teaching-summary strong {
  color: var(--teal-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.teaching-summary span {
  color: var(--muted);
  font-weight: 800;
}

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

.day-column {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(12, 116, 118, 0.05), transparent 120px),
    var(--paper);
}

.day-column h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.15rem;
}

.course-block {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 14px 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--paper-soft);
}

.course-block + .course-block {
  margin-top: 10px;
}

.course-block time {
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.course-block strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.28;
}

.course-block span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.course-block small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.course-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(12, 116, 118, 0.22);
  border-radius: 999px;
  color: var(--teal-700);
  background: rgba(12, 116, 118, 0.06);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.course-links a::after {
  content: "↗";
  font-size: 0.86em;
}

.course-links a:hover {
  background: rgba(12, 116, 118, 0.11);
  border-color: rgba(12, 116, 118, 0.38);
  transform: translateY(-1px);
}

.course-links .access-note {
  flex-basis: 100%;
  color: #7a6540;
  font-size: 0.72rem;
  font-weight: 800;
}

.course-block.compact {
  padding-top: 12px;
  padding-bottom: 12px;
}

.oversight-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(201, 154, 68, 0.32);
  border-radius: var(--radius);
  color: #665433;
  background: rgba(201, 154, 68, 0.08);
  font-size: 0.92rem;
}

.profile-section {
  border-top: 1px solid var(--soft-line);
}

.profile-intro-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(12, 116, 118, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(12, 116, 118, 0.045), rgba(201, 154, 68, 0.045));
}

.profile-intro-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.profile-intro-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

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

.timeline-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.scholarship-panel {
  grid-column: 1 / -1;
}

.timeline-panel h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.32rem;
}

.timeline-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
}

.timeline-list time {
  color: var(--gold);
  font-weight: 900;
}

.timeline-list strong {
  color: var(--ink);
}

.timeline-list p {
  margin: 6px 0 8px;
  color: var(--muted);
}

.timeline-list a {
  color: var(--teal-700);
  font-weight: 900;
  text-decoration: none;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(201, 154, 68, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(201, 154, 68, 0.1), rgba(12, 116, 118, 0.06)),
    var(--paper);
}

.contact-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.contact-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.contact-card .local-service-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  color: #536174;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.62;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  color: #15120c;
  background: var(--gold-strong);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.email-button:hover {
  transform: translateY(-1px);
  background: var(--gold);
}

.source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}

.source-links a {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 20px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.source-links a:first-child {
  border-left: 0;
}

.source-links a:hover {
  background: var(--paper-warm);
  transform: translateY(-1px);
}

.source-links strong {
  color: var(--ink);
}

.source-links span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-950);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand,
  .header-actions {
    justify-self: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a::after {
    bottom: -8px;
  }

  .hero-inner {
    grid-template-columns: minmax(240px, 0.72fr) minmax(440px, 1.28fr);
    min-height: 438px;
  }

  .quick-facts,
  .feature-strip,
  .collaboration-grid,
  .research-snapshot,
  .weekly-board,
  .expertise-grid,
  .direction-list,
  .service-grid,
  .ai-build-grid,
  .compact-project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-work-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "competition"
      "system"
      "calculus";
  }

  .featured-card {
    min-height: auto;
  }

  .featured-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  }

  .project-visual {
    min-height: 100%;
  }

  .feature-strip article:nth-child(odd) {
    border-left: 0;
  }

  .feature-strip article {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .source-links a:nth-child(3n + 1) {
    border-left: 0;
  }
}

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

  .site-header {
    position: relative;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding-top: 36px;
  }

  .portrait-frame {
    order: 2;
    min-height: 340px;
  }

  .portrait-frame::after {
    display: none;
  }

  .portrait-frame img {
    width: min(310px, 70%);
    max-height: 350px;
  }

  .metric-mark,
  .dlpd-mark {
    opacity: 0.45;
  }

  .hero-copy {
    order: 1;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.6rem);
  }

  .english-name {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .quick-facts div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .profile-intro-card,
  .profile-grid,
  .ai-profile-panel,
  .compact-project-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .email-button {
    justify-self: start;
  }

  .section-copy {
    padding-right: 0;
    padding-bottom: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading-row {
    display: grid;
  }

  .section-heading-row .text-link {
    margin-top: 0;
  }

  .pub-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .pub-row > :nth-child(3),
  .pub-row > :nth-child(4) {
    grid-column: 2;
  }

  .pub-head {
    display: none;
  }

  .teaching-summary {
    grid-template-columns: 1fr;
  }

  .teaching-summary div,
  .teaching-summary div:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .teaching-summary div:first-child {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.6;
  }

  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .main-nav {
    gap: 10px 14px;
    font-size: 0.76rem;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    row-gap: 6px;
  }

  .main-nav a {
    padding: 4px 0;
  }

  .header-actions a,
  .language-toggle {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .hero-inner {
    display: block;
    position: relative;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 18px;
    padding-bottom: 0;
  }

  .hero-art::before {
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 76%);
  }

  .formula-d,
  .formula-e,
  .formula-f,
  .metric-mark,
  .dlpd-mark {
    display: none;
  }

  .graph-mark {
    top: 15%;
    right: 20px;
    width: 118px;
    opacity: 0.58;
  }

  .portrait-frame {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 190px;
    margin-top: 4px;
    opacity: 1;
  }

  .portrait-frame::before,
  .portrait-frame::after {
    display: none;
  }

  .portrait-frame img {
    width: min(188px, 56%);
    max-height: 222px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 22px;
  }

  .hero h1 {
    max-width: 320px;
    font-size: clamp(2.02rem, 8.8vw, 2.3rem);
    line-height: 1.05;
  }

  .english-name {
    max-width: 320px;
    font-size: clamp(1.55rem, 6.8vw, 1.78rem);
    line-height: 1.05;
    white-space: nowrap;
  }

  .role-lines {
    font-size: 0.9rem;
  }

  .hero-lead {
    max-width: 100%;
    padding-left: 14px;
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .hero-lead {
    padding-left: 16px;
  }

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

  .hero-actions .button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero-actions .button-primary {
    border: 1px solid rgba(239, 199, 112, 0.62);
    color: #120f09;
    background: rgba(215, 170, 76, 0.76);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
  }

  .hero-actions .button-secondary {
    background: rgba(8, 17, 29, 0.38);
    backdrop-filter: blur(8px);
  }

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

  .feature-strip,
  .collaboration-grid,
  .featured-work-grid,
  .research-snapshot,
  .weekly-board,
  .expertise-grid,
  .direction-list,
  .service-grid,
  .ai-build-grid,
  .compact-project-list,
  .source-links {
    grid-template-columns: 1fr;
  }

  .quick-facts div,
  .quick-facts div:first-child {
    padding: 10px 10px 10px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .quick-facts div:nth-child(1),
  .quick-facts div:nth-child(2) {
    border-top: 0;
  }

  .quick-facts div:first-child {
    border-top: 0;
  }

  .quick-facts dt {
    font-size: 0.72rem;
  }

  .quick-facts dd {
    font-size: 0.77rem;
  }

  .feature-strip {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .feature-strip article,
  .feature-strip article:first-child {
    grid-template-columns: 44px 1fr;
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature-strip article:first-child {
    border-top: 0;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon svg {
    width: 21px;
    height: 21px;
  }

  .collaboration-grid article {
    min-height: auto;
    padding: 18px;
  }

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

  .project-visual {
    min-height: 54px;
    padding: 14px 16px;
  }

  .project-visual span,
  .project-visual small {
    display: none;
  }

  .project-visual strong {
    margin: 0;
    font-size: 1.38rem;
  }

  .competition-card .project-copy,
  .system-card .project-copy,
  .calculus-card .project-copy {
    padding: 16px;
  }

  .competition-card .project-facts,
  .system-card .project-facts,
  .calculus-card .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .competition-card .project-facts div,
  .system-card .project-facts div,
  .calculus-card .project-facts div {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .competition-card .project-facts div:nth-child(3),
  .system-card .project-facts div:nth-child(3),
  .calculus-card .project-facts div:nth-child(3) {
    display: none;
  }

  .featured-card h3 {
    margin-bottom: 10px;
  }

  .project-facts dd {
    line-height: 1.36;
  }

  .service-actions {
    padding-top: 12px;
  }

  .project-copy,
  .compact-project-panel {
    padding: 18px;
  }

  .compact-project-list a {
    min-height: auto;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .expertise-grid article {
    min-height: auto;
    padding: 22px;
  }

  .direction-list article,
  .service-grid article,
  .ai-build-grid article,
  .ai-profile-panel > div,
  .contact-card {
    padding: 22px;
  }

  .service-grid article,
  .ai-build-grid article {
    min-height: auto;
  }

  .email-button {
    width: 100%;
  }

  .timeline-panel {
    padding: 22px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .source-links a,
  .source-links a:first-child {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .source-links a:first-child {
    border-top: 0;
  }

  .site-footer {
    display: grid;
  }
}

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