/* Frozen long-form edition from commit 89c106f. */
:root {
  --paper: #f3eee7;
  --paper-light: #faf7f2;
  --ink: #201712;
  --muted: #766b63;
  --rust: #b84d27;
  --rust-bright: #e45b2d;
  --rule: rgba(32, 23, 18, 0.18);
  --dark: #271711;
  --content: min(94vw, 1760px);
  --ui-font: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  --serif: var(--ui-font);
  --sans: var(--ui-font);
  --mono: var(--ui-font);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; content: ""; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.nowrap { white-space: nowrap; }
.phone-break { display: none; }
::selection { color: var(--paper-light); background: var(--rust); }
:focus-visible { outline: 2px solid var(--rust-bright); outline-offset: 4px; }
.mobile-dock { display: none; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; }
.scroll-progress span {
  display: block; width: 100%; height: 100%; background: var(--rust-bright);
  transform: scaleX(0); transform-origin: left center; will-change: transform;
}

.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%; min-height: 82px; padding-inline: 3vw;
  display: grid; grid-template-columns: minmax(240px,1fr) auto minmax(120px,1fr); align-items: center;
  border-bottom: 1px solid var(--rule); background: rgba(243,238,231,.9); backdrop-filter: blur(18px);
}
.identity { justify-self: start; display: flex; align-items: baseline; gap: 15px; }
.identity-name { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .05em; }
.identity-role,
.chapter-nav span,
.chapter-eyebrow,
.portrait-frame figcaption,
.focus-label,
.chapter-name,
.article-meta,
.project-topline,
.project-tags,
.poster-top,
.poster-bottom,
.footer-statement > span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
}
.identity-role { color: var(--rust); }
.chapter-nav {
  display: flex; align-self: center; gap: 3px; padding: 4px;
  border: 1px solid var(--rule); border-radius: 999px; background: rgba(255,255,255,.42);
}
.chapter-nav a {
  position: relative; min-width: 88px; padding: 10px 14px; display: flex; align-items: center;
  justify-content: center; gap: 7px; color: var(--muted); border-radius: 999px; font-size: 12px;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.chapter-nav a:hover { color: var(--ink); }
.chapter-nav a.is-active { color: var(--paper-light); background: var(--ink); }
.chapter-nav a:active { transform: translateY(1px); }
.chapter-nav span { color: var(--rust); font-size: 8px; }
.chapter-nav a.is-active span { color: #f49a75; }
.header-exit {
  justify-self: end; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 12px; transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.header-exit:hover { color: var(--rust); border-color: currentColor; transform: translateY(-2px); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 15px; }
.section-context {
  display: inline-flex; align-items: center; gap: 9px; color: var(--muted);
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; white-space: nowrap;
}
.section-context [data-section-context] { display: inline-block; }
.section-context::before {
  width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--rust-bright);
  box-shadow: 0 0 0 5px rgba(184,77,39,.09); animation: pulse 2.2s ease-in-out infinite;
}

main { width: 100%; }
.profile {
  width: var(--content); min-height: calc(100svh - 82px); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0,1fr) clamp(300px,24vw,430px); grid-template-rows: 1fr auto;
  column-gap: clamp(36px,5vw,100px); border-inline: 1px solid var(--rule);
}
.profile-copy {
  min-width: 0; padding: clamp(56px,7vh,92px) 0 40px clamp(28px,4vw,72px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.chapter-eyebrow { display: flex; justify-content: space-between; color: var(--rust); }
.hero-title {
  margin: 5vh 0 6vh; font-family: var(--serif); font-size: clamp(68px,5.7vw,104px);
  font-weight: 600; line-height: 1.04; letter-spacing: -.035em;
}
.title-layout { display: block; }
.title-layout-compact { display: none; }
.title-line { display: block; overflow: hidden; }
.title-line > span { display: block; white-space: nowrap; }
.accent {
  color: var(--rust); font-weight: 700;
  box-shadow: inset 0 -.13em rgba(184,77,39,.13);
}
.profile-bottom { display: grid; grid-template-columns: minmax(0,680px) auto; align-items: end; gap: 28px; }
.profile-intro {
  margin: 0; color: #554b45; font-family: var(--serif); font-size: clamp(16px,1.08vw,19px); line-height: 1.85;
}
.profile-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.primary-link, .text-link {
  min-width: 190px; padding: 14px 17px; display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--ink); border-radius: 999px; font-size: 12px; cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.primary-link { color: var(--paper-light); background: var(--ink); }
.text-link { background: transparent; }
.primary-link:hover, .text-link:hover { transform: translateY(-2px); }
.primary-link span, .text-link span { transition: transform 180ms ease; }
.primary-link:hover span { transform: translateY(3px); }
.text-link:hover span { transform: rotate(90deg); }

.portrait-frame {
  position: relative; margin: 0; padding: clamp(28px,4vw,64px) clamp(24px,2.6vw,48px) 34px;
  display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--rule); overflow: hidden;
}
.portrait-stage {
  position: relative; z-index: 1; perspective: 900px; perspective-origin: 50% 50%;
}
.portrait-motion {
  --portrait-rx: 0deg;
  --portrait-ry: 0deg;
  --portrait-scale: 1;
  position: relative; transform: rotateX(var(--portrait-rx)) rotateY(var(--portrait-ry)) scale3d(var(--portrait-scale),var(--portrait-scale),var(--portrait-scale));
  transform-style: preserve-3d; transform-origin: 50% 68%; will-change: transform;
  transition: transform 200ms ease-out;
}
.portrait-crop {
  position: relative; aspect-ratio: 4/5.1; overflow: hidden; border-radius: 16px; background: #d8cec4;
  box-shadow: 0 18px 42px rgba(32,23,18,.12);
}
.portrait-crop::after {
  position: absolute; inset: 0; z-index: 1; content: ""; border: 1px solid rgba(32,23,18,.14); border-radius: inherit; pointer-events: none;
}
.portrait-crop img {
  position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.72) contrast(1.05); pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.portrait-frame figcaption { position: relative; z-index: 2; margin-top: 17px; display: flex; justify-content: space-between; color: var(--muted); }
.portrait-index {
  position: absolute; right: -.07em; bottom: -.22em; z-index: -1; color: rgba(184,77,39,.08);
  font-family: var(--serif); font-size: 210px; line-height: 1;
}
.focus-line {
  grid-column: 1/-1; min-height: 82px; padding: 0 clamp(28px,4vw,72px); display: flex; align-items: center;
  gap: clamp(20px,3vw,54px); border-top: 1px solid var(--rule); background: rgba(255,255,255,.17);
  color: #4f4540; font-family: var(--serif); font-size: 14px;
}
.focus-label { color: var(--rust); }
.focus-belief { margin-left: auto; color: var(--muted); }

.chapter {
  width: var(--content); margin-inline: auto; display: grid; grid-template-columns: clamp(150px,13vw,230px) minmax(0,1fr);
  border-right: 1px solid var(--rule); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule);
}
.chapter-rail {
  position: relative; border-right: 1px solid var(--rule);
}
.chapter-rail-inner {
  position: sticky; top: 82px; min-height: calc(100svh - 82px);
  padding: clamp(55px,7vw,108px) clamp(22px,2.5vw,42px); display: flex;
  flex-direction: column; justify-content: space-between; gap: 52px;
}
.chapter-number {
  color: var(--rust); font-family: var(--serif); font-size: clamp(64px,5.3vw,96px);
  font-weight: 400; line-height: .82; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.chapter-name { margin: 0 0 13px; color: var(--rust); }
.chapter-count { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 13px; }
.chapter-count strong {
  display: block; color: var(--ink); font-size: 34px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.chapter-body { min-width: 0; padding: clamp(55px,7vw,108px) clamp(32px,5vw,92px) clamp(72px,9vw,144px); }
.chapter-heading {
  position: relative; margin-bottom: clamp(52px,6vw,100px); padding-bottom: clamp(34px,4vw,62px);
  display: grid; grid-template-columns: minmax(90px,.27fr) minmax(0,1fr) auto; gap: 30px; align-items: end;
  border-bottom: 1px solid currentColor;
}
.chapter-heading > p { margin: 0; color: var(--rust); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.chapter-heading h2 {
  margin: 0; font-family: var(--serif); font-size: clamp(38px,4.55vw,82px);
  font-weight: 600; line-height: 1.12; letter-spacing: -.035em;
  text-wrap: balance; line-break: strict; word-break: normal;
}
.section-link {
  padding: 11px 15px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 12px; white-space: nowrap; transition: color 200ms ease, background-color 200ms ease;
}
.section-link:hover { color: var(--paper-light); background: var(--ink); }
.github .section-link:hover { color: var(--dark); background: #f4eee7; }
.section-link span { display: inline-block; margin-left: 12px; color: var(--rust); transition: transform 180ms ease; }
.section-link:hover span { transform: translate(3px,-3px); }

.featured-article {
  position: relative; z-index: 0; isolation: isolate; margin-right: 16px; margin-bottom: 16px;
}
.featured-article::before,
.featured-article::after {
  position: absolute; inset: 0; content: ""; pointer-events: none; border: 1px solid var(--rule);
  border-radius: var(--radius); background: #efe8df; transform-origin: 76% 12%;
  transition: transform 560ms cubic-bezier(.16,1,.3,1), opacity 300ms ease;
}
.featured-article::before { z-index: -2; opacity: .42; transform: translate(16px,16px) rotate(.45deg); }
.featured-article::after { z-index: -1; opacity: .72; transform: translate(8px,8px) rotate(.2deg); }
.featured-article > a {
  position: relative; z-index: 1; padding: clamp(36px,4vw,70px); display: block; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--paper-light); overflow: hidden;
  transition: transform 520ms cubic-bezier(.16,1,.3,1), box-shadow 520ms cubic-bezier(.16,1,.3,1);
}
.featured-article > a::before {
  position: absolute; top: -54%; right: -8%; width: 43%; aspect-ratio: 1; content: "";
  border: 1px solid rgba(184,77,39,.35); border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(184,77,39,.055),0 0 0 92px rgba(184,77,39,.035);
  transition: transform 600ms cubic-bezier(.2,.7,0,1);
}
.featured-article > a:hover::before { transform: scale(1.16) rotate(8deg); }
.article-meta { position: relative; display: flex; justify-content: space-between; color: var(--rust); }
.featured-article h3 {
  position: relative; max-width: 1050px; margin: clamp(50px,6vw,100px) 0 28px; font-family: var(--serif);
  font-size: clamp(34px,3.9vw,72px); font-weight: 600; line-height: 1.18; letter-spacing: -.03em;
  text-wrap: balance; line-break: strict; word-break: normal;
}
.featured-article p {
  position: relative; max-width: 650px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.8;
}
.round-arrow {
  position: absolute; right: clamp(28px,4vw,62px); bottom: clamp(28px,4vw,62px); width: 54px; height: 54px;
  display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 20px;
  transition: color 180ms ease,background 180ms ease,transform 180ms ease;
}
.featured-article a:hover .round-arrow { color: var(--paper-light); background: var(--ink); transform: rotate(45deg); }
.article-index { margin-top: 28px; border-top: 1px solid var(--rule); }
.article-row {
  min-height: 104px; display: grid; grid-template-columns: 70px minmax(0,1fr) 115px 32px; gap: 20px;
  align-items: center; border-bottom: 1px solid var(--rule);
  transition: color 200ms ease, background-color 200ms ease;
}
a.article-row:hover { color: var(--rust); background: rgba(184,77,39,.045); }
.row-index, .row-date {
  color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.row-title { font-family: var(--serif); font-size: clamp(20px,1.55vw,27px); font-weight: 500; text-wrap: pretty; line-break: strict; }
.row-arrow { justify-self: end; font-size: 18px; transition: transform 200ms ease; }
a.article-row:hover .row-arrow { transform: translate(3px,-3px); }
.is-draft { color: var(--muted); }
.draft-dot {
  justify-self: end; width: 8px; height: 8px; border-radius: 50%; background: var(--rust);
  box-shadow: 0 0 0 6px rgba(184,77,39,.12); animation: pulse 2s ease-in-out infinite;
}

.github { color: #f4eee7; background: var(--dark); border-color: rgba(255,255,255,.15); }
.github .chapter-rail, .github .chapter-heading, .github .project { border-color: rgba(255,255,255,.17); }
.github .chapter-count, .github .project p { color: #bcaea5; }
.github .chapter-count strong { color: #f4eee7; }
.github .chapter-heading > p, .github .chapter-name, .github .section-link span, .github .chapter-number { color: #ee774c; }
.project-board {
  display: grid; grid-template-columns: minmax(0,1.42fr) minmax(330px,.82fr);
  border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17);
  border-radius: var(--radius); overflow: hidden;
}
.project {
  position: relative; border-right: 1px solid; border-bottom: 1px solid; overflow: hidden;
  transition: opacity 360ms cubic-bezier(.16,1,.3,1), filter 360ms cubic-bezier(.16,1,.3,1);
}
.project::after {
  position: absolute; inset: auto 0 0; height: 4px; content: ""; background: #ee774c;
  transform: scaleX(0); transform-origin: left; transition: transform 400ms cubic-bezier(.2,.7,0,1);
}
.project:hover::after { transform: scaleX(1); }
.project-lead { min-height: 720px; display: flex; flex-direction: column; }
.project-image { position: relative; height: 48%; min-height: 310px; overflow: hidden; background: #1a100c; }
.project-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg,transparent 48%,rgba(39,23,17,.82)); }
.project-image img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(.18) sepia(.1) brightness(.82);
  transition: transform 800ms cubic-bezier(.2,.7,0,1),filter 300ms ease;
}
.project-lead:hover .project-image img { transform: scale(1.045); filter: grayscale(0) sepia(0) brightness(.94); }
.project-image > span {
  position: absolute; bottom: 24px; left: 28px; z-index: 1; font-family: var(--mono); font-size: 9px; letter-spacing: .13em;
}
.project-copy, .project-small { padding: clamp(28px,3.2vw,54px); }
.project-copy { flex: 1; }
.project-topline { display: flex; justify-content: space-between; color: #ee774c; }
.project-topline b { font-weight: inherit; }
.project h3 {
  margin: 34px 0 23px; font-family: var(--serif); font-size: clamp(34px,3.45vw,60px);
  font-weight: 600; line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance; line-break: strict; word-break: normal;
}
.project p { max-width: 640px; margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.project-tags { margin-top: 32px; display: flex; gap: 8px; color: #c8b9ae; }
.project-tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.project-arrow {
  position: absolute; right: 28px; bottom: 26px; color: #ee774c; font-size: 23px; transition: transform 180ms ease;
}
.project:hover .project-arrow { transform: translate(4px,-4px); }
.project-side { display: grid; grid-template-rows: 1fr 1fr; }
.project-small { min-height: 360px; display: block; }
.project-small h3 { margin-top: clamp(56px,6vw,105px); font-size: clamp(30px,2.65vw,48px); }

.xiaohongshu { background: #f6f0e9; }
.note-wall {
  display: grid; grid-template-columns: 1.2fr .9fr .9fr; min-height: 660px;
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
  border-radius: var(--radius); overflow: hidden;
}
.note-poster {
  position: relative; min-width: 0; padding: clamp(24px,2.8vw,46px); display: flex; flex-direction: column;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden;
  transition: filter 360ms cubic-bezier(.16,1,.3,1), opacity 360ms cubic-bezier(.16,1,.3,1);
}
.note-poster:hover { filter: brightness(1.035); }
.note-poster .poster-bottom span:last-child { transition: transform 200ms ease; }
.note-poster:hover .poster-bottom span:last-child { transform: translate(4px,-4px); }
.poster-top, .poster-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; }
.poster-top { font-variant-numeric: tabular-nums; }
.poster-en {
  position: relative; z-index: 2; margin: auto 0 22px; color: var(--rust); font-family: var(--mono);
  font-size: clamp(30px,3.65vw,64px); font-weight: 700; line-height: .95; letter-spacing: -.04em;
}
.note-poster h3 {
  position: relative; z-index: 2; margin: 0 0 auto; font-family: var(--serif); font-size: clamp(31px,3vw,56px);
  font-weight: 600; line-height: 1.2; letter-spacing: -.025em;
  text-wrap: balance; line-break: strict; word-break: normal;
}
.note-poster-dark h3, .note-poster-signal h3 { font-size: clamp(31px,2.3vw,44px); }
.poster-bottom { margin-top: 42px; padding-top: 16px; border-top: 1px solid currentColor; }
.note-poster-main {
  color: #371b12;
  background: #ef8a62;
}
.note-poster-main::before {
  position: absolute; top: 15%; right: -35%; width: 82%; aspect-ratio: 1; content: "";
  border: clamp(28px,4vw,64px) solid rgba(255,245,234,.35); border-radius: 50%;
}
.note-poster-main .poster-en { color: #fff6eb; }
.note-poster-dark { color: #f6eee8; background: #2a1913; }
.note-poster-dark .poster-en { color: #ef7950; font-size: clamp(30px,2.5vw,48px); }
.poster-orbit {
  position: absolute; top: 34%; right: -34%; width: 90%; aspect-ratio: 1;
  border: 1px solid rgba(239,121,80,.55); border-radius: 50%;
}
.poster-orbit::before, .poster-orbit::after {
  position: absolute; inset: 18%; content: ""; border: 1px solid rgba(239,121,80,.45); border-radius: inherit;
}
.poster-orbit::after { inset: 36%; }
.poster-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ef7950; }
.poster-orbit i:nth-child(1) { top: 6%; left: 48%; }
.poster-orbit i:nth-child(2) { top: 50%; left: 15%; }
.poster-orbit i:nth-child(3) { right: 18%; bottom: 19%; }
.note-poster-signal { color: #241912; background: #ddd3c4; }
.note-poster-signal .poster-en { color: #9d3b21; }
.poster-path { position: absolute; inset: 19% 15% auto; height: 170px; }
.poster-path::before {
  position: absolute; top: 50%; right: 0; left: 0; height: 1px; content: "";
  background: rgba(157,59,33,.45); transform: rotate(-12deg);
}
.poster-path i { position: absolute; width: 16px; height: 16px; border: 2px solid #9d3b21; border-radius: 50%; background: #ddd3c4; }
.poster-path i:nth-child(1) { top: 72%; left: 0; }
.poster-path i:nth-child(2) { top: 51%; left: 31%; }
.poster-path i:nth-child(3) { top: 37%; left: 63%; }
.poster-path i:nth-child(4) { top: 12%; right: 0; background: #9d3b21; }
.xhs-outro {
  margin-top: 32px; display: grid; grid-template-columns: minmax(0,680px) auto;
  justify-content: space-between; align-items: end; gap: 28px;
}
.xhs-outro p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.xhs-outro a { padding-bottom: 7px; border-bottom: 1px solid currentColor; font-size: 13px; }

.site-footer {
  min-height: 330px; padding: clamp(58px,7vw,112px) 3vw 38px; display: grid;
  grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 60px; color: #f4eee7; background: #160e0a;
}
.footer-statement p {
  max-width: 900px; margin: 22px 0 0; font-family: var(--serif); font-size: clamp(40px,5vw,86px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
  text-wrap: balance; line-break: strict; word-break: normal;
}
.footer-statement > span { color: #ee774c; }
.footer-links { display: grid; align-content: start; }
.footer-links a, .footer-links button {
  min-width: 210px; padding: 13px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.2);
  color: #d8cbc2; background: transparent; text-align: left; cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: #ee774c; }
.previous-edition {
  grid-column: 1/-1; justify-self: end; color: #897c74; font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
}
.copy-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 13px 18px; color: var(--paper-light);
  background: var(--ink); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 180ms ease,transform 180ms ease;
}
.copy-toast.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 700ms cubic-bezier(.2,.7,0,1),transform 700ms cubic-bezier(.2,.7,0,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-title .title-line > span { transform: translateY(112%); transition: transform 900ms cubic-bezier(.18,.72,0,1); }
.js .hero-title.is-visible .title-line > span { transform: translateY(0); }
.js .hero-title .title-line:nth-child(2) > span { transition-delay: 90ms; }
.js .hero-title .title-line:nth-child(3) > span { transition-delay: 180ms; }

@media (hover: hover) and (pointer: fine) {
  .featured-article:hover::before { opacity: .55; transform: translate(20px,18px) rotate(.9deg); }
  .featured-article:hover::after { transform: translate(10px,9px) rotate(.35deg); }
  .featured-article:hover > a {
    transform: translate3d(-3px,-5px,0);
    box-shadow: 0 30px 58px -45px rgba(32,23,18,.38);
  }
  .project-board:has(.project:hover) .project:not(:hover) { opacity: .48; filter: saturate(.7) brightness(.82); }
  .note-wall:has(.note-poster:hover) .note-poster:not(:hover) { opacity: .48; filter: saturate(.72) brightness(.9); }
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 5px rgba(184,77,39,.08); }
  50% { box-shadow: 0 0 0 10px rgba(184,77,39,.16); }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .chapter-nav { display: none; }
  .profile { grid-template-columns: minmax(0,1fr) minmax(270px,34vw); }
  .hero-title { font-size: clamp(54px,7.4vw,82px); }
  .title-layout-desktop { display: none; }
  .title-layout-compact { display: block; }
  .profile-bottom { grid-template-columns: 1fr; }
  .profile-actions { max-width: 470px; flex-direction: row; }
  .profile-actions > * { flex: 1; }
  .focus-belief { display: none; }
  .chapter { grid-template-columns: 150px minmax(0,1fr); }
  .chapter-heading { grid-template-columns: 1fr auto; }
  .chapter-heading > p { grid-column: 1/-1; }
  .project-board { grid-template-columns: 1fr; }
  .project-lead { min-height: 650px; }
  .project-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .project-small { min-height: 380px; }
  .note-wall { grid-template-columns: 1fr 1fr; }
  .note-poster-main { grid-column: 1/-1; min-height: 470px; }
  .note-poster-dark, .note-poster-signal { min-height: 520px; }
}

@media (max-width: 760px) {
  :root { --content: calc(100vw - 24px); }
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 68px; padding-inline: 18px; }
  .identity-role, .header-tools { display: none; }
  .identity-name { font-size: 21px; }
  .site-header::after {
    justify-self: end; content: attr(data-current-label); color: var(--rust); font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  }
  .mobile-dock {
    position: fixed; left: 50%; bottom: max(14px,env(safe-area-inset-bottom)); z-index: 70;
    width: calc(100vw - 28px); max-width: 410px; padding: 5px; display: grid;
    grid-template-columns: repeat(4,1fr); gap: 3px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px; color: #f4eee7; background: rgba(32,23,18,.92);
    backdrop-filter: blur(16px); transform: translateX(-50%);
  }
  .mobile-dock a {
    min-width: 0; padding: 10px 5px; display: flex; align-items: center; justify-content: center; gap: 4px;
    border-radius: 999px; color: #cfc2b9; font-size: 10px; transition: color 200ms ease,background-color 200ms ease;
  }
  .mobile-dock a.is-active { color: #fff; background: var(--rust); }
  .mobile-dock span { color: #f09a78; font-family: var(--mono); font-size: 7px; }
  .mobile-dock a.is-active span { color: #ffe1d4; }
  .profile { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .profile-copy { padding: 38px 20px 36px; }
  .chapter-eyebrow { font-size: 8px; }
  .hero-title { margin: 48px 0 42px; font-size: clamp(38px,11.5vw,48px); line-height: 1.08; letter-spacing: -.025em; }
  .hero-title .title-line > span { white-space: nowrap; }
  .profile-intro { font-size: 15px; line-height: 1.85; }
  .profile-actions { flex-direction: column; }
  .primary-link, .text-link { width: 100%; }
  .portrait-frame { padding: 22px 20px 28px; border-top: 1px solid var(--rule); border-left: 0; }
  .portrait-crop {
    aspect-ratio: 1/1.12; border-radius: 16px;
  }
  .portrait-frame figcaption { font-size: 8px; }
  .focus-line { min-height: 0; padding: 28px 20px; flex-wrap: wrap; gap: 12px 18px; font-size: 12px; }
  .focus-label { width: 100%; }
  .chapter { grid-template-columns: 1fr; }
  .chapter-rail {
    border-right: 0; border-bottom: 1px solid var(--rule);
  }
  .chapter-rail-inner {
    position: static; min-height: 0; padding: 42px 20px 28px;
    flex-direction: row; align-items: end;
  }
  .github .chapter-rail { border-bottom-color: rgba(255,255,255,.17); }
  .chapter-number { font-size: 76px; }
  .chapter-rail-inner > div { text-align: right; }
  .chapter-count strong { display: inline; margin-right: 5px; font-size: 25px; }
  .chapter-body { padding: 48px 20px 72px; }
  .chapter-heading { margin-bottom: 42px; padding-bottom: 32px; grid-template-columns: 1fr; gap: 22px; }
  .chapter-heading > p { grid-column: auto; white-space: normal; }
  .desktop-break { display: none; }
  .chapter-heading h2 { font-size: clamp(36px,9.8vw,44px); line-height: 1.2; letter-spacing: -.025em; }
  .section-link { justify-self: start; }
  .featured-article { margin-right: 8px; margin-bottom: 8px; }
  .featured-article::before { transform: translate(8px,8px) rotate(.25deg); }
  .featured-article::after { transform: translate(4px,4px) rotate(.1deg); }
  .featured-article > a { padding: 28px 22px 84px; }
  .article-meta { gap: 20px; }
  .featured-article h3 { margin: 58px 0 22px; font-size: clamp(28px,8vw,34px); line-height: 1.35; letter-spacing: -.02em; }
  .featured-article p { font-size: 14px; }
  .round-arrow { width: 44px; height: 44px; }
  .article-row {
    min-height: 122px; padding-block: 20px; grid-template-columns: 38px minmax(0,1fr) 22px;
    grid-template-rows: auto auto; gap: 8px 13px;
  }
  .row-title { font-size: 21px; line-height: 1.4; }
  .row-date { grid-column: 2; grid-row: 2; }
  .row-arrow, .draft-dot { grid-column: 3; grid-row: 1/3; }
  .project-board { grid-template-columns: 1fr; }
  .project-lead { min-height: 620px; }
  .project-image { height: auto; min-height: 0; aspect-ratio: 2/1; background: #dedede; }
  .project-image img { object-fit: contain; }
  .project h3 { font-size: 38px; line-height: 1.15; }
  .project-side { grid-template-columns: 1fr; }
  .project-small { min-height: 360px; padding: 28px 24px 48px; }
  .project-small h3 { margin-top: 72px; font-size: 34px; }
  .note-wall { grid-template-columns: 1fr; }
  .note-poster-main, .note-poster-dark, .note-poster-signal { grid-column: auto; min-height: 510px; }
  .poster-en { font-size: 46px; }
  .note-poster-dark .poster-en { font-size: 42px; }
  .note-poster h3 { font-size: 34px; line-height: 1.3; }
  .note-poster h3 br { display: none; }
  .xhs-outro { grid-template-columns: 1fr; align-items: start; }
  .xhs-outro a { justify-self: start; }
  .site-footer {
    min-height: 540px; padding: 64px 24px 112px; grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr; gap: 45px;
  }
  .footer-statement p { font-size: 41px; line-height: 1.2; }
  .footer-links a, .footer-links button { width: 100%; }
  .previous-edition { grid-column: auto; align-self: end; justify-self: start; }
  .copy-toast { right: 16px; bottom: 86px; }
}

@media (max-width: 360px) {
  .chapter-heading .desktop-break, .chapter-heading .phone-break { display: inline; }
  .hero-title { font-size: 36px; }
  .chapter-heading h2 { font-size: 34px; }
  .project h3 { font-size: 35px; }
  .project-small h3 { font-size: 31px; }
  .poster-en { font-size: 42px; }
  .note-poster-dark .poster-en { font-size: 38px; }
  .note-poster h3 { font-size: 31px; }
  .footer-statement p { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero-title .title-line > span { opacity: 1; transform: none; }
  .portrait-motion { transition: none !important; transform: none !important; }
}
