/* ==========================================================================
   编程小站 · 个人作品集  —  现代极简 Bento Grid
   强调色：琥珀 #f59e0b
   ========================================================================== */

:root {
  /* 画布与表面 */
  --canvas: #faf8f5;
  --card: #ffffff;
  --preview: #f5f5f5;
  --chip: #f0f0f0;

  /* 文字 */
  --ink: #1a1a1a;
  --body: #4a4a4a;
  --muted: #8a8a8a;

  /* 线条 */
  --line: #e5e5e5;

  /* 强调色 —— 琥珀 */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fffbeb;
  --accent-20: rgba(245, 158, 11, 0.2);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* 圆角 */
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-preview: 16px;
  --r-pill: 24px;

  /* 间距 */
  --gap: 20px;
  --section: 140px;
  --container: 1200px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 300ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--accent-20); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--ink);
}
.section-head p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  max-width: 560px;
}

/* ---------- Typography helpers ---------- */
.link-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: color 200ms ease;
}
.link-arrow:hover { color: var(--accent-hover); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  transition: background 200ms ease, transform 200ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn--lg { padding: 16px 32px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 6px 0;
  transition: color 200ms ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav__menu {
  display: none;
  position: absolute;
  top: 72px;
  right: 16px;
  left: 16px;
  background: var(--card);
  border-radius: var(--r-preview);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}
.nav__menu.is-open { display: block; }
.nav__menu a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--body);
}
.nav__menu a:hover { background: var(--accent-light); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__deco {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 42vw;
  max-width: 640px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.hero__deco-2 {
  position: absolute;
  left: -10%;
  top: 6%;
  width: 28vw;
  max-width: 420px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 800px; }
.hero__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  margin: 0 auto 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.hero__name {
  font-size: 80px;
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 700;
  color: var(--ink);
}
.hero__role {
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 500;
  color: var(--body);
}
.hero__tagline {
  margin-top: 16px;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--accent-20), var(--shadow-sm); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  color: var(--ink);
  opacity: 0.4;
  z-index: 1;
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

/* 预览占位区 */
.preview {
  position: relative;
  background: var(--preview);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.preview--16-10 { aspect-ratio: 16 / 10; border-radius: var(--r-preview); }
.preview svg { width: 32px; height: 32px; opacity: 0.7; }
.preview span { font-size: 14px; font-weight: 500; }
.preview--lg svg { width: 48px; height: 48px; }
.preview--lg span { font-size: 14px; }

/* ---------- Featured ---------- */
.featured {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
  align-items: center;
  transition: box-shadow var(--t) var(--ease);
}
.featured:hover { box-shadow: var(--shadow-md); }
.tag-featured {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.featured h3 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--ink);
}
.featured__desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  max-width: 480px;
}
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-accent {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.featured__cta { margin-top: 28px; }

/* ---------- Works Bento Grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.work { padding: 32px; display: flex; flex-direction: column; }
.work > a { display: block; }
.work--wide { grid-column: span 2; }
.work--full { grid-column: span 3; }
.work--full > a { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.work--full .preview { aspect-ratio: 16 / 9; }
.work--full .work__title { font-size: 24px; letter-spacing: -0.4px; }
.work__body { padding-top: 24px; }
.work .preview { flex: none; }
.work--wide .preview { aspect-ratio: 21 / 9; }
.work--full .work__body { padding-top: 0; }
.work__type {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.work__title {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.work--wide .work__title { font-size: 24px; letter-spacing: -0.4px; }
.work__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.work:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 40% 60%; gap: 48px; align-items: start; }
.about__photo {
  background: var(--preview);
  border-radius: var(--r-lg);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.about__body h2 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--ink);
}
.about__text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  max-width: 480px;
}
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  background: var(--chip);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background 200ms ease, color 200ms ease;
}
.skill:hover { background: var(--accent-light); color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { text-align: left; }
.stat__num {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 700;
  color: var(--ink);
}
.stat__label { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.service {
  padding: 36px;
  border: 1px solid transparent;
}
.service:hover {
  border-color: var(--accent-20);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.service p { font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: 20px; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonials::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  min-width: 360px;
  scroll-snap-align: start;
  padding: 32px;
}
.quote:hover { box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 4px; color: var(--accent); margin-bottom: 20px; }
.quote__text {
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  color: var(--body);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 24px;
}
.quote__person { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--chip);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex: none;
}
.quote__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.quote__org { font-size: 13px; color: var(--muted); }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 3px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent-20);
}
.exp { position: relative; padding-bottom: 40px; }
.exp:last-child { padding-bottom: 0; }
.exp::before {
  content: "";
  position: absolute;
  left: -32px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  transition: transform 200ms ease;
}
.exp:hover::before { transform: scale(1.3); }
.exp__date {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.exp__title {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.exp__title span { color: var(--muted); font-weight: 500; }
.exp__desc { font-size: 15px; line-height: 1.7; color: var(--body); transition: color 200ms ease; }
.exp:hover .exp__desc { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 64px 48px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-card h2 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--ink);
}
.contact-card__sub { margin-top: 16px; font-size: 18px; color: var(--muted); }
.contact-card__mail {
  display: inline-block;
  margin-top: 40px;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  transition: border-color 150ms ease;
}
.contact-card__mail:hover { border-bottom-color: var(--accent); }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.social {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--body);
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.social:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.contact-card__cta { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 48px 0;
  margin-top: var(--section);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer__logo { font-size: 18px; font-weight: 600; color: var(--ink); }
.footer__logo span { color: var(--accent); }
.footer__nav { display: flex; gap: 20px; justify-content: center; }
.footer__nav a { font-size: 14px; color: var(--body); transition: color 150ms ease; }
.footer__nav a:hover { color: var(--ink); }
.footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__social { display: flex; gap: 12px; color: var(--muted); }
.footer__social a { transition: color 150ms ease; }
.footer__social a:hover { color: var(--accent); }

/* 页脚备案信息 */
.footer__beian {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer__beian a { transition: color 150ms ease; }
.footer__beian a:hover { color: var(--accent); }

/* ---------- Sub-page header ---------- */
.page-head { padding: 152px 0 0; }
.page-head h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 700;
  color: var(--ink);
}
.page-head p { margin-top: 20px; font-size: 18px; line-height: 1.8; color: var(--body); max-width: 620px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Works list page ---------- */
.list-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.view-btn {
  font-size: 14px; font-weight: 500; color: var(--body);
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--chip); transition: background 200ms ease, color 200ms ease;
}
.view-btn.is-active { background: var(--accent); color: #fff; }

.works-list { display: flex; flex-direction: column; gap: var(--gap); }
.work-row { display: block; padding: 24px; }
.work-row > a { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; }
.work-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-row .preview { aspect-ratio: 16 / 10; }
.work-row .work__body { padding-top: 0; }

/* ---------- Project detail ---------- */
.detail-hero { padding: 152px 0 0; }
.detail-hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 700;
  color: var(--ink);
  max-width: 800px;
}
.detail-hero p { margin-top: 20px; font-size: 18px; line-height: 1.8; color: var(--body); max-width: 620px; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.detail-meta dt {
  font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
}
.detail-meta dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }

.detail-cover { margin-top: 48px; }
.detail-cover .preview { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }

.prose { max-width: 760px; }
.prose h2 {
  font-size: 28px; line-height: 1.2; letter-spacing: -0.5px; font-weight: 700;
  color: var(--ink); margin: 48px 0 16px;
}
.prose h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--body); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px; padding-left: 0; }
.prose li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  margin-bottom: 10px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 40px; }
.gallery .preview { aspect-ratio: 4 / 3; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.pager a { font-size: 15px; font-weight: 600; color: var(--body); transition: color 200ms ease; }
.pager a:hover { color: var(--accent); }
.pager .pager__label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Contact page form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-20);
}
.field textarea { resize: vertical; min-height: 132px; }
.info-list { display: flex; flex-direction: column; gap: 28px; }
.info-item__label {
  font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.info-item__value { font-size: 18px; font-weight: 600; color: var(--ink); }
.info-item__value a { color: var(--accent); }
.info-item__value a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --section: 96px; }
  .container { max-width: 960px; }
  .section-head h2 { font-size: 40px; letter-spacing: -0.8px; }
  .hero__name { font-size: 72px; letter-spacing: -1.5px; }
  .hero__role { font-size: 24px; }
  .page-head h1, .detail-hero h1 { font-size: 44px; letter-spacing: -1px; }

  .featured { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
  .featured h3 { font-size: 32px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .work--wide, .work--full { grid-column: span 2; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 320px; }
  .about__body h2 { font-size: 40px; }

  .quote { flex-basis: calc((100% - var(--gap)) / 2); min-width: 320px; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
  .footer__right { justify-content: center; }

  .work-row > a { grid-template-columns: 1fr; gap: 24px; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section: 72px; }
  .container { padding: 0 16px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 32px; letter-spacing: -0.6px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding: 100px 0 64px; }
  .hero__name { font-size: 56px; letter-spacing: -1px; }
  .hero__role { font-size: 24px; }
  .hero__tagline { font-size: 16px; }
  .hero__avatar { width: 80px; height: 80px; margin-bottom: 24px; }

  .featured { padding: 24px; border-radius: var(--r-md); }
  .featured h3 { font-size: 28px; }

  .bento { grid-template-columns: 1fr; }
  .work--wide, .work--full { grid-column: span 1; }
  .work { padding: 24px; }
  .work--wide .preview { aspect-ratio: 16 / 9; }
  .work--full > a { grid-template-columns: 1fr; gap: 24px; }
  .work--full .work__body { padding-top: 24px; }

  .about__photo { max-width: none; }
  .about__body h2 { font-size: 32px; }
  .stats { gap: 16px; }
  .stat__num { font-size: 28px; }

  .services { grid-template-columns: 1fr; }
  .service { padding: 28px; }

  .quote { flex-basis: 84%; min-width: 260px; padding: 24px; }

  .timeline { padding-left: 0; }
  .timeline::before { display: none; }
  .exp { padding-left: 0; padding-bottom: 32px; }
  .exp:not(:last-child) { border-bottom: 1px solid var(--line); }
  .exp::before { display: none; }

  .contact-card { padding: 40px 24px; }
  .contact-card h2 { font-size: 32px; }
  .contact-card__mail { font-size: 18px; word-break: break-all; }
  .form-card { padding: 24px; }

  .page-head h1, .detail-hero h1 { font-size: 34px; letter-spacing: -0.8px; }
  .page-head p, .detail-hero p { font-size: 16px; }
  .detail-meta { grid-template-columns: 1fr; padding: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .work-row { padding: 16px; }
  .work-row > a { grid-template-columns: 1fr; gap: 20px; }
  .prose h2 { font-size: 24px; }
}
