:root {
  --bg: #f5f1e8;
  --paper: #fbf8ef;
  --ink: #25211d;
  --muted: #70685f;
  --faint: #cfc4b4;
  --accent: #6f4938;
  --accent-soft: #e9ded0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 12%, rgba(111, 73, 56, 0.06), transparent 26%),
    linear-gradient(90deg, rgba(37, 33, 29, 0.035), transparent 18%, transparent 82%, rgba(37, 33, 29, 0.035));
  pointer-events: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanLine {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes signalPulse {
  0%, 100% {
    opacity: 0.36;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
li {
  overflow-wrap: anywhere;
}

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

.site-header,
.site-footer,
main {
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--faint);
  padding: 24px 0 20px;
}

.brand,
nav,
.kicker,
time,
.text-link,
.section-title span,
.site-footer {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  display: flex;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
.text-link:hover,
.post-copy h3 a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  align-content: center;
  min-height: 58vh;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  padding: 80px 0;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
}

.hero p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.9;
}

.home-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 56px;
  padding: 48px 0 88px;
}

.identity-panel {
  align-self: start;
  position: sticky;
  top: 32px;
  border-right: 1px solid var(--faint);
  padding: 8px 36px 32px 0;
}

.identity-panel::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 30px;
  background: var(--accent);
  animation: signalPulse 2400ms ease-in-out infinite;
}

.identity-panel h1 {
  margin: 18px 0 10px;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
}

.motto {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.5;
}

.identity-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.home-main {
  display: grid;
  gap: 34px;
}

.statement {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  padding: 30px 0;
}

.statement::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanLine 4200ms linear infinite;
}

.icon-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 18px;
}

.statement h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
}

.statement p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--faint);
}

.signal-strip div {
  padding: 18px;
  border-right: 1px solid var(--faint);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
}

.signal-strip span {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.logo-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--faint);
  padding: 14px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.logo-chip:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.48);
  transform: translateY(-2px);
}

.logo-badge,
.project-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo-img {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 86px;
  height: 46px;
  border: 1px solid var(--faint);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  padding: 9px;
}

.logo-img img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-wide {
  width: 94px;
}

.timeline-logo {
  width: 96px;
  height: 48px;
  border-radius: 6px;
}

.logo-chip p {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  min-width: 0;
}

.company-line {
  color: var(--ink);
}

.role-badge {
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(111, 73, 56, 0.32);
  background: rgba(111, 73, 56, 0.08);
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}

.logo-chip small {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .icon-row {
    grid-template-columns: 1fr;
  }

  .logo-chip {
    padding: 12px 14px;
  }

  .logo-chip p {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
  }

  .logo-chip small {
    text-align: right;
    white-space: nowrap;
  }
}

.home-section {
  border-top: 1px solid var(--faint);
  padding-top: 30px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 500;
}

.news-panel {
  position: relative;
}

.news-mark {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.news-list {
  margin: 0;
  padding: 0;
  counter-reset: news;
  list-style: none;
  border-top: 1px solid var(--faint);
}

.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 20px 38px minmax(86px, max-content) 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--faint);
  padding: 15px 0 15px 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.news-list li::before {
  counter-increment: news;
  content: "0" counter(news);
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  color: rgba(111, 73, 56, 0.55);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.news-icon {
  display: inline-grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 2px;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.news-list li:hover {
  background: rgba(111, 73, 56, 0.035);
  transform: translateX(4px);
}

.news-list time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-list p {
  grid-column: 4;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.news-list time {
  grid-column: 3;
}

.featured-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--faint);
}

.featured-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  column-gap: 22px;
  align-items: start;
  border-bottom: 1px solid var(--faint);
  padding: 24px 0 24px 22px;
  transition: background 180ms ease, transform 180ms ease;
}

.featured-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.featured-item h3 {
  margin: 8px 0 8px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  grid-column: 2;
}

.featured-item h3 a:hover,
.pub-item h2 a:hover {
  color: var(--accent);
}

