:root {
  --blue: #2f62ff;
  --blue-2: #8eafff;
  --ink: #f4f7fb;
  --muted: rgba(232, 237, 245, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: #010308;
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.is-leave main { opacity: 0; transform: translateY(10px); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1px solid var(--blue-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.8rem;
}

.skip:focus { top: 1rem; }

#earth {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 3, 8, 0.94) 0%, rgba(1, 3, 8, 0.78) 28%, rgba(1, 3, 8, 0.2) 46%, transparent 58%),
    linear-gradient(to top, rgba(1, 3, 8, 0.65), transparent 28%);
}

.nav, main, .site-footer { position: relative; z-index: 2; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 1.28rem;
}

.brand-mark { width: 26px; height: 26px; display: grid; }
.brand-mark img, .brand-mark svg { width: 26px; height: 26px; grid-area: 1 / 1; }
.brand-mark img { display: none; }
.brand-mark img.ready { display: block; }
.brand-mark img.ready + .fallback { display: none; }

.nav-links { display: flex; align-items: center; gap: 1.35rem; }

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  color: rgba(244, 247, 251, 0.82);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.btn, .link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.btn {
  position: relative;
  padding: 0.78rem 1rem;
  border-color: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.btn-fill {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn span[aria-hidden], .link span[aria-hidden] {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.btn:hover span[aria-hidden], .link:hover span[aria-hidden] { transform: translate(3px, -2px); }

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.btn:hover::after { transform: scaleX(1); }

.kicker {
  color: var(--blue-2);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

h1, h2 { letter-spacing: -0.045em; font-weight: 560; line-height: 0.96; }

.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 18vh var(--pad) 12vh;
  max-width: 760px;
}

.hero h1 { font-size: clamp(3.4rem, 7.6vw, 6.6rem); margin: 0.7rem 0 1rem; }
.hero h1 span { color: rgba(244, 247, 251, 0.72); }
.lede { max-width: 36rem; font-size: 1.12rem; line-height: 1.45; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.coord { margin-top: 2.2rem; letter-spacing: 0.16em; font-size: 0.72rem; color: rgba(214, 224, 240, 0.55); }

body.is-intro .hero h1,
body.is-intro .hero .lede,
body.is-intro .hero .actions,
body.is-intro .hero .coord {
  animation: rise 0.9s var(--ease) both;
}

body.is-intro .hero .lede { animation-delay: 0.12s; }
body.is-intro .hero .actions { animation-delay: 0.22s; }
body.is-intro .hero .coord { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.spine {
  position: fixed;
  left: max(0.7rem, calc(var(--pad) - 1.4rem));
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 3;
  pointer-events: none;
}

.spine span {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}

.band, .project, .system, .method, .manifesto, .close, .page {
  padding: 12vh var(--pad);
}

.band { max-width: 1100px; }
.band h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 12ch; margin: 0.6rem 0 2rem; }

.destinations { display: grid; gap: 0; border-top: 1px solid var(--line); }

.destinations a {
  display: grid;
  grid-template-columns: 4.5rem 1.2fr 1.4fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.destinations b { color: var(--blue-2); font-weight: 550; letter-spacing: 0.08em; }
.destinations strong { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 550; letter-spacing: -0.04em; }
.destinations em { font-style: normal; color: var(--muted); }
.destinations span { letter-spacing: 0.14em; font-size: 0.72rem; color: rgba(214, 224, 240, 0.55); }

.project {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 88vh;
}

.project.reverse { grid-template-columns: 1.15fr minmax(260px, 0.85fr); }
.project.reverse .project-copy { order: 2; }

.work-head, .tags span, figcaption {
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(214, 224, 240, 0.58);
}

.project h2 { font-size: clamp(3rem, 6vw, 5.4rem); margin: 0.35rem 0 0.8rem; }
.project p { max-width: 38rem; line-height: 1.5; color: var(--muted); margin-top: 0.7rem; }
.facts { margin: 1rem 0 0 1rem; color: var(--ink); }
.facts li { margin: 0.35rem 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0; }
.tags span { border: 1px solid var(--line); padding: 0.35rem 0.5rem; }
.link { margin-top: 0.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 0.15rem; }

.shot {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(3, 6, 12, 0.72);
  min-height: 320px;
  position: relative;
}

.shot svg { display: block; width: 100%; height: auto; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 0.9rem; bottom: 0.75rem; }

.measure-line, .route, .story { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.room, .plan { fill: none; stroke: rgba(232, 236, 244, 0.28); stroke-width: 1; }

.system { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.system h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0.5rem 0 1.2rem; }

.modes { display: grid; gap: 0.4rem; }

.modes button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  text-align: left;
  background: transparent;
  color: rgba(244, 247, 251, 0.45);
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
  font: inherit;
  cursor: pointer;
}

.modes button strong { font-size: 1.45rem; font-weight: 550; letter-spacing: -0.03em; color: inherit; }
.modes button[aria-pressed="true"] { color: var(--ink); }
.modes button b { color: var(--blue-2); font-weight: 550; }

.system-fig { width: 100%; border: 1px solid var(--line); background: rgba(3, 6, 12, 0.55); }
.system-fig [data-panel] { opacity: 0.12; transition: opacity 0.6s var(--ease); }
.system-fig [data-panel].is-on { opacity: 1; }

.method h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0.5rem 0 1.6rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.45rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: signal 7s linear infinite;
}
.steps li { padding-top: 1.4rem; }
.steps b { display: block; color: var(--blue-2); letter-spacing: 0.12em; font-size: 0.75rem; margin-bottom: 0.4rem; }
.steps strong { display: block; font-size: 1.7rem; font-weight: 550; letter-spacing: -0.04em; }
.steps span { display: block; margin-top: 0.4rem; color: var(--muted); max-width: 22ch; }

@keyframes signal { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.manifesto { min-height: 70vh; display: grid; align-content: center; }
.manifesto p {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 14ch;
}

.close { min-height: 100vh; display: grid; align-content: end; padding-bottom: 8vh; }
.close h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 14ch; margin: 0.5rem 0 1.2rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; max-width: 720px; }
.contact-grid a, .note {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.contact-grid small, .registry dt, .note small { color: rgba(214, 224, 240, 0.55); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; }
.contact-grid em { font-style: normal; color: var(--muted); font-size: 0.85rem; }

address { margin-top: 1.2rem; font-style: normal; line-height: 1.55; max-width: 46rem; }
address strong, address span { display: block; }
address span { color: var(--muted); margin-top: 0.35rem; }

.registry { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.5rem; margin-top: 1.4rem; max-width: 760px; }
.registry div { border-top: 1px solid var(--line); padding-top: 0.55rem; }
.registry dd { margin: 0.15rem 0 0; }

.managers { margin-top: 1rem; max-width: 62ch; color: var(--muted); }

.page { padding-top: 18vh; max-width: 980px; }
.page h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin: 0.45rem 0 1rem; }
.page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.2rem 0 0.6rem; }
.page p, .page li { line-height: 1.55; color: var(--muted); }
.page p { margin: 0.7rem 0; max-width: 62ch; }
.page a { text-decoration: underline; text-underline-offset: 0.18em; }
.page .actions a { text-decoration: none; }

.people { list-style: none; margin-top: 1rem; border-top: 1px solid var(--line); }
.people li { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 1.5rem var(--pad) 1.7rem;
  border-top: 1px solid var(--line);
}

.foot-brand { display: grid; gap: 0.35rem; }
.foot-brand small { letter-spacing: 0.08em; font-size: 0.68rem; color: rgba(220, 228, 240, 0.55); max-width: 36rem; }
.sign { letter-spacing: 0.22em; }
.foot-links { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.orbit {
  display: block;
  height: 1px;
  width: 7rem;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(0);
}
.site-footer.is-closed .orbit { animation: close-line 0.8s var(--ease) forwards; }
@keyframes close-line { to { transform: scaleX(1); } }

.legal { width: min(720px, calc(100% - (var(--pad) * 2))); margin: 0 auto; padding: 8.5rem 0 12vh; }
.legal h1 { margin: 0.4rem 0 1.2rem; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.legal h2 { margin: 2rem 0 0.45rem; font-size: 1.15rem; font-weight: 550; }
.legal p { margin: 0.7rem 0; color: rgba(232, 237, 245, 0.86); max-width: 62ch; }
.legal a { text-decoration: underline; text-underline-offset: 0.18em; }

@media (max-width: 860px) {
  .shade { background: linear-gradient(to top, rgba(1, 3, 8, 0.2), rgba(1, 3, 8, 0.78) 42%, rgba(1, 3, 8, 0.88)); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 7;
    background: rgba(1, 3, 8, 0.96);
    flex-direction: column;
    justify-content: center;
    padding: 2rem var(--pad);
    gap: 1.2rem;
  }
  .nav-links.is-open { display: flex; }
  .spine { display: none; }
  .destinations a, .project, .project.reverse, .system, .steps, .contact-grid, .registry, .people li, .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }
  .project.reverse .project-copy { order: 0; }
  .destinations a { grid-template-columns: auto 1fr; }
  .destinations em, .destinations span { grid-column: 2; }
  .steps::before { display: none; }
  .foot-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  body.is-intro .hero h1,
  body.is-intro .hero .lede,
  body.is-intro .hero .actions,
  body.is-intro .hero .coord { animation: none; }
  .site-footer.is-closed .orbit { transform: scaleX(1); }
}
/* Shared navigation: readable scroll state, accessible mobile close, no delayed navigation. */
html { scroll-padding-top: 100px; }
body.menu-open { overflow: hidden; }
.nav.is-scrolled { background: rgba(8,11,16,.93); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-toggle { position: relative; z-index: 12; }
.brand { position: relative; z-index: 12; }
main { transition: opacity .2s ease; }
@media (max-width: 860px) {
  .nav-links { z-index: 10; padding-top: 90px; }
  .nav-toggle { min-height: 44px; min-width: 60px; }
}

.nav-directory{position:relative}
.directory-toggle{display:flex;align-items:center;gap:14px;border:0;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer;padding:14px 0}
.directory-toggle span{font-size:19px;color:#7a97ff;transition:transform .2s}
.directory-toggle[aria-expanded=true] span{transform:rotate(45deg)}
.directory-panel{position:absolute;right:0;top:100%;width:min(700px,90vw);padding:30px;display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:28px;border:1px solid #ffffff20;border-radius:12px;background:rgba(14,20,31,.97);backdrop-filter:blur(25px);box-shadow:0 24px 70px #0008;z-index:20}
.directory-panel[hidden]{display:none}
.directory-group{display:flex;flex-direction:column;gap:15px}
.directory-label{font-size:9px;letter-spacing:.1em;color:#8496b4;margin-bottom:8px}
.nav-links .directory-panel a{font-size:13px;line-height:1.5;color:#c5cede;white-space:normal}
.nav-links .directory-panel a:hover{color:#7d9cff}
.directory-toggle:focus-visible,.directory-panel a:focus-visible{outline:2px solid #7194ff;outline-offset:5px}
@media(max-width:860px){
 .nav-links.is-open{overflow-y:auto;justify-content:flex-start;padding-bottom:40px}
 .nav-directory{width:min(100%,540px)}
 .directory-toggle{font-size:25px;justify-content:center;width:100%;padding:0}
 .directory-panel{position:static;width:100%;margin-top:24px;padding:24px;grid-template-columns:1fr 1fr;text-align:left;gap:28px 20px;box-shadow:none}
 .nav-links .directory-panel a{font-size:14px}
}
@media(max-width:390px){.directory-panel{grid-template-columns:1fr}}

/* Shared, subdued motion behind secondary-page content. */
.ambient-page{isolation:isolate}
.ambient-page #ambient-field{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.background-mark{position:fixed;right:-9vw;top:8vh;width:78vw;height:86vh;z-index:1;pointer-events:none;opacity:.13;mask-image:linear-gradient(90deg,transparent,black 35%)}
.background-mark canvas{display:block;width:100%;height:100%}
@media(max-width:860px){.background-mark{width:110vw;right:-30vw;top:20vh;height:65vh;opacity:.09}}
