@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #182235;
  --muted: #647084;
  --paper: #fffdf7;
  --paper-deep: #f6f1e8;
  --yellow: #f8cf42;
  --blue: #3766e7;
  --heading-blue: #2455d6;
  --coral: #ef765e;
  --mint: #c8ead7;
  --line: rgba(24, 34, 53, 0.14);
  --display: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  color-scheme: only light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  background: rgba(255, 253, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand, .main-nav { display: flex; align-items: center; gap: 12px; }
.brand { font-size: 13px; letter-spacing: 0.14em; font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
}
.main-nav { gap: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.main-nav a { transition: opacity 0.25s ease; }
.main-nav a:hover { opacity: 0.55; }
.menu-button { display: none; border: 0; background: transparent; color: inherit; }

.hero { position: relative; overflow: clip; background: var(--paper); }
.hero-grid, .hero-noise { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  background-image: linear-gradient(rgba(24, 34, 53, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 34, 53, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1200px 700px at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 70% 20%, #000 30%, transparent 78%);
}
.hero-noise { opacity: 0.5; mix-blend-mode: multiply; background-image: radial-gradient(rgba(24, 34, 53, 0.08) 0.5px, transparent 0.5px); background-size: 4px 4px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, var(--paper-deep));
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -18vw;
  bottom: -30vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(55, 102, 231, 0.14), transparent 62%);
  pointer-events: none;
}
.hero-orbit { position: absolute; border: 1px solid rgba(24, 34, 53, 0.28); border-radius: 50%; transform: rotate(-20deg); }
.hero-orbit-a { width: 62vw; height: 24vw; right: -12vw; top: 18vh; }
.hero-orbit-b { width: 54vw; height: 18vw; right: -7vw; top: 30vh; border-color: rgba(255, 253, 247, 0.65); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(3px); mix-blend-mode: screen; }
.hero-glow-a { width: 16vw; height: 16vw; left: 62%; top: 22%; background: rgba(255, 253, 247, 0.52); }
.hero-glow-b { width: 6vw; height: 6vw; left: 76%; top: 53%; background: var(--coral); }
.hero-content { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 19vh 7vw 7vh; }
.eyebrow, .section-kicker, .card-type, .timeline-tag, .work-meta, .card-footer { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { margin: 0; color: rgba(24, 34, 53, 0.76); }
.hero h1 { max-width: 760px; margin: 3vh 0 0; font-size: clamp(7rem, 19vw, 19rem); line-height: 0.78; letter-spacing: -0.09em; font-weight: 600; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-statement { margin: 0; font-size: clamp(1.1rem, 1.8vw, 1.65rem); line-height: 1.35; letter-spacing: -0.02em; }
.scroll-cue { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }
.arrow { display: inline-grid; place-items: center; width: 37px; height: 37px; border: 1px solid currentColor; border-radius: 50%; font-size: 18px; transition: transform 0.25s ease, background 0.25s ease; }
.scroll-cue:hover .arrow { transform: translateY(5px); background: var(--yellow); }
.hero-side-note { position: absolute; right: 4vw; top: 50%; font-family: var(--mono); font-size: 10px; line-height: 1.6; letter-spacing: 0.08em; writing-mode: vertical-rl; opacity: 0.65; }

.section { padding: 150px 7vw; }
.section-kicker { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 54px; }
.section-heading-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 8vw; }
h2 { margin: 0; font-size: clamp(2.9rem, 6vw, 6.7rem); line-height: 0.96; letter-spacing: -0.07em; font-weight: 500; }
h2 span { color: var(--blue); }
.section-heading-row > p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 0; background: var(--paper); }
.stat-card { min-height: 245px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-radius: 2px; }
.stat-card-ink { background: var(--ink); color: white; }
.stat-card-mint { background: var(--mint); }
.stat-card-yellow { background: var(--yellow); }
.stat-card-blue { background: var(--blue); color: white; }
.stat-card-coral { background: var(--coral); }
.stat-number { font-size: clamp(4rem, 7vw, 7.5rem); line-height: 0.8; letter-spacing: -0.08em; }
.stat-number sup { font-size: 0.38em; letter-spacing: 0; vertical-align: super; }
.stat-label { font-size: 1.05rem; line-height: 1.35; }

.timeline-section { background: var(--paper-deep); }
.section-heading-row { align-items: end; margin-bottom: 92px; }
.timeline { position: relative; max-width: 1050px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 5px; left: 166px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 136px 60px minmax(0, 1fr); gap: 0; min-height: 180px; }
.timeline-date { font-family: var(--mono); color: var(--heading-blue); font-size: 18px; font-weight: 700; line-height: 1.5; padding-top: 4px; }
.timeline-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin: 4px 0 0 24px; border: 3px solid var(--paper-deep); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline-dot-gold { background: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(248, 207, 66, 0.55); }
.timeline-body { padding: 0 0 58px 24px; }
.timeline-body h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.timeline-body p { max-width: 600px; margin: 0 0 18px; color: var(--muted); font-size: 1rem; }
.timeline-body p strong { color: var(--ink); }
.timeline-tag { color: var(--blue); }

.timeline-shots { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; max-width: 640px; }
.timeline-shots.solo { max-width: 300px; }
.timeline-shot, .teaching-panel {
  display: block; width: 196px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.timeline-shots.solo .timeline-shot { width: 100%; }
.timeline-shot.portrait { max-width: 100%; }
.timeline-shot img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
}
.timeline-shot.portrait img { height: auto; aspect-ratio: auto; }
#songjiang-hackathon { scroll-margin-top: 100px; }
.timeline-shot.award-proof { width: 100%; }
.award-source { display: block; max-width: 640px; margin: 10px 0 18px; color: var(--heading-blue); font-size: 14px; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.shot-caption {
  display: block; padding: 10px 12px; background: rgba(55, 102, 231, 0.06);
  font-family: var(--mono); font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: 0.03em; color: var(--heading-blue);
}
.timeline-shot:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 14px 30px rgba(24, 34, 53, 0.14); }
.timeline-shot:hover .shot-caption { color: var(--ink); }
.teaching-layout {
  display: grid; grid-template-columns: repeat(3, minmax(0, 196px)); grid-auto-rows: 1fr;
  gap: 24px; max-width: 636px; margin-top: 18px;
}
.teaching-layout > div { display: flex; flex-direction: column; min-width: 0; }
.teaching-layout .teaching-panel { display: flex; flex-direction: column; flex: 1; width: 100%; min-width: 0; margin-top: 14px; }
.teaching-preview { display: block; flex: none; width: 100%; aspect-ratio: 964 / 1358; min-height: 0; background: var(--paper-deep); }
.teaching-panel .teaching-preview img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: contain; object-position: center; }
.teaching-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.teaching-boards .timeline-shot { position: relative; width: 100%; min-width: 0; min-height: 0; border-radius: 6px; }
.teaching-boards .timeline-shot:focus-visible { outline-offset: -3px; }
.teaching-boards .shot-caption {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.moment-lead, .repo-lead {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 0; max-width: 660px;
  font-family: var(--mono); font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: 0.03em; color: var(--heading-blue);
}
.moment-lead::after, .repo-lead::after { content: ''; flex: 1 1 0; max-width: 140px; height: 1px; background: currentColor; opacity: 0.3; }
.teaching-label { margin-top: 0; }
.teaching-label::after { flex: 1 1 0; min-width: 0; max-width: 120px; }

.note-line { margin: 16px 0 0; max-width: 660px; font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.note-line strong { color: var(--ink); }
.repo-cards { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; max-width: 660px; }
.repo-card {
  position: relative; width: 196px;
  display: flex; flex-direction: column;
  padding: 18px 16px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.repo-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 32px rgba(24, 34, 53, 0.12); }
.repo-card-index { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.repo-card h4 { margin: 12px 0 0; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--heading-blue); }
.repo-card p { margin: 6px 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.55; flex: 1; }
.repo-card-link { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--blue); }
.repo-card:hover .repo-card-link { text-decoration: underline; text-underline-offset: 3px; }
.repo-card.repo-card--screenshot { padding: 0; overflow: hidden; }
.repo-card-preview {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: contain; background: var(--paper-deep); border-bottom: 1px solid var(--line);
}
.repo-card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 18px 16px 14px; }
.repo-card-body h4 { margin-top: 0; }
.repo-card--screenshot .repo-card-index { top: auto; bottom: 14px; }

.enterprise-showcase { max-width: 660px; margin-top: 32px; scroll-margin-top: 100px; }
.showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--heading-blue); font-family: var(--mono); font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: 0.03em; }
.showcase-count { font-size: 9px; white-space: nowrap; opacity: .75; }
.client-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.client-project {
  --project-accent: #315d49;
  --project-surface: #e6eee5;
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.client-project-sanheng { --project-accent: #756246; --project-surface: #eee8dc; }
.client-project:hover { transform: translateY(-5px); border-color: var(--project-accent); box-shadow: 0 18px 36px rgba(24, 34, 53, .1); }
.project-screenshot {
  display: block; flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: contain; object-position: top; border-radius: 15px 15px 0 0; background: var(--project-surface);
}
.project-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.project-category { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .05em; }
.client-project h4 { margin: 8px 0 0; font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.03em; color: var(--project-accent); }
.client-project p { margin: 9px 0 16px; font-size: 12px; line-height: 1.75; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.project-tags > span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.project-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.project-access { display: inline-flex; align-items: center; gap: 5px; color: var(--project-accent); font-size: 9px; white-space: nowrap; }
.project-access::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.project-action { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.project-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--project-accent); font-size: 16px; transition: color .25s ease, background .25s ease; }
.client-project:hover .project-arrow, .client-project:focus-visible .project-arrow { color: var(--paper); background: var(--project-accent); border-color: var(--project-accent); }

.remote-showcase { margin-top: 24px; container: remote-layout / inline-size; }
.remote-heading { margin: 0 0 16px; }
.remote-pairs { display: grid; grid-auto-rows: 1fr; gap: 24px; }
.remote-pair { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: stretch; gap: 24px; min-width: 0; }
.remote-pair > .internship-showcase { min-width: 0; max-width: none; margin-top: 0; }
.remote-pair .internship-stage { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.timeline-shot.remote-record { display: flex; flex-direction: column; width: 100%; min-width: 0; border-radius: 18px; }
.remote-record .shot-caption { flex: none; }
.timeline-shot.remote-record img { flex: 1 1 0px; min-height: 0; height: 0; aspect-ratio: auto; object-fit: contain; object-position: center; }
.timeline-shot.remote-record:hover { transform: none; }
.remote-company-heading {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--internship-ink, var(--ink));
}
.remote-company-heading > span { flex: none; font-family: var(--mono); font-size: 12px; color: var(--internship-accent, var(--heading-blue)); }
.remote-internship--resume {
  --internship-bg: #fff2e6; --internship-border: #e5c5ab; --internship-card-bg: #fffaf5;
  --internship-ink: #492c1e; --internship-muted: #765340; --internship-accent: #b8440c; --internship-hover-bg: #ffead8;
}
.remote-internship--sprout {
  --internship-bg: #edf9f4; --internship-border: #b4dcd0; --internship-card-bg: #fbfffd;
  --internship-ink: #173c33; --internship-muted: #466c60; --internship-accent: #007e68; --internship-hover-bg: #eaf8f1;
}
.remote-internship--zaiduan {
  --internship-bg: #0b1930; --internship-border: #2d4d77; --internship-card-bg: #142b49;
  --internship-ink: #eff5ff; --internship-muted: #b8cae2; --internship-accent: #91beff; --internship-hover-bg: #1c3a60;
}
.internship-showcase { max-width: 660px; margin-top: 24px; container-type: inline-size; }
.internship-showcase .moment-lead { margin: 0 0 14px; }
.internship-stage {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 16px; border: 1px solid var(--internship-border, #28584c); border-radius: 18px; background: var(--internship-bg, #061916);
}
.internship-visual { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--internship-border, #254f46); border-radius: 10px; background: var(--internship-card-bg, #050909); }
.internship-visual img { display: block; width: 100%; height: auto; }
.internship-repos { display: grid; min-width: 0; gap: 10px; }
.internship-repo {
  position: relative; display: block; min-width: 0; padding: 12px;
  border: 1px solid var(--internship-border, #2c514a); border-radius: 10px; background: var(--internship-card-bg, #102924); color: var(--internship-ink, #f0f9f6);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.internship-repo::before { content: ''; position: absolute; top: 50%; left: -19px; width: 18px; height: 1px; background: var(--internship-border, #2c514a); pointer-events: none; }
.internship-repo-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.03em; color: var(--internship-accent, #58ead1);
}
.internship-repo :is(h5, h6) { margin: 7px 0 0; font-size: 14px; font-weight: 600; line-height: 1.45; text-wrap: balance; }
.internship-repo p { margin: 6px 0 0; font-size: 11px; line-height: 1.55; color: var(--internship-muted, #b3cfc8); overflow-wrap: anywhere; }
.internship-repo:hover, .internship-repo:focus-visible { border-color: var(--internship-accent, #58ead1); background: var(--internship-hover-bg, #153b32); }
.internship-repo:focus-visible { outline-color: var(--internship-accent, #58ead1); outline-offset: 3px; }
@container (max-width: 560px) {
  .internship-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .internship-repo::before { display: none; }
}
@container (min-width: 440px) {
  .remote-pair .internship-stage { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; padding: 14px; }
  .remote-pair .internship-repo::before { display: block; left: -15px; width: 14px; }
}
@container remote-layout (max-width: 720px) {
  .remote-pairs { grid-auto-rows: auto; }
  .remote-pair { grid-template-columns: minmax(0, 1fr); }
  .remote-pair .internship-stage { height: auto; grid-template-rows: none; }
  .timeline-shot.remote-record img { flex: none; height: auto; aspect-ratio: 4 / 5; }
}
.gfl-site-card {
  display: grid; grid-template-columns: 196px minmax(0, 1fr); align-items: center; gap: 18px;
  max-width: 660px; margin-top: 16px; padding: 14px 16px;
  border: 1px solid rgba(24, 34, 53, 0.38); border-radius: 12px;
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gfl-site-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(24, 34, 53, 0.13); }
.gfl-site-preview { border: 1px solid var(--line); border-radius: 8px; }
.gfl-site-index { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.gfl-site-text { min-width: 0; }
.gfl-site-text h4 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--heading-blue); }
.gfl-site-text p { margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); }
.gfl-site-go { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--blue); }
.gfl-site-card:hover .gfl-site-go { text-decoration: underline; text-underline-offset: 3px; }




.contact { min-height: 80vh; display: flex; align-items: end; background: var(--yellow); }
.contact-inner { width: 100%; }
.contact h2 { font-size: clamp(4.1rem, 10vw, 12rem); }
.contact h2 span { color: var(--coral); }
.contact p { margin: 34px 0 0; font-size: 1.1rem; }
.contact-details a { text-decoration: underline; text-underline-offset: 4px; }
.contact-button { display: inline-flex; align-items: center; gap: 34px; margin-top: 42px; padding: 17px 20px 17px 24px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: 12px; transition: background 0.25s ease, color 0.25s ease; }
.contact-button span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 18px; }
.contact-button:hover { background: var(--ink); color: var(--yellow); }
.contact-links { display: flex; justify-content: space-between; margin-top: 130px; padding-top: 18px; border-top: 1px solid rgba(24, 34, 53, 0.28); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; }
@media (max-width: 800px) {
  .site-header { padding: 18px 22px; }
  .main-nav { display: none; position: absolute; top: 68px; right: 22px; flex-direction: column; align-items: flex-end; gap: 14px; padding: 16px 18px; background: rgba(255, 253, 247, 0.9); color: var(--ink); backdrop-filter: blur(16px); }
  .main-nav.is-open { display: flex; }
  .menu-button { display: grid; gap: 5px; padding: 7px 0 7px 7px; }
  .menu-button span { display: block; width: 22px; height: 1px; background: currentColor; }
  .hero-content { padding: 17vh 22px 38px; }
  .hero h1 { font-size: clamp(6.2rem, 28vw, 11rem); }
  .hero-foot { align-items: flex-start; flex-direction: column; gap: 26px; }
  .hero-side-note { display: none; }
  .section { padding: 94px 22px; }
  .section-heading-row { grid-template-columns: 1fr; gap: 34px; }
  h2 { font-size: clamp(3rem, 15vw, 6rem); }
  .stats { grid-template-columns: 1fr; padding-top: 0; }
  .stat-card { min-height: 180px; }
  .timeline::before { left: 85px; }
  .timeline-item { grid-template-columns: 66px 38px minmax(0, 1fr); }
  .timeline-date { font-size: 14px; }
  .timeline-dot { margin-left: 13px; }
  .timeline-body { padding-left: 14px; }
  .timeline-body h3 { font-size: 1.65rem; }
  .timeline-shots { gap: 10px; }
  .timeline-shot { width: 148px; }
  .shot-caption { font-size: 15px; }
  .timeline-shots.solo { max-width: 240px; }
  .repo-cards { gap: 10px; }
  .repo-card { width: 148px; padding: 14px 12px 12px; }
  .repo-card-body { padding: 14px 12px 12px; }
  .repo-card--screenshot .repo-card-index { right: 12px; bottom: 12px; }
  .gfl-site-card { grid-template-columns: minmax(0, 1fr); max-width: 300px; }
  .client-projects { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .showcase-heading { flex-wrap: wrap; gap: 4px 12px; }
  .project-body { padding: 16px 14px; }
  .client-project h4 { font-size: 20px; }
  .project-tags { margin-bottom: 18px; }
  .teaching-layout { grid-template-columns: repeat(3, minmax(0, 148px)); max-width: 492px; }
  .contact { min-height: 72vh; }
  .contact-links { margin-top: 90px; gap: 18px; flex-direction: column; }
}

@media (max-width: 560px) {
  .teaching-layout { grid-template-columns: minmax(0, 148px); max-width: 148px; }
}

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