:root {
  color-scheme: light;
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-muted: #eeeeeb;
  --text: #111111;
  --muted: #5f6268;
  --subtle: #8a8d91;
  --line: #d8d9d6;
  --accent-blue: #0088d7;
  --accent-green: #2a9d8f;
  --accent-gold: #c59034;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(248, 248, 246, 0.78);
  --hero-fade: #f8f8f6;
  --primary-bg: #111111;
  --primary-border: #111111;
  --primary-text: #ffffff;
  --primary-hover: #000000;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a192f;
  --surface: #112240;
  --surface-muted: #0f213d;
  --text: #ccd6f6;
  --muted: #8892b0;
  --subtle: #64748f;
  --line: #233554;
  --accent-blue: #57cbff;
  --accent-green: #64ffda;
  --accent-gold: #ffd166;
  --shadow: 0 28px 70px rgba(2, 12, 27, 0.58);
  --header-bg: rgba(10, 25, 47, 0.84);
  --hero-fade: #0a192f;
  --primary-bg: color-mix(in srgb, var(--accent-green) 14%, transparent);
  --primary-border: var(--accent-green);
  --primary-text: var(--accent-green);
  --primary-hover: color-mix(in srgb, var(--accent-green) 22%, transparent);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

::selection {
  background: color-mix(in srgb, var(--accent-blue) 28%, transparent);
}

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

button {
  font: inherit;
}

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

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
}

.signature {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-size: 38px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -1px;
}

.signature-mark {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.signature-mark::after {
  position: absolute;
  right: -2px;
  bottom: 3px;
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-green);
  content: "";
  transform: rotate(2deg);
}

.signature-dot {
  color: var(--accent-green);
  font-weight: 900;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 72px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  padding: 22px 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  outline: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-green);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a.is-active::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.theme-switch {
  display: inline-flex;
  align-items: center;
  width: 50px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.switch-track {
  position: relative;
  width: 50px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  transition: background 180ms ease, border-color 180ms ease;
}

.switch-track::before,
.switch-track::after {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.switch-track::before {
  left: 10px;
  background: var(--accent-gold);
}

.switch-track::after {
  right: 10px;
  background: var(--subtle);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease;
}

.theme-switch input:checked + .switch-track {
  background: #242427;
  border-color: #3a3a3d;
}

.theme-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
}

.theme-switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--accent-green);
  background: transparent;
  color: var(--accent-green);
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-contact:hover,
.header-contact:focus-visible {
  background: color-mix(in srgb, var(--accent-green) 18%, transparent);
  outline: none;
  transform: translateY(-1px);
}

.header-social-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-social-link:hover,
.header-social-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent-green) 72%, transparent);
  background: color-mix(in srgb, var(--accent-green) 12%, transparent);
  color: var(--accent-green);
  outline: none;
  transform: translateY(-1px);
}

.slide-deck {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.slide-deck:focus,
.slide:focus {
  outline: none;
}

.slide-deck::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-color: color-mix(in srgb, var(--subtle) 54%, transparent) transparent;
  scrollbar-width: thin;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  max-width: none;
  margin: 0;
  padding: 42px max(40px, calc((100vw - 1180px) / 2)) 96px;
}

.hero-intro {
  position: relative;
  z-index: 4;
  justify-self: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

.hero-intro p {
  margin: 0;
}

.hero-stage {
  position: relative;
  min-height: 600px;
}

.hero-title {
  position: absolute;
  top: 44px;
  left: 50%;
  z-index: 1;
  display: grid;
  width: min(1120px, 92vw);
  margin: 0;
  color: var(--text);
  font-size: clamp(88px, 10.4vw, 154px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-title span:first-child {
  color: var(--text);
}

.hero-title span:last-child {
  margin-top: 26px;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 44%, transparent);
  text-stroke: 1.5px color-mix(in srgb, var(--text) 44%, transparent);
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  position: absolute;
  right: 50%;
  bottom: 126px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 48px);
  margin-top: 0;
  transform: translateX(50%);
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-link {
  border: 1px solid var(--primary-border);
  background: var(--primary-bg);
  color: var(--primary-text);
}

.secondary-link {
  border: 1px solid color-mix(in srgb, var(--text) 46%, var(--line));
  background: color-mix(in srgb, var(--surface) 48%, transparent);
  color: var(--text);
}

.primary-link:hover,
.secondary-link:hover,
.primary-link:focus-visible,
.secondary-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--primary-hover);
}