.featured-item:hover {
  background: rgba(111, 73, 56, 0.035);
  transform: translateX(4px);
}

.featured-item-highlight,
.pub-item-highlight {
  background:
    linear-gradient(135deg, rgba(37, 33, 29, 0.045), transparent 46%),
    rgba(255, 255, 255, 0.22);
}

.featured-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  grid-column: 2;
}

.featured-item .tag,
.featured-item .paper-badges,
.featured-item .action-links {
  grid-column: 2;
}

.paper-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 12px;
}

.paper-badges span {
  border: 1px solid rgba(111, 73, 56, 0.32);
  background: rgba(37, 33, 29, 0.88);
  color: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.paper-thumb {
  grid-row: span 4;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--faint);
  border-radius: 6px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center top;
  padding: 5px;
  background: var(--paper);
  transition: border-color 180ms ease, transform 220ms ease, filter 220ms ease;
}

.featured-item:hover .paper-thumb,
.pub-item:hover .paper-thumb {
  border-color: var(--accent);
  filter: contrast(1.03);
  transform: scale(1.015);
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.action-links a {
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.action-links a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-grid-page {
  grid-template-columns: 1fr;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--faint);
  padding: 18px 22px 24px;
  background:
    linear-gradient(135deg, rgba(111, 73, 56, 0.08), transparent 34%),
    rgba(251, 248, 239, 0.88);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -34px auto;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(111, 73, 56, 0.14);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 260ms ease, border-color 260ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(111, 73, 56, 0.18), transparent);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 58px rgba(77, 54, 40, 0.16);
  transform: translateY(-4px);
}

.project-card:hover::after {
  border-color: rgba(111, 73, 56, 0.32);
  transform: scale(1.18) rotate(12deg);
}

.card-hit-area {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.featured-item > :not(.card-hit-area),
.project-card > :not(.card-hit-area) {
  position: relative;
  z-index: 1;
}

.featured-item .action-links,
.project-card .action-links {
  position: relative;
  z-index: 3;
}

.project-card-large {
  min-height: 430px;
}

.project-card-agent {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  column-gap: 24px;
  align-content: start;
  align-items: start;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-index {
  color: rgba(111, 73, 56, 0.45);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.project-card h2,
.project-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.project-card h2::after,
.project-card h3::after {
  content: "↗";
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68em;
  transform: translateY(-0.14em);
  transition: transform 180ms ease;
}

.project-card:hover h2::after,
.project-card:hover h3::after {
  transform: translate(3px, -0.28em);
}

.project-figure {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--faint);
  border-radius: 6px;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: center top;
  transition: filter 240ms ease, transform 240ms ease;
}

.project-card-agent .project-figure {
  grid-column: 1;
  grid-row: 1 / span 8;
}

.project-card-agent > :not(.card-hit-area):not(.project-figure) {
  grid-column: 2;
}

.project-card:hover .project-figure {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.018);
}

.project-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.star-history-panel {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--faint);
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(37, 33, 29, 0.06), transparent 42%),
    rgba(251, 248, 239, 0.88);
}

.star-history-panel h3 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.star-history-panel > a {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--faint);
  border-radius: 6px;
  background: #ffffff;
}

.star-history-panel img {
  width: 100%;
  min-width: 560px;
  background: #ffffff;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 14px;
}

.project-stats span {
  border: 1px solid rgba(111, 73, 56, 0.26);
  background: rgba(255, 255, 255, 0.42);
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.project-stats strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.project-stats-large {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 18px;
}

.project-stats-large span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  align-content: center;
  border-color: rgba(111, 73, 56, 0.34);
  background:
    linear-gradient(135deg, rgba(111, 73, 56, 0.09), transparent 55%),
    rgba(255, 255, 255, 0.5);
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 13px;
}

