.landing {
  position: relative;
  height: 100svh;
  min-height: 680px;
  max-height: 980px;
  overflow: hidden;
  color: var(--landing-ink);
  background: var(--landing-bg);
  isolation: isolate;
}
.landing canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene-canvas { z-index: -3; }
#code-canvas { z-index: -2; pointer-events: none; }
.landing-ui { position: relative; width: 100%; height: 100%; }
.landing .country-line {
  color: var(--landing-muted);
  border-color: var(--landing-line);
  pointer-events: auto;
}
.landing .site-header {
  color: var(--landing-ink);
  border-color: var(--landing-line);
  pointer-events: auto;
}
.landing .wordmark { color: var(--landing-ink); }
.landing .header-links { padding-right: 124px; }
.landing .header-links a { color: var(--landing-muted); }
.landing .header-links a:hover { color: var(--landing-ink); }
.landing .github-link { border-color: var(--landing-line); }

.theme-toggle {
  position: fixed;
  z-index: 30;
  top: 42px;
  right: max(22px, calc((100vw - var(--page)) / 2));
  display: inline-flex;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--landing-line);
  align-items: center;
  gap: 8px;
  color: var(--landing-ink);
  background: var(--landing-bg);
  cursor: pointer;
  font: 500 9px/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-orb {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -4px 0 0 currentColor;
}
html[data-theme="night"] .theme-orb { background: currentColor; box-shadow: none; }

.landing-center {
  position: absolute;
  top: 51%;
  left: 50%;
  width: var(--page);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.landing-kicker {
  margin-bottom: clamp(120px, 15vw, 210px);
  color: var(--landing-muted);
  font: 400 10px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.landing-fallback {
  margin: 0;
  font: 700 clamp(66px, 11.2vw, 176px)/.8 var(--display);
  letter-spacing: -.09em;
  opacity: .78;
  transition: opacity .8s ease;
}
.scene-ready .landing-fallback { opacity: .07; }
.landing-signal {
  display: inline-flex;
  margin: clamp(100px, 12vw, 170px) 0 0;
  align-items: center;
  gap: 8px;
  color: var(--landing-muted);
  font: 400 9px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.landing-signal i { width: 5px; height: 5px; border-radius: 50%; background: #16a36a; }

.landing-bottom {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  display: flex;
  width: var(--page);
  margin: auto;
  align-items: end;
  justify-content: space-between;
  pointer-events: auto;
}
.landing-bottom p { margin: 0; color: var(--landing-ink); font: 500 10px/1.65 var(--mono); }
.landing-bottom p span { color: var(--landing-muted); }
.landing-bottom a {
  display: inline-flex;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--landing-line);
  align-items: center;
  gap: 44px;
  font-size: 11px;
  font-weight: 700;
}
.landing-bottom a:hover { border-color: currentColor; }
.landing-bottom a b { color: var(--blue); }

@media (max-width: 720px) {
  .landing { height: 86svh; min-height: 610px; max-height: 780px; }
  .landing .header-links .github-link { display: none; }
  .landing .header-links { padding: 0; }
  .theme-toggle { top: 38px; right: 14px; width: 36px; padding: 0; justify-content: center; }
  .theme-toggle #theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .landing-kicker { margin-bottom: 140px; font-size: 8px; }
  .landing-fallback { font-size: 17vw; }
  .landing-signal { margin-top: 130px; }
  .landing-bottom { bottom: 22px; align-items: flex-end; }
  .landing-bottom p { max-width: 170px; font-size: 8px; }
  .landing-bottom a { min-height: 40px; padding: 0 10px; gap: 16px; font-size: 9px; }
}
