/* ===== Design tokens ===== */
:root {
  --primary: #2D5F4F;
  --primary-soft: rgba(45, 95, 79, 0.08);
  --primary-line: rgba(45, 95, 79, 0.2);
  --bg: #F5F1E8;
  --bg-deep: #ECE6D6;
  --accent: #FF8C42;
  --card: #FFFFFF;
  --text: #2A2A2A;
  --text-2: #555;
  --text-3: #8A8579;
  --line: rgba(45, 95, 79, 0.15);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Menlo", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  body { font-size: 16px; }
}

section { padding: 140px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  section { padding: 80px 0; }
}

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  max-width: 1180px; margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--primary);
  display: flex; align-items: baseline; gap: 10px;
}
.brand .seal {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  background: var(--primary); color: var(--bg);
  font-family: var(--serif); font-size: 13px;
  font-weight: 600;
  transform: translateY(2px);
  box-shadow: 3px 3px 0 var(--accent);
}
.nav {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--text-2);
}
.nav a { transition: color .2s; }
.nav a:hover { color: var(--primary); }
@media (max-width: 720px) {
  .topbar-inner { padding: 12px 24px; }
  .nav { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 140px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0.8;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--primary);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: var(--primary);
}
.hero h1 .sep {
  color: var(--accent);
  font-weight: 400;
  margin: 0 0.18em;
  opacity: 0.7;
}
.hero-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.chip {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 140, 66, 0.08);
  letter-spacing: 0.02em;
}

/* ===== Section header ===== */
.s-head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.s-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 80px; height: 2px;
  background: var(--accent);
}
.s-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.s-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.02em;
  position: relative;
}
.s-title::after {
  content: "·";
  color: var(--accent);
  margin-left: 0.3em;
  font-weight: 700;
}
.s-tag {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .s-head { flex-wrap: wrap; gap: 12px; }
  .s-tag { margin-left: 0; width: 100%; }
}

/* ===== Identity grid (about) ===== */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.identity-cell {
  background: var(--bg);
  padding: 36px 32px;
  position: relative;
  transition: background .25s;
}
.identity-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 3px;
  background: var(--accent);
}
.identity-cell .role {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.15em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 16px;
}
.identity-cell .role-cn {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
.identity-cell .role-cn::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  margin-left: 8px;
  border-radius: 50%;
  vertical-align: middle;
  transform: translateY(-6px);
}
.identity-cell .role-desc {
  font-family: var(--serif);
  font-size: 16px; color: var(--text-2);
  line-height: 1.7;
}
@media (max-width: 720px) {
  .identity-grid { grid-template-columns: 1fr; }
  .identity-cell { padding: 28px 24px; }
}

/* Bio paragraph */
.bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}
.bio-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  line-height: 2;
  letter-spacing: 0.05em;
}
.bio-meta div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.bio-meta div span { white-space: nowrap; }
.bio-meta div span:first-child {
  color: var(--primary);
  letter-spacing: 0.15em;
}
.bio .bio-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Research ===== */
.research-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.research-headline em {
  font-style: normal;
  background: linear-gradient(transparent 65%, rgba(255,140,66,0.35) 65%);
  padding: 0 2px;
}
.research-en {
  font-family: "Georgia", serif;
  font-style: italic;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.research-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 56px;
}
.research-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }

