:root {
  color-scheme: dark;
  --night: #070a12;
  --text: #ede9e0;
  --muted: #9aa7b8;
  --accent: #cbb78a;
  --border: #29303c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--text);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { position: relative; margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; z-index: 5; top: 12px; left: 20px; padding: 14px 20px; transform: translateY(-160%); background: var(--night); border: 1px solid var(--accent); }
.skip-link:focus { transform: none; }
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
/* A quiet pool of light behind the deeper star field. */
.sky { background: radial-gradient(ellipse at 83% 26%, #18233380 0%, transparent 58%); }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #070a1238, transparent 70%); }
.static-stars, #starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.static-stars { opacity: .6; }
.sky.has-canvas .fallback-stars { display: none; }
.page { position: relative; width: min(1200px, calc(100% - 112px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #29303c80; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: .9375rem; font-weight: 550; letter-spacing: .025em; }
.lab-mark { color: var(--accent); font-size: 25px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; padding: 10px 2px; color: var(--muted); font-size: .875rem; }
.text-link span { color: var(--accent); }
.identity { position: relative; padding-block: 80px 72px; }
.eyebrow { margin: 0; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .75rem; font-weight: 400; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow > span { width: 23px; height: 1px; background: var(--accent); }
h1 { position: relative; width: fit-content; max-width: 100%; margin: 26px 0 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(2.75rem, 6.5vw, 6rem); line-height: 1.15; font-weight: 300; letter-spacing: -.025em; }
.title-lab { color: var(--accent); }
.title-star { display: inline-block; margin-left: 12px; color: var(--accent); font-size: 20px; vertical-align: top; line-height: 1.5; letter-spacing: 0; }
.tagline { margin: 0; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.6; letter-spacing: -.015em; }
.lab-description { margin-top: 24px; max-width: 36rem; }
.english-line { margin: 0; color: #b8c2cf; font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.chinese-line { max-width: 36em; margin: 6px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.9; letter-spacing: .06em; text-wrap: pretty; }
.members { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 42px; margin-top: 32px; }
.member { --orbit-color: #cbb78a; display: inline-flex; align-items: center; gap: 18px; padding: 9px; border-radius: 6px; }
.member-atom { --orbit-color: #a7bde7; }
.member-orbit { position: relative; display: block; flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; }
.member-orbit img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center; border: 1px solid #ffffff26; transition: box-shadow .3s ease; }
.member-orbit::before { content: ""; position: absolute; inset: -7px; border: 1px solid var(--orbit-color); border-radius: 50%; opacity: .35; transition: opacity .3s ease, transform .3s ease; }
.member-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; top: 6px; right: 3px; border-radius: 50%; background: var(--orbit-color); box-shadow: 0 0 9px var(--orbit-color); }
.member-atom .member-orbit::after { top: auto; right: auto; bottom: 6px; left: 3px; }
.member-name { font-size: .9375rem; line-height: 1.6; }
.member-name > span { display: inline-block; margin-left: 9px; color: var(--orbit-color); transition: transform .3s ease; }
.member:focus-visible .member-orbit img { box-shadow: 0 0 22px #cbb78a30; }
.member:focus-visible .member-orbit::before { opacity: .8; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; font-size: 1.375rem; letter-spacing: -.025em; }
.library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.library-entry { position: relative; display: flex; flex-direction: column; padding: 22px 28px 26px; border: 1px solid var(--border); border-radius: 5px; background: linear-gradient(150deg, #111925db, #0a101bd9); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.project-art { color: var(--accent); height: 145px; display: flex; align-items: center; border-bottom: 1px solid #29303c; margin-bottom: 25px; }
.project-art svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1; opacity: .75; }
.art-orbit { opacity: .3; stroke-dasharray: 3 6; }
.library-copy { min-width: 0; }
.library-copy > .eyebrow { color: var(--accent); }
.library-copy .byline { margin: 9px 0 20px; color: var(--muted); font-size: .8125rem; }
.byline span { color: #c4cbd5; }
.library-copy h2 { margin: 0 0 15px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.22; font-weight: 400; letter-spacing: -.025em; min-height: 2.44em; }
.library-copy p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.visit { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: auto; padding-top: 30px; color: var(--text); font-size: .875rem; }
.visit span { color: var(--accent); font-size: 22px; transition: transform .25s ease; }
main { padding-bottom: 48px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; padding: 20px 0 28px; border-top: 1px solid var(--border); color: var(--muted); }
.copyright { margin: 0; font-size: .75rem; line-height: 2; }
.copyright a { display: inline-flex; align-items: center; min-height: 44px; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: #070a1270; color: var(--muted); font: inherit; font-size: .8125rem; cursor: pointer; }
.motion-toggle:disabled { cursor: default; }
.motion-indicator { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px #cbb78a80; }
.motion-toggle[aria-pressed="true"] .motion-indicator { background: var(--muted); box-shadow: none; }
@media (hover: hover) {
  .member:hover .member-orbit img { box-shadow: 0 0 22px #cbb78a30; }
  .member:hover .member-orbit::before { opacity: .8; transform: scale(1.035); }
  .member:hover .member-name > span { transform: translate(2px, -2px); }
  .text-link:hover, .copyright a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
  .library-entry:hover { transform: translateY(-3px); border-color: #897e65; background: linear-gradient(150deg, #182333ed, #0c1420e6); }
  .library-entry:hover .visit span { transform: translate(3px, -3px); }
  .motion-toggle:not(:disabled):hover { border-color: var(--accent); color: var(--text); }
}
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .identity { animation: arrive .6s ease both; }
  .section-heading, .library { animation: arrive .6s .12s ease both; }
}
@media (max-width: 1000px) {
  .page { width: calc(100% - 64px); }
  .library { gap: 14px; }
  .library-entry { padding-inline: 20px; }
  .identity { padding-block: 68px; }
}
@media (max-width: 760px) {
  .page { width: calc(100% - 40px); }
  .site-header { min-height: 84px; }
  .wordmark { font-size: .875rem; gap: 8px; }
  .identity { padding-block: 60px; }
  h1 { font-size: clamp(2.125rem, 8.5vw, 4rem); }
  .title-star { font-size: 14px; margin-left: 6px; }
  .hero-eyebrow { font-size: .75rem; letter-spacing: .06em; }
  .chinese-line { max-width: 23em; font-size: .875rem; }
  .members { gap: 24px; }
  .member { flex-direction: column; gap: 16px; align-items: flex-start; }
  .member-orbit { width: 72px; height: 72px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 1.25rem; }
  .library { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .library-entry { padding: 20px 26px 24px; }
  .project-art { height: 140px; }
  .library-copy h2 { font-size: 1.875rem; min-height: 0; }
  .library-copy h2 br { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Two equal stars and the memories held between them. */
.identity { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.identity-copy { min-width: 0; }
h1 { font-size: clamp(2.75rem, 5.1vw, 4.8rem); white-space: nowrap; }
.binary { position: relative; min-width: 0; }
.binary-sky { position: relative; height: 310px; }
.binary-track { position: absolute; width: 76%; height: 42%; left: 12%; top: 29%; border: 1px solid #cbb78a40; border-radius: 50%; transform: rotate(-23deg); }
.binary-track-outer { width: 91%; height: 62%; left: 4.5%; top: 19%; border-color: #9ab9e31c; transform: rotate(-23deg); border-style: dashed; }
.binary-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #cbb78a50; font: 300 18px monospace; }
.binary-star, .binary-secret { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; transform: translate(-50%, -50%); border-radius: 50%; }
.star-z { left: 23%; top: 65%; --star-color: #e9cd92; }
.star-atom { left: 77%; top: 35%; --star-color: #b3d5ff; }
.star-core { display: block; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9ed, var(--star-color) 55%, #5d7085); box-shadow: 0 0 14px var(--star-color), 0 0 44px color-mix(in srgb, var(--star-color) 35%, transparent); transition: scale .25s, box-shadow .25s; }
.star-name { position: absolute; top: 49px; color: var(--star-color); font-size: .75rem; letter-spacing: .04em; opacity: 0; transition: opacity .25s; pointer-events: none; }
.binary-star:hover .star-name, .binary-star:focus-visible .star-name { opacity: 1; }
.binary-star:hover .star-core, .binary-star:focus-visible .star-core { scale: 1.2; }
.research-star { left: 85%; top: 13%; font-size: 25px; color: #d8cba9; }
.medal-star { left: 18%; top: 83%; }
.medal-star span { width: 4px; height: 4px; background: #8b9caf; border-radius: 50%; box-shadow: 0 0 7px #a7bde770; }
.binary-secret:hover, .binary-secret:focus-visible { background: #b7cdea12; }
.binary-caption { display: grid; gap: 8px; text-align: center; margin: 6px 0 0; }
.binary-caption > span:last-child { font-size: .8125rem; color: var(--muted); letter-spacing: .06em; }
.star-note { position: absolute; z-index: 3; inset: 50% 0 auto; transform: translateY(-50%); padding: 28px; border: 1px solid #cbb78a55; border-radius: 8px; background: #0c1421f5; box-shadow: 0 16px 60px #0006; }
.note-meta { margin: 0 32px 16px 0; color: var(--accent); font-size: .8125rem; line-height: 1.7; }
.note-body { margin: 0; white-space: pre-line; font-size: 1rem; line-height: 1.9; }
.note-close, .note-next { min-height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.note-close { position: absolute; right: 8px; top: 8px; width: 44px; font-size: 24px; }
.note-next { margin-top: 20px; padding: 0; font-size: .875rem; }
.note-next span { color: var(--accent); margin-left: 12px; }
.note-close:hover, .note-next:hover { color: var(--text); }
@media (max-width: 1000px) {
  .identity { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
  h1 { font-size: clamp(2.125rem, 5vw, 4rem); }
  .binary-sky { height: 260px; }
  .star-note { padding: 24px 20px; }
}
@media (max-width: 760px) {
  .identity { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  h1 { font-size: clamp(2.125rem, 8.5vw, 4rem); white-space: normal; }
  .binary { width: min(100%, 380px); justify-self: center; }
  .binary-sky { height: 175px; }
  .binary-caption { margin-top: 12px; }
  .star-name { opacity: .8; top: 43px; }
  .star-note { position: relative; inset: auto; transform: none; margin-top: 20px; }
}
