:root {
  --night: #3f4a2f;
  --night-soft: #56623d;
  --night-raised: #6a7448;
  --paper: #ead7b7;
  --paper-soft: #f2e4ca;
  --ink: #342717;
  --muted: #7a674b;
  --white: #fff7e6;
  --pink: #c27a43;
  --cyan: #d9a85d;
  --violet: #71834f;
  --line-dark: rgba(244, 217, 166, 0.24);
  --line-light: rgba(92, 71, 42, 0.18);
  --shadow: 0 22px 58px rgba(68, 42, 17, 0.18);
  --container: min(1180px, calc(100vw - 48px));
  --narrow: min(760px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(103, 71, 36, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #ead7b7 0%, var(--paper) 46%, #d7b98f 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--narrow); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
  position: sticky; z-index: 20; top: 0;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(47, 57, 36, 0.88);
  color: var(--white);
  backdrop-filter: blur(18px);
}
.nav-shell { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
.site-wordmark {
  position: relative;
  flex: 0 0 auto;
  color: #f1c277;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(63, 47, 27, 0.42), 0 10px 22px rgba(217, 168, 93, 0.18);
}
.site-wordmark::after {
  position: absolute;
  right: 2px;
  bottom: -8px;
  left: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d9a85d 24%, #7d4a27 82%, transparent);
  content: "";
  transform: skewX(-18deg);
}
.site-wordmark:hover {
  color: #ffe0a4;
}
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 13px; letter-spacing: 0.05em; }
.main-nav > a, .nav-group > a { position: relative; padding-block: 24px; color: rgba(255, 250, 255, 0.68); transition: color 180ms ease; }
.main-nav a:hover, .main-nav a.active { color: var(--cyan); }
.main-nav a.active::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 1px; background: var(--pink); content: ""; box-shadow: 0 0 14px var(--pink); }
.nav-group { position: relative; display: flex; align-items: center; }
.submenu { position: absolute; visibility: hidden; top: calc(100% - 7px); left: -16px; min-width: 132px; padding: 9px; border: 1px solid var(--line-dark); background: rgba(50, 61, 39, 0.98); opacity: 0; transform: translateY(8px); transition: 160ms ease; box-shadow: var(--shadow); }
.submenu a { display: block; padding: 8px 10px; color: rgba(255, 250, 255, 0.68); }
.submenu a:hover { background: rgba(217, 168, 93, 0.12); color: var(--cyan); }
.nav-group:hover .submenu, .nav-group:focus-within .submenu { visibility: visible; opacity: 1; transform: translateY(0); }
.submenu-toggle, .nav-toggle { display: none; }

.hero {
  position: relative; isolation: isolate; min-height: 720px; overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  background: var(--night); color: var(--white);
}
.hero[data-hero-carousel] { touch-action: pan-y; }
.hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(63, 74, 47, 0.06) 0%, rgba(63, 74, 47, 0.1) 42%, rgba(63, 74, 47, 0.72) 68%, rgba(63, 74, 47, 0.94) 100%); content: ""; }
.hero::after {
  display: none;
  content: "";
}
.hero-grid { display: grid; min-height: 720px; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr); align-items: center; gap: 48px; }
.hero-copy, .hero-art { min-width: 0; }
.hero-copy { grid-column: 2; padding: 34px 0 34px 30px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 650px; margin-bottom: 22px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(46px, 5.3vw, 72px); font-weight: 500; letter-spacing: -0.065em; line-height: 1.12; }
.page-hero h1 { max-width: 720px; margin-bottom: 22px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(58px, 7vw, 94px); font-weight: 500; letter-spacing: -0.07em; line-height: 1.08; }
.hero h1 span { color: #f0ba72; }
.hero h1::after { display: block; width: 92px; height: 2px; margin-top: 26px; background: linear-gradient(90deg, #b46c34, #f2c27a); content: ""; box-shadow: 0 0 18px rgba(255, 199, 121, 0.42); }
.hero-lead { max-width: 630px; margin-bottom: 18px; color: var(--white); font-size: clamp(22px, 2.2vw, 29px); line-height: 1.55; }
.hero-note { color: rgba(255, 250, 255, 0.58); font-size: 14px; letter-spacing: 0.06em; }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border: 1px solid var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; transition: 180ms ease; }
.button-primary { background: var(--cyan); color: var(--night); box-shadow: 0 14px 34px rgba(146, 93, 35, 0.2); }
.button-primary:hover { background: transparent; color: var(--cyan); }
.button-quiet { border-color: rgba(194, 122, 67, 0.72); color: #e3a062; }
.button-quiet:hover { background: rgba(194, 122, 67, 0.13); }
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; overflow: hidden; }
.hero-art::before, .hero-art::after { display: none; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; opacity: 0; transition: opacity 420ms ease; }
.hero-art img:first-of-type { opacity: 1; }
.hero-art.is-ready img:first-of-type { opacity: 0; }
.hero-art.is-ready img.is-active { opacity: 1; }
.art-note { position: absolute; right: 42px; bottom: 66px; color: rgba(255, 250, 255, 0.82); font-family: Georgia, serif; font-size: 24px; line-height: 1.12; letter-spacing: 0.06em; text-align: right; }
.art-caption { position: absolute; right: 42px; bottom: 38px; color: var(--cyan); font-size: 10px; letter-spacing: 0.22em; }
.hero-carousel-button {
  position: absolute;
  z-index: 2;
  bottom: 48px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 247, 230, 0.38);
  border-radius: 50%;
  background: rgba(47, 57, 36, 0.66);
  color: var(--white);
  cursor: pointer;
  font: 400 36px/1 Georgia, serif;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}
.hero-carousel-button span { transform: translateY(-2px); }
.hero-carousel-button:hover { border-color: var(--cyan); background: rgba(217, 168, 93, 0.18); color: var(--cyan); transform: translateY(-2px); }
.hero-carousel-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hero-carousel-button-prev { left: max(24px, calc((100vw - var(--container)) / 2)); }
.hero-carousel-button-next { left: max(82px, calc((100vw - var(--container)) / 2 + 58px)); }

.section { padding: 96px 0; border-bottom: 1px solid var(--line-light); }
.section-index, .card-meta { margin-bottom: 12px; color: #9b5b2f; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.section h2, .contact-section h2 { margin-bottom: 16px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(39px, 5vw, 60px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; }
.split-heading { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 70px; }
.prose-large { color: var(--ink); font-family: Georgia, "Microsoft YaHei", serif; font-size: 25px; line-height: 1.7; }
.prose-large p:last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.compact-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 11px; letter-spacing: 0.06em; }
.compact-stack span, .compact-stack b { padding: 4px 9px; border: 1px solid var(--line-light); font-weight: 600; }
.compact-stack span { border-color: rgba(125, 74, 39, 0.38); color: #7d4a27; }
.compact-stack b { color: var(--muted); }
.about-section { position: relative; background: var(--paper); }
.about-section::after { position: absolute; right: 7vw; bottom: 34px; color: rgba(79, 93, 54, 0.18); content: "静かな夜に、つくる。"; font-family: Georgia, serif; font-size: 16px; letter-spacing: 0.2em; writing-mode: vertical-rl; }
.skills-section { position: relative; overflow: hidden; background: var(--night-soft); color: var(--white); }
.skills-section::after { position: absolute; right: -80px; bottom: -210px; width: 420px; height: 420px; border: 1px solid rgba(217, 168, 93, 0.22); border-radius: 50%; content: ""; box-shadow: 0 0 0 52px rgba(79, 93, 54, 0.08), 0 0 0 104px rgba(125, 74, 39, 0.05); }
.skills-section .section-heading > p { color: rgba(255, 250, 255, 0.58); }
.universe-preview-section { position: relative; overflow: hidden; background: #3f4a2f; color: var(--white); }
.universe-preview-section::after { position: absolute; right: -120px; bottom: -230px; width: 460px; height: 460px; border: 1px solid rgba(217, 168, 93, 0.2); border-radius: 50%; content: ""; box-shadow: 0 0 0 56px rgba(79, 93, 54, 0.08), 0 0 0 112px rgba(125, 74, 39, 0.05); }
.universe-preview-section .section-heading { margin-bottom: 0; }
.universe-preview-section .section-heading > p:not(.section-index) { max-width: 520px; margin-bottom: 28px; color: rgba(255, 250, 255, 0.62); }
.universe-preview-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 48px; }
.orbit-preview { position: relative; min-height: 330px; }
.orbit-preview::before, .orbit-preview::after { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(217, 168, 93, 0.18); border-radius: 50%; content: ""; transform: translate(-50%, -50%); }
.orbit-preview::before { width: 230px; height: 230px; }
.orbit-preview::after { width: 330px; height: 330px; border-color: rgba(217, 168, 93, 0.16); }
.orbit-center, .orbit-item { position: absolute; display: grid; place-items: center; border-radius: 50%; color: var(--white); font-size: 13px; box-shadow: 0 0 22px rgba(217, 168, 93, 0.16); }
.orbit-center { top: 50%; left: 50%; z-index: 2; width: 86px; height: 86px; border: 2px solid var(--pink); background: rgba(125, 74, 39, 0.24); font-size: 19px; transform: translate(-50%, -50%); }
.orbit-item { width: 58px; height: 58px; border: 1px solid var(--cyan); background: rgba(194, 122, 67, 0.72); }
.orbit-one { top: 12px; left: 47%; }
.orbit-two { top: 92px; right: 8%; border-color: var(--violet); }
.orbit-three { right: 24%; bottom: 0; border-color: var(--pink); }
.orbit-four { bottom: 18px; left: 18%; }
.orbit-five { top: 98px; left: 1%; border-color: #ffd17f; }
.section-heading { margin-bottom: 44px; }
.skill-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.skill-item { display: flex; align-items: center; gap: 18px; padding: 21px 4px; border-bottom: 1px solid var(--line-dark); font-size: 20px; }
.skill-item span { color: var(--cyan); font-size: 11px; letter-spacing: 0.14em; }
.row-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.row-heading > a, .text-link { color: #7d4a27; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.project-preview { display: grid; grid-template-columns: 64px 1fr 270px 48px; align-items: center; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line-light); transition: background 180ms ease, padding 180ms ease; }
.project-preview:last-child { border-bottom: 1px solid var(--line-light); }
.project-preview:hover { padding-inline: 14px; background: rgba(79, 93, 54, 0.08); }
.project-number { color: #7d4a27; font-family: Georgia, serif; font-size: 30px; }
.project-preview h3 { margin-bottom: 6px; font-size: 22px; }
.project-preview p { margin-bottom: 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 3px 9px; border: 1px solid var(--line-light); color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.circle-link { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #7d4a27; border-radius: 50%; color: #7d4a27; transition: 180ms ease; }
.circle-link:hover { background: #7d4a27; color: var(--white); }
.articles-section { background: #dfc9a8; }
.article-row { display: grid; grid-template-columns: 150px 1fr 110px; align-items: center; gap: 26px; padding: 24px 0; border-top: 1px solid var(--line-light); transition: padding 180ms ease, color 180ms ease; }
.article-row:last-child { border-bottom: 1px solid var(--line-light); }
.article-row:hover { padding-left: 10px; color: #4f5d36; }
.article-row time, .article-row p, .article-row > span { color: var(--muted); font-size: 13px; }
.article-row p { margin-bottom: 4px; color: #7d4a27; letter-spacing: 0.12em; }
.article-row h3 { margin-bottom: 0; font-size: 20px; }
.interest-section { background: var(--paper); }
.interest-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.interest-tile { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #40502e; box-shadow: var(--shadow); }
.interest-tile img { width: 100%; aspect-ratio: 1 / 0.82; object-fit: cover; opacity: 0.84; transition: transform 300ms ease, opacity 300ms ease; }
.interest-tile:hover img { opacity: 1; transform: scale(1.04); }
.interest-tile div { flex: 1; padding: 20px; color: var(--white); }
.interest-tile p, .interest-tile span { margin-bottom: 8px; color: rgba(255, 250, 255, 0.62); font-size: 11px; letter-spacing: 0.12em; }
.interest-tile h3 { margin-bottom: 6px; font-family: Georgia, serif; font-size: clamp(24px, 2.2vw, 29px); font-weight: 500; line-height: 1.18; }
.social-section { background: #dfc9a8; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.social-card { display: grid; min-height: 112px; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 15px; padding: 20px; border: 1px solid rgba(109, 83, 48, 0.28); background: #f2e4ca; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.social-card:hover { border-color: rgba(125, 74, 39, 0.5); box-shadow: 0 14px 30px rgba(83, 56, 28, 0.12); transform: translateY(-4px); }
.social-card img { width: 34px; height: 34px; object-fit: contain; }
.social-card h3 { margin-bottom: 2px; font-size: 17px; }
.social-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.social-card > span { color: #7d4a27; font-size: 18px; }
.contact-section { padding: 100px 0; background: #3f4a2f; color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.contact-lead { max-width: 650px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 25px; }
.contact-link { display: inline-block; margin: 14px 0 26px; border-bottom: 1px solid var(--pink); color: var(--pink); font-family: Georgia, serif; font-size: clamp(26px, 4vw, 44px); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255, 250, 255, 0.52); font-size: 14px; }
.contact-socials a { color: var(--cyan); }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line-dark); background: var(--night); color: rgba(255, 250, 255, 0.5); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.footer-inner strong { color: var(--white); }
.footer-inner p { margin: 3px 0 0; font-size: 13px; }

.page-hero { padding: 84px 0 60px; border-bottom: 1px solid var(--line-dark); background: var(--night-soft); color: var(--white); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { max-width: 620px; margin-bottom: 0; color: rgba(255, 250, 255, 0.62); font-size: 18px; }
.page-content { background: var(--paper); }
.filter-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-nav a { padding: 7px 15px; border: 1px solid var(--line-light); color: var(--muted); font-size: 13px; }
.filter-nav a:hover, .filter-nav a.active { border-color: var(--violet); background: var(--violet); color: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.blog-card { min-height: 250px; padding: 28px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, 0.38); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.blog-card:hover { border-color: rgba(125, 74, 39, 0.42); box-shadow: 0 15px 34px rgba(83, 56, 28, 0.12); transform: translateY(-4px); }
.blog-card h2 { margin-bottom: 12px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 27px; font-weight: 500; line-height: 1.35; }
.blog-card > p:not(.card-meta) { color: var(--muted); }
.notes-page {
  min-height: calc(100vh - 72px);
  background: #d7b98f;
}
.notes-intro {
  border-bottom: 1px solid rgba(83, 52, 25, 0.24);
  background: #f0dfc1;
}
.notes-intro-layout {
  display: flex;
  min-height: 118px;
  align-items: center;
  padding: 22px 0;
}
.notes-intro h1 {
  display: inline;
  margin: 0 18px 0 0;
  color: #3b2a18;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}
.notes-intro p {
  display: inline;
  margin: 0;
  color: #795e3d;
  font-size: 15px;
}
.notes-wall-section { padding: 26px 0 72px; }
.notes-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.notes-filter button {
  min-width: 76px;
  padding: 8px 12px;
  border: 1px solid rgba(86, 52, 24, 0.32);
  border-radius: 2px;
  color: #624527;
  background: rgba(255, 247, 230, 0.34);
  cursor: pointer;
  font: 700 12px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.notes-filter button:hover,
.notes-filter button.is-active {
  color: #fff7e6;
  background: #6d4727;
  transform: translateY(-1px);
}
.notes-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 26px;
  padding: 42px;
  border: 12px solid #81542d;
  background-color: #b6814d;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(77, 43, 19, 0.18) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 64%, rgba(255, 224, 176, 0.18) 0 1px, transparent 1.8px),
    linear-gradient(90deg, rgba(72, 43, 20, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(72, 43, 20, 0.05) 1px, transparent 1px);
  background-size: 18px 18px, 23px 23px, 11px 11px, 11px 11px;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 165, 0.16), 0 22px 44px rgba(72, 42, 17, 0.18);
}
.note-card {
  position: relative;
  min-height: 238px;
  border: 1px solid rgba(92, 66, 38, 0.22);
  background: #fff2c9;
  box-shadow: 0 12px 20px rgba(68, 38, 17, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.note-card:nth-child(2) { transform: rotate(1.6deg); }
.note-card:nth-child(3) { transform: rotate(-1.1deg); }
.note-card:nth-child(4) { transform: rotate(1.3deg); }
.note-card:nth-child(5) { transform: rotate(-1.7deg); }
.note-card:nth-child(6) { transform: rotate(0.7deg); }
.note-card:nth-child(7) { transform: rotate(-0.8deg); }
.note-card:hover { z-index: 1; box-shadow: 0 18px 28px rgba(68, 38, 17, 0.28); transform: translateY(-8px) rotate(0deg); }
.note-card[hidden] { display: none; }
.note-card a {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  padding: 28px 24px 22px;
}
.note-card--featured { grid-column: span 2; min-height: 276px; background: #fff4cb; }
.note-card--blue { background: #d8e5df; }
.note-card--warm { background: #f5d8b5; }
.note-card--thought { background: #f1dfd2; }
.note-card--graph { background: #e9e2bd; }
.note-card--mint { background: #d7e3c6; }
.note-card--letter { background: #eee4c7; }
.note-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 247, 230, 0.84);
  border-radius: 50%;
  background: #bd5f40;
  box-shadow: 0 3px 3px rgba(61, 33, 17, 0.3);
  transform: translateX(-50%);
}
.note-card--blue .note-pin { background: #54748a; }
.note-card--thought .note-pin { background: #a56570; }
.note-card--mint .note-pin { background: #647d4c; }
.note-meta {
  margin-bottom: 18px;
  color: #7d5635;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.note-meta time { float: right; font-weight: 600; letter-spacing: 0.03em; }
.note-card h2 {
  margin-bottom: 12px;
  color: #322518;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.28;
}
.note-card > a > p:not(.note-meta) { margin-bottom: 20px; color: #685139; font-size: 14px; line-height: 1.75; }
.note-read { margin-top: auto; color: #7d4a27; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.article-detail { padding: 84px 0 100px; background: var(--paper); }
.back-link { display: inline-block; margin-bottom: 38px; color: #7d4a27; font-size: 14px; }
.article-header h1 { margin-bottom: 20px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(40px, 6vw, 66px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.18; }
.article-summary { color: var(--muted); font-size: 20px; }
.article-body { padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 17px; }
.article-body h2 { margin-top: 42px; color: #4f5d36; font-size: 26px; }
.article-body h3 { margin-top: 30px; color: #7d4a27; font-size: 21px; }
.article-body ul, .article-body ol { margin: 18px 0 22px; padding-left: 1.3em; color: var(--muted); line-height: 1.9; }
.article-body li + li { margin-top: 8px; }
.article-body code { border-radius: 4px; background: rgba(79, 93, 54, 0.1); padding: 0.1em 0.34em; font-family: Consolas, "SFMono-Regular", monospace; font-size: 0.92em; }
.article-body pre { overflow-x: auto; margin: 18px 0 22px; padding: 18px 20px; border: 1px solid rgba(79, 93, 54, 0.16); border-radius: 8px; background: rgba(255, 255, 255, 0.54); color: #3e352c; line-height: 1.7; }
.article-body pre code { display: block; min-width: max-content; background: transparent; padding: 0; font-size: 14px; }
.risk-notice { margin-bottom: 30px; padding: 22px 24px; border: 1px solid rgba(125, 74, 39, 0.36); border-left: 5px solid #9b5b2f; background: rgba(255, 247, 230, 0.56); box-shadow: 0 14px 34px rgba(83, 56, 28, 0.1); }
.risk-notice h2 { margin: 0 0 10px; color: #7d4a27; font-size: 24px; }
.risk-notice p { margin-bottom: 10px; color: #5f4a31; }
.risk-notice p:last-child { margin-bottom: 0; }
.article-footer { display: flex; gap: 12px; margin-top: 40px; color: #7d4a27; font-size: 13px; }
.interest-page-grid, .project-page-list { display: grid; gap: 30px; }
.interest-feature { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; align-items: center; gap: 42px; padding-bottom: 30px; border-bottom: 1px solid var(--line-light); }
.interest-feature img { width: 100%; aspect-ratio: 1.43; object-fit: cover; box-shadow: var(--shadow); }
.interest-feature h2, .project-detail h2 { margin-bottom: 10px; font-family: Georgia, "Microsoft YaHei", serif; font-size: 35px; font-weight: 500; }
.interest-feature p { color: var(--muted); }
.project-detail { display: grid; grid-template-columns: 330px 1fr; gap: 38px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.project-cover { display: flex; min-height: 225px; flex-direction: column; justify-content: space-between; padding: 24px; color: var(--white); box-shadow: var(--shadow); }
.project-hero { position: relative; overflow: hidden; padding: 96px 0 76px; }
.project-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(217, 168, 93, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 54px rgba(217, 168, 93, 0.07), 0 0 0 108px rgba(255, 247, 230, 0.04);
}
.project-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 58px; }
.project-hero .page-hero p, .project-hero p { max-width: 760px; }
.project-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.project-snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-dark); background: rgba(255, 247, 230, 0.08); backdrop-filter: blur(16px); }
.project-snapshot div { min-height: 116px; padding: 20px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.project-snapshot div:nth-child(2n) { border-right: 0; }
.project-snapshot div:nth-last-child(-n + 2) { border-bottom: 0; }
.project-snapshot strong { display: block; margin-bottom: 7px; color: var(--cyan); font-family: Georgia, "Microsoft YaHei", serif; font-size: 30px; font-weight: 500; line-height: 1.05; }
.project-snapshot span { color: rgba(255, 250, 255, 0.62); font-size: 12px; letter-spacing: 0.08em; }
.project-brief-section { background: #dfc9a8; }
.brief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.brief-card { min-height: 230px; padding: 26px; border: 1px solid rgba(109, 83, 48, 0.28); background: rgba(255, 247, 230, 0.48); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.brief-card:hover { border-color: rgba(125, 74, 39, 0.48); box-shadow: 0 15px 34px rgba(83, 56, 28, 0.11); transform: translateY(-4px); }
.brief-card span { display: block; margin-bottom: 30px; color: #7d4a27; font-family: Georgia, serif; font-size: 28px; }
.brief-card h3 { margin-bottom: 10px; color: var(--ink); font-size: 21px; line-height: 1.35; }
.brief-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.project-detail-featured { padding-top: 10px; }
.cover-green { background: linear-gradient(135deg, #182b61, #111b42); }
.cover-orange { background: linear-gradient(135deg, #9a517f, #433878); }
.cover-blue { background: linear-gradient(135deg, #4f5d36, #182b61); }
.cover-dark { background: linear-gradient(135deg, #342717, #4f5d36); }
.project-cover span { color: var(--cyan); font-family: Georgia, serif; font-size: 50px; }
.project-cover strong { font-size: 20px; }
.status-badge { align-self: flex-start; padding: 5px 9px; border: 1px solid rgba(255, 247, 230, 0.34); color: rgba(255, 247, 230, 0.72); font-style: normal; font-size: 11px; letter-spacing: 0.12em; }
.project-lead { max-width: 820px; color: #5f4a31; font-size: 18px; line-height: 1.75; }
.project-facts { display: grid; gap: 8px; margin: 18px 0; padding: 0; color: var(--muted); list-style: none; }
.project-facts li { padding-left: 14px; border-left: 2px solid rgba(125, 74, 39, 0.22); }
.project-facts strong { color: #4f5d36; }
.project-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 18px; }
.project-proof-grid div { padding: 13px 15px; border: 1px solid rgba(92, 71, 42, 0.16); background: rgba(255, 247, 230, 0.44); }
.project-proof-grid span { display: block; margin-bottom: 5px; color: #9b5b2f; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.project-proof-grid strong { color: var(--ink); font-size: 14px; line-height: 1.45; }
.project-summary { margin-top: 18px; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 18px; color: #7d4a27; font-weight: 700; }
.project-links span { color: var(--muted); font-weight: 600; }
.project-lab-section { background: var(--night-soft); color: var(--white); }
.lab-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 58px; align-items: start; }
.lab-grid h2 { margin-bottom: 16px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(39px, 5vw, 60px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; }
.lab-grid p:not(.section-index) { max-width: 460px; color: rgba(255, 250, 255, 0.62); }
.lab-list { display: grid; gap: 12px; }
.lab-list a { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-dark); transition: padding 180ms ease, color 180ms ease; }
.lab-list a:last-child { border-bottom: 1px solid var(--line-dark); }
.lab-list a:hover { padding-left: 12px; color: var(--cyan); }
.lab-list strong { color: var(--cyan); font-size: 18px; }
.lab-list span { color: rgba(255, 250, 255, 0.58); }
.not-found { min-height: 70vh; padding-top: 120px; background: var(--paper); }
.not-found h1 { margin-bottom: 10px; font-family: Georgia, "Microsoft YaHei", serif; font-size: clamp(46px, 7vw, 86px); font-weight: 500; letter-spacing: -0.06em; }
.not-found p:not(.section-index) { margin-bottom: 30px; color: var(--muted); }

@media (max-width: 1080px) and (min-width: 781px) {
  .interest-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.universe-page-hero { position: relative; overflow: hidden; }
.universe-page-hero::after {
  position: absolute; right: 7vw; bottom: -58px; width: 260px; height: 260px;
  border: 1px solid rgba(217, 168, 93, 0.18); border-radius: 50%; content: "";
  box-shadow: 0 0 0 42px rgba(79, 93, 54, 0.08), 0 0 0 84px rgba(125, 74, 39, 0.05);
}
.universe-section { min-height: 730px; padding: 42px 0 86px; background: var(--night); color: var(--white); }
.universe-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; color: rgba(255, 250, 255, 0.58); font-size: 14px; }
.universe-intro p { margin-bottom: 0; }
.universe-reset { flex: 0 0 auto; padding: 8px 14px; border: 1px solid rgba(217, 168, 93, 0.52); background: transparent; color: var(--cyan); cursor: pointer; font: inherit; font-size: 12px; letter-spacing: 0.1em; transition: 180ms ease; }
.universe-reset:hover { background: rgba(217, 168, 93, 0.12); }
.universe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.universe-canvas-shell { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line-dark); background: radial-gradient(circle at center, rgba(79, 93, 54, 0.42), rgba(63, 74, 47, 0.94) 58%), linear-gradient(rgba(217, 168, 93, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 168, 93, 0.06) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; box-shadow: var(--shadow); }
.universe-canvas { height: 590px; }
.universe-canvas-note { position: absolute; right: 15px; bottom: 13px; left: 15px; display: flex; justify-content: space-between; color: rgba(217, 168, 93, 0.68); font-size: 9px; letter-spacing: 0.16em; pointer-events: none; }
.interest-detail { min-height: 590px; padding: 28px; border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(20, 32, 76, 0.94), rgba(9, 17, 43, 0.98)); box-shadow: var(--shadow); }
.interest-detail::before { display: block; width: 54px; height: 1px; margin-bottom: 25px; background: linear-gradient(90deg, var(--pink), var(--cyan)); content: ""; }
.interest-detail-category { margin-bottom: 10px; color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.interest-detail h2 { margin-bottom: 18px; color: var(--white); font-family: Georgia, "Microsoft YaHei", serif; font-size: 42px; font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; }
.interest-detail-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.interest-detail-keywords span { padding: 4px 8px; border: 1px solid rgba(125, 74, 39, 0.36); color: var(--pink); font-size: 11px; letter-spacing: 0.06em; }
.interest-detail-description { color: rgba(255, 250, 255, 0.7); font-size: 15px; line-height: 1.9; }
.interest-detail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: rgba(255, 250, 255, 0.42); font-size: 12px; }
.interest-detail-links a { color: var(--cyan); font-weight: 700; letter-spacing: 0.06em; }

@media (max-width: 780px) {
  :root { --container: min(100% - 30px, 620px); --narrow: min(100% - 30px, 620px); }
  .nav-shell { min-height: 64px; }
  .site-wordmark { font-size: 20px; letter-spacing: 0.035em; }
  .nav-toggle { position: absolute; z-index: 2; top: 11px; right: 15px; display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; border: 0; background: transparent; }
  .nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--cyan); }
  .main-nav { position: absolute; display: none; top: 64px; right: 0; left: 0; align-items: stretch; gap: 0; padding: 14px 15px 20px; border-bottom: 1px solid var(--line-dark); background: rgba(7, 13, 36, 0.98); }
  .main-nav.open { display: block; }
  .main-nav > a, .nav-group > a { display: block; padding: 10px 0; }
  .main-nav a.active::after { display: none; }
  .nav-group { display: grid; grid-template-columns: 1fr 36px; }
  .submenu-toggle { display: block; border: 0; background: transparent; color: var(--cyan); font-size: 20px; }
  .submenu { position: static; display: none; visibility: visible; grid-column: 1 / -1; padding: 0 0 6px 14px; border: 0; background: transparent; opacity: 1; transform: none; box-shadow: none; }
  .nav-group:hover .submenu { display: none; }
  .nav-group.submenu-open .submenu { display: block; }
  .hero { min-height: clamp(760px, calc(100svh - 64px), 900px); }
  .hero-grid { display: block; min-height: inherit; padding-top: clamp(24px, 5svh, 42px); }
  .hero::before { background: linear-gradient(180deg, rgba(63, 74, 47, 0.96) 0%, rgba(63, 74, 47, 0.88) 42%, rgba(63, 74, 47, 0.34) 66%, rgba(63, 74, 47, 0.2) 100%); }
  .hero-copy { position: relative; z-index: 1; display: flex; min-height: calc(clamp(760px, calc(100svh - 64px), 900px) - clamp(24px, 5svh, 42px)); flex-direction: column; }
  .hero h1 { max-width: 100%; font-size: 41px; overflow-wrap: anywhere; word-break: break-all; }
  .hero-lead { font-size: 21px; }
  .hero .button-row { margin-top: auto; padding-bottom: clamp(36px, 8svh, 72px); }
  .hero-art { inset: 0; width: 100%; height: 100%; }
  .hero-art img { object-position: 42% center; }
  .hero-art img:nth-of-type(2) { top: clamp(150px, 21svh, 210px); bottom: auto; height: 100%; object-position: 10% center; }
  .hero-carousel-button { display: none; }
  .art-note, .art-caption { display: none; }
  .section { padding: 66px 0; }
  .split-heading, .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .prose-large { font-size: 22px; }
  .skill-list { grid-template-columns: repeat(2, 1fr); }
  .project-preview { grid-template-columns: 48px 1fr 38px; }
  .project-preview .tag-list { grid-column: 2 / -1; }
  .article-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .interest-rail, .blog-grid { grid-template-columns: 1fr; }
  .interest-tile img { aspect-ratio: 1.35; }
  .universe-preview-grid { grid-template-columns: 1fr; gap: 24px; }
  .orbit-preview {
    width: min(330px, 100%);
    min-height: 330px;
    margin: 8px auto 0;
    transform: none;
  }
  .orbit-preview::before,
  .orbit-preview::after,
  .orbit-center {
    left: 50%;
  }
  .social-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 72px 0; }
  .contact-lead { font-size: 21px; }
  .footer-inner { display: block; }
  .footer-inner > p { margin-top: 18px; }
  .page-hero { padding: 62px 0 46px; }
  .page-hero h1 { font-size: 62px; }
  .project-hero { padding: 64px 0 50px; }
  .project-hero-grid, .lab-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-snapshot div { min-height: 98px; padding: 16px; }
  .project-snapshot strong { font-size: 25px; }
  .brief-grid, .project-proof-grid { grid-template-columns: 1fr; }
  .brief-card { min-height: 0; padding: 22px; }
  .brief-card span { margin-bottom: 18px; }
  .page-content { padding-top: 42px; }
  .notes-intro-layout { min-height: 98px; padding: 17px 0; }
  .notes-intro h1 { margin-right: 10px; font-size: 30px; }
  .notes-intro p { font-size: 13px; }
  .notes-wall-section { padding: 20px 0 56px; }
  .notes-filter { margin-bottom: 18px; }
  .notes-filter button { flex: 1 1 0; min-width: 0; }
  .notes-board { grid-template-columns: 1fr; gap: 22px; padding: 30px 18px; border-width: 8px; }
  .note-card, .note-card--featured { grid-column: auto; min-height: 0; }
  .note-card a { min-height: 212px; padding: 26px 20px 20px; }
  .interest-feature, .project-detail { grid-template-columns: 1fr; gap: 20px; }
  .project-cover { min-height: 190px; }
  .project-lead { font-size: 16px; }
  .lab-list a { grid-template-columns: 1fr; gap: 6px; }
  .universe-section { padding: 28px 0 58px; }
  .universe-intro { display: block; font-size: 13px; }
  .universe-reset { margin-top: 12px; }
  .universe-layout { grid-template-columns: 1fr; }
  .universe-canvas { height: 430px; }
  .interest-detail { min-height: 0; padding: 23px; }
  .interest-detail h2 { font-size: 36px; }
}

@media (max-width: 380px) {
  :root { --container: min(100% - 24px, 620px); --narrow: min(100% - 24px, 620px); }
  .hero h1 { font-size: 37px; }
  .hero-lead { font-size: 19px; line-height: 1.52; }
  .hero-note { font-size: 13px; }
  .button { padding: 11px 18px; font-size: 12px; }
  .hero .button-row { gap: 12px; }
}

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