.project-list { display: flex; flex-direction: column; gap: 0; }
.project {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left .25s ease, background .25s ease;
}
.project:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, var(--primary-soft), transparent);
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.project-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px;
}
.project-role {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 8px;
}
.project-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}
.project-tag {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid var(--accent);
  padding: 4px 10px;
  background: rgba(255, 140, 66, 0.06);
}
@media (max-width: 720px) {
  .project { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .project-tag { justify-self: start; }
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.article {
  display: block;
  background: var(--card);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.article:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(45, 95, 79, 0.08);
}
.article .src {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article .a-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  text-wrap: pretty;
}
.article .a-arrow {
  position: absolute; top: 28px; right: 28px;
  color: var(--primary);
  opacity: 0.4;
  transition: opacity .2s, transform .2s;
}
.article:hover .a-arrow { opacity: 1; transform: translate(2px, -2px); }
@media (max-width: 720px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* ===== Venture ===== */
.venture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.venture-card {
  background: var(--primary);
  color: var(--bg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.venture-card::after {
  content: "乐"; position: absolute;
  right: -40px; bottom: -80px;
  font-family: var(--serif);
  font-size: 360px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}
.venture-card .v-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 20px;
}
.venture-card .v-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.venture-card .v-tag {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.venture-card .v-meta {
  display: flex; gap: 32px;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}
.venture-card .v-meta div { font-size: 13px; opacity: 0.85; }
.venture-card .v-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 1;
}

.venture-text p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
  color: var(--text);
}
.venture-text p:first-child {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-bottom: 40px;
}
.timeline {
  margin-top: 32px;
  padding-left: 18px;
  border-left: 2px solid var(--primary-line);
}
.timeline li {
  list-style: none;
  position: relative;
  padding: 8px 0 8px 14px;
  font-size: 14px;
  color: var(--text-2);
}
.timeline li::before {
  content: ""; position: absolute;
  left: -24px; top: 16px;
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--accent);
}
.timeline li b {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 720px) {
  .venture { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Teaching ===== */
.teach-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 56px;
  max-width: 880px;
  text-wrap: pretty;
}
.teach-headline mark {
  background: linear-gradient(transparent 60%, rgba(255,140,66,0.4) 60%);
  color: inherit;
  padding: 0 4px;
}
.teach-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}
.teach-topics { display: flex; flex-direction: column; gap: 24px; }
.topic {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px dashed var(--line);
}
.topic:last-child { border-bottom: 1px dashed var(--line); }
.topic-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.topic h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px;
}
.topic p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
.teach-side {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
}
.teach-side h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--primary);
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}
.teach-side ul { padding: 0; margin: 0; }
.teach-side li {
  list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.teach-side li:last-child { border-bottom: 0; }
.teach-side li span:last-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.teach-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}
@media (max-width: 720px) {
  .teach-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Tools ===== */
.tools-intro {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 48px;
  max-width: 760px;
}
.tools-intro span { color: var(--accent); font-weight: 500; }
.tools-list { display: flex; flex-direction: column; gap: 0; }
.tool {
  display: grid;
  grid-template-columns: 80px 1fr 200px auto;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: background .25s;
}
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool:hover { background: var(--primary-soft); padding-left: 16px; padding-right: 16px; }
.tool-glyph {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  line-height: 1;
}
.tool h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px;
}
.tool p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}
.tool .tool-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.tool .tool-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--bg);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.tool .tool-link:hover { background: var(--accent); transform: translateX(2px); }
.tool-link.coming {
  background: transparent; color: var(--text-3);
  border: 1px dashed var(--text-3);
  cursor: default;
}
.tool-link.coming:hover { background: transparent; transform: none; }
@media (max-width: 720px) {
  .tool { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
  .tool-glyph { font-size: 40px; }
  .tool .tool-meta, .tool .tool-link { grid-column: 2; }
}

.tools-foot {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 12px;
}
.tools-foot a {
  color: var(--primary);
  border-bottom: 1px solid var(--primary-line);
  padding-bottom: 1px;
}

/* ===== Notes ===== */
.note-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.note {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease, background .25s ease;
}
.note:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, var(--primary-soft), transparent);
}
.note-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.4;
  text-wrap: pretty;
}
.note:hover .note-title { color: var(--accent); }
.note-excerpt {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 0 16px;
  max-width: 820px;
  text-wrap: pretty;
}
.note-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.note-cat {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.note-dot { opacity: 0.4; }
.notes-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 4px;
  letter-spacing: 0.05em;
}
.notes-all:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Notes index page ===== */
.notes-page-head {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--line);
}
.notes-page-head .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.notes-page-head h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.notes-page-head .count {
  font-size: 14px;
  color: var(--text-3);
}
.notes-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 32px 0 0;
}
.filter-chip {
  font-size: 13px;
  font-family: var(--mono);
  padding: 6px 14px;
  border: 1px solid var(--primary-line);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all .2s;
}
.filter-chip.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.filter-chip:hover:not(.active) {
  background: var(--primary-soft);
}
.notes-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.notes-back:hover { color: var(--primary); }

