:root {
  color-scheme: dark;
  --bg: #0a0e1e;
  --text: #edf2fa;
  --muted: #bcc8d9;
  --quiet: #91a2bc;
  --cyan: #82d5e6;
  --amber: #e4ad82;
  --brand-dot: #dce4ef;
  --brand-cyan-soft: #addce8;
  --line: rgba(169, 190, 219, .18);
  --line-strong: rgba(169, 190, 219, .32);
  --rail-space: 180px;
  --gutter: clamp(24px, 5vw, 82px);
}

body:not(.page-home) { --rail-space: 0px; display: flex; min-height: 100svh; flex-direction: column; }

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--cyan); color: #071023; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.canvas { width: min(calc(100% - var(--gutter) * 2), 1120px); margin-inline: auto; }
main, .site-footer { position: relative; z-index: 1; }
main { margin-right: var(--rail-space); }
body:not(.page-home) > main { flex: 1 0 auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 15px; transform: translateY(-160%); background: var(--cyan); color: var(--bg); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.site-background { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 72% 12%, rgba(43, 58, 95, .2), transparent 46%), radial-gradient(ellipse at 9% 86%, rgba(24, 76, 100, .1), transparent 52%); }
.page-home .site-background { --cool-x: 76%; --cool-y: 38%; --warm-x: 81%; --warm-y: 83%; background: radial-gradient(ellipse 47% 57% at var(--cool-x) var(--cool-y), rgba(24, 106, 132, .28), transparent 76%), radial-gradient(ellipse 36% 45% at var(--warm-x) var(--warm-y), rgba(157, 91, 45, .08), transparent 74%), radial-gradient(ellipse 59% 68% at 65% 74%, rgba(24, 48, 91, .3), transparent 80%), linear-gradient(115deg, #050918 4%, #081123 58%, #060c1b); }
.page-home .site-background::before { position: absolute; inset: 0; content: ''; background: radial-gradient(ellipse 38% 58% at 47% 55%, rgba(2, 7, 19, .36), transparent 78%), radial-gradient(ellipse 28% 24% at 85% 18%, rgba(67, 119, 148, .1), transparent 82%); pointer-events: none; }
.page-home .site-background::after { position: absolute; z-index: 2; inset: 0; content: ''; background: linear-gradient(90deg, rgba(7, 11, 24, .76), rgba(7, 11, 24, .52) 35%, rgba(7, 11, 24, .12) 72%, rgba(7, 11, 24, .32)); pointer-events: none; }
.particle-canvas { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; }
.cursor-trail-canvas { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.page-home .content-section { text-shadow: 0 2px 5px #070b18, 0 0 18px #070b18; }
@media (max-width: 680px) {
  .page-home .site-background { --cool-x: 68%; --cool-y: 24%; --warm-x: 82%; --warm-y: 69%; background: radial-gradient(ellipse 88% 46% at var(--cool-x) var(--cool-y), rgba(24, 106, 132, .25), transparent 78%), radial-gradient(ellipse 72% 38% at var(--warm-x) var(--warm-y), rgba(157, 91, 45, .055), transparent 76%), linear-gradient(160deg, #061023, #050918 78%); }
  .page-home .site-background::before { background: radial-gradient(ellipse 62% 42% at 43% 59%, rgba(2, 7, 19, .29), transparent 78%), radial-gradient(ellipse 52% 23% at 86% 15%, rgba(67, 119, 148, .095), transparent 82%); }
  .page-home .site-background::after { background: linear-gradient(180deg, rgba(7, 11, 24, .08), rgba(7, 11, 24, .16) 25%, rgba(7, 11, 24, .71) 43%, rgba(7, 11, 24, .74) 80%, rgba(7, 11, 24, .38)); }
}

@media (hover: none), (pointer: coarse) {
  .cursor-trail-canvas { display: none; }
}

.site-chrome { position: relative; z-index: 30; }
.menu-toggle { display: none; }
.site-nav { position: fixed; z-index: 35; top: 50%; right: 28px; display: flex; width: 120px; flex-direction: column; padding: 12px 0; transform: translateY(-50%); }
.nav-form { margin: 0; }
.nav-link { position: relative; display: grid; width: 100%; min-height: 57px; grid-template-columns: 20px 1fr 9px; align-items: center; gap: 6px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); text-align: left; cursor: pointer; transition: color .22s ease, padding-left .22s ease; }
.nav-link:hover, .nav-link[aria-current] { padding-left: 5px; color: var(--text); }
.nav-number { font: 650 11px/1 "Avenir Next", sans-serif; letter-spacing: .04em; color: var(--quiet); }
.nav-label { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-node { width: 5px; height: 5px; border: 1px solid var(--quiet); border-radius: 50%; }
.nav-link[aria-current] .nav-number { color: var(--cyan); }
.nav-link[aria-current] .nav-node { width: 7px; height: 7px; border-color: var(--cyan); background: var(--cyan); }
.nav-liquid { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; }
.site-nav.is-liquid-moving .nav-liquid { opacity: 1; }
.site-nav.is-liquid-moving .nav-link[aria-current] .nav-node { opacity: .35; }
.nav-liquid-thread { fill: var(--cyan); opacity: .58; }
.nav-liquid-drop { fill: var(--cyan); filter: drop-shadow(0 0 5px rgba(130, 213, 230, .55)); }

.accent { color: var(--quiet); }

/* The brand is the first reading target on the left. */
.home-hero { position: relative; display: flex; width: calc(100% + var(--rail-space)); min-height: 100svh; flex-direction: column; justify-content: center; overflow: hidden; }
.home-hero .canvas { width: min(calc(100% - var(--rail-space) - var(--gutter) * 2), 1120px); transform: translateX(-90px); }
.home-hero-inner { position: relative; z-index: 2; padding-block: 175px 150px; }
.home-hero h1 { position: relative; width: max-content; max-width: 100%; margin: 0 0 26px; font: 750 clamp(66px, 9.2vw, 154px)/.97 "Avenir Next", "Helvetica Neue", sans-serif; letter-spacing: -.105em; white-space: nowrap; }
.living-brand { position: relative; }
.brand-canvas { position: absolute; inset: 0; display: none; width: 100%; height: 100%; pointer-events: none; }
.js-ready .living-brand:not(.brand-ready):not(.brand-fallback) .brand-word { color: transparent; }
.living-brand.brand-ready .brand-word { color: transparent; user-select: text; }
.living-brand.brand-ready .brand-word::selection { background: rgba(130, 213, 230, .27); color: var(--text); }
.living-brand.brand-ready .brand-canvas { display: block; }
.living-brand.brand-selecting .brand-word { color: var(--text); }
.living-brand.brand-selecting .brand-canvas { display: none; }
.home-manifesto { max-width: 720px; margin: 0; font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.55; letter-spacing: 0; text-wrap: balance; }
.home-identities { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.home-identities li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 46px; }
.home-hero-actions .direction-form { margin: 0; }
.direction-link { display: inline-flex; width: max-content; min-height: 64px; align-items: center; gap: 17px; padding: 0 32px 0 0; border: 0; border-top: 1px solid var(--line-strong); background: none; color: var(--text); font-size: 15px; font-weight: 650; cursor: pointer; }
.direction-link--secondary { color: var(--muted); border-top-color: var(--line); }
.direction-link--secondary:hover { color: var(--text); border-top-color: var(--cyan); }
.direction-arrow { display: grid; width: 34px; height: 34px; place-items: center; color: var(--cyan); font-size: 25px; transition: transform .25s ease; }
.direction-link:hover .direction-arrow { transform: translate(3px, -3px); }
.home-hero-bottom { position: absolute; right: 0; bottom: 31px; left: 0; z-index: 2; display: flex; justify-content: flex-end; color: #91a4c4; font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; letter-spacing: .04em; }
.explore-button { display: none; min-height: 44px; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: #c2d3ed; font: inherit; letter-spacing: inherit; cursor: pointer; }
.js-ready .explore-button { display: inline-flex; }
.explore-button span { color: var(--cyan); font-size: 20px; animation: explore-breathe 2.8s ease-in-out infinite; }
.explore-button:hover { color: var(--text); }
.explore-button:hover span { animation-play-state: paused; }
@keyframes explore-breathe {
  0%, 100% { opacity: .55; transform: translateY(-2px); }
  50% { opacity: 1; transform: translateY(4px); }
}

.content-section { padding-top: 145px; }
.page-home .content-section { display: flex; min-height: 100svh; flex-direction: column; justify-content: center; padding-block: 65px; }
.page-home .home-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; column-gap: clamp(40px, 6vw, 90px); }
.home-about .section-heading { grid-column: 1 / -1; }
.home-about .about-intro { align-self: center; max-width: 460px; margin: 0; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.75; }
.home-about .perspective-list { align-self: start; margin-top: 0; }
.home-about .perspective-list > div { min-height: 112px; grid-template-columns: 100px 1fr; gap: 18px; }
.home-about .perspective-list h3 { font-size: 26px; }
.home-now .section-heading { margin-bottom: 28px; }
.home-evidence .section-heading { margin-bottom: 30px; }
.home-evidence .small-direction { align-self: flex-start; margin-top: 14px; }
.home-work-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.page-home .contact-section { padding-block: 70px; }
.section-heading { margin-bottom: 45px; }
.section-heading-line { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 3.9vw, 48px); font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.section-heading-line > p { max-width: 300px; margin: 0 0 5px; color: var(--muted); font-size: 16px; text-align: right; }
.home-preview-list { display: grid; width: 100%; gap: 16px; }
.home-preview-group { display: grid; grid-template-columns: repeat(auto-fit, 220px); justify-content: center; gap: 16px; }
.home-preview-entry { display: flex; min-width: 0; height: 174px; flex-direction: column; padding: 13px 15px; border: 1px solid var(--line-strong); border-top: 2px solid var(--cyan); border-radius: 15px; background: linear-gradient(145deg, rgba(23, 49, 69, .77), rgba(12, 21, 40, .88) 65%); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.home-preview-entry--project { height: 150px; padding: 16px; }
.home-preview-entry--article { border-top-color: var(--amber); background: linear-gradient(145deg, rgba(48, 40, 51, .72), rgba(12, 21, 40, .88) 65%); }
.home-preview-entry:hover { border-color: var(--cyan); transform: translateY(-3px); }
.home-preview-entry--article:hover { border-color: var(--amber); }
.home-preview-entry:focus-visible { transform: translateY(-3px); }
.home-preview-top, .home-preview-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.home-preview-kind { color: var(--cyan); font-size: 10px; font-weight: 650; }
.home-preview-entry--article .home-preview-kind { color: var(--amber); }
.home-preview-meta { color: var(--quiet); font-size: 10px; line-height: 1.25; }
.home-preview-meta { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.home-preview-copy { display: block; flex: 1; min-width: 0; min-height: 0; padding-block: 7px 4px; }
.home-preview-entry--project .home-preview-copy { padding-block: 0 4px; }
.home-preview-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.25; overflow-wrap: anywhere; }
.home-preview-entry--project .home-preview-copy strong { font-size: 22px; }
.home-preview-copy > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.home-preview-entry--project .home-preview-copy > span { margin-top: 7px; font-size: 12px; line-height: 1.4; }
.home-preview-action { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--cyan); font-size: 11px; font-weight: 650; white-space: nowrap; }
.home-preview-entry--article .home-preview-action { color: var(--amber); }
.home-preview-arrow { font-size: 15px; line-height: 1; transition: transform .2s ease; }
.home-preview-entry:hover .home-preview-arrow, .home-preview-entry:focus-visible .home-preview-arrow { transform: translate(3px, -3px); }
.home-evidence { padding-bottom: 25px; }
.small-direction { display: inline-flex; min-height: 50px; align-items: center; gap: 14px; margin-top: 24px; border-bottom: 1px solid var(--line-strong); color: var(--cyan); font-size: 14px; font-weight: 650; }
.small-direction:hover { border-color: var(--cyan); color: var(--text); }
.perspective-list { border-top: 1px solid var(--line-strong); }
.perspective-list > div { display: grid; min-height: 145px; grid-template-columns: 190px 1fr; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); }
.perspective-list h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: 0; }
.perspective-list p { margin: 0; color: var(--muted); font-size: 16px; }
.signal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.signal-entry { display: grid; min-height: 135px; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 18px; padding-block: 20px; border-top: 1px solid var(--line); }
.signal-mark { grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 7px; background: radial-gradient(circle at 4px 10px, var(--cyan) 0 3px, transparent 3.5px), radial-gradient(circle at 14px 3px, rgba(220, 228, 239, .55) 0 2px, transparent 2.5px), radial-gradient(circle at 16px 15px, rgba(130, 213, 230, .32) 0 1.5px, transparent 2px); }
.signal-entry h3 { grid-column: 2; margin: 0 0 6px; font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.signal-entry p { grid-column: 2; max-width: 35ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.signal-entry:last-child { min-height: 100px; grid-column: 1 / -1; grid-template-columns: 20px minmax(160px, .35fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; border-bottom: 1px solid var(--line); }
.signal-entry:last-child .signal-mark { grid-row: 1; margin-top: 0; }
.signal-entry:last-child h3 { margin-bottom: 0; }
.signal-entry:last-child p { grid-column: 3; max-width: none; }
.work-header { padding-block: 145px 38px; }
.work-header-label { margin: 0 0 12px; color: var(--cyan); font-size: 13px; font-weight: 650; }
.work-header-label a:hover { color: var(--text); }
.work-header h1 { margin: 0 0 13px; font-size: clamp(44px, 4.5vw, 60px); font-weight: 600; line-height: 1.2; }
.work-header > p:last-of-type { max-width: 630px; margin: 0; color: var(--muted); font-size: 17px; }
.work-projects { padding-bottom: 130px; }
.project-card-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr); align-items: start; gap: 24px; }
.project-card { display: flex; min-width: 0; min-height: 310px; flex-direction: column; overflow: hidden; padding: 29px 31px 24px; border: 1px solid var(--line-strong); background: linear-gradient(150deg, rgba(24, 49, 67, .8), rgba(13, 24, 42, .96)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); transition: transform .24s ease, border-color .24s ease; }
.project-card:nth-child(even) { margin-top: 40px; background: linear-gradient(145deg, rgba(44, 38, 47, .92), rgba(17, 25, 43, .98)); clip-path: polygon(0 24px, 24px 0, 100% 0, 100% 100%, 0 100%); }
.project-card:hover { border-color: var(--cyan); transform: translateY(-5px); }
.project-card:nth-child(even):hover { border-color: var(--amber); }
.project-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: -5px; }
.project-card:nth-child(even):focus-visible { outline-color: var(--amber); }
.project-card-source { margin-bottom: 25px; color: var(--cyan); font-size: 12px; font-weight: 650; }
.project-card:nth-child(even) .project-card-source { color: var(--amber); }
.project-card-title { margin: 0 0 12px; font-size: clamp(31px, 3vw, 36px); font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.project-card-description { max-width: 42ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.project-card-action { display: inline-flex; min-height: 44px; align-items: center; align-self: flex-end; gap: 11px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-strong); color: var(--cyan); font-size: 13px; font-weight: 650; }
.project-card:nth-child(even) .project-card-action { color: var(--amber); }
.project-card-action span { font-size: 19px; transition: transform .24s ease; }
.project-card:hover .project-card-action span { transform: translate(3px, -3px); }
.project-detail { max-width: 1040px; padding-bottom: 120px; }
.project-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: end; gap: clamp(36px, 7vw, 100px); padding: 20px 0 100px; }
.project-detail-eyebrow { margin: 0 0 22px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.project-detail h1 { margin: 0 0 24px; font: 650 clamp(56px, 7vw, 88px)/1.08 "Avenir Next", "Helvetica Neue", sans-serif; letter-spacing: -.055em; overflow-wrap: anywhere; }
.project-detail-intro { max-width: 30ch; margin: 0; color: var(--text); font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.65; text-wrap: pretty; }
.project-detail-github { display: inline-flex; min-height: 48px; align-items: center; margin-top: 36px; padding: 0 20px; border: 1px solid var(--cyan); color: var(--cyan); font-size: 14px; font-weight: 650; transition: background .2s ease, color .2s ease; }
.project-detail-github:hover { background: var(--cyan); color: var(--bg); }
.project-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.project-detail-live-frame { position: relative; display: inline-flex; overflow: hidden; padding: 1px; border-radius: 4px; background: rgba(84, 228, 230, .28); box-shadow: 0 9px 28px rgba(13, 208, 213, .1); }
.project-detail-live-frame::before { position: absolute; inset: -155%; background: conic-gradient(from 0deg, transparent 0 42%, rgba(84, 228, 230, .22) 46%, #aafcff 50%, #5eaaff 53%, transparent 59%); content: ''; animation: project-live-orbit 4.8s linear infinite; }
.project-detail-live-frame:is(:hover, :focus-within)::before { animation-duration: 2s; }
.project-detail-action { position: relative; z-index: 1; display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 11px; box-sizing: border-box; padding: 0 20px; border-radius: 3px; font-size: 13px; font-weight: 650; letter-spacing: .015em; }
.project-detail-action--live { color: var(--text); background: linear-gradient(135deg, #102b40, #0b1b2b); box-shadow: inset 0 0 22px rgba(84, 228, 230, .07); }
.project-detail-action--live:hover { background: linear-gradient(135deg, #153951, #0c2234); box-shadow: inset 0 0 28px rgba(84, 228, 230, .13); }
.project-detail-action--github { border: 1px solid rgba(159, 184, 204, .34); color: #b5c7d5; background: rgba(10, 25, 39, .5); }
.project-detail-action--github:hover { border-color: rgba(84, 228, 230, .68); color: var(--text); background: rgba(84, 228, 230, .07); }
.project-detail-action:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.project-detail-action-arrow { font-size: 17px; transition: transform .2s ease; }
.project-detail-action:hover .project-detail-action-arrow, .project-detail-action:focus-visible .project-detail-action-arrow { transform: translate(3px, -3px); }
.project-detail-end-links { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.project-detail-end-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--cyan); font-size: 14px; font-weight: 650; }
.project-detail-end-link:hover, .project-detail-end-link:focus-visible { color: var(--text); }
@keyframes project-live-orbit { to { transform: rotate(360deg); } }
.project-detail-facts { border-top: 1px solid var(--line-strong); }
.project-detail-facts > div { display: grid; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.project-detail-facts span { color: var(--quiet); font-size: 12px; }
.project-detail-facts strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.project-detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; padding: 0 0 64px; }
.project-detail-shot { margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(12, 21, 40, .82); }
.project-detail-shot img { display: block; width: 100%; height: auto; }
.project-detail-shot figcaption { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.project-detail-section { display: grid; grid-template-columns: minmax(190px, .37fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); padding: 52px 0 70px; border-top: 1px solid var(--line-strong); }
.project-detail-section-label > span { color: var(--cyan); font: 650 11px/1.4 "Avenir Next", sans-serif; letter-spacing: .11em; }
.project-detail-section h2 { margin: 13px 0 0; font-size: clamp(27px, 3vw, 37px); font-weight: 600; line-height: 1.35; }
.project-detail-problem > p { max-width: 36em; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.9; }
.project-detail-work { margin: 0; padding: 0; list-style: none; }
.project-detail-work li { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 18px; padding: 0 0 25px; }
.project-detail-work li + li { padding-top: 25px; border-top: 1px solid var(--line); }
.project-detail-work-number { padding-top: 5px; color: var(--cyan); font: 650 12px/1.5 "Avenir Next", sans-serif; }
.project-detail-work h3 { margin: 0 0 7px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.project-detail-work p { max-width: 40em; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.project-detail-results { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.project-detail-results li { position: relative; padding-left: 24px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.project-detail-results li::before { position: absolute; top: .85em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); content: ''; }
.project-detail-next { max-width: 40em; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.8; }
.project-detail-next strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 15px; font-weight: 650; }
.project-detail-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.project-detail-end a { display: inline-flex; min-height: 44px; align-items: center; color: var(--cyan); font-size: 14px; font-weight: 650; }
.project-detail-end a:hover { color: var(--text); }
.article-index { padding-bottom: 130px; }
.article-index-header { padding-block: 104px 32px; }
.article-index-header > a { display: inline-flex; min-height: 44px; align-items: center; color: var(--cyan); font-size: 13px; font-weight: 650; }
.article-index-header > a:hover { color: var(--text); }
.series-cover-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr); align-items: start; gap: 24px; }
.series-cover { position: relative; display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); background: #101e32; color: var(--text); transition: transform .24s ease, border-color .24s ease; }
.series-cover:hover { transform: translateY(-5px); }
.series-cover:focus-visible { outline: 3px solid var(--cyan); outline-offset: -5px; }
.series-cover--ai-basics { display: grid; min-height: 410px; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.series-cover--ai-testing { min-height: 395px; flex-direction: column; margin-top: 66px; clip-path: polygon(0 27px, 27px 0, 100% 0, 100% 100%, 0 100%); }
.series-cover--ai-basics:hover, .series-cover--ai-basics:focus-visible { border-color: var(--cyan); }
.series-cover--ai-testing:hover, .series-cover--ai-testing:focus-visible { border-color: var(--amber); }
.series-cover-image { display: block; min-width: 0; overflow: hidden; background: #13273a; }
.series-cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.series-cover:hover .series-cover-image img { transform: scale(1.04); }
.series-cover--ai-basics .series-cover-image { grid-column: 2; grid-row: 1; }
.series-cover--ai-testing .series-cover-image { height: 172px; flex: none; background: #262738; }
.series-cover-content { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 30px 31px 27px; background: linear-gradient(150deg, rgba(24, 49, 67, .72), rgba(13, 24, 42, .96)); }
.series-cover--ai-basics .series-cover-content { grid-column: 1; grid-row: 1; }
.series-cover--ai-testing .series-cover-content { padding-top: 22px; background: linear-gradient(145deg, rgba(44, 38, 47, .92), rgba(17, 25, 43, .98)); }
.series-cover-number { margin-bottom: 28px; color: var(--cyan); font: 650 12px/1.3 "Avenir Next", -apple-system, sans-serif; letter-spacing: .1em; }
.series-cover--ai-testing .series-cover-number { margin-bottom: 10px; color: var(--amber); }
.series-cover-title { display: block; margin: 0 0 13px; font-size: clamp(31px, 3.2vw, 42px); font-weight: 650; line-height: 1.2; }
.series-cover--ai-testing .series-cover-title { font-size: clamp(29px, 2.7vw, 36px); }
.series-cover-description { display: block; max-width: 28ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.series-cover-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.series-cover-status { color: var(--quiet); font-size: 12px; white-space: nowrap; }
.series-cover-action { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; border-top: 1px solid var(--line-strong); color: var(--cyan); font-size: 13px; font-weight: 650; white-space: nowrap; }
.series-cover--ai-testing .series-cover-action { color: var(--amber); }
.series-cover-action span { font-size: 19px; transition: transform .24s ease; }
.series-cover:hover .series-cover-action span { transform: translate(3px, -3px); }

.article-refresh { display: none; min-height: 36px; align-items: center; gap: 7px; margin: 10px 0 22px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(130, 213, 230, .05); color: var(--cyan); font: inherit; font-size: 13px; cursor: pointer; }
.js-ready .article-refresh { display: inline-flex; }
.article-refresh:hover { border-color: var(--cyan); background: rgba(130, 213, 230, .1); color: var(--text); }
.article-refresh svg { flex: none; }
.article-shell [hidden] { display: none !important; }
.article-shell { --left-rail: var(--left-rail-width, clamp(245px, 18vw, 370px)); --right-rail: clamp(235px, 19vw, 390px); display: grid; width: 100%; min-height: 100dvh; grid-template-columns: var(--left-rail) 1px minmax(0, 1fr) 1px var(--right-rail); grid-template-areas: "left left-edge body right-edge right"; align-items: stretch; }
.article-shell[data-left-open="false"] { --left-rail: 0px; }
.article-shell[data-right-open="false"] { --right-rail: 0px; }
.article-titles, .article-toc { position: sticky; top: 0; height: 100dvh; min-width: 0; overflow-y: auto; scrollbar-width: thin; }
.article-titles { grid-area: left; padding: 34px 24px 50px clamp(24px, 3vw, 54px); }
.article-toc { grid-area: right; padding: 34px clamp(24px, 3vw, 54px) 50px 24px; }
.article-titles h2, .article-toc h2 { margin: 27px 0 12px; font-size: 18px; font-weight: 650; }
.article-toc h2 { margin-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.article-back-link { color: var(--muted); font-size: 13px; }
.article-back-link:hover { color: var(--cyan); }
.article-series-name { margin: 0 0 30px; color: var(--cyan); font-size: 14px; }
.article-titles label, .article-titles input { display: none; }
.js-ready .article-titles label, .js-ready .article-titles input { display: block; }
.article-titles label { color: var(--muted); font-size: 13px; }
.article-titles input { width: 100%; min-height: 40px; margin: 7px 0 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(9, 17, 33, .85); color: var(--text); font: inherit; font-size: 14px; }
.article-titles input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.article-intro-link, .article-title-group li a { display: block; overflow: hidden; padding: 11px 10px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.article-intro-link { border-top: 1px solid var(--line); }
.article-intro-link:hover, .article-title-group li a:hover { border-left-color: var(--cyan); color: var(--text); background: rgba(130, 213, 230, .08); }
.article-intro-link[aria-current], .article-title-group li a[aria-current] { border-left-color: transparent; background: none; color: var(--cyan); font-weight: 650; }
.article-title-group ul { margin: 0; padding: 0; list-style: none; }
.article-title-group li { border-top: 1px solid var(--line); }
.article-tree-node { min-width: 0; }
.article-tree-depth-1 { border-top: 1px solid var(--line); }
.article-tree-depth-2 { margin-left: 14px; }
.article-tree-node > ul { margin-left: 14px; }
.article-tree-node summary { display: flex; min-width: 0; align-items: center; gap: 8px; overflow: hidden; padding: 11px 10px; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; list-style: none; }
.article-tree-node summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-tree-node summary::-webkit-details-marker { display: none; }
.article-tree-node summary::before, .article-toc-group summary::before { --article-chevron: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M7%202l10%2010L7%2022'%20fill='none'%20stroke='white'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E"); display: inline-block; flex: none; width: 12px; height: 12px; content: ''; background: var(--cyan); -webkit-mask: var(--article-chevron) center / contain no-repeat; mask: var(--article-chevron) center / contain no-repeat; transition: transform .18s ease; }
.article-tree-node[open] > summary::before { transform: rotate(90deg); }
.article-tree-node summary:hover { color: var(--cyan); }
.article-tree-node summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.article-titles-empty, .article-search-empty, .article-toc-empty { color: var(--quiet); font-size: 13px; }
.article-page { grid-area: body; width: 100%; min-width: 0; padding: 52px clamp(32px, 5vw, 92px) 110px; }
.reader-toolbar { display: none; justify-content: flex-end; gap: 8px; min-height: 34px; margin-bottom: 10px; }
.js-ready .reader-toolbar { display: flex; }
.reader-theme-toggle, .reader-focus-toggle { min-height: 34px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(16, 30, 50, .86); color: var(--cyan); font: inherit; font-size: 12px; cursor: pointer; }
.reader-theme-toggle { display: grid; flex: none; width: 38px; height: 38px; place-items: center; padding: 0; color: #d5deeb; }
.reader-theme-icon { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reader-theme-icon--moon { display: none; }
.reader-focus-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.reader-focus-icon { display: block; flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reader-focus-icon--exit, .reader-focus-toggle[aria-pressed="true"] .reader-focus-icon--enter { display: none; }
.reader-focus-toggle[aria-pressed="true"] .reader-focus-icon--exit { display: block; }
.reader-theme-toggle:hover, .reader-focus-toggle:hover { border-color: var(--cyan); color: var(--text); }
.js-ready .article-shell[data-focus-mode="true"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
.js-ready .article-shell[data-focus-mode="true"] .article-titles, .js-ready .article-shell[data-focus-mode="true"] .article-toc, .js-ready .article-shell[data-focus-mode="true"] .article-edge, .js-ready .article-shell[data-focus-mode="true"] .article-backdrop { display: none; }
.article-shell[data-focus-mode="true"] .article-page { max-width: 1000px; justify-self: center; padding-top: 92px; }
.article-shell[data-focus-mode="true"] .reader-toolbar { position: fixed; top: 18px; right: 22px; z-index: 30; height: auto; margin: 0; }
.article-shell[data-focus-mode="true"] .reader-toolbar button { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.reader-back-to-top { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 55; display: flex; width: 50px; height: 50px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(16, 30, 50, .96); color: var(--cyan); font: inherit; font-size: 22px; line-height: 1; box-shadow: 0 9px 28px rgba(0, 0, 0, .25); cursor: pointer; }
.reader-back-to-top span { margin-top: 2px; font-size: 10px; }
.reader-back-to-top:hover { border-color: var(--cyan); color: var(--text); }
.article-kicker { margin: 0 0 15px; color: var(--cyan); font-size: 13px; }
.article-kicker a:hover { color: var(--text); }
.article-page h1 { margin: 0 0 20px; font-size: clamp(29px, 2.4vw, 39px); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
:root:not([data-reader-theme="day"]) .article-page h1 { color: #d5deeb; }
.article-source { margin: 0 0 28px; color: var(--quiet); font-size: 13px; }
.series-intro-body { min-height: 60vh; padding-top: 30px; }
.series-intro-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); align-items: center; gap: 20px; }
.series-intro-hero > p { margin: 0; max-width: 650px; font-size: 18px; }
.series-intro-image { display: block; width: 100%; max-height: 230px; object-fit: contain; opacity: .84; }
.series-reading-paths, .series-guide-overview { margin-top: 48px; }
.article-body .series-reading-paths h2, .article-body .series-guide-overview h2 { margin: 0 0 9px; font-size: 23px; }
.series-reading-paths > p, .series-guide-overview > p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.series-reading-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article-body .series-reading-options a { display: flex; min-width: 0; min-height: 105px; flex-direction: column; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(130, 213, 230, .05); text-decoration: none; }
.series-reading-options a:hover { border-color: var(--cyan); }
.series-reading-options span { color: var(--cyan); font-size: 12px; }
.series-reading-options strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--text); font-size: 16px; line-height: 1.5; }
.series-guide-overview { border-top: 1px solid var(--line-strong); padding-top: 36px; }
.series-guide-group { margin: 23px 0 0; }
.series-guide-group .series-guide-group { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); }
.article-body .series-guide-group h3, .article-body .series-guide-group h4 { display: flex; align-items: baseline; gap: 11px; margin: 0 0 12px; color: var(--text); }
.series-guide-group h3 { font-size: 19px; }
.series-guide-group h4 { font-size: 16px; }
.series-guide-group small { color: var(--quiet); font-size: 11px; font-weight: 400; white-space: nowrap; }
.series-guide-group-intro { margin: 0 0 12px !important; color: var(--muted); font-size: 13px; line-height: 1.6; }
.series-guide-article { display: block; margin: 8px 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(14, 27, 45, .55); text-decoration: none !important; }
.series-guide-article:hover { border-color: var(--cyan); background: rgba(130, 213, 230, .06); }
.series-guide-article strong { display: block; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.series-guide-article span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.series-pending { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.series-pending span { color: var(--amber); font-size: 13px; font-weight: 650; }
.series-pending p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.article-toc-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.article-toc-heading h2 { flex: none; margin: 0; padding: 0; border: 0; white-space: nowrap; }
.article-toc-actions { display: flex; gap: 8px; }
.article-toc-actions button { padding: 3px 0; border: 0; background: none; color: var(--cyan); font-size: 12px; white-space: nowrap; cursor: pointer; }
.article-toc-actions button:hover { color: var(--text); }
.article-toc nav { margin-top: 10px; }
.article-toc-link, .article-toc-start { display: block; padding: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-toc-link:hover, .article-toc-start:hover { color: var(--cyan); }
.article-toc-link[aria-current="location"], .article-toc-group summary[aria-current="location"] { color: var(--cyan); font-weight: 650; }
.article-toc-group { margin: 0; padding: 0; }
.article-toc-group.article-toc-level-2 { border-bottom: 1px solid var(--line); }
.article-toc-group summary { padding: 9px 0; color: var(--text); font-size: 13px; line-height: 1.5; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; list-style: none; }
.article-toc-group summary::-webkit-details-marker { display: none; }
.article-toc-group summary::before { margin-right: 8px; vertical-align: -4px; }
.article-toc-group[open] > summary::before { transform: rotate(90deg); }
.article-toc-group > .article-toc-start, .article-toc-group > .article-toc-link, .article-toc-group > .article-toc-group { margin-left: 14px; }
.article-toc-group.article-toc-level-3 > .article-toc-link { margin-left: 17px; }
.article-edge { position: sticky; top: 0; z-index: 22; height: 100dvh; border-left: 1px solid var(--line-strong); }
.article-edge--left { grid-area: left-edge; }
.article-edge--right { grid-area: right-edge; }
.article-edge-resize { position: absolute; top: 0; bottom: 0; left: -6px; display: none; width: 13px; cursor: col-resize; touch-action: none; }
.js-ready .article-shell[data-left-open="true"] .article-edge-resize { display: block; }
.article-edge-resize:hover, .article-edge-resize:focus-visible { background: rgba(130, 213, 230, .16); }
.reader-resizing, .reader-resizing * { cursor: col-resize !important; user-select: none !important; }
.article-edge-toggle { position: absolute; top: 50%; left: 50%; z-index: 1; display: none; width: 30px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; transform: translate(-50%, -50%); background: #101a2d; color: var(--cyan); font: 600 25px/1 Arial, sans-serif; cursor: pointer; }
.js-ready .article-edge-toggle { display: grid; }
.article-edge-toggle:hover { border-color: var(--cyan); background: #182942; }
.article-shell[data-left-open="false"] .article-edge--left .article-edge-toggle { transform: translate(0, -50%); }
.article-shell[data-right-open="false"] .article-edge--right .article-edge-toggle { transform: translate(-100%, -50%); }
.article-arrow-when-closed { display: none; }
.article-shell[data-left-open="false"] .article-edge--left .article-arrow-when-open, .article-shell[data-right-open="false"] .article-edge--right .article-arrow-when-open { display: none; }
.article-shell[data-left-open="false"] .article-edge--left .article-arrow-when-closed { display: inline-block; animation: article-arrow-nudge-right 2.4s ease-in-out infinite; }
.article-shell[data-right-open="false"] .article-edge--right .article-arrow-when-closed { display: inline-block; animation: article-arrow-nudge-left 2.4s ease-in-out infinite; }
.article-shell .article-edge-toggle:is(:hover, :focus-visible) .article-arrow-when-closed { animation: none; }
@keyframes article-arrow-nudge-right {
  0%, 60%, 100% { transform: translateX(0); opacity: .78; }
  75% { transform: translateX(4px); opacity: 1; }
}
@keyframes article-arrow-nudge-left {
  0%, 60%, 100% { transform: translateX(0); opacity: .78; }
  75% { transform: translateX(-4px); opacity: 1; }
}
.js-ready .article-shell[data-left-open="false"] .article-titles, .js-ready .article-shell[data-right-open="false"] .article-toc { display: none; }
.reader-unavailable { padding-top: 24px; border-top: 1px solid var(--line-strong); color: var(--muted); }
.reader-unavailable p { margin: 0 0 9px; }
.reader-original { display: inline-flex; min-height: 43px; align-items: center; margin-top: 12px; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-size: 14px; font-weight: 650; }
.reader-original:hover { color: var(--text); }
.article-attribution { margin: 42px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 13px; }
.article-attribution .reader-original { min-height: 0; margin: 0; font-size: inherit; }
.article-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.article-neighbor { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.article-neighbor--next { grid-column: 2; text-align: right; }
.article-neighbor:hover { border-color: var(--cyan); background: rgba(130, 213, 230, .05); }
.article-neighbor span { color: var(--cyan); font-size: 12px; }
.article-neighbor strong { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.article-body { min-width: 0; border-top: 1px solid var(--line-strong); color: #b6c3d4; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { scroll-margin-top: 24px; color: var(--text); }
.article-body h2 { margin: 50px 0 15px; font-size: 27px; }
.article-body h3 { margin: 35px 0 12px; font-size: 21px; }
.article-body h4, .article-body h5, .article-body h6 { margin: 26px 0 10px; font-size: 18px; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote { margin: 0 0 24px; }
.article-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; }
.js-ready .article-body:not(.series-intro-body) img { cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.js-ready .article-body:not(.series-intro-body) img:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.article-code-block { position: relative; margin: 0 0 24px; }
.article-code-block pre { margin: 0; padding-top: 40px; }
.article-code-copy { position: absolute; top: 8px; right: 10px; z-index: 2; display: none; min-height: 26px; align-items: center; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(16, 30, 50, .88); color: var(--cyan); font: inherit; font-size: 12px; line-height: 1.3; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.js-ready .article-code-copy { display: inline-flex; }
.article-code-copy:hover, .article-code-copy[data-copied="true"] { border-color: var(--cyan); background: rgba(130, 213, 230, .14); color: var(--text); }
.reader-lightbox { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: clamp(20px, 4vw, 48px); background: rgba(4, 9, 20, .88); backdrop-filter: blur(6px); }
.reader-lightbox[hidden] { display: none !important; }
.reader-lightbox-close { position: fixed; top: 20px; right: 24px; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(16, 30, 50, .92); color: var(--text); font: 600 24px/1 Arial, sans-serif; cursor: pointer; }
.reader-lightbox-close:hover { border-color: var(--cyan); color: var(--cyan); }
.reader-lightbox-image { display: block; max-width: min(92vw, 1280px); max-height: 82dvh; width: auto; height: auto; border: 1px solid var(--line-strong); border-radius: 8px; background: #0c1526; box-shadow: 0 24px 72px rgba(0, 0, 0, .55); object-fit: contain; }
.reader-lightbox-caption { max-width: 72ch; margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.reader-lightbox-open { overflow: hidden; }
.article-body pre, .article-body table { display: block; max-width: 100%; overflow-x: auto; }
.article-body pre { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #10192b; font-size: 14px; }
.article-body :not(pre) > code { padding: 2px 4px; border-radius: 4px; background: rgba(169, 190, 219, .13); font-size: .9em; }
.article-body th, .article-body td { padding: 9px 13px; border: 1px solid var(--line); }
.article-body blockquote { padding-left: 18px; border-left: 3px solid var(--cyan); color: var(--muted); }
.article-body:not(.series-intro-body) { --reading-heading: #cbd5e2; --reading-subheading: #a2deeb; --reading-small-heading: #efc5a4; --reading-emphasis: #d4c6b8; --reading-green: #9cdda8; --reading-link: #9fc8fb; --reading-code: #f2b887; --reading-code-bg: rgba(228, 173, 130, .12); --reading-quote-bg: rgba(115, 182, 137, .075); }
.article-body:not(.series-intro-body) h2 { color: var(--reading-heading); }
.article-body:not(.series-intro-body) h3 { padding-left: 13px; border-left: 2px solid var(--cyan); color: var(--reading-subheading); }
.article-body:not(.series-intro-body) h4, .article-body:not(.series-intro-body) h5, .article-body:not(.series-intro-body) h6 { color: var(--reading-small-heading); }
.article-body:not(.series-intro-body) strong { color: var(--reading-emphasis); }
.article-body:not(.series-intro-body) a { color: var(--reading-link); }
.article-body:not(.series-intro-body) a:hover { color: var(--text); }
.article-body:not(.series-intro-body) ul li::marker { color: var(--reading-green); }
.article-body:not(.series-intro-body) ol li::marker { color: var(--reading-small-heading); font-weight: 650; }
.article-body:not(.series-intro-body) :not(pre) > code { background: var(--reading-code-bg); color: var(--reading-code); }
.article-body:not(.series-intro-body) blockquote { padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--reading-green); border-radius: 0 8px 8px 0; background: var(--reading-quote-bg); color: inherit; }
.article-body:not(.series-intro-body) blockquote > :last-child { margin-bottom: 0; }
.article-body:not(.series-intro-body) th { background: var(--reading-quote-bg); color: var(--reading-subheading); }
.article-body:not(.series-intro-body) hr { height: 0; margin: 38px 0; border: 0; border-top: 1px solid var(--line-strong); }

:root[data-reader-theme="day"] { color-scheme: light; --bg: #eef0f4; --text: #444c66; --muted: #59637b; --quiet: #626c82; --cyan: #2869c8; --amber: #b44910; --reader-accent: #20C8A9; --reader-accent-text: #0B7A65; --line: rgba(91, 102, 128, .17); --line-strong: rgba(91, 102, 128, .28); }
:root[data-reader-theme="day"] ::selection { background: var(--reader-accent); color: #123842; }
:root[data-reader-theme="day"] .site-background { background: radial-gradient(ellipse at 72% 12%, rgba(191, 202, 224, .2), transparent 48%), radial-gradient(ellipse at 10% 86%, rgba(182, 206, 196, .14), transparent 52%); }
:root[data-reader-theme="day"] .article-page { background: #fafbfd; }
:root[data-reader-theme="day"] .article-titles, :root[data-reader-theme="day"] .article-toc { background: #eef0f4; }
:root[data-reader-theme="day"] .article-body { color: #515a70; }
:root[data-reader-theme="day"] .article-titles input, :root[data-reader-theme="day"] .article-edge-toggle { background: #fafbfd; }
:root[data-reader-theme="day"] .article-series-name, :root[data-reader-theme="day"] .article-back-link:hover { color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-titles :focus-visible { outline-color: var(--reader-accent); }
:root[data-reader-theme="day"] .article-refresh { border-color: var(--reader-accent); background: rgba(32, 200, 169, .07); color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-refresh:hover { background: rgba(32, 200, 169, .15); }
:root[data-reader-theme="day"] .reader-theme-icon--sun { display: none; }
:root[data-reader-theme="day"] .reader-theme-icon--moon { display: block; }
:root[data-reader-theme="day"] .reader-theme-toggle { border-color: #aebcce; background: #e7ecf3; color: #47516a; }
:root[data-reader-theme="day"] .reader-theme-toggle:hover { border-color: var(--reader-accent); background: rgba(32, 200, 169, .12); color: #47516a; }
:root[data-reader-theme="day"] .reader-focus-toggle, :root[data-reader-theme="day"] .reader-back-to-top { border-color: #aebcce; background: #e7ecf3; color: #47516a; }
:root[data-reader-theme="day"] .reader-focus-toggle { font-weight: 650; }
:root[data-reader-theme="day"] .reader-focus-toggle:hover, :root[data-reader-theme="day"] .reader-back-to-top:hover { border-color: var(--reader-accent); background: rgba(32, 200, 169, .12); color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-edge-toggle { border-color: var(--reader-accent); color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-edge-toggle:hover { border-color: var(--reader-accent); background: rgba(32, 200, 169, .12); }
:root[data-reader-theme="day"] .article-tree-node summary::before, :root[data-reader-theme="day"] .article-toc-group summary::before { background: var(--reader-accent); }
:root[data-reader-theme="day"] .article-intro-link:hover, :root[data-reader-theme="day"] .article-title-group li a:hover { border-left-color: var(--reader-accent); background: rgba(32, 200, 169, .08); }
:root[data-reader-theme="day"] .article-neighbor:hover, :root[data-reader-theme="day"] .series-guide-article:hover { background: rgba(32, 200, 169, .08); }
:root[data-reader-theme="day"] .article-intro-link[aria-current], :root[data-reader-theme="day"] .article-title-group li a[aria-current] { border-left-color: transparent; background: none; color: var(--reader-accent-text); font-weight: 650; }
:root[data-reader-theme="day"] .article-kicker { color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-tree-node summary:hover, :root[data-reader-theme="day"] .article-intro-link:hover, :root[data-reader-theme="day"] .article-title-group li a:hover { color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-toc-actions button, :root[data-reader-theme="day"] .article-toc-actions button:hover, :root[data-reader-theme="day"] .article-toc-link:hover, :root[data-reader-theme="day"] .article-toc-start:hover, :root[data-reader-theme="day"] .article-toc-group summary:hover { color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-toc-link[aria-current="location"], :root[data-reader-theme="day"] .article-toc-group summary[aria-current="location"] { color: var(--reader-accent-text); font-weight: 650; }
:root[data-reader-theme="day"] .article-body .series-reading-options a, :root[data-reader-theme="day"] .series-guide-article { background: #e9edf3; }
:root[data-reader-theme="day"] .article-body pre { background: #eef1f6; }
:root[data-reader-theme="day"] .article-code-copy { border-color: #aebcce; background: #e7ecf3; color: #47516a; }
:root[data-reader-theme="day"] .article-code-copy:hover, :root[data-reader-theme="day"] .article-code-copy[data-copied="true"] { border-color: var(--reader-accent); background: rgba(32, 200, 169, .14); color: var(--reader-accent-text); }
:root[data-reader-theme="day"] .article-body :not(pre) > code { background: #edf2ef; }
:root[data-reader-theme="day"] .article-body:not(.series-intro-body) { --reading-heading: #444c66; --reading-subheading: var(--reader-accent-text); --reading-small-heading: #57627b; --reading-emphasis: #3f455d; --reading-green: var(--reader-accent); --reading-link: #2869c8; --reading-code: #b44910; --reading-code-bg: #edf2ef; --reading-quote-bg: #e9edf3; }
:root[data-reader-theme="day"] .article-body:not(.series-intro-body) h3 { border-left-color: var(--reader-accent); }
:root[data-reader-theme="day"] .article-body:not(.series-intro-body) blockquote { border-color: rgba(32, 200, 169, .28); border-left-color: var(--reader-accent); }
:root[data-reader-theme="day"] .article-body:not(.series-intro-body) blockquote strong { color: var(--reader-accent-text); }
.article-backdrop { display: none; }
.empty-state { padding: 40px 0; color: var(--muted); }
.contact-section { padding-bottom: 145px; }
.social-grid { display: grid; width: min(100%, 520px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.social-entry { position: relative; min-width: 0; }
.social-grid.is-awaiting-reveal .social-entry { opacity: 0; transform: translateY(8px) scale(.96); }
.social-grid.is-revealing .social-entry { animation: social-reveal 300ms cubic-bezier(.22, 1, .36, 1) both; }
.social-grid.is-revealing .social-entry:nth-child(2) { animation-delay: 60ms; }
.social-grid.is-revealing .social-entry:nth-child(3) { animation-delay: 120ms; }
.social-grid.is-revealing .social-entry:nth-child(4) { animation-delay: 180ms; }
@keyframes social-reveal { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.social-trigger { display: grid; width: 100%; aspect-ratio: 1; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.js-ready .social-trigger { animation: social-float 3.6s ease-in-out infinite; }
.social-entry:nth-child(2) .social-trigger { animation-delay: -.6s; }
.social-entry:nth-child(3) .social-trigger { animation-delay: -1.2s; }
.social-entry:nth-child(4) .social-trigger { animation-delay: -1.8s; }
.social-trigger:hover, .social-trigger:focus-visible { animation-play-state: paused; }
@keyframes social-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
.social-icon-face { position: relative; display: grid; width: min(100%, 92px); aspect-ratio: 1; place-items: center; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(12, 23, 43, .7); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.social-logo { display: block; width: 42px; height: 42px; object-fit: contain; filter: brightness(0) invert(1); }
.social-entry-douyin .social-logo { width: 44px; height: 44px; filter: none; }
.social-entry-xiaohongshu .social-logo { transform: scale(1.5); }
.social-trigger:hover .social-icon-face, .social-trigger:focus-visible .social-icon-face, .social-entry-qr.is-open .social-icon-face { border-color: var(--cyan); box-shadow: 0 0 24px rgba(130, 213, 230, .13); transform: translateY(-3px); }
.social-trigger-pending { cursor: default; opacity: .58; }
.social-trigger-pending:hover .social-icon-face, .social-trigger-pending:focus-visible .social-icon-face { border-color: var(--line-strong); box-shadow: none; transform: none; }
.social-pending-tip { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 6; width: max-content; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: #111b31; color: var(--muted); font-size: 12px; line-height: 1.35; box-shadow: 0 10px 28px rgba(0, 0, 0, .32); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%); transition: opacity .18s ease, visibility .18s ease; }
.social-entry:hover .social-pending-tip, .social-entry:focus-within .social-pending-tip, .social-entry.is-open .social-pending-tip { opacity: 1; visibility: visible; }
.social-qr { position: absolute; top: calc(100% - 2px); left: 50%; z-index: 6; width: 190px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: #111b31; box-shadow: 0 18px 48px rgba(0, 0, 0, .36); opacity: 0; visibility: hidden; transform: translateX(-50%); transition: opacity .18s ease, visibility .18s ease; }
.social-qr img { display: block; width: 100%; height: auto; padding: 8px; background: #fff; }
.social-qr span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.social-entry-qr:hover .social-qr, .social-entry-qr:focus-within .social-qr, .social-entry-qr.is-open .social-qr { opacity: 1; visibility: visible; }
.copy-feedback { display: block; width: max-content; max-width: 220px; margin: 6px auto 0; color: var(--cyan); font-size: 13px; text-align: center; }
.copy-feedback:empty { display: none; }
.social-nojs { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.footer-inner { display: flex; min-height: 150px; align-items: center; justify-content: center; padding-block: 34px; }
.footer-inner p { margin: 0; color: var(--quiet); font-size: 13px; text-align: center; }
.page-home .footer-inner p { animation: footer-glow 4.8s ease-in-out infinite; }
@keyframes footer-glow {
  0%, 100% { color: var(--quiet); text-shadow: none; }
  45%, 55% { color: var(--text); text-shadow: 0 0 10px rgba(130, 213, 230, .82), 0 0 26px rgba(130, 213, 230, .46); }
}

@media (max-width: 960px) {
  :root { --rail-space: 0px; --gutter: clamp(20px, 5vw, 40px); }
  main { margin-right: 0; }
  .home-hero .canvas { transform: none; }
  .home-hero-bottom { justify-content: flex-start; }
  .menu-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: none; min-width: 150px; min-height: 54px; align-items: center; gap: 12px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10, 14, 30, .96); color: var(--text); cursor: pointer; }
  .js-ready .menu-toggle { display: flex; }
  .menu-symbol { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
  .menu-label { font-size: 14px; font-weight: 650; }
  .menu-label strong { margin-left: 7px; color: var(--cyan); font: 700 11px/1 "Avenir Next", sans-serif; }
  .site-nav { position: relative; top: auto; right: auto; width: auto; margin: 90px var(--gutter) 25px; padding: 15px 0 10px; transform: none; }
  .js-ready .site-nav { position: fixed; inset: 0; z-index: 45; display: none; width: 100%; height: 100dvh; flex-direction: column; justify-content: center; overflow-y: auto; margin: 0; padding: 50px max(25px, 8vw) 100px; border: 0; background: rgba(10, 14, 30, .985); }
  .js-ready .site-nav.is-open { display: flex; }
  .menu-open { overflow: hidden; }
  .nav-link { min-height: 71px; grid-template-columns: 43px 1fr 15px; gap: 16px; }
  .nav-number { font-size: 12px; }
  .nav-label { font-size: 26px; letter-spacing: 0; }
  .home-hero h1 { font-size: clamp(61px, 10vw, 113px); }
  .social-grid { gap: 10px; }
}

@media (max-width: 1100px) {
  .js-ready .article-shell, .js-ready .article-shell[data-left-open="false"], .js-ready .article-shell[data-right-open="false"] { grid-template-columns: 1px minmax(0, 1fr) 1px; grid-template-areas: "left-edge body right-edge"; }
  html:not(.js-ready) .article-shell { display: block; }
  html:not(.js-ready) .article-titles, html:not(.js-ready) .article-toc { position: static; height: auto; padding: 30px 24px; }
  html:not(.js-ready) .article-edge { display: none; }
  .article-page { width: 100%; padding: 46px clamp(30px, 6vw, 64px) 90px; }
  .article-edge { position: fixed; top: 0; z-index: 72; width: 1px; }
  .article-edge--left { left: 0; }
  .article-edge--right { right: 0; }
  .article-edge-resize { display: none !important; }
  .js-ready .article-titles, .js-ready .article-toc { position: fixed; top: 0; bottom: 0; z-index: 70; display: none; width: min(350px, calc(100vw - 42px)); height: 100dvh; overflow-y: auto; padding: 30px 24px; border: 1px solid var(--line-strong); background: #0f192c; box-shadow: 0 20px 70px rgba(0, 0, 0, .5); }
  .js-ready .article-titles { left: 0; }
  .js-ready .article-toc { right: 0; }
  .js-ready .article-shell[data-left-open="true"] .article-titles, .js-ready .article-shell[data-right-open="true"] .article-toc { display: block; }
  .js-ready .article-shell[data-left-open="true"] .article-edge--right, .js-ready .article-shell[data-right-open="true"] .article-edge--left { display: none; }
  .js-ready .article-shell[data-left-open="true"] .article-backdrop, .js-ready .article-shell[data-right-open="true"] .article-backdrop { position: fixed; inset: 0; z-index: 60; display: block; width: 100%; border: 0; background: rgba(1, 5, 14, .72); cursor: pointer; }
  .js-ready .article-shell[data-left-open="true"] .article-edge--left { left: min(350px, calc(100vw - 42px)); }
  .js-ready .article-shell[data-right-open="true"] .article-edge--right { right: min(350px, calc(100vw - 42px)); }
  .reader-drawer-open { overflow: hidden; }
}

@media (min-width: 681px) and (max-height: 740px) {
  .home-hero-inner { padding-block: 90px 95px; }
  .page-home .content-section, .page-home .contact-section { padding-block: 18px; }
  .page-home .section-heading { margin-bottom: 25px; }
  .home-now .signal-entry { min-height: 110px; padding-block: 10px; }
  .home-now .signal-entry:last-child { min-height: 80px; }
  .home-preview-copy { padding-block: 7px 4px; }
}

@media (max-width: 760px) {
  .project-detail-hero { grid-template-columns: minmax(0, 1fr); gap: 45px; padding-bottom: 70px; }
  .project-detail-actions { align-items: stretch; flex-direction: column; }
  .project-detail-live-frame, .project-detail-action { width: 100%; }
  .project-detail-end-links { width: 100%; justify-content: flex-start; }
  .project-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-detail-facts > div { padding-inline: 12px; }
  .project-detail-facts > div:first-child { padding-left: 0; }
  .project-detail-facts > div + div { border-left: 1px solid var(--line); }
  .project-detail-gallery { grid-template-columns: minmax(0, 1fr); padding-bottom: 42px; }
  .project-detail-section { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 42px 55px; }
  .project-card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-card { min-height: 0; }
  .project-card:nth-child(even) { margin-top: 0; }
  .series-cover-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .series-cover--ai-basics { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .series-cover--ai-basics .series-cover-image { height: 190px; grid-column: 1; grid-row: 1; }
  .series-cover--ai-basics .series-cover-content { min-height: 225px; grid-column: 1; grid-row: 2; }
  .series-cover--ai-testing { min-height: 0; margin-top: 0; }
  .series-cover--ai-testing .series-cover-image { height: 190px; }
  .series-cover--ai-testing .series-cover-content { min-height: 225px; }
}

@media (max-width: 680px) {
  body { padding-bottom: 75px; }
  .home-hero { min-height: max(100svh, 710px); }
  .home-hero-inner { padding-block: 145px 150px; }
  .home-hero h1 { margin: 0 0 27px; font-size: clamp(47px, 12.3vw, 77px); }
  .home-manifesto { font-size: 26px; line-height: 1.5; }
  .home-identities { gap: 8px; margin-top: 20px; }
  .home-identities li { padding: 5px 11px; font-size: 13px; }
  .home-hero-actions { margin-top: 33px; gap: 6px 20px; }
  .direction-link { font-size: 14px; }
  .home-hero-bottom { bottom: 25px; font-size: 12px; }
  .content-section { padding-top: 95px; }
  .page-home .content-section { display: block; min-height: 0; padding-block: 95px 0; }
  .page-home .home-now { padding-block: 70px 90px; }
  .page-home .contact-section { padding-bottom: 90px; }
  .home-about .about-intro { font-size: 18px; line-height: 1.8; }
  .home-about .perspective-list > div { display: block; min-height: 135px; }
  .signal-list { display: block; }
  .home-evidence .section-heading { margin-bottom: 28px; }
  .home-evidence .small-direction { margin-top: 24px; }
  .home-preview-list, .home-preview-group { gap: 14px; }
  .home-preview-group { grid-template-columns: 1fr; }
  .home-preview-entry { height: auto; min-height: 0; padding: 22px; }
  .home-preview-entry--project { min-height: 146px; padding: 20px 22px; }
  .home-preview-top, .home-preview-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .home-preview-kind, .home-preview-meta { font-size: 13px; }
  .home-preview-meta { display: inline; overflow: visible; -webkit-line-clamp: unset; }
  .home-preview-copy { padding-block: 21px 18px; }
  .home-preview-entry--project .home-preview-copy { padding-block: 0 18px; }
  .home-preview-copy strong { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 23px; }
  .home-preview-entry--project .home-preview-copy strong { font-size: 29px; }
  .home-preview-copy > span { display: block; overflow: visible; -webkit-line-clamp: unset; margin-top: 11px; font-size: 16px; line-height: 1.55; }
  .home-preview-entry--project .home-preview-copy > span { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .home-preview-bottom { flex-wrap: wrap; }
  .home-preview-action { margin-left: auto; font-size: 14px; }
  .home-preview-arrow { font-size: 20px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading-line { display: block; }
  .section-heading h2 { font-size: 36px; }
  .section-heading-line > p { max-width: 380px; margin: 12px 0 0; text-align: left; }
  .home-about .perspective-list { margin-top: 42px; }
  .perspective-list > div { display: block; min-height: 135px; padding-block: 22px; }
  .perspective-list h3 { font-size: 24px; }
  .perspective-list p { margin-top: 8px; }
  .signal-entry { min-height: 0; padding-block: 18px; }
  .signal-entry:last-child { min-height: 0; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
  .signal-entry:last-child .signal-mark { grid-row: 1 / 3; margin-top: 7px; }
  .signal-entry:last-child h3 { margin-bottom: 6px; }
  .signal-entry:last-child p { grid-column: 2; }
  .signal-entry h3 { font-size: 22px; }
  .work-header { padding-block: 120px 35px; }
  .article-index-header { padding-block: 76px 24px; }
  .work-header h1 { font-size: 42px; }
  .work-projects { padding-bottom: 95px; }
  .project-detail { padding-bottom: 90px; }
  .project-detail-hero { padding-top: 5px; }
  .project-detail-facts { grid-template-columns: minmax(0, 1fr); }
  .project-detail-facts > div { padding-inline: 0; }
  .project-detail-facts > div + div { border-left: 0; }
  .project-detail h1 { font-size: clamp(52px, 13vw, 70px); }
  .project-detail-intro { font-size: 20px; }
  .project-detail-problem > p { font-size: 16px; }
  .project-card { padding: 24px 26px 20px; }
  .project-card-source { margin-bottom: 18px; }
  .project-card-title { font-size: 34px; }
  .project-card-action { margin-top: 20px; }
  .article-index { padding-bottom: 95px; }
  .series-cover-content { padding: 24px 26px 22px; }
  .series-cover-title, .series-cover--ai-testing .series-cover-title { font-size: 34px; }
  .article-page h1 { font-size: 31px; }
  .series-intro-hero { grid-template-columns: minmax(0, 1fr); }
  .series-intro-image { max-height: 180px; }
  .series-reading-options, .article-neighbors { grid-template-columns: minmax(0, 1fr); }
  .article-neighbor--next { grid-column: 1; }
  .series-guide-group .series-guide-group { margin-left: 8px; padding-left: 12px; }
  .reader-back-to-top { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .contact-section { padding-bottom: 90px; }
  .social-grid { width: min(100%, 216px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
  .social-icon-face { width: min(100%, 82px); border-radius: 19px; }
  .social-logo { width: 38px; height: 38px; }
  .social-entry-douyin .social-logo { width: 42px; height: 42px; }
  .social-entry:nth-child(2n + 1) .social-qr { left: 0; transform: none; }
  .social-entry:nth-child(2n) .social-qr { right: 0; left: auto; transform: none; }
  .footer-inner { padding-block: 35px; }
  .article-body h2 { font-size: 23px; }
  .article-body h3 { font-size: 20px; }
}

@media (max-width: 380px) {
  .home-hero { min-height: 100svh; }
  .home-hero-inner { padding-block: 120px 125px; }
  .home-hero h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .cursor-trail-canvas { display: none; }
  .nav-liquid { display: none; }
  .project-detail-live-frame::before { display: none; }
  .project-detail-live-frame { background: var(--cyan); box-shadow: none; }
  .home-preview-entry:is(:hover, :focus-visible) { transform: none; }
  .series-cover:hover, .series-cover:hover .series-cover-image img, .series-cover:hover .series-cover-action span, .project-card:hover, .project-card:hover .project-card-action span { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