.project-badges span {
  border: 1px solid rgba(37, 33, 29, 0.18);
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.project-points {
  display: grid;
  gap: 7px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.project-points li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.project-meta {
  color: var(--accent) !important;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visitor-map-section {
  border-top: 1px solid var(--faint);
  padding: 34px 0;
}

.collab-strip {
  display: flex;
  gap: 12px 16px;
  align-items: center;
  border: 1px solid rgba(47, 87, 69, 0.28);
  background:
    linear-gradient(135deg, rgba(47, 87, 69, 0.11), transparent 58%),
    rgba(255, 255, 255, 0.34);
  padding: 12px 14px;
}

.collab-strip span,
.collab-strip a {
  flex: 0 0 auto;
  color: #2f5745;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collab-strip p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.collab-strip a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.visitor-map-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.64fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  border-bottom: 1px solid var(--faint);
}

.visitor-map-section h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.16;
}

.visitor-map-section p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.visitor-map-widget {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--faint);
  background:
    linear-gradient(135deg, rgba(37, 33, 29, 0.05), transparent 48%),
    rgba(255, 255, 255, 0.28);
  padding: 18px;
}

.visitor-map-loading {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visitor-map-widget iframe,
.visitor-map-widget img,
.visitor-map-widget object,
.visitor-map-widget embed {
  max-width: 100%;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-links a {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 3px;
}

.tag {
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-item {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--faint);
  padding: 34px 0;
}

.blog-page {
  max-width: 980px;
}

.blog-page .page-header {
  margin-bottom: 34px;
}

.blog-page .post-item {
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 40px;
  border: 1px solid var(--faint);
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.72);
  padding: 22px;
}

.blog-page .post-image img {
  aspect-ratio: 1;
}

.blog-page .post-copy h3 {
  font-size: clamp(34px, 4.8vw, 54px);
}

.blog-page .post-copy p {
  font-size: 18px;
}

.post-image {
  overflow: hidden;
  border-radius: 4px;
  background: var(--accent-soft);
}

.post-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 280ms ease;
}

.post-image:hover img {
  transform: scale(1.035);
}

time {
  color: var(--muted);
  font-size: 13px;
}

.post-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.08;
}

.post-copy p {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 58px 0 108px;
}

.page {
  max-width: 920px;
  padding: 42px 0 96px;
}

.page-header {
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  padding: 42px 0 36px;
}

.page-header h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.1;
}

.page-header p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.playground-page {
  max-width: 1040px;
}

.toy-box {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: stretch;
  border-bottom: 1px solid var(--faint);
  padding: 34px 0;
}

.toy-box > * {
  min-width: 0;
}

.toy-copy,
.toy-stage,
.toy-controls {
  border: 1px solid var(--faint);
  background: rgba(255, 255, 255, 0.28);
}

.toy-copy {
  padding: 22px;
}

.toy-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.06;
}

.toy-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.toy-stage {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  grid-row: span 2;
  background:
    linear-gradient(90deg, rgba(37, 33, 29, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 33, 29, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(111, 73, 56, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.25);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.toy-stage::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(111, 73, 56, 0.18);
  pointer-events: none;
}

.toy-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  cursor: crosshair;
  touch-action: none;
}

.toy-controls {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.toy-controls label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toy-controls input {
  width: 100%;
  accent-color: var(--accent);
}

.toy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toy-actions button {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 9px 12px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.toy-actions button:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
}

.content-section,
.timeline,
.pub-list,
.project-list,
.empty-state {
  border-bottom: 1px solid var(--faint);
  padding: 30px 0;
}

.content-section h2,
.timeline h2 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}

.content-section p,
.empty-state p {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
}

.timeline-item,
.pub-item,
.project-item {
  border-top: 1px solid var(--faint);
  padding: 24px 0;
}

.pub-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  column-gap: 22px;
  align-items: start;
  border-left: 0 solid var(--accent);
  transition: background 180ms ease, transform 180ms ease;
}

.pub-item:hover {
  background: rgba(111, 73, 56, 0.035);
  border-left-width: 3px;
  transform: translateX(4px);
}