/* ===== Awards ===== */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}
.award {
  background: var(--bg);
  padding: 24px;
}
.award-year {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  font-weight: 600;
}
.award-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ===== Contact ===== */
.contact {
  background: var(--primary);
  color: var(--bg);
  padding: 96px 0;
  border-top: 0;
}
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.contact h2 .em { color: var(--accent); }
.contact p { font-size: 17px; line-height: 1.7; opacity: 0.85; max-width: 520px; }

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 36px;
  backdrop-filter: blur(8px);
}
.contact-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 16px;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  opacity: 0.6;
  text-transform: uppercase;
}
.contact-row .val {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--bg);
}
.contact-row .val a { border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }
.contact-row .val a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) {
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 64px 0; }
}

/* ===== Footer ===== */
.foot {
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ===== Hero variants ===== */
body[data-hero="seal"] .hero { padding: 80px 0 110px; }
body[data-hero="seal"] .hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}
body[data-hero="seal"] .hero-seal {
  width: 220px; height: 220px;
  background: var(--primary);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 600;
  letter-spacing: -0.05em;
  position: relative;
  box-shadow: 8px 8px 0 var(--accent);
}
body[data-hero="seal"] .hero-seal::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--bg); opacity: 0.3;
}
body[data-hero="seal"] .hero h1 { font-size: clamp(40px, 5vw, 64px); }
body:not([data-hero="seal"]) .hero-seal { display: none; }
body[data-hero="seal"] .hero-default-title { display: none; }
body[data-hero="seal"] .hero-meta { margin-top: 32px; }

@media (max-width: 720px) {
  body[data-hero="seal"] .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  body[data-hero="seal"] .hero-seal { width: 140px; height: 140px; font-size: 76px; }
}

/* ===== Decorations toggle ===== */
body[data-deco="off"] .venture-card::after,
body[data-deco="off"] .bio p:first-child::first-letter { display: none; }
body[data-deco="off"] .bio p:first-child::first-letter { float: none; margin: 0; font-size: inherit; color: inherit; }

/* ===== Density ===== */
body[data-density="cozy"] section { padding: 64px 0; }
body[data-density="airy"] section { padding: 128px 0; }

/* ===== Note detail page ===== */
.note-detail-head {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.note-detail-head .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.note-detail-head .back-link:hover { color: var(--primary); }
.note-detail-head .article-cat {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.note-detail-head h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 20px;
  line-height: 1.3;
  text-wrap: pretty;
}
.note-detail-head .article-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 10px;
}
.note-detail-head .article-excerpt {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 720px;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.note-body {
  padding: 64px 0 120px;
  max-width: 720px;
}
.note-body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  margin: 0 0 1.5em;
  text-wrap: pretty;
}
.note-body h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--primary);
  margin: 2.2em 0 0.8em;
}
.note-body h2:first-child { margin-top: 0; }
.note-body h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  color: var(--primary);
  margin: 2em 0 0.6em;
}
.note-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 1.5em 0;
  color: var(--text-2);
}
.note-body blockquote p { font-style: italic; }
.note-body code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 3px;
}
.note-body a {
  color: var(--primary);
  border-bottom: 1px solid var(--primary-line);
  padding-bottom: 1px;
}
.note-body a:hover { color: var(--accent); border-color: var(--accent); }
.note-body ul, .note-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}
.note-body li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 0.4em;
}
.note-body strong { color: var(--primary); font-weight: 600; }
@media (max-width: 720px) {
  .note-detail-head { padding: 48px 0 40px; }
  .note-body { padding: 40px 0 80px; }
}