.hero-portrait {
  position: absolute;
  right: 50%;
  bottom: 36px;
  z-index: 5;
  width: min(430px, 34vw);
  height: min(560px, 66vh);
  min-height: 480px;
  margin: 0;
  transform: translateX(50%);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 24px 34px rgba(2, 12, 27, 0.18));
  object-fit: cover;
  object-position: center top;
}

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

.section {
  max-width: none;
  margin: 0;
  padding: clamp(72px, 9vh, 110px) max(40px, calc((100vw - 1100px) / 2)) 120px;
}

.section-muted {
  background: var(--surface-muted);
}

#education {
  padding-top: clamp(24px, 5vh, 64px);
}

.section > .section-heading,
.section > .timeline,
.section > .education-window,
.section > .experience-list,
.section > .skills-list {
  width: min(1100px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 760;
}

.section-index {
  margin: 0;
  color: var(--accent-green);
  font-size: 36px;
  line-height: 1.12;
  font-weight: 760;
}

.timeline,
.experience-list,
.skills-list {
  display: grid;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item h3,
.experience-item h3,
.skill-row h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 760;
}

.timeline-item p,
.experience-item p,
.skill-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.education-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.window-bar p {
  margin: 0;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.2;
}

.education-map-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: clamp(440px, calc(100svh - 180px), 540px);
  min-height: 440px;
}

.education-detail {
  display: flex;
  flex-direction: column;
  padding: 22px 32px 20px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
  overflow-y: auto;
  scrollbar-color: color-mix(in srgb, var(--subtle) 44%, transparent) transparent;
  scrollbar-width: thin;
}

.education-kicker {
  margin: 0 0 12px;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.education-detail h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.18;
  font-weight: 780;
}

.education-degree {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.education-meta {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.education-meta div {
  padding: 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.education-meta div:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.education-meta dt {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.education-meta dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.education-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.education-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent-green) 44%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-green) 9%, transparent);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 700;
}

.map-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}

.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-green);
}

.map-grid {
  fill: none;
  stroke: color-mix(in srgb, var(--line) 78%, transparent);
  stroke-dasharray: 2 10;
  stroke-width: 1;
}

