:root {
  --paper: #fbfaf6;
  --surface: #ffffff;
  --surface-strong: #f0f5f1;
  --ink: #101a18;
  --muted: #5f6d68;
  --line: #dce3dd;
  --teal: #0b7885;
  --coral: #c4462d;
  --gold: #b88228;
  --green: #4f7d5a;
  --soft-coral: #fff1ec;
  --soft-teal: #e9f6f5;
  --shadow: 0 18px 48px rgba(16, 26, 24, 0.11);
  --shadow-lift: 0 24px 60px rgba(16, 26, 24, 0.15);
  --radius: 8px;
  --shell: min(1240px, calc(100vw - 40px));
  --header-offset: 118px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
main[id],
#top {
  scroll-margin-top: calc(var(--header-offset, 118px) + 24px);
}

body.has-section-subnav section[id] {
  scroll-margin-top: calc(var(--header-offset, 118px) + 58px);
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 24, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(16, 26, 24, 0.025) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="zh-CN"] body {
  line-height: 1.72;
}

html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .section-kicker,
html[lang="zh-CN"] .nav-links a,
html[lang="zh-CN"] .tag,
html[lang="zh-CN"] .project-type {
  font-weight: 720;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 32px rgba(16, 26, 24, 0.07);
}

.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 260px) auto;
  align-items: center;
  gap: 14px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  order: 1;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255,255,255,0.28) 45% 52%, transparent 52% 100%),
    var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
}

.brand-text {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  order: 5;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle svg,
.inline-link svg {
  width: 22px;
  height: 22px;
}

.nav-toggle path,
.site-search path,
.inline-link path,
.action-link path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.nav-links a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 680;
  font-size: 0.88rem;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: var(--ink);
  color: #fff;
}

.language-toggle {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.language-toggle button.active {
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(196, 70, 45, 0.35);
  outline-offset: 3px;
}

.site-search {
  order: 3;
  position: relative;
  width: 100%;
}

.search-box {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  padding: 10px 4px 10px 12px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-box button:hover,
.search-box button:focus-visible {
  color: var(--ink);
}

.search-box svg {
  width: 19px;
  height: 19px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-result-meta,
.search-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.search-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-strong);
}

.search-result span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.search-result strong {
  color: var(--ink);
}

.search-result small {
  color: var(--muted);
  line-height: 1.45;
}

.section-subnav {
  position: sticky;
  top: var(--header-offset, 72px);
  z-index: 35;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 227, 221, 0.85);
  box-shadow: 0 10px 24px rgba(16, 26, 24, 0.04);
  backdrop-filter: blur(16px);
}

.section-subnav-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-subnav-shell::-webkit-scrollbar {
  display: none;
}

.section-subnav-link {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(240, 245, 241, 0.72);
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.section-subnav-link::after {
  display: none;
}

.section-subnav-link:hover,
.section-subnav-link:focus-visible,
.section-subnav-link.active {
  color: var(--ink);
  transform: translateY(-1px);
}

.section-subnav-link.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(16, 26, 24, 0.16);
}

.skeleton-card,
.skeleton-summary,
.skeleton-frame,
.skeleton-line,
.skeleton-pill,
.skeleton-dot {
  position: relative;
  overflow: hidden;
}

.skeleton-card,
.skeleton-summary {
  pointer-events: none;
}

.skeleton-frame,
.skeleton-line,
.skeleton-pill,
.skeleton-dot {
  background: linear-gradient(90deg, rgba(225, 231, 226, 0.88) 0%, rgba(246, 247, 243, 0.98) 48%, rgba(225, 231, 226, 0.88) 100%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s linear infinite;
}

.metric.skeleton-card .skeleton-frame,
.metric.skeleton-card .skeleton-line,
.metric.skeleton-card .skeleton-pill,
.metric.skeleton-card .skeleton-dot {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0.12) 100%);
  background-size: 220% 100%;
}

.skeleton-stack {
  display: grid;
  gap: 10px;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 11px;
  border-radius: 999px;
}

.skeleton-line-short {
  width: 58%;
}

.skeleton-line-long {
  width: 82%;
}

.skeleton-line-label {
  width: 34%;
  height: 9px;
}

.skeleton-line-title {
  width: 72%;
  height: 16px;
}

.skeleton-line-heading {
  width: 86%;
  height: 20px;
}

