@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #000;
  --white: #f5f5f7;
  --muted: #86868b;
  --blue: #2997ff;
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #73b9ff; outline-offset: 6px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.skip-link {
  position: fixed; top: 12px; left: 20px; z-index: 50;
  padding: 12px 20px; color: #000; background: #fff;
  border-radius: 8px; transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; width: calc(100% - 104px); height: 88px; margin: 0 auto;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 22px; font-weight: 600; letter-spacing: -1px;
}
.wordmark > span:first-child { font-weight: 400; }
.brand-point { align-self: center; width: 5px; height: 5px; margin-left: 7px; border-radius: 50%; background: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { font-size: 13px; color: #929297; padding: 12px 0; transition: color 180ms; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #f5f5f7; }
.home-page { overflow-x: clip; }
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 88px); display: grid; place-items: center;
  padding: 60px 32px 125px;
}
.hero h1::before {
  content: ""; position: absolute; z-index: -1; width: clamp(420px, 54vw, 780px); aspect-ratio: 1;
  left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle closest-side, #071a34 0%, #06152c 24%, #040e20 44%, #030810 64%, #010307 82%, transparent 100%);
}
.hero-content { text-align: center; max-width: 1250px; width: 100%; }
.research-areas {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: #55abff; font-size: 15px; font-weight: 400; letter-spacing: .035em;
  margin-bottom: 32px;
}
.research-areas .separator { color: #3574a5; }
.hero h1 { position: relative; font-size: clamp(48px, 6.7vw, 96px); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; }
.hero-motto { margin-top: 16px; font-size: clamp(29px, 4.6vw, 66px); line-height: 1.13; font-weight: 500; letter-spacing: -.04em; }
.hero-motto span { display: block; }
.hero-motto span:first-child { color: var(--muted); }
.hero-description { margin: 31px 0 32px; color: #929297; font-size: 17px; line-height: 1.6; }
.primary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 129px;
  padding: 13px 27px; border-radius: 999px; background: var(--blue);
  color: #fff; font-size: 15px; transition: background 180ms, transform 180ms;
}
.primary-button:hover { background: #51aaff; transform: translateY(-2px); }
.primary-button:active { transform: translateY(0); background: #0071e3; }
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: hero-entrance 900ms cubic-bezier(.16,1,.3,1) both; }
  @keyframes hero-entrance { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
.roadmap-page {
  min-height: 100svh;
  background: radial-gradient(ellipse 720px 450px at 52% 4%, #0b15227a, transparent 75%), #000;
}
.directory { width: calc(100% - 104px); max-width: 1320px; margin: 0 auto; padding: 57px 0 44px; }
.directory-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 37px; }
.directory-heading h1 { font-size: clamp(29px, 3.2vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.05em; }
.directory-heading h1 span { font: 400 1.5em/.9 "Instrument Serif", Georgia, serif; letter-spacing: -.04em; margin-right: 13px; }
.motion-button {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; background: #111215; color: #babac0; font-size: 11px;
  border: 1px solid #2a2b30; border-radius: 999px; padding: 10px 15px;
}
.motion-button:hover { color: #f5f5f7; border-color: #53555d; }
.motion-indicator { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.motion-button[aria-pressed="false"] .motion-indicator { background: #85858c; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.system-card {
  --surface: #141b1e; --ink: #f5f5f7; --secondary: #abb9ba; --plate: #30383c;
  position: relative; isolation: isolate; width: 100%; min-width: 0; min-height: 465px; aspect-ratio: .64;
  border-radius: 17px; color: var(--ink); touch-action: pan-y;
}
.system-card::before, .system-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transition: transform 300ms cubic-bezier(.22,.68,0,1.01);
}
.system-card::before { z-index: -2; background: var(--plate); transform: translateY(5px); }
.system-card::after { z-index: -1; background: var(--surface); border: 1px solid #ffffff12; }
.system-card > * { transition: transform 300ms cubic-bezier(.22,.68,0,1.01); }
.system-card:focus-within::after, .system-card:focus-within > * { transform: translateY(-4px); }
.system-card:focus-within::before { transform: translateY(11px); }
@media (hover: hover) {
  .system-card:hover::after, .system-card:hover > * { transform: translateY(-4px); }
  .system-card:hover::before { transform: translateY(11px); }
}
.bird { --surface: #e3e9e2; --ink: #253b31; --secondary: #52665a; --plate: #8b9f92; color-scheme: light; }
.mountain { --surface: #1d2735; --ink: #edf1f7; --secondary: #b6c2d3; --plate: #42536a; }
.fox { --surface: #121c1e; --ink: #ecf4f3; --secondary: #a8bbba; --plate: #384b4b; }
.shell { --surface: #241e2b; --ink: #f2eaf5; --secondary: #c7b2cc; --plate: #51405a; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.card-header { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; padding: 23px 23px 0; pointer-events: none; }
.mini-mark { flex: 0 0 21px; width: 21px; height: 25px; }
.card-header h2 { font-size: 13px; font-weight: 500; letter-spacing: .035em; white-space: nowrap; }
.scan-status { margin-left: auto; font-size: 8px; letter-spacing: .015em; color: var(--secondary); }
.card-footer { position: absolute; left: 25px; right: 23px; bottom: 23px; z-index: 2; }
.card-footer h3 { font-size: clamp(23px, 2.25vw, 32px); font-weight: 500; line-height: 1.25; letter-spacing: -.055em; }
.card-footer h3 span { display: block; font-size: clamp(22px, 2vw, 29px); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; margin-top: 4px; }
.card-action {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 23px;
  min-height: 44px; min-width: 101px; padding: 8px 0; margin-top: 18px;
  background: transparent; color: var(--secondary); border: 0; font-size: 11px;
}
.card-action:hover { color: var(--ink); }
.action-arrow { font-size: 20px; transition: transform 200ms; line-height: 1; }
.card-action:hover .action-arrow { transform: translateX(4px); }
.directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 37px; color: #919197; font-size: 11px; line-height: 1.7; }
.directory-footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.directory-footer a:hover { color: #f5f5f7; }
.canvas-fallback { padding: 14px 0; font-size: 13px; color: #b6b6c0; line-height: 1.6; }
.dialog-open { overflow: hidden; }
dialog {
  position: fixed; color: var(--white); background: #13161c;
  width: min(440px, calc(100vw - 36px)); max-height: calc(100svh - 40px);
  padding: 48px 38px 30px; border: 1px solid #393e48; border-radius: 18px;
}
dialog::backdrop { background: #000b; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; color: #9d9fa7; }
.dialog-system { color: #67b6ff; font-size: 13px; margin-bottom: 18px; letter-spacing: .05em; }
dialog h2 { font-size: 34px; line-height: 1.2; font-weight: 500; }
.dialog-english { font-size: 23px; color: #cccdd3; margin-top: 6px; }
#dialog-description { font-size: 14px; line-height: 1.7; color: #aeb0ba; margin: 28px 0; }
.dialog-return { background: #252a33; border: 1px solid #3d4552; border-radius: 999px; padding: 11px 22px; min-height: 44px; font-size: 13px; }
.dialog-return:hover { background: #303846; }
@media (min-width: 1600px) {
  .directory { padding-top: 80px; }
  .directory-heading { margin-bottom: 46px; }
}
@media (max-width: 1120px) {
  .site-header, .directory { width: calc(100% - 64px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
  .directory { max-width: 850px; padding-top: 43px; }
  .system-card { aspect-ratio: .72; }
  .card-footer h3 { font-size: 32px; }
  .card-footer h3 span { font-size: 29px; }
  .research-areas { gap: 10px; font-size: 12px; }
}
@media (max-width: 650px) {
  .site-header { width: calc(100% - 40px); height: 76px; }
  .wordmark { font-size: 20px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 12px; }
  .hero { min-height: calc(100svh - 76px); padding: 70px 23px 120px; }
  .research-areas { flex-wrap: wrap; column-gap: 8px; row-gap: 8px; max-width: 330px; margin: 0 auto 27px; font-size: 11px; line-height: 1.5; letter-spacing: .01em; }
  .research-areas .separator:nth-of-type(4) { display: none; }
  .research-areas span:last-child { flex-basis: 100%; }
  .hero h1 { font-size: clamp(36px, 8.9vw, 57px); letter-spacing: -.055em; }
  .hero-motto { margin-top: 19px; font-size: clamp(25px, 5.75vw, 37px); letter-spacing: -.045em; line-height: 1.2; }
  .hero-motto span { margin-top: 7px; }
  .hero-description { margin: 28px auto; max-width: 280px; font-size: 14px; }
  .primary-button { min-height: 47px; font-size: 14px; }
  .directory { width: calc(100% - 40px); max-width: 430px; padding: 36px 0 25px; }
  .directory-heading { align-items: flex-end; gap: 12px; margin-bottom: 28px; }
  .directory-heading h1 { font-size: 24px; white-space: nowrap; }
  .directory-heading h1 span { font-size: 39px; margin-right: 6px; }
  .motion-button { min-height: 36px; padding: 8px 10px; font-size: 9px; gap: 6px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .system-card { min-height: 455px; aspect-ratio: .73; }
  .card-header { padding: 27px 27px 0; gap: 9px; }
  .card-header h2 { font-size: 14px; }
  .scan-status { font-size: 9px; }
  .card-footer { left: 28px; bottom: 24px; }
  .card-footer h3 { font-size: 31px; }
  .card-footer h3 span { font-size: 28px; }
  .card-action { font-size: 12px; }
  .directory-footer { align-items: flex-start; font-size: 10px; }
  .directory-footer p { max-width: 240px; }
}
@media (max-width: 370px) {
  .directory-heading { flex-wrap: wrap; align-items: center; gap: 18px; }
  .hero-motto { font-size: 24px; }
  .card-header { padding-inline: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .system-card:focus-within::after, .system-card:focus-within > *,
  .system-card:hover::after, .system-card:hover > * { transform: none; }
  .system-card:focus-within::before, .system-card:hover::before { transform: translateY(5px); }
}