.map-land {
  fill: url(#mapFade);
  stroke: color-mix(in srgb, var(--text) 18%, transparent);
  stroke-width: 1.5;
}

.map-route {
  fill: none;
  stroke: var(--accent-gold);
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 3;
  opacity: 0.72;
}

.map-marker {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--text) 24%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(2, 12, 27, 0.18);
  transform: translate(-50%, -50%);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-active {
  border-color: var(--accent-green);
  background: color-mix(in srgb, var(--accent-green) 16%, var(--surface));
  color: var(--accent-green);
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

.marker-index {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 850;
}

.marker-pulse {
  position: absolute;
  inset: -10px;
  border: 1px solid color-mix(in srgb, var(--accent-green) 70%, transparent);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 180ms ease, transform 180ms ease;
}

.map-marker:hover .marker-pulse,
.map-marker:focus-visible .marker-pulse,
.map-marker.is-active .marker-pulse {
  opacity: 0.82;
  transform: scale(1);
}

.marker-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  display: grid;
  gap: 2px;
  min-width: 188px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(2, 12, 27, 0.2);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.marker-tooltip strong {
  font-size: 13px;
  line-height: 1.2;
}

.marker-tooltip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-marker:hover .marker-tooltip,
.map-marker:focus-visible .marker-tooltip,
.map-marker.is-active .marker-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-caption {
  position: absolute;
  right: 22px;
  bottom: 96px;
  left: 22px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.map-caption p {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
}

.map-caption span {
  flex: 0 0 auto;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

time {
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}

.experience-list {
  gap: 0;
}

.experience-item {
  position: relative;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

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

.experience-item::before {
  display: none;
}

.item-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  margin-bottom: 20px;
}

.meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
}

.meta span {
  color: var(--subtle);
  font-size: 15px;
}

ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.15rem;
}

li {
  color: var(--muted);
  font-size: 17px;
}

li::marker {
  color: var(--accent-gold);
}

.project-item:nth-child(2) li::marker {
  color: var(--accent-green);
}

.project-item:nth-child(3) li::marker {
  color: var(--accent-blue);
}

.skills-list {
  gap: 0;
  border-top: 1px solid var(--line);
}

.skill-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.skill-row p {
  margin: 0;
}

.slide-controls {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.slide-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.slide-button span {
  display: block;
  margin-top: -2px;
  font-size: 28px;
  line-height: 1;
}

.slide-button:hover,
.slide-button:focus-visible {
  border-color: var(--line);
  background: var(--surface-muted);
  outline: none;
}

.slide-button:disabled {
  color: var(--subtle);
  cursor: default;
  opacity: 0.45;
}

.slide-meter {
  min-width: 58px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.js .slide.is-current [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .site-header[data-reveal] {
  transform: translateY(-8px);
}

.js .site-header[data-reveal].is-visible {
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 20px;
  }

  .brand {
    display: inline-flex;
  }

  .signature {
    font-size: 32px;
  }

  .signature-mark::after {
    height: 26px;
  }

  .header-contact {
    display: none;
  }

  .header-social-link {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    justify-self: stretch;
    justify-content: flex-start;
    gap: 22px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0;
    padding: 40px 24px 104px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-stage {
    min-height: 610px;
  }

  .hero-title {
    top: 62px;
    font-size: clamp(54px, 12vw, 88px);
    letter-spacing: 0;
  }

  .hero-title span:last-child {
    margin-top: 18px;
  }

  .hero-portrait {
    bottom: 54px;
    width: min(360px, 70vw);
    height: 430px;
    min-height: 430px;
  }

  .hero-actions {
    bottom: 102px;
  }

  .section {
    padding: 76px 24px 112px;
  }

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

  .section-heading {
    display: inline-flex;
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-heading h2,
  .section-index {
    font-size: 32px;
  }

  .education-map-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .education-detail {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

  .education-tags {
    margin-top: 20px;
  }

  .map-viewport {
    min-height: 430px;
  }

  .marker-tooltip {
    min-width: 168px;
  }

  .meta {
    justify-items: start;
  }

  time {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 58px;
    padding: 0 12px;
  }

  .signature {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .signature-mark::after {
    right: -1px;
    bottom: 2px;
    width: 4px;
    height: 21px;
  }

  .site-nav a {
    min-width: 0;
    padding: 20px 0 18px;
    font-size: 13px;
  }

  .site-nav {
    gap: 14px;
  }

  .theme-switch,
  .switch-track {
    width: 46px;
  }

  .theme-switch input:checked + .switch-track .switch-thumb {
    transform: translateX(18px);
  }

  .hero {
    padding: 38px 18px 94px;
  }

  .hero-intro {
    justify-self: start;
    max-width: 260px;
    font-size: 14px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-title {
    top: 44px;
    left: 0;
    width: calc(100vw - 36px);
    font-size: clamp(38px, 11.4vw, 48px);
    letter-spacing: 0;
    transform: none;
  }

  .hero-title span:last-child {
    margin-top: 14px;
    -webkit-text-stroke-width: 1px;
    text-stroke-width: 1px;
  }

  .hero-portrait {
    bottom: 56px;
    width: min(318px, 82vw);
    height: 396px;
    min-height: 396px;
  }

  .primary-link,
  .secondary-link {
    width: 132px;
  }

  .hero-actions {
    bottom: 94px;
    gap: 10px;
  }

  .section {
    padding: 64px 18px 104px;
  }

  .section-heading h2,
  .section-index {
    font-size: 28px;
  }

  .education-window {
    border-radius: 10px;
  }

  .window-bar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .window-bar p {
    justify-self: end;
    font-size: 10px;
  }

  .education-detail {
    padding: 24px 20px;
  }

  .education-detail h3 {
    font-size: 24px;
  }

  .education-meta dd,
  .education-note {
    font-size: 14px;
  }

  .map-viewport {
    min-height: 360px;
  }

  .map-marker {
    width: 38px;
    height: 38px;
  }

  .marker-tooltip {
    display: none;
  }

  .map-caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: grid;
    gap: 6px;
  }

  .map-caption p {
    font-size: 12px;
  }

  .timeline-item h3,
  .experience-item h3,
  .skill-row h3 {
    font-size: 21px;
  }

  .timeline-item p,
  .experience-item p,
  .skill-row p,
  li {
    font-size: 16px;
  }

  .slide-controls {
    bottom: 12px;
  }

}
