:root {
  --bg: #FAF8F3;
  --bg-alt: #F0EBE0;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #8A8A8A;
  --accent: #2D5F4E;
  --accent-soft: #4A8A75;
  --accent-pale: #E3EDE8;
  --line: #DDD6C7;
  --line-soft: #EAE5D9;
  --card: #FFFFFF;
  --gold: #B8935A;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* Disable iOS Safari's data detector auto-linking on dates/etc */
a[x-apple-data-detectors],
a[x-apple-data-detectors="true"],
a[href^="x-apple-data-detectors://"] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none !important;
  cursor: default !important;
  border-bottom: 0 !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: "Noto Serif TC", "Inter", serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.nav nav { display: flex; gap: 32px; }
.nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--accent); }
.nav nav a.active {
  color: var(--ink);
  font-weight: 700;
  position: relative;
}
.nav nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

/* ===== Hamburger button (mobile only) ===== */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Page head ===== */
.page-head {
  padding: 80px 0 56px;
  background:
    radial-gradient(ellipse at 70% 30%, var(--accent-pale) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.page-title {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}
.page-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 740px;
}
.page-lead strong { color: var(--ink); font-weight: 700; }

.prose-wide {
  max-width: 760px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-soft);
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.7; }

/* ===== Feature card (homepage preview) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.feature-body {
  padding: 20px 22px 24px;
}
.feature-tag {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feature-body h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.feature-body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.feature-body p strong { color: var(--ink); font-weight: 700; }

.see-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== Work external link button ===== */
.work-link {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.work-link:hover {
  background: var(--accent);
  color: white;
}

/* ===== CTA strip on works page ===== */
.cta-strip {
  text-align: center;
}
.cta-strip .section-title { margin-bottom: 12px; }
.cta-strip .section-lead { margin: 0 auto 32px; }
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Writings ===== */
.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.writing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.writing-card-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff 0%, var(--accent-pale) 100%);
  border-color: var(--accent-soft);
}
.writing-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.writing-source {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.writing-date {
  font-size: 12px;
  color: var(--ink-mute);
}
.writing-card h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.writing-card-feature h3 { font-size: 24px; }
.writing-excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
  flex-grow: 1;
}
.writing-quote {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 14px;
  border-left: 3px solid var(--accent-soft);
  font-style: italic;
  margin-bottom: 16px;
}
.writing-link {
  display: inline-block;
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.writing-link:hover { opacity: 0.7; }

.writing-footer {
  margin-top: 32px;
  text-align: center;
}

/* ===== Topics grid ===== */
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 32px;
}
.topic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.topic-label {
  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.topic-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.topics-note {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.8;
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: 10px;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.contact-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: all 0.2s;
}
a.contact-block:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cc-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.cc-value {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}
.cc-note {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
}

.contact-extra {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 36px;
}
.cx-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cx-row:last-child { border-bottom: none; }
.cx-label {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.cx-value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

/* ===== Footer with two paragraphs ===== */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--accent); }
.footer-inner p { text-align: left; }

/* ===== Education wide ===== */
.edu-grid-wide { max-width: none; }

/* ===== Responsive additions ===== */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
  .writing-grid { grid-template-columns: 1fr; }
  .writing-card-feature { grid-column: span 1; }
  .topics { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cx-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-inner p { text-align: center; }
}

@media (max-width: 480px) {
  .topics { grid-template-columns: 1fr; }
}

/* ===== Hero v2 (researcher style) ===== */
.hero-v2 {
  padding: 88px 0 88px;
  background:
    radial-gradient(ellipse at 75% 30%, var(--accent-pale) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.hero-photo {
  position: relative;
  width: 280px;
  height: 280px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  display: block;
}
.avatar-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif TC", serif;
  font-size: 140px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-lg);
}
.hero-info { min-width: 0; }
.hero-name {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.hero-name .en {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.6em;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.hero-role {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-tagline {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 22px;
  max-width: 580px;
}
.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
}
.quick-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
a.quick-link:hover { color: var(--accent); }
.quick-sep { color: var(--ink-mute); }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 5px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.chip-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

/* ===== Bridge (why netzero) ===== */
.bridge-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-pale) 100%);
}
.bridge-block { max-width: 1100px; }
.bridge-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-top: 32px;
  align-items: start;
}
.bridge-text p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin-bottom: 22px;
}
.bridge-text p:last-child { margin-bottom: 0; }
.bridge-text strong { color: var(--ink); font-weight: 700; }

.bridge-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bridge-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.bridge-step:hover {
  border-color: var(--accent-soft);
  transform: translateX(3px);
}
.step-tag {
  display: inline-block;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.step-title {
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.step-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===== About block ===== */
.about-block {
  max-width: 760px;
}
.about-prose {
  margin-top: 20px;
}
.about-prose p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin-bottom: 20px;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--ink); font-weight: 700; }