.pub-item > :not(.card-hit-area) {
  position: relative;
  z-index: 1;
}

.pub-item .action-links {
  position: relative;
  z-index: 3;
}

.timeline-item:first-of-type,
.pub-item:first-child,
.project-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}

.timeline-item span {
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.timeline-item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
}

.pub-item h2,
.project-item h2 {
  margin: 10px 0 10px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.pub-item h2,
.pub-item p,
.pub-item .tag,
.pub-item .paper-badges,
.pub-item .action-links {
  grid-column: 2;
}

.pub-item .paper-thumb {
  grid-row: span 6;
}

.pub-item p,
.project-item p {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.project-item h2 a:hover {
  color: var(--accent);
}

.article-header {
  margin-bottom: 38px;
  text-align: center;
}

.article-header .text-link {
  display: inline-block;
  margin-bottom: 30px;
}

.article-header h1 {
  margin: 18px 0 12px;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 500;
  line-height: 1.08;
}

.article-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.article h2 {
  margin: 58px 0 18px;
  color: var(--accent);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
}

.article p {
  margin: 0 0 17px;
  font-size: 19px;
  line-height: 2.05;
  text-align: justify;
}

figure {
  width: min(460px, 100%);
  margin: 44px auto 52px;
}

figure img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(55, 42, 30, 0.13);
}

.ink-theme {
  --bg: #f7f5ef;
  --paper: #fbfaf5;
  --ink: #1f211f;
  --muted: #6d716b;
  --faint: #d9d6cb;
  --accent: #2f3f36;
  --accent-soft: #e7ece6;
  background:
    radial-gradient(ellipse at 16% 8%, rgba(47, 63, 54, 0.11), transparent 34%),
    radial-gradient(ellipse at 90% 18%, rgba(47, 63, 54, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfaf5 0%, #f4f2ec 100%);
}

.ink-theme::before {
  background:
    linear-gradient(90deg, rgba(31, 33, 31, 0.025), transparent 20%, transparent 80%, rgba(31, 33, 31, 0.025)),
    repeating-linear-gradient(90deg, rgba(31, 33, 31, 0.018) 0, rgba(31, 33, 31, 0.018) 1px, transparent 1px, transparent 36px);
}

.ink-theme .site-header,
.ink-theme .site-footer {
  border-color: rgba(47, 63, 54, 0.22);
}

.ink-theme .page-header,
.ink-theme .article-header {
  position: relative;
}

.ink-theme .page-header::after,
.ink-theme .article-header::after {
  content: "";
  display: block;
  width: min(220px, 48vw);
  height: 12px;
  margin-top: 28px;
  background: linear-gradient(90deg, rgba(47, 63, 54, 0.52), rgba(47, 63, 54, 0.12), transparent);
  border-radius: 999px;
  filter: blur(0.3px);
}

.ink-theme .article-header::after {
  margin-left: auto;
  margin-right: auto;
}

.ink-theme .blog-page .post-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(47, 63, 54, 0.22);
  border-bottom: 1px solid rgba(47, 63, 54, 0.22);
  background: rgba(255, 255, 250, 0.42);
  box-shadow: none;
}

.ink-theme .blog-page .post-item::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(47, 63, 54, 0.7), transparent);
}

.ink-theme .post-image {
  border-radius: 2px;
  background: rgba(47, 63, 54, 0.12);
  filter: saturate(0.74) contrast(1.04);
}

.ink-theme .post-image img {
  mix-blend-mode: multiply;
}

.ink-theme .post-copy h3,
.ink-theme .article-header h1,
.ink-theme .article h2 {
  color: #1f211f;
}

.ink-theme .article {
  max-width: 800px;
}

.ink-theme .article p {
  color: #242722;
  font-size: 20px;
  line-height: 2.18;
}

.ink-theme .article h2 {
  position: relative;
  margin-top: 64px;
  padding-left: 18px;
  font-size: 30px;
}

