/* 随轩 · 关于
   A night sky from the first post (星空哲学, 2005). Stardust that becomes a face, lines that light up as you read,
   every post as a star in a galaxy, a timeline of six seasons, questions in orbit.
   night #0B1124 · deep #121A36 · starlight #F4E9C8 · haze #9CA3BC · gold #E8C872 · cinnabar #E5533D */

.w-about {
  --bg: #0B1124; --paper: #121A36; --ink: #F4E9C8; --muted: #9CA3BC; --line: rgba(244, 233, 200, .14);
  --acc: #E8C872; --acc-ink: #0B1124; --cin: #E5533D;
  background: #0B1124;
  background-image: radial-gradient(1200px 700px at 70% -10%, #1B2550 0%, transparent 60%), radial-gradient(900px 600px at 0% 40%, #151D40 0%, transparent 60%);
}
.w-about .bar { background: rgba(11, 17, 36, .72); border-bottom-color: var(--line); }
.w-about .bar__logo img { mix-blend-mode: normal; background: #F4E9C8; border-radius: 4px; }
.w-about .bar__nav .nav__a[aria-current="page"] { border-bottom-color: var(--acc); }
.w-about .ft { border-top-color: var(--line); }
.w-about .ft__brand img { mix-blend-mode: normal; background: #F4E9C8; border-radius: 6px; }
.w-about .btn--ink { background: var(--acc); border-color: var(--acc); color: #0B1124; }
.w-about .btn--ink:hover { background: #FFFFFF; border-color: #FFFFFF; }
.w-about .btn--line { border-color: rgba(244, 233, 200, .45); }
.w-about .btn--line:hover { background: var(--ink); color: #0B1124; }
.ab h2 { font-family: var(--f-serif); font-weight: 900; font-size: clamp(30px, 4vw, 46px); letter-spacing: .06em; }

/* ---------- one field of stardust behind the whole page ---------- */
.ab { position: relative; }
.ab__field, .ab__ink { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: block; pointer-events: none; z-index: 0; }
.ab > section { position: relative; z-index: 1; }
.w-about .ft { position: relative; z-index: 1; background: #070B1C; }

/* ---------- hero: stardust ---------- */
.ab__hero { position: relative; min-height: max(640px, calc(100vh - 64px)); display: grid; align-items: center; }
.ab__hero-in { position: relative; z-index: 1; pointer-events: none; }
.ab__hero-in > * { pointer-events: auto; max-width: 560px; }
.ab__k { font-size: 14px; letter-spacing: .3em; color: var(--muted); }
.ab__name { margin-top: 12px; font-family: var(--f-serif); font-weight: 900; font-size: clamp(64px, 9vw, 128px); line-height: 1; letter-spacing: .08em; color: #FFF6DE; text-shadow: 0 0 60px rgba(232, 200, 114, .25); }
.ab__name small { display: block; margin-top: 16px; font-size: 18px; font-weight: 400; letter-spacing: .2em; color: var(--acc); text-shadow: none; }
.ab__type { display: flex; align-items: center; gap: 4px; min-height: 36px; margin-top: 22px; font-size: 21px; color: #DCE3FF; }
.ab__type i { width: 2px; height: 1.1em; background: var(--acc); animation: ab-caret 1s steps(1) infinite; }
@keyframes ab-caret { 50% { opacity: 0; } }
.ab__lede { margin-top: 18px; font-size: 16px; line-height: 1.95; color: #C9CDE0; }
.ab__modes { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border-radius: 24px; background: rgba(244, 233, 200, .08); box-shadow: inset 0 0 0 1px var(--line); }
.ab__modes button { height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14.5px; color: var(--muted); transition: background-color .25s, color .25s; }
.ab__modes button:hover { color: var(--ink); }
.ab__modes button[aria-pressed="true"] { background: var(--acc); color: #0B1124; }
.ab__hint { margin-top: 14px; font-size: 13px; color: rgba(156, 163, 188, .8); }
.ab__down { position: absolute; z-index: 1; left: 50%; bottom: 24px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 22px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); animation: ab-bob 2.4s ease-in-out infinite; }
.ab__down svg { width: 18px; height: 18px; }
@keyframes ab-bob { 50% { transform: translateY(6px); } }

/* ---------- the 2005 lines, lit as you read ---------- */
.ab__quote { padding: 140px 0; }
.ab__quote blockquote { max-width: 900px; }
.ab__quote p { font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.8; letter-spacing: .02em; }
.ab__quote p + p { margin-top: 1.2em; }
.ab__quote b { font-weight: 900; }
.ab__quote .ch { color: rgba(156, 163, 188, .28); transition: color .5s, text-shadow .5s; }
.ab__quote .ch.on { color: #F4E9C8; }
.ab__quote b .ch.on { color: #FFF3C9; text-shadow: 0 0 18px rgba(232, 200, 114, .75); }
.ab__quote footer { margin-top: 36px; font-size: 14px; }
.ab__quote footer a { color: var(--muted); }
.ab__quote footer a:hover { color: var(--acc); }

/* ---------- the count ---------- */
.ab__count-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab__count-list div { display: flex; flex-direction: column-reverse; gap: 6px; }
.ab__count-list dt { font-size: 14px; color: var(--muted); }
.ab__count-list dd { font-family: var(--f-serif); font-weight: 900; font-size: clamp(44px, 6vw, 82px); line-height: 1; color: #FFF6DE; font-variant-numeric: tabular-nums; }
.ab__count-cap { display: none; }
/* the story: each number is written in stars while the page holds still */
.ab.is-story .ab__count { height: calc(var(--steps, 4) * 75vh + 100vh); }
.ab.is-story .ab__count-stage { position: sticky; top: 0; height: 100vh; display: grid; align-items: end; justify-items: center; padding-bottom: 13vh; }
.ab.is-story .ab__count-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ab.is-story .ab__count-cap { display: grid; justify-items: center; gap: 10px; max-width: min(36em, calc(100% - 40px)); text-align: center; }
.ab__count-cap b { font-family: var(--f-serif); font-weight: 900; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: .2em; color: #FFF6DE; }
.ab__count-cap span { font-family: var(--f-serif); font-size: 17px; line-height: 1.8; color: #C9CDE0; }
.ab__count-cap.is-in b, .ab__count-cap.is-in span { animation: cap-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.ab__count-cap.is-in span { animation-delay: .12s; }
@keyframes cap-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.odo span { display: inline-block; height: 1em; overflow: hidden; }
.odo span i { display: block; font-style: normal; transition: transform 1.6s cubic-bezier(.2, .9, .2, 1); }
.odo span i b { display: block; height: 1em; font-weight: inherit; }
.odo .sep { width: .3em; }

/* ---------- galaxy ---------- */
.ab__galaxy { margin-top: 40px; }
.ab.is-story .ab__galaxy { height: 270vh; }
.ab__gx-stage { position: relative; }
.ab.is-story .ab__gx-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.ab__gx-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px 56px; align-items: end; padding-top: 96px; }
.ab__gx-head p { max-width: 40em; font-size: 15.5px; line-height: 1.85; color: var(--muted); }
.ab__gx { position: relative; height: clamp(560px, 82vh, 860px); margin-top: 30px; }
.ab.is-story .ab__gx { height: auto; margin: 0; }
.ab__gx-tip { position: fixed; z-index: 30; top: 0; left: 0; max-width: 300px; padding: 10px 14px; pointer-events: none; border-radius: 10px; background: rgba(18, 26, 54, .94); box-shadow: inset 3px 0 0 var(--c, var(--acc)), 0 16px 30px -14px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.55; opacity: 0; transition: opacity .15s; }
.ab__gx-tip.on { opacity: 1; }
.ab__gx-tip b { display: block; font-family: var(--f-serif); font-size: 16px; color: #FFF6DE; }
.ab__gx-tip small { color: var(--muted); }
.ab__gx-legend { position: absolute; z-index: 2; left: max(20px, calc((100% - 1240px) / 2)); bottom: 18px; right: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.ab__gx-legend button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 15px; font-size: 12.5px; color: var(--ink); background: rgba(18, 26, 54, .75); box-shadow: inset 0 0 0 1px var(--line); }
.ab__gx-legend button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--acc); background: rgba(232, 200, 114, .2); }
.ab__gx-legend i { width: 8px; height: 8px; border-radius: 50%; }
.ab__gx-legend .sk-phil i { background: #F4E4C1; } .ab__gx-legend .sk-hps i { background: #E6B865; } .ab__gx-legend .sk-cult i { background: #FF7A62; } .ab__gx-legend .sk-ai i { background: #7EB0FF; }
.ab__gx-legend .sk-web3 i { background: #B996FF; } .ab__gx-legend .sk-teach i { background: #8FDDB0; } .ab__gx-legend .sk-life i { background: #FFA6C5; } .ab__gx-legend .sk-site i { background: #9FE6F0; }

/* ---------- timeline: six seasons along a line of stars ---------- */
.ab__tl { margin-top: 140px; }
.tl { position: relative; margin-top: 50px; }
.tl::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(rgba(232, 200, 114, .9), rgba(232, 200, 114, .1)); transform-origin: top; animation: tl-draw linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
@keyframes tl-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tl__i { position: relative; width: calc(50% - 46px); margin-bottom: 40px; padding: 26px 28px; border-radius: 12px; background: rgba(18, 26, 54, .78); box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -34px rgba(0, 0, 0, .9); }
.tl__i:nth-child(even) { margin-left: auto; }
.tl__star { position: absolute; top: 30px; right: -54px; width: 16px; height: 16px; border-radius: 50%; background: #FFF6DE; box-shadow: 0 0 0 5px rgba(232, 200, 114, .2), 0 0 24px 6px rgba(232, 200, 114, .65); }
.tl__i:nth-child(even) .tl__star { right: auto; left: -54px; }
.tl__span { font-family: var(--f-serif); font-weight: 900; font-size: 26px; color: var(--acc); font-variant-numeric: tabular-nums; }
.tl__i h3 { margin-top: 4px; font-family: var(--f-serif); font-weight: 900; font-size: 22px; color: #FFF6DE; }
.tl__d { margin-top: 10px; font-size: 15px; line-height: 1.85; color: #C9CDE0; }
.tl__i ul { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.tl__i li a { color: var(--ink); text-decoration: none; }
.tl__i li a::before { content: "✦ "; color: var(--acc); font-size: 11px; }
.tl__i li a:hover { color: var(--acc); }
@supports (animation-timeline: view()) {
  .tl__i { animation: tl-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes tl-in { from { opacity: .15; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* ---------- orbit ---------- */
.orb.is-3d .orb__ring { opacity: 0; transition: opacity .6s; }
.orb.is-3d .orb__sat { top: 0; left: 0; animation: none; transition: opacity .3s; }
.orb.is-3d .orb__sat a { left: 0; animation: none; transform: translate(-50%, -50%); }
.ab__orbit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 50px; align-items: center; margin-top: 140px; }
.ab__orb-copy p { margin-top: 18px; font-size: 16px; line-height: 1.95; color: #C9CDE0; }
.ab__orb-hint { font-size: 13.5px !important; color: var(--muted) !important; }
.orb { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(232, 200, 114, .22); }
.orb__ring--2 { inset: 17%; } .orb__ring--3 { inset: 34%; box-shadow: inset 0 0 0 1px rgba(232, 200, 114, .12); }
.orb__core { position: absolute; inset: 41%; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-brush); font-size: 26px; color: #0B1124; background: radial-gradient(circle at 35% 35%, #FFF6DE, #E8C872 60%, #B98A2E); box-shadow: 0 0 40px 10px rgba(232, 200, 114, .35); }
.orb__sat { position: absolute; top: 50%; left: 50%; width: 0; height: 0; animation: orb-spin var(--t, 46s) linear infinite; animation-delay: calc(var(--k) * var(--t, 46s) / -4); }
.orb__sat--1 { --r: 250px; --t: 52s; } .orb__sat--2 { --r: 170px; --t: 34s; animation-direction: reverse; }
.orb__sat a { position: absolute; left: var(--r); top: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; white-space: nowrap; transform: translate(-50%, -50%); font-size: 14.5px; color: #0B1124; background: #F4E9C8; text-decoration: none; box-shadow: 0 0 20px rgba(244, 233, 200, .3); animation: orb-keep var(--t, 46s) linear infinite; animation-delay: inherit; animation-direction: inherit; }
.orb__sat--2 a { background: #9CB4FF; }
.orb__sat a:hover { background: var(--acc); }
.orb:hover .orb__sat, .orb:hover .orb__sat a { animation-play-state: paused; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-keep { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* without scripts there is no field: no empty stage, no buttons that do nothing */
html:not(.js) .ab__gx, html:not(.js) .ab__modes, html:not(.js) .ab__hint, html:not(.js) .ab__sign { display: none; }

/* ---------- the site, the letter, the way out ---------- */
.ab__site { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; margin-top: 140px; }
.ab__panel { padding: 30px 32px; border-radius: 14px; background: rgba(18, 26, 54, .8); box-shadow: inset 0 0 0 1px var(--line); }
.ab__panel h3 { font-family: var(--f-serif); font-weight: 900; font-size: 22px; color: #FFF6DE; }
.ab__panel p { margin-top: 12px; font-size: 15.5px; line-height: 1.9; color: #C9CDE0; }
.ab__panel a { color: var(--acc); }
.ab__text p { margin-top: 12px; font-size: 15.5px; line-height: 1.9; color: #C9CDE0; }
.ab__text p:first-child { margin-top: 0; }
.ab__panel .sub input[type="email"] { background: rgba(11, 17, 36, .7); border-color: var(--line); color: var(--ink); }
.ab__panel .sub button { background: var(--acc); color: #0B1124; }
.ab__out { margin-top: 90px; padding-bottom: 60px; text-align: center; }
.ab__sign { height: clamp(220px, 34vh, 380px); }
.ab__out p { font-family: var(--f-serif); font-size: clamp(24px, 3vw, 34px); }
.ab__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

@container yh (max-width: 980px) {
  .ab__orbit, .ab__site { grid-template-columns: minmax(0, 1fr); }
  .orb__sat--1 { --r: 200px; } .orb__sat--2 { --r: 135px; }
  .ab__gx-head { grid-template-columns: minmax(0, 1fr); }
}
@container yh (max-width: 760px) {
  .ab__hero { min-height: 760px; align-items: end; padding-bottom: 80px; }
  .ab__name small { font-size: 15px; }
  .ab__type { font-size: 17px; }
  .ab__quote { padding: 90px 0; }
  .ab__count dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .ab__galaxy, .ab__tl, .ab__orbit, .ab__site { margin-top: 90px; }
  .ab__gx { height: 520px; }
  .ab__gx-legend { display: none; }
  .tl::before { left: 8px; }
  .tl__i, .tl__i:nth-child(even) { width: auto; margin-left: 30px; }
  .tl__star, .tl__i:nth-child(even) .tl__star { left: -30px; right: auto; }
  .orb__sat--1 { --r: 145px; } .orb__sat--2 { --r: 96px; }
  .orb__sat a { height: 30px; padding: 0 10px; font-size: 13px; }
  .ab__panel { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb__sat, .orb__sat a, .ab__down, .ab__type i { animation: none !important; }
  .tl__i { animation: none !important; }
  .tl::before { animation: none !important; }
}