/* ===== Metrics ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.metric:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.metric-num {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.metric-unit {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-mute);
  margin-left: 2px;
}
.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.metric-note {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.55;
}

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

/* ===== Article list (writings page) ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.article-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.article-row:hover {
  border-color: var(--accent-soft);
  transform: translateX(2px);
}
.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 12.5px;
}
.article-source {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.article-date {
  color: var(--ink-mute);
  font-family: "Inter", sans-serif;
}
.article-len {
  color: var(--ink-mute);
  font-size: 12px;
}
.article-row h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--ink);
}
.article-row p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 12px;
}
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tags span {
  font-size: 11.5px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  color: var(--ink-mute);
  border-radius: 999px;
  font-weight: 500;
}
.article-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}
.article-link:hover { opacity: 0.7; }

.article-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
  padding: 16px;
  background: var(--bg-alt);
  border-radius: 10px;
}

/* ===== Platform grid ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.platform-card:hover { border-color: var(--accent-soft); }
.platform-card strong {
  font-family: "Noto Serif TC", serif;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 700;
}
.platform-card span {
  font-size: 12px;
  color: var(--ink-mute);
}

/* ===== Video cards ===== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.video-platform {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.video-date {
  color: var(--ink-mute);
  font-family: "Inter", sans-serif;
}
.video-card h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}
.video-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 16px;
  flex-grow: 1;
}
.video-card p strong { color: var(--ink); font-weight: 700; }
.video-stat {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 14px;
  color: var(--ink-mute);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.video-stat strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  margin-right: 6px;
}

/* ===== Contact 4-col ===== */
.contact-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Original hero kept for backward compat but unused ===== */
.hero {
  padding: 112px 0 112px;
  background:
    radial-gradient(ellipse at 80% 20%, var(--accent-pale) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(184,147,90,0.06) 0%, transparent 50%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.hero-title {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--ink);
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.95;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}
.stat-num {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-plus {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-left: 2px;
}
.stat-label {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.55;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ===== Section base ===== */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 760px;
  line-height: 1.85;
}

/* ===== About ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.prose p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 16px;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose p:last-child { margin-bottom: 0; }

/* ===== Works ===== */
.works {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
}
.work {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.work:nth-child(even) {
  grid-template-columns: 1fr 380px;
}
.work:nth-child(even) .work-imgs { order: 2; }
.work:nth-child(even) .work-body { order: 1; }

.work-imgs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 20px;
  background: var(--bg-alt);
  align-self: stretch;
  justify-content: center;
  align-items: center;
}
.work-imgs img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  background: white;
}

.work-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.work-tag {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.work-date {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.work-body h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.work-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 22px;
}
.work-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.work-numbers .num {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-numbers strong {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.work-numbers span {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.work-stack {
  font-size: 13px;
  color: var(--ink-mute);
  font-family: "Inter", "Noto Sans TC", sans-serif;
  letter-spacing: 0.02em;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  margin-top: 32px;
  padding-left: 36px;
  max-width: 880px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  position: relative;
  margin-bottom: 36px;
}
.tl-marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--ink-mute);
  border-radius: 50%;
}
.tl-current .tl-marker {
  background: var(--accent);
  border-color: var(--accent);
}
.tl-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
}
.tl-current .tl-content {
  border-color: var(--accent-soft);
}
.tl-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tl-date {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tl-org {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.tl-title {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}
.tl-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tl-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 6px;
  line-height: 1.75;
}
.tl-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-mute);
}

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  max-width: 880px;
}
.edu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.edu-date {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.edu-school {
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-dept {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.edu-degree {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ===== Award strip ===== */
.award-strip {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  max-width: 880px;
}
.award-strip-eyebrow {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.award-strip-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.award-strip-text strong { color: var(--ink); font-weight: 700; }

/* ===== Skills cloud ===== */
.skill-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.skill-cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
}
.skill-cat-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-cloud span {
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.languages {
  margin-top: 32px;
  padding: 24px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lang-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lang-item strong {
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
}
.lang-item span {
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* ===== Contact ===== */
.contact-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.contact-inner .section-eyebrow,
.contact-inner .section-title { text-align: center; }
.contact-lead {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 20px 0 40px;
  line-height: 1.9;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
  display: block;
}
a.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cc-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.cc-value {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
}
.contact-footer {
  color: var(--ink-mute);
  font-size: 13.5px;
}

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.footer p {
  font-size: 12.5px;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .container { padding: 0 24px; }

  /* Hamburger nav */
  .nav-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 12px;
  }
  .nav-toggle { display: flex; }
  .nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-bottom-width 0.3s;
    border-bottom: 0 solid var(--line);
  }
  .nav.is-open nav {
    max-height: 360px;
    padding: 12px 24px 20px;
    border-bottom-width: 1px;
  }
  .nav nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .nav nav a:last-child { border-bottom: none; }
  .nav nav a.active::after { display: none; }
  .nav nav a.active {
    color: var(--accent);
    padding-left: 12px;
    border-left: 3px solid var(--accent);
  }

  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-v2 { padding: 56px 0 64px; }
  .hero-v2-grid { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .hero-photo { width: 180px; height: 180px; }
  .avatar-placeholder { font-size: 100px; }
  .hero-name { font-size: clamp(28px, 7vw, 38px); }
  .hero-role { font-size: 16px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid-3 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-grid-4 { grid-template-columns: 1fr 1fr; }
  .bridge-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .skill-cats, .edu-grid, .contact-cards { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .work, .work:nth-child(even) { grid-template-columns: 1fr; }
  .work:nth-child(even) .work-imgs { order: unset; }
  .work:nth-child(even) .work-body { order: unset; }
  .work-imgs { padding: 20px; flex-direction: row; gap: 10px; }
  .work-imgs img { max-width: 50%; max-height: 240px; }
  .work-body { padding: 28px 24px 24px; }
  .work-numbers { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .work-numbers strong { font-size: 18px; }
  .timeline { padding-left: 28px; }
  .tl-marker { left: -24px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 26px; }
  .lang-grid { grid-template-columns: 1fr; }
}
