:root {
  --ink: #111827;
  --body: #334155;
  --muted: #64748b;
  --line: #d9e2ef;
  --soft-line: #e8eef7;
  --surface: #f6f8fb;
  --panel: #ffffff;
  --soft-blue: #eef4ff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --deep: #0f172a;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --container: 1120px;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--panel);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.section-pad {
  padding: 88px 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: var(--blue);
  border-radius: var(--radius);
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.site-nav a {
  color: var(--body);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  padding-top: 104px;
  padding-bottom: 84px;
  background: var(--panel);
}

.hero__grid {
  display: block;
}

.hero__content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__content .eyebrow {
  font-size: 14px;
}

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

h1 {
  max-width: 980px;
  margin: 0 auto 28px;
  color: var(--ink);
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
  word-break: keep-all;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.22;
  text-wrap: balance;
  word-break: keep-all;
}

h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

p {
  line-height: 1.72;
}

.hero__lead {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 17px;
  text-wrap: balance;
  word-break: keep-all;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

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

.button--primary:hover {
  background: var(--blue-dark);
}

.button--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.system-visual {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.system-visual img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 1060px);
  margin: 64px auto 0;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-stats div {
  display: flex;
  min-width: 0;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  text-align: center;
  background: var(--surface);
}

.hero-stats dt {
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.profile {
  background: var(--surface);
}

.section-head {
  width: 100%;
  max-width: none;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  width: 100%;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.section-head--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.section-head--inline > p {
  max-width: 520px;
}

.section-head--compact {
  margin-bottom: 22px;
}

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

.summary-card,
.project-card,
.compact-card,
.paper-card,
.credential-block,
.contact__inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-card {
  --summary-icon: var(--blue);
  --summary-icon-bg: #eef4ff;
  --summary-icon-soft: #dbeafe;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: 16px;
  padding: 28px 24px;
}

.summary-card:nth-child(2) {
  --summary-icon: #0891b2;
  --summary-icon-bg: #ecfeff;
  --summary-icon-soft: #cffafe;
}

.summary-card:nth-child(3) {
  --summary-icon: #16a34a;
  --summary-icon-bg: #effdf4;
  --summary-icon-soft: #dcfce7;
}

.icon-box {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  color: var(--summary-icon);
  background: var(--summary-icon-bg);
  border: 0;
  border-radius: 50%;
}

.icon-box svg {
  width: 40px;
  height: 40px;
}

.icon-line {
  fill: none;
  stroke: var(--summary-icon);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.icon-soft {
  fill: var(--summary-icon-soft);
  stroke: var(--summary-icon);
  stroke-width: 1.4;
}

.icon-dot {
  fill: var(--summary-icon);
}

.summary-card h3 {
  grid-column: 2;
  margin: 2px 0 10px;
  font-size: 19px;
  word-break: keep-all;
}

.summary-card p {
  grid-column: 2;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.tech-stack {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tech-stack__head .eyebrow {
  margin-bottom: 8px;
}

.tech-stack__head h3 {
  margin-bottom: 0;
  font-size: 17px;
}

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

.tech-stack__group > p {
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.tech-stack__group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-stack__group li {
  padding: 7px 9px;
  color: var(--body);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.projects {
  background: var(--panel);
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.projects .section-head--inline {
  display: block;
  max-width: none;
}

.projects .section-head--inline > p {
  max-width: none;
  text-align: left;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 24px;
}

.filter-button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--body);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.project-card {
  padding: 26px;
}

.project-card--featured {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 30px 30px 18px;
  border-color: #b8d3ff;
}

.project-card--featured .card-meta {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.project-card--featured h3 {
  min-height: 42px;
  margin-bottom: 58px;
  color: var(--ink);
  font-size: clamp(26px, 1.8vw, 31px);
  font-weight: 900;
  line-height: 1.2;
  word-break: keep-all;
}

.project-card__summary {
  min-height: 76px;
  margin-bottom: 24px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}

.case-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  min-height: 105px;
  margin-top: 0;
  padding: 20px 22px 16px;
  background: var(--panel);
  border: 1px solid #c9dcff;
  border-radius: var(--radius);
}

.case-impact {
  padding-right: 22px;
}

.case-flow {
  padding-left: 22px;
  border-left: 1px solid #d8e6ff;
}

.case-label {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

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

.impact-metrics div {
  min-width: 0;
  text-align: center;
}

.impact-metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(19px, 1.3vw, 24px);
  font-weight: 900;
  line-height: 1.02;
  white-space: nowrap;
}

.impact-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  margin: 8px 0 8px;
}

.flow-track::before {
  position: absolute;
  right: 6px;
  left: 6px;
  top: 50%;
  height: 3px;
  background: #bcd8ff;
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}

.flow-track span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  justify-self: center;
  background: var(--blue);
  border-radius: 50%;
}

.flow-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.keyword-bar {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  color: var(--blue);
  background: #eaf2ff;
  border: 1px solid #c9dcff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.card-meta {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.project-card h3,
.compact-card h3,
.paper-card h3,
.credential-list h3 {
  margin-bottom: 12px;
}

.project-card p,
.compact-card p,
.paper-card p,
.credential-list p {
  font-size: 14px;
}

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

.compact-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 22px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.compact-card h3 {
  min-height: 48px;
  margin-bottom: 14px;
  word-break: keep-all;
}

.compact-card > p:not(.card-meta):not(.compact-card__tech) {
  flex: 1;
  margin-bottom: 18px;
}

.compact-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.compact-card__facts div {
  min-width: 0;
}

.compact-card__facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.compact-card__facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.compact-card__tech {
  margin: 0;
  padding: 10px 12px;
  color: var(--blue);
  background: var(--soft-blue);
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.compact-card__actions {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  margin: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.service-link span {
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}

.service-link:hover,
.service-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-link:hover span,
.service-link:focus-visible span {
  transform: translate(2px, -2px);
}

.compact-card.is-hidden,
.project-card.is-hidden {
  display: none;
}

.work {
  background: var(--panel);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item h3 {
  margin-bottom: 4px;
}

.timeline-item__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.timeline-item__heading h3 {
  min-width: 0;
  margin: 0;
}

.company-former-name {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 700;
}

.company-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.company-link span {
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms ease;
}

.company-link:hover,
.company-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-link:hover span,
.company-link:focus-visible span {
  transform: translate(2px, -2px);
}

.timeline-item p {
  margin-bottom: 0;
  font-size: 14px;
}

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

.timeline-highlights li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.65;
}

.timeline-highlights li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  content: "";
}

.role {
  margin-bottom: 8px !important;
  color: var(--muted);
  font-weight: 700;
}

.publishing {
  background: var(--surface);
}

.paper-count {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
  margin: 0;
}

.paper-count div {
  padding: 12px 8px;
  text-align: center;
  background: var(--deep);
  border-radius: var(--radius);
}

.paper-count dt {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.paper-count dd {
  margin: 5px 0 0;
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
}

.section-copy {
  width: 100%;
  max-width: none;
  margin: -16px 0 30px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: break-word;
  word-break: keep-all;
}

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

.paper-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 22px;
}

.paper-cover {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.paper-cover:hover {
  border-color: #9fc2ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.13);
  transform: translateY(-2px);
}

.paper-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.paper-card__content {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.paper-source {
  color: var(--muted);
  font-size: 12px !important;
  font-style: italic;
}

.paper-card p {
  margin-bottom: 16px;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: auto;
  padding: 0 14px;
  color: var(--blue);
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
}

.paper-link:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.credentials {
  background: var(--panel);
}

.credentials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.credential-block {
  padding: 28px;
}

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

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

.credential-list article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
}

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

.education {
  background: var(--surface);
}

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

.education-grid article {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.education-grid h3 {
  margin-bottom: 8px;
}

.education-grid p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  padding-top: 72px;
  background: var(--panel);
}

.contact__inner {
  padding: 34px;
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.contact__inner h2 {
  max-width: 840px;
  color: #fff;
  font-size: 28px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  color: #dbeafe;
  border: 1px solid rgba(219, 234, 254, 0.32);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 48px, 920px);
  }

  .site-header {
    padding: 0 24px;
  }

  .hero__grid {
    display: block;
  }

  .hero-stats {
    width: min(100%, 920px);
  }

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

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

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

  .project-card--featured {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .section-pad {
    padding: 72px 0;
  }

  .site-nav {
    position: fixed;
    inset: 72px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .nav-toggle {
    display: block;
  }

  h1 {
    font-size: 40px;
  }

  .hero__content {
    text-align: left;
  }

  .hero__lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

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

  .case-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-panel::before {
    display: none;
  }

  .case-impact {
    padding-right: 0;
  }

  .case-flow {
    padding-left: 0;
    border-left: 0;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    padding-top: 72px;
  }

  .section-head--inline {
    display: block;
  }

  .section-head--inline > p {
    max-width: none;
  }

  .summary-grid,
  .credentials__grid,
  .credential-list--grid,
  .education-grid,
  .paper-grid {
    grid-template-columns: 1fr;
  }

  .tech-stack {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .paper-count {
    margin-top: 22px;
  }

  .section-copy {
    margin-top: -6px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 100%);
  }

  .section-pad {
    padding: 58px 0;
  }

  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .site-nav {
    inset: 66px 12px auto;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .timeline-item__heading {
    align-items: flex-start;
  }

  .summary-card {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    padding: 22px 20px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
  }

  .icon-box svg {
    width: 36px;
    height: 36px;
  }

  .summary-card h3 {
    margin-top: 1px;
    font-size: 18px;
  }

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

  .tech-stack {
    padding: 22px;
  }

  .tech-stack__groups {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

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

  .project-card--featured {
    min-height: 0;
    padding: 24px 24px 16px;
  }

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

  .compact-card h3 {
    min-height: 0;
  }

  .project-card--featured h3,
  .project-card__summary {
    min-height: 0;
    margin-bottom: 24px;
  }

  .impact-metrics {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .impact-metrics div {
    text-align: left;
  }

  .keyword-bar {
    padding: 10px 12px;
    font-size: 13px;
  }

  .impact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .paper-cover {
    width: min(132px, 42vw);
  }

  .paper-count {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__inner {
    padding: 26px;
  }

  .contact__inner h2 {
    font-size: 24px;
  }

  .site-footer .container {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 10px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