.skeleton-line-value {
  width: 48%;
  height: 34px;
}

.skeleton-line-meta {
  width: 64%;
  height: 10px;
}

.skeleton-line-tiny {
  width: 18%;
  height: 9px;
}

.skeleton-pill {
  display: inline-flex;
  min-width: 64px;
  height: 28px;
  border-radius: 999px;
}

.skeleton-dot {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.skeleton-summary {
  padding-block: 2px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.hero {
  position: relative;
  min-height: min(500px, calc(100vh - 72px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.84)),
    repeating-linear-gradient(135deg, rgba(11, 120, 133, 0.08) 0 1px, transparent 1px 18px),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-rail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.hero-rail span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.hero-rail span:nth-child(1) {
  left: 12%;
}

.hero-rail span:nth-child(2) {
  left: 38%;
}

.hero-rail span:nth-child(3) {
  left: 64%;
}

.hero-rail span:nth-child(4) {
  left: 88%;
}

.hero-inner {
  position: relative;
  min-height: min(500px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  padding: 44px 0 36px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-weight: 780;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 650px;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-name {
  max-width: 760px;
  font-size: 3.4rem;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-name-line {
  display: block;
  white-space: nowrap;
}

.hero-char {
  display: inline-block;
  white-space: pre;
  transform: translateZ(0);
}

h2 {
  margin-bottom: 16px;
  font-size: 2.6rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.hero-actions,
.action-row,
.contact-panel > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-course-link-wrap {
  margin-top: 16px;
}

.hero-course-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.3;
}

.hero-course-link-label {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-course-link strong {
  font-size: 0.98rem;
  font-weight: 760;
}

.hero-course-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.action-link {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  --hover-lift: 0px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 760;
  box-shadow: 0 8px 22px rgba(20, 33, 31, 0.06);
  transform: translate3d(var(--magnetic-x), calc(var(--magnetic-y) - var(--hover-lift)), 0);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.action-link.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.action-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.action-link:hover,
.action-link:focus-visible {
  --hover-lift: 1px;
}

.inline-link:hover,
.inline-link:focus-visible {
  transform: translateY(-1px);
}

.portrait-wrap {
  margin: 0;
  align-self: center;
  min-height: 420px;
  max-height: 460px;
  display: grid;
  grid-template-rows: 5px 1fr auto;
  background: linear-gradient(180deg, #eaf0e8, #dce9d6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.portrait-wrap::before {
  content: "";
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--teal), var(--gold));
}

.portrait {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 42%;
}

.portrait-wrap figcaption {
  min-height: 72px;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.portrait-wrap span {
  color: var(--muted);
  font-size: 0.95rem;
}

.portrait-wrap strong {
  overflow-wrap: anywhere;
}

.metric-band {
  padding: clamp(18px, 2.4vw, 30px) 0;
  background:
    linear-gradient(180deg, #101a18 0%, #101a18 100%);
  color: #fff;
  border-block: 1px solid rgba(220, 227, 221, 0.18);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  position: relative;
  min-height: 124px;
  padding: 24px 18px 20px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  box-shadow: none;
  transition:
    background 240ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.metric:last-child {
  border-right: 0;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(244, 176, 94, 0.7), rgba(11, 120, 133, 0.72));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric::after {
  content: none;
}

.metric.is-counting,
.metric.is-counted {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.metric.is-counting {
  transform: translateY(-2px);
}

.metric.is-counting::before,
.metric.is-counted::before {
  transform: scaleX(1);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(2rem, 2.4vw, 2.72rem);
  line-height: 1;
  transition:
    transform 240ms ease,
    color 240ms ease;
}

.metric span {
  display: block;
  max-width: 16ch;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.45;
  transition: color 240ms ease;
}

.metric.is-counting strong,
.metric.is-counted strong {
  color: #fff;
}

.metric.is-counting span,
.metric.is-counted span {
  color: rgba(255, 255, 255, 0.9);
}

.section {
  padding: clamp(76px, 9vw, 124px) 0;
}

.page-hero {
  padding: clamp(84px, 10vw, 140px) 0 clamp(64px, 8vw, 104px);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.88)),
    repeating-linear-gradient(135deg, rgba(11, 120, 133, 0.08) 0 1px, transparent 1px 18px),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 980px;
}

.page-hero h1 {
  max-width: 960px;
  font-size: 5.1rem;
}

.page-hero p:not(.section-kicker) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.25rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.apps-portfolio-hero {
  padding: clamp(42px, 5vw, 72px) 0 clamp(42px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.92)),
    linear-gradient(180deg, rgba(8, 126, 139, 0.06), transparent 48%),
    var(--paper);
}

.apps-portfolio-hero .page-hero-inner {
  max-width: 1040px;
}

.portfolio-byline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(16, 26, 24, 0.045);
}

.portfolio-byline img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.portfolio-byline strong,
.portfolio-byline span {
  display: block;
}

.portfolio-byline strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.portfolio-byline span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.apps-workflow-section {
  padding: clamp(68px, 8vw, 104px) 0;
  background: rgba(255, 255, 255, 0.62);
  border-block: 1px solid var(--line);
}

.apps-workflow-section .section-heading > p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.workflow-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.workflow-problem {
  min-height: 178px;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-problem:nth-child(2n) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.workflow-problem h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.workflow-problem p {
  margin-bottom: 0;
  color: var(--muted);
}

.muted {
  background: var(--surface-strong);
  border-block: 1px solid var(--line);
}

.two-column,
.split-layout,
.teaching-layout,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 84px);
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 780;
}

.focus-grid,
.project-grid,
.activity-grid,
.industry-grid,
.link-card-grid,
.relation-grid,
.supervision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.focus-card,
.project-card,
.industry-card,
.link-card,
.relation-card,
.supervision-item,
.activity-card,
.publication-card,
.course-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(16, 26, 24, 0.03);
}

.focus-card,
.project-card,
.industry-card,
.link-card,
.relation-card,
.supervision-item,
.activity-card {
  padding: 24px;
}

.project-card,
.relation-card,
.supervision-item,
.activity-card,
.publication-card,
.course-item {
  position: relative;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.focus-card {
  min-height: 214px;
  display: grid;
  align-content: start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.focus-card::after,
.project-card::after,
.relation-card::after,
.supervision-item::after,
.activity-card::after,
.publication-card::after,
.course-item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0;
  transition: opacity 160ms ease;
}

.focus-card:hover,
.project-card:hover,
.relation-card:hover,
.supervision-item:hover,
.activity-card:hover,
.publication-card:hover,
.course-item:hover {
  border-color: rgba(11, 120, 133, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.focus-card:hover::after,
.project-card:hover::after,
.relation-card:hover::after,
.supervision-item:hover::after,
.activity-card:hover::after,
.publication-card:hover::after,
.course-item:hover::after {
  opacity: 1;
}

.focus-card .number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-weight: 820;
}

.focus-card p,
.project-card p,
.industry-card p,
.industry-card .use-case,
.link-card p,
.relation-card p,
.supervision-item p,
.activity-card p,
.course-item p,
.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.industry-card .use-case {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.industry-card .use-case strong {
  color: var(--ink);
}

.link-card {
  min-height: 234px;
  display: grid;
  align-content: start;
  gap: 10px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(8, 126, 139, 0.5);
  box-shadow: 0 16px 38px rgba(20, 33, 31, 0.1);
  transform: translateY(-2px);
}

.link-card span,
.relation-card span,
.supervision-item span {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 780;
}

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

.relation-card {
  min-height: 244px;
}

.relation-card h3,
.supervision-item h3 {
  margin-top: 8px;
}

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

.supervision-stack {
  display: grid;
  gap: 30px;
}

.supervision-group {
  display: grid;
  gap: 14px;
}

.supervision-group-title {
  color: var(--ink);
  font-size: 1rem;
}

.phd-grid .supervision-item {
  border-color: rgba(8, 126, 139, 0.35);
  background: linear-gradient(180deg, #ffffff, #f3f8f6);
}

.supervision-item {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.supervision-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.supervision-item strong {
  font-size: 1rem;
}

.supervision-item span {
  text-align: right;
  color: var(--coral);
}

.stacked {
  margin-top: 28px;
}

.industry-section {
  padding: clamp(76px, 9vw, 124px) 0;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.98), rgba(240, 245, 241, 0.96)),
    repeating-linear-gradient(135deg, rgba(196, 70, 45, 0.08) 0 1px, transparent 1px 18px),
    var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.industry-section .section-kicker {
  color: var(--coral);
}

.industry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  gap: clamp(28px, 6vw, 76px);
  margin-bottom: 28px;
}

.industry-hero h2 {
  max-width: 820px;
  margin-bottom: 18px;
}

.industry-hero p,
.industry-card p,
.industry-cta p {
  color: var(--muted);
}

.industry-hero > div:first-child > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.industry-cta {
  padding: 26px;
  border: 1px solid rgba(196, 70, 45, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fff, var(--soft-coral));
  box-shadow: var(--shadow);
}

.industry-cta > span {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-weight: 780;
}

.industry-cta .action-link {
  width: fit-content;
  margin-top: 18px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}

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

.industry-card {
  position: relative;
  min-height: 326px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(16, 26, 24, 0.13);
  box-shadow: 0 18px 46px rgba(16, 26, 24, 0.08);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}

.industry-card:hover {
  border-color: rgba(196, 70, 45, 0.35);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.industry-card .project-type {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(196, 70, 45, 0.22);
  border-radius: 4px;
  background: var(--soft-coral);
  color: var(--coral);
  font-size: 0.78rem;
}

.industry-card h3 {
  font-size: 1.32rem;
}

.industry-card .tag {
  background: var(--soft-teal);
  border-color: rgba(11, 120, 133, 0.2);
  color: #245d62;
}

.industry-card a,
.private-label {
  width: fit-content;
  color: var(--ink);
  font-weight: 780;
  border-bottom: 2px solid var(--coral);
}

.apps-proof-section {
  padding: clamp(46px, 5.8vw, 78px) 0;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.98), rgba(255, 255, 255, 0.9)),
    var(--paper);
}

.apps-proof-section .industry-hero {
  align-items: start;
  margin-bottom: 42px;
}

.apps-proof-section .industry-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.industry-card-full {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: none;
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  padding: 0;
  background: rgba(255, 255, 255, 0.76);
}

.industry-card-full::before {
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}

.industry-card-full:hover {
  transform: translateY(-2px);
}

.app-preview {
  min-height: 330px;
  margin: 0;
  background: var(--surface-strong);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.app-preview img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: top left;
}

.app-case-copy {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: clamp(24px, 4vw, 42px) clamp(22px, 4vw, 42px) clamp(24px, 4vw, 42px) 0;
}

.app-case-copy .project-type {
  margin-top: 0;
}

.industry-card-full .app-card-line {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.industry-card-full .app-card-line strong {
  color: var(--ink);
}

.industry-card-full .app-card-line.value {
  background: linear-gradient(90deg, rgba(233, 246, 245, 0.78), transparent);
  margin-inline: -10px 0;
  padding: 12px 10px 0;
}

.private-label {
  display: inline-flex;
}

.industry-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.industry-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(16, 26, 24, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 720;
}

.apps-portfolio-hero {
  padding: clamp(42px, 5vw, 72px) 0 clamp(42px, 5vw, 64px);
}

.apps-portfolio-hero .page-hero-inner {
  max-width: 1120px;
}

.apps-portfolio-hero h1 {
  max-width: 690px;
  font-size: clamp(2.86rem, 3.9vw, 3.82rem);
  line-height: 1.03;
  overflow-wrap: normal;
}

.apps-portfolio-hero p:not(.section-kicker) {
  max-width: 620px;
  font-size: 1.08rem;
}

.apps-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(250px, 0.28fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.apps-hero-copy {
  max-width: 700px;
  min-width: 0;
}

.apps-hero-note {
  align-self: end;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.apps-hero-note span {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.apps-hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.industry-home-section {
  background:
    linear-gradient(180deg, rgba(250, 252, 248, 0.98), rgba(255, 255, 255, 0.96)),
    var(--paper);
}

.industry-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
  margin-bottom: 34px;
}

.industry-home-copy {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
}

.industry-home-copy h2 {
  max-width: 620px;
  margin-bottom: 0;
}

.industry-home-intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.industry-home-link {
  width: fit-content;
}

.industry-home-course,
.apps-course-reference {
  max-width: 560px;
}

.industry-home-course {
  margin-top: 4px;
}

.industry-course-reference {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid rgba(201, 113, 89, 0.34);
}

.industry-home-course .industry-course-reference {
  gap: 10px;
  padding: 18px 20px;
  border-left: 0;
  border: 1px solid rgba(201, 113, 89, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.94), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow: 0 12px 32px rgba(20, 33, 31, 0.05);
}

.industry-course-reference.compact {
  gap: 6px;
}

.industry-course-label {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.industry-course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink);
  font-weight: 780;
  line-height: 1.35;
}

.industry-home-course .industry-course-link {
  font-size: 1.08rem;
}

.industry-course-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.industry-course-reference p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.industry-home-course .industry-course-reference p {
  max-width: 49ch;
  font-size: 0.98rem;
}

.industry-home-proof {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.industry-proof-list,
.industry-proof-inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.industry-proof-list {
  display: grid;
  gap: 11px;
}

.industry-proof-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.industry-proof-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--teal));
}

.industry-home-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.industry-home-feature {
  display: grid;
  gap: 14px;
}

.industry-home-feature a {
  color: inherit;
}

.industry-home-media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(16, 26, 24, 0.09);
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease;
}

.industry-home-media img,
.app-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-focus-desktop, 50% 16%);
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms ease;
}

.industry-home-caption {
  display: grid;
  gap: 10px;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease;
}

.industry-home-caption h3 {
  margin: 0;
  font-size: 1.24rem;
}

.industry-home-caption p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.industry-home-link-inline {
  width: fit-content;
}

.industry-home-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.industry-summary-item {
  display: grid;
  align-content: start;
  gap: 8px;
  color: inherit;
}

.industry-summary-item:not(:last-child) {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.industry-summary-item strong {
  font-size: 1.05rem;
}

.industry-summary-item p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.industry-summary-link {
  color: var(--teal);
  font-weight: 780;
}

.apps-proof-section {
  background:
    linear-gradient(180deg, rgba(250, 252, 248, 0.98), rgba(255, 255, 255, 0.96)),
    var(--paper);
}

.apps-showcase-heading {
  align-items: start;
  margin-bottom: 28px;
}

.apps-showcase-heading > div:first-child {
  max-width: 720px;
}

.apps-showcase-heading h2 {
  max-width: 650px;
  font-size: clamp(2.34rem, 3.25vw, 3.18rem);
  line-height: 1.04;
}

.apps-showcase-intro {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.apps-proof-inline {
  min-width: min(320px, 100%);
}

.industry-proof-inline-list {
  display: grid;
  gap: 10px;
}

.industry-proof-inline-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.apps-showcase-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 5.5vw, 68px);
  row-gap: 16px;
  padding: clamp(42px, 6vw, 70px) 0;
  border-top: 1px solid var(--line);
}

.app-showcase:last-child {
  border-bottom: 1px solid var(--line);
}

.app-showcase.reverse .app-showcase-media-wrap {
  grid-column: 2;
}

.app-showcase.reverse .app-showcase-copy {
  grid-column: 1;
}

.app-showcase-media-wrap {
  width: 100%;
  min-width: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.app-showcase-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 246, 0.98)),
    var(--surface);
  box-shadow: 0 20px 52px rgba(16, 26, 24, 0.1);
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease;
}

.app-showcase-media:hover img,
.app-showcase-media:focus-visible img {
  transform: scale(1.045);
}

.app-showcase-media img {
  transform: scale(1.025);
  transition:
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms ease;
}

.app-showcase-copy {
  max-width: 560px;
  display: grid;
  gap: 14px;
  min-width: 0;
  grid-column: 2;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease;
}

.app-showcase-intro-copy {
  align-self: end;
}

.app-showcase-detail-copy {
  align-self: start;
}

.motion-enhanced .industry-home-feature:not(.is-featured-visible) .industry-home-media,
.motion-enhanced .app-showcase:not(.is-featured-visible) .app-showcase-media {
  transform: translate3d(0, 28px, 0) scale(0.97);
  opacity: 0.68;
  box-shadow: 0 10px 26px rgba(16, 26, 24, 0.045);
}

.motion-enhanced .industry-home-feature:not(.is-featured-visible) .industry-home-media img,
.motion-enhanced .app-showcase:not(.is-featured-visible) .app-showcase-media img {
  transform: scale(1.06);
  filter: saturate(0.9);
}

.motion-enhanced .industry-home-feature:not(.is-featured-visible) .industry-home-caption,
.motion-enhanced .app-showcase:not(.is-featured-visible) .app-showcase-copy {
  transform: translate3d(0, 20px, 0);
  opacity: 0.72;
}

.industry-home-feature.is-featured-visible .industry-home-media,
.app-showcase.is-featured-visible .app-showcase-media {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  box-shadow: 0 24px 60px rgba(16, 26, 24, 0.13);
}

.industry-home-feature.is-featured-visible .industry-home-media img,
.app-showcase.is-featured-visible .app-showcase-media img {
  transform: scale(1.025);
  filter: saturate(1);
}

.industry-home-feature.is-featured-visible .industry-home-caption,
.app-showcase.is-featured-visible .app-showcase-copy {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.app-showcase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-showcase .project-type {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-showcase-index {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.app-showcase h3 {
  margin: 0;
  font-size: clamp(1.7rem, 1.9vw, 2.18rem);
  line-height: 1.08;
  overflow-wrap: normal;
}

.app-showcase-summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.app-showcase-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.app-showcase-facts div {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.app-showcase-facts dt {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.app-showcase-facts dd {
  margin: 0;
}

.app-showcase-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.app-showcase-link {
  width: fit-content;
}

.apps-workflow-section {
  background: rgba(255, 255, 255, 0.72);
}

.apps-workflow-section .section-heading {
  align-items: start;
}

.apps-workflow-section .section-heading > p {
  max-width: 560px;
}

.workflow-problem-grid {
  gap: 0 26px;
}

.workflow-problem {
  min-height: auto;
  padding: 24px 24px 24px 0;
}

.workflow-problem:nth-child(2n) {
  padding-left: 24px;
}

.split-layout {
  align-items: start;
}

.section-sticky {
  position: sticky;
  top: 104px;
}

.section-sticky p:last-child {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline-guide {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 170px;
  width: 1px;
  background: rgba(16, 26, 24, 0.08);
  pointer-events: none;
}

.timeline-guide-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--coral);
  font-weight: 780;
}

.timeline-org {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.tab-list {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab-button {
  min-width: 108px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
}

.tab-button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

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

.publication-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 730;
}

.publication-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-authors {
  font-size: 0.92rem;
  line-height: 1.5;
}

.publication-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--teal);
  font-weight: 780;
}

.project-card {
  min-height: 248px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.project-year {
  color: var(--gold);
  font-weight: 820;
}

.project-type {
  color: var(--teal);
  font-weight: 780;
}

.project-role {
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(196, 70, 45, 0.22);
  border-radius: 4px;
  background: var(--soft-coral);
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 820;
}

.teaching-layout {
  align-items: start;
}

.teaching-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.teaching-course-highlight-wrap {
  max-width: 720px;
  margin-top: 22px;
}

.teaching-course-highlight {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 113, 89, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 242, 0.96), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(20, 33, 31, 0.05);
}

.teaching-course-highlight .industry-course-link {
  font-size: 1.14rem;
}

.teaching-course-highlight p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.teaching-stat {
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.teaching-stat strong {
  display: block;
  color: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

.teaching-stat span {
  color: var(--muted);
  font-weight: 700;
}

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

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

.course-date {
  color: var(--green);
  font-weight: 820;
}

.activity-card {
  min-height: 256px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.activity-card .source {
  color: var(--teal);
  font-weight: 780;
}

.activity-card time {
  color: var(--muted);
  font-size: 0.92rem;
}

.activity-card a {
  color: var(--teal);
  font-weight: 780;
}

.contact-section {
  padding: clamp(76px, 9vw, 124px) 0;
  background: var(--ink);
  color: #fff;
}

.contact-section .section-kicker {
  color: #f4b05e;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.apps-course-reference {
  margin-top: 20px;
}

.contact-panel .action-link {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.contact-panel .action-link.primary {
  background: #f4b05e;
  border-color: #f4b05e;
}

.contact-section-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 241, 0.92)),
    var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.contact-section-light .section-kicker {
  color: var(--coral);
}

.contact-section-light h2 {
  color: var(--ink);
}

.contact-section-light p {
  color: var(--muted);
}

.contact-section-light .contact-panel {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.contact-section-light .contact-panel .action-link {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.contact-section-light .contact-panel .action-link.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.source-note {
  margin: 22px 0 0;
  font-size: 0.92rem;
}

.footer {
  background: #101a18;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
  font-weight: 760;
}

@media (min-width: 761px) {
  .nav {
    grid-template-columns: auto minmax(200px, 1fr) auto auto;
    grid-template-areas:
      "brand search language register"
      "links links links links";
    align-items: center;
    padding: 10px 0 12px;
  }

  .brand {
    grid-area: brand;
  }

  .site-search {
    grid-area: search;
    justify-self: end;
    width: min(360px, 100%);
  }

  .language-toggle {
    grid-area: language;
    justify-self: end;
  }

  .clerk-slot {
    grid-area: register;
    justify-self: end;
  }

  .nav-links {
    grid-area: links;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(220, 227, 221, 0.78);
  }

  .nav-links a {
    flex: 0 0 auto;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(calc(100vw - 32px), 760px);
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .two-column,
  .split-layout,
  .teaching-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    min-height: 420px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.4rem;
  }

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

  .metric-grid,
  .focus-grid,
  .project-grid,
  .industry-grid,
  .activity-grid,
  .link-card-grid,
  .workflow-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .industry-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .metric {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .metric:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .section-sticky {
    position: static;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-subnav-shell {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-offset: 142px;
  }

  .nav {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas: none;
    align-items: center;
    gap: 12px;
    padding: 0;
  }

  .brand-text {
    max-width: 210px;
  }

  .nav-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 4;
    order: 5;
    margin-left: 0;
    position: static;
    inset: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: calc(100dvh - 190px);
    overflow: auto;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  body.nav-open .site-search {
    display: none;
  }

  body.nav-open .site-header {
    max-height: 100dvh;
    overflow-y: auto;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .language-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-left: 0;
    order: 2;
  }

  .nav-toggle {
    order: 3;
  }

  .clerk-slot {
    grid-column: 3;
    grid-row: 1;
    order: 1;
    justify-self: end;
  }

  .clerk-slot .clerk-register-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .site-search {
    order: 4;
    grid-row: 3;
    grid-column: 1 / -1;
    flex: 1 0 100%;
    max-width: none;
  }

  .search-results {
    left: 0;
    right: 0;
    width: 100%;
  }

  .hero-inner {
    padding-top: 44px;
  }

  .section-subnav-shell {
    min-height: 50px;
    gap: 16px;
  }

  .section-subnav-link {
    font-size: 0.74rem;
    letter-spacing: 0.03em;
  }

  h1,
  .page-hero h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.62rem;
  }

  .hero-name {
    font-size: 2.85rem;
  }

  .hero-lede,
  .page-hero p:not(.section-kicker) {
    font-size: 1.12rem;
  }

  .portrait-wrap {
    min-height: 410px;
  }

  .metric-grid,
  .focus-grid,
  .project-grid,
  .industry-grid,
  .workflow-problem-grid,
  .activity-grid,
  .link-card-grid,
  .relation-grid,
  .supervision-grid,
  .publication-grid,
  .teaching-stats {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-inline: 0;
  }

  .supervision-item > div {
    display: grid;
  }

  .supervision-item span {
    text-align: left;
  }

  .metric {
    min-height: 106px;
    padding: 18px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
  }

  .workflow-problem {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .workflow-problem:nth-child(2n) {
    padding-left: 0;
    border-left: 0;
  }

  .workflow-problem:last-child {
    border-bottom: 0;
  }

  .industry-card-full {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-preview {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-preview img {
    min-height: 240px;
  }

  .app-case-copy {
    padding: 24px;
  }

  .timeline-item,
  .course-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-guide {
    display: none;
  }

  .tab-list {
    width: 100%;
    overflow-x: auto;
  }

  .tab-button {
    flex: 1 0 104px;
  }
}

@media (max-width: 560px) {
  .brand-text {
    display: none;
  }

  h1 {
    font-size: 3.02rem;
  }

  .hero-name {
    font-size: 2.15rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.34rem;
  }

  .metric strong {
    font-size: 2.08rem;
  }

  .metric span {
    max-width: none;
    font-size: 0.88rem;
  }

  .hero-actions,
  .page-hero-actions,
  .contact-panel > div,
  .industry-cta .action-link {
    width: 100%;
  }

  .hero-actions .action-link,
  .page-hero-actions .action-link,
  .contact-panel .action-link,
  .industry-cta .action-link {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-course-link {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 440px) {
  :root {
    --shell: min(calc(100vw - 24px), 760px);
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-name {
    font-size: 2.08rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2.08rem;
  }

  .portrait-wrap {
    min-height: 340px;
  }
}

@media (max-width: 1180px) {
  .hero,
  .hero-inner {
    min-height: auto;
  }

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

  .portrait-wrap {
    width: min(560px, 100%);
    min-height: 420px;
  }

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

  .apps-hero-grid,
  .industry-home-layout,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .apps-hero-note {
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

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

  .industry-summary-item:not(:last-child) {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .apps-showcase-heading {
    flex-direction: column;
  }

  .apps-proof-inline {
    min-width: 0;
    width: 100%;
  }

  .app-showcase .app-showcase-intro-copy,
  .app-showcase.reverse .app-showcase-intro-copy {
    grid-column: 1;
    grid-row: auto;
    order: 1;
  }

  .app-showcase .app-showcase-media-wrap,
  .app-showcase.reverse .app-showcase-media-wrap {
    grid-column: 1;
    grid-row: auto;
    order: 2;
  }

  .app-showcase .app-showcase-detail-copy,
  .app-showcase.reverse .app-showcase-detail-copy {
    grid-column: 1;
    grid-row: auto;
    order: 3;
  }

  .app-showcase-copy {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .industry-home-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portrait-wrap {
    width: 100%;
    min-height: 410px;
  }

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

  .industry-home-section,
  .apps-proof-section {
    padding: clamp(56px, 10vw, 84px) 0;
  }

  .apps-portfolio-hero h1 {
    max-width: 100%;
    font-size: 2.24rem;
    line-height: 1.06;
  }

  .apps-portfolio-hero p:not(.section-kicker),
  .apps-showcase-intro,
  .apps-hero-note p {
    max-width: 32ch;
    font-size: 1.02rem;
  }

  .industry-home-copy {
    gap: 18px;
  }

  .industry-home-featured,
  .industry-home-summary {
    gap: 18px;
  }

  .industry-home-media img,
  .app-showcase-media img {
    object-position: var(--image-focus-mobile, var(--image-focus-desktop, 50% 14%));
  }

  .apps-showcase-heading {
    margin-bottom: 30px;
  }

  .app-showcase {
    gap: 24px;
    padding: 36px 0;
  }

  .app-showcase-media {
    aspect-ratio: 16 / 10;
  }

  .app-showcase-topline {
    align-items: start;
  }

  .app-showcase h3 {
    font-size: 1.46rem;
  }

  .industry-proof-inline-list li {
    padding-bottom: 8px;
  }
}

@media (max-width: 440px) {
  .portrait-wrap {
    min-height: 340px;
  }

  .apps-portfolio-hero h1 {
    max-width: 100%;
    font-size: 1.92rem;
  }

  .apps-portfolio-hero p:not(.section-kicker),
  .apps-showcase-intro,
  .apps-hero-note p {
    font-size: 0.96rem;
  }

  .app-showcase h3 {
    font-size: 1.32rem;
  }
}

/* ── Header register / account slot ────────────────────────── */

.clerk-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  min-width: 96px; /* reserve width so the nav doesn't reflow when Register -> account button swaps */
}

.clerk-slot .clerk-register-link {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.clerk-slot .clerk-userbtn {
  display: inline-flex;
  align-items: center;
}

/* ── Register page ─────────────────────────────────────────── */

.register-section {
  padding-top: 56px;
  padding-bottom: 72px;
}

.register-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.register-intro h1 {
  margin: 8px 0 18px;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem);
  line-height: 1.08;
  color: var(--ink);
}

.register-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.register-points {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 12px;
}

.register-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 560;
}

.register-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
}

.register-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.clerk-mount {
  width: 100%;
  display: flex;
  justify-content: center;
}

.clerk-error {
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.clerk-error a {
  color: var(--coral);
  font-weight: 680;
}

.register-welcome {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.register-welcome h2 {
  color: var(--ink);
  margin: 0;
}

.register-account {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 820px) {
  .register-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .clerk-slot .clerk-register-link span {
    display: none;
  }
}

/* ── 404 / error page ──────────────────────────────────────── */

.error-section {
  padding-top: 72px;
  padding-bottom: 96px;
}

.error-layout {
  max-width: 640px;
}

.error-layout h1 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.05;
  color: var(--ink);
}

.error-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ── Accessibility ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