.ink-theme .article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.26em;
  width: 5px;
  height: 1.1em;
  background: linear-gradient(180deg, rgba(47, 63, 54, 0.92), rgba(47, 63, 54, 0.16));
  border-radius: 999px;
}

.ink-theme figure {
  width: min(520px, 100%);
}

.ink-theme figure img {
  border-radius: 2px;
  filter: saturate(0.68) contrast(1.08);
  box-shadow: 0 22px 70px rgba(31, 33, 31, 0.12);
}

.ink-theme .text-link,
.ink-theme .kicker,
.ink-theme time {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .identity-panel,
  .statement,
  .logo-chip,
  .home-section,
  .toy-box,
  .news-list li,
  .project-card,
  .pub-item {
    animation: fadeUp 520ms ease both;
  }

  .statement {
    animation-delay: 80ms;
  }

  .logo-chip:nth-child(2),
  .project-card:nth-child(2),
  .news-list li:nth-child(2),
  .pub-item:nth-child(2) {
    animation-delay: 80ms;
  }

  .logo-chip:nth-child(3),
  .news-list li:nth-child(3),
  .pub-item:nth-child(3) {
    animation-delay: 140ms;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--faint);
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 30px);
    max-width: 980px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 8px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0;
  }

  .home-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 72px;
  }

  .home-main,
  .identity-panel,
  .statement,
  .home-section,
  .identity-copy,
  .statement h2,
  .statement p {
    max-width: calc(100vw - 30px);
  }

  .identity-copy,
  .statement p,
  .news-list p {
    max-width: 310px;
  }

  .statement h2 {
    max-width: 320px;
  }

  .identity-panel {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--faint);
    padding: 0 0 28px;
  }

  .statement {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .icon-row,
  .project-grid,
  .project-grid-page,
  .toy-box,
  .visitor-map-section {
    grid-template-columns: 1fr;
  }

  .collab-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card-agent {
    grid-template-columns: 1fr;
  }

  .project-card-agent .project-figure,
  .project-card-agent > :not(.card-hit-area):not(.project-figure) {
    grid-column: 1;
  }

  .project-card-agent .project-figure {
    grid-row: auto;
    aspect-ratio: 2.1 / 1;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--faint);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .home-sheet {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding: 34px 0 70px;
  }

  .home-mark {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--faint);
    padding: 0 0 28px;
  }

  .home-mark h1 {
    font-size: 44px;
  }

  .index-block {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .plain-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p:last-child {
    font-size: 17px;
  }

  .page-header p:last-child {
    max-width: 330px;
  }

  .writing {
    padding: 58px 0 78px;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-item,
  .pub-item {
    grid-template-columns: 1fr;
    padding-left: 16px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .news-list li::before,
  .news-icon,
  .news-list time,
  .news-list p {
    grid-column: 1;
  }

  .news-list li::before {
    grid-row: auto;
  }

  .news-icon {
    grid-row: auto;
    justify-content: start;
  }

  .project-stats-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toy-copy,
  .toy-controls {
    padding: 18px;
  }

  .toy-stage,
  .toy-stage canvas {
    min-height: 360px;
  }

  .toy-stage {
    grid-row: auto;
  }

  .visitor-map-widget {
    min-height: 220px;
    padding: 12px;
  }

  .featured-item h3,
  .featured-item p,
  .featured-item .tag,
  .featured-item .paper-badges,
  .featured-item .action-links,
  .pub-item h2,
  .pub-item p,
  .pub-item .tag,
  .pub-item .paper-badges,
  .pub-item .action-links {
    grid-column: 1;
  }

  .paper-thumb {
    margin-bottom: 14px;
  }

  .blog-page .post-item {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .post-copy h3 {
    font-size: 38px;
  }

  .article {
    padding-top: 38px;
  }

  .article p {
    font-size: 17px;
    line-height: 1.96;
  }
}
