/* Falak Labs — falaklabs.com
   Palette: lapis night, gold leaf, parchment. Type: El Messiri (display + Arabic), Hanken Grotesk (text). */

@font-face {
  font-family: "El Messiri";
  src: url("../fonts/el-messiri-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "El Messiri";
  src: url("../fonts/el-messiri-arabic-falak.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lapis: #0A1440;
  --lapis-deep: #070D2C;
  --lapis-raise: #111E5A;
  --ultramarine: #2440B8;
  --gold: #E8B65A;
  --gold-soft: #F3D497;
  --parchment: #F2EAD8;
  --mist: #B4BADB;
  --mist-dim: #8990BB;
  --hairline: rgba(232, 182, 90, 0.2);

  /* game tiles only */
  --turquoise: #3CC8BE;
  --rose: #E7709E;
  --emerald: #47C285;
  --sky: #78A2FF;

  --font-display: "El Messiri", Optima, Candara, "Segoe UI", sans-serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1.03rem, 0.99rem + 0.2vw, 1.14rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(2.05rem, 1.55rem + 2.1vw, 3.4rem);

  --gutter: clamp(16px, 4.2vw, 64px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --header-h: 76px;
  color-scheme: dark;
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--lapis);
  color: var(--parchment);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  background: var(--lapis);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, dl, dd { margin: 0; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--lapis); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: var(--pad-l);
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 100;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--lapis);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------------------------------------------------------------- sky */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s linear;
}
.sky__glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 1000px;
  margin: -500px 0 0 -500px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 68, 196, 0.62), rgba(28, 48, 150, 0.36) 42%, rgba(16, 30, 98, 0.14) 72%, rgba(10, 20, 64, 0) 100%);
  transform: translate3d(70vw, 52vh, 0) scale(1.1);
  will-change: transform;
}
.sky__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sky__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(7, 13, 44, 0) 55%, rgba(5, 9, 32, 0.7) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: auto, 160px 160px;
  opacity: 0.55;
}

.dial {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 1000px;
  height: 1000px;
  margin: -500px 0 0 -500px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(70vw, 52vh, 0) scale(0.6);
  will-change: transform, opacity;
}
.dial__svg { width: 100%; height: 100%; overflow: visible; }
.dial__ring { transform-origin: 0 0; }
.dial text {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  fill: var(--mist);
  fill-opacity: 0.7;
}

.drag-hint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  margin: 0;
  font-size: var(--step--1);
  color: var(--mist);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(70vw, 92vh, 0) translateX(-50%);
  transition: opacity 0.6s linear;
}
.no-webgl .dial,
.no-webgl .drag-hint,
.no-webgl .sky__canvas { display: none; }
.has-webgl .sky__glow,
.has-webgl .sky__vignette { display: none; }
.has-webgl .sky__canvas { opacity: 0; transition: opacity 0.5s linear; }
.has-webgl.sky-live .sky__canvas { opacity: 1; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: env(safe-area-inset-top, 0px) var(--pad-r) 0 var(--pad-l);
  transition: background-color 0.4s linear, box-shadow 0.4s linear, height 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(9, 18, 58, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 1px 0 var(--hairline);
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  border-radius: 6px;
}
.brand .logo { height: 30px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__menu {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--parchment);
  text-decoration: none;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav__menu a:hover::after,
.nav__menu a[aria-current="true"]::after { transform: scaleX(1); }
.nav__menu a[aria-current="true"] { color: var(--gold-soft); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
}
.nav__toggle-bars,
.nav__toggle-bars::before {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.nav__toggle-bars { position: relative; transform: translateY(-3px); }
.nav__toggle-bars::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav-open .nav__toggle-bars { transform: translateY(0) rotate(45deg); }
.nav-open .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

/* ---------------------------------------------------------------- buttons & links */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8em 1.55em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--lapis);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(232, 182, 90, 0.28);
  transition: background-color 0.3s linear, box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.btn:hover {
  background: var(--gold-soft);
  box-shadow: 0 0 0 7px rgba(232, 182, 90, 0.16);
}
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 40px; padding: 0.65em 1.2em; font-size: 0.93rem; }

.text-link {
  color: var(--parchment);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(rgba(242, 234, 216, 0.35), rgba(242, 234, 216, 0.35));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease-out), color 0.3s linear;
}
.text-link:hover { background-size: 100% 1px, 100% 1px; color: var(--gold-soft); }

/* ---------------------------------------------------------------- shared type */

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

main { position: relative; z-index: 3; }
section { position: relative; scroll-margin-top: 64px; }

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4vh) var(--pad-r) 8vh var(--pad-l);
  touch-action: pan-y;
}
.has-webgl.pointer-fine .hero { cursor: grab; }
.has-webgl.pointer-fine .hero.is-dragging { cursor: grabbing; }
.hero__copy { width: min(100%, 52vw); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.65vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin-bottom: 0.42em;
}
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln__in { display: inline-block; text-wrap: balance; }
.hero__lede {
  max-width: 31em;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--mist);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 2.2rem;
}
.hero__art {
  display: none;
  position: absolute;
  right: 6vw;
  top: 50%;
  width: min(40vw, 520px);
  height: auto;
  transform: translateY(-46%);
  opacity: 0.9;
}
.no-webgl .hero__art { display: block; }
.no-webgl .sky { position: absolute; height: 100vh; height: 100svh; }
.no-webgl .make__intro,
.no-webgl .orbits { margin-left: 0; max-width: 74rem; }
.no-webgl .orbits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem clamp(32px, 6vw, 96px);
}
.no-webgl .orbit { min-height: auto; padding: 0; }

/* page-load sequence (only when JS runs) */
.js .ln__in { transform: translateY(108%); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .site-header { opacity: 0; }
.js.is-ready .ln__in { transform: none; transition: transform 1.25s var(--ease-out); }
.js.is-ready .ln:nth-child(2) .ln__in { transition-delay: 0.12s; }
.js.is-ready .reveal { opacity: 1; transform: none; transition: opacity 0.9s linear 0.45s, transform 1.1s var(--ease-out) 0.45s; }
.js.is-ready .hero__actions.reveal { transition-delay: 0.6s, 0.6s; }
.js.is-ready .site-header { opacity: 1; transition: opacity 0.8s linear 0.75s, background-color 0.4s linear, box-shadow 0.4s linear, height 0.4s var(--ease-out); }

/* ---------------------------------------------------------------- what we make */

.make {
  padding: 22vh var(--pad-r) 6vh var(--pad-l);
}
.make__intro,
.orbits {
  margin-left: 54%;
  max-width: 34rem;
}
.make__lede {
  margin-top: 1.2rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--mist);
}
.orbits {
  list-style: none;
  padding: 0;
  margin-top: 10vh;
}
.orbit {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
}
.has-webgl .orbit__body > * { transition: opacity 0.7s linear; }
.has-webgl .orbit:not(.is-active) .orbit__body > :not(.orbit__meta) { opacity: 0.34; }

.orbit__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.1rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--mist);
}
.orbit__glyph {
  width: 46px;
  height: 46px;
  overflow: visible;
  fill: none;
  stroke: var(--mist-dim);
  stroke-opacity: 0.55;
  stroke-width: 1.3;
}
.orbit__glyph circle { fill: var(--mist-dim); fill-opacity: 0.55; stroke: none; }
.orbit__glyph .is-here { stroke: var(--gold); stroke-opacity: 1; stroke-width: 2; }
.orbit__glyph circle.is-here { fill: var(--gold); fill-opacity: 1; }

.orbit__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.orbit__lead {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--gold-soft);
}
.orbit__text {
  margin-top: 1rem;
  max-width: 32em;
  color: var(--mist);
}
.orbit__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--parchment);
}
.orbit__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.orbit__pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
}
.orbit.is-active .orbit__pulse::after { animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* game tiles: a falling piece settles when the Games orbit becomes active */
.tiles {
  --t: 13px;
  position: relative;
  width: calc(var(--t) * 4 + 9px);
  height: calc(var(--t) * 3 + 6px);
  margin-top: 1.4rem;
}
.tiles i {
  position: absolute;
  left: calc(var(--x) * (var(--t) + 3px));
  top: calc(var(--y) * (var(--t) + 3px));
  width: var(--t);
  height: var(--t);
  border-radius: 3px;
  background: var(--c);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.has-webgl .tiles__drop { transform: translateY(-48px); opacity: 0; }
.has-webgl .orbit.is-active .tiles__drop {
  transform: none;
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1) 0.25s, opacity 0.2s linear 0.25s;
}
.has-webgl .orbit.is-active .tiles__drop + .tiles__drop { transition-delay: 0.42s; }

/* ---------------------------------------------------------------- why falak */

.why {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  align-items: center;
  padding: 20vh var(--pad-r) 16vh var(--pad-l);
}
.why__word-wrap {
  grid-column: 1 / span 5;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}
.why__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  overflow: visible;
}
.why__plate .p1 { stroke-opacity: 0.4; }
.why__plate .p2 { stroke-opacity: 0.3; }
.why__plate .p3 { stroke-opacity: 0.13; }
.why__plate .p4 { stroke-opacity: 0.22; stroke-dasharray: 3 7; }
.why__word {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(7rem, 2rem + 15vw, 19rem);
  line-height: 1;
  color: var(--gold);
  transform: translateY(-4%);
}
.why__body {
  grid-column: 7 / span 6;
  max-width: 36rem;
}
.why__body > p { margin-top: 1.1rem; color: var(--mist); }
.why__body [lang="ar"] { font-family: var(--font-display); color: var(--gold-soft); font-size: 1.15em; line-height: 0; }
.entry {
  margin: 1.6rem 0 1.6rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--gold);
}
.entry dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.entry__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  color: var(--parchment);
}
.entry__pos { font-style: italic; color: var(--mist); }
.entry dd { margin-top: 0.35rem; font-size: var(--step-1); line-height: 1.5; color: var(--parchment); }

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem clamp(24px, 4vw, 72px);
  margin-top: 16vh;
}
.principles__title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  color: var(--gold-soft);
}
.principle h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.15;
}
.principle p { margin-top: 0.6rem; max-width: 26em; color: var(--mist); }

/* ---------------------------------------------------------------- contact */

.contact {
  padding: 16vh var(--pad-r) 16vh var(--pad-l);
  border-top: 1px solid var(--hairline);
  background: radial-gradient(70% 90% at 0% 100%, rgba(36, 64, 184, 0.28), rgba(10, 20, 64, 0) 70%);
}
.contact__lede { margin-top: 1rem; max-width: 36em; font-size: var(--step-1); color: var(--mist); text-wrap: pretty; }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 2.6rem;
}
.contact__email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 0.8rem + 5.4vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--parchment);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 6px;
  transition: background-size 0.6s var(--ease-out), color 0.3s linear;
}
.contact__email:hover { background-size: 100% 2px; color: var(--gold-soft); }
.copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6em 1.2em;
  border: 1px solid rgba(232, 182, 90, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s linear, color 0.3s linear, border-color 0.3s linear;
}
.copy:hover { background: rgba(232, 182, 90, 0.12); border-color: var(--gold); }
.copy.is-done { background: var(--gold); color: var(--lapis); border-color: var(--gold); }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}
.contact__links a {
  color: var(--parchment);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 234, 216, 0.35);
  padding-bottom: 2px;
  transition: color 0.3s linear, border-color 0.3s linear;
}
.contact__links a:hover { color: var(--gold-soft); border-color: var(--gold); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 28px var(--pad-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  border-top: 1px solid var(--hairline);
  background: var(--lapis-deep);
  font-size: var(--step--1);
  color: var(--mist);
}
.footer__mark { display: inline-flex; border-radius: 6px; }
.footer__mark .mark { width: 30px; height: 30px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__legal a { color: var(--mist); text-decoration: none; transition: color 0.3s linear; }
.footer__legal a:hover { color: var(--gold-soft); }
.footer__legal a[aria-current="page"] { color: var(--parchment); }
.footer__top { margin-left: auto; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .make__intro, .orbits { margin-left: 50%; }
}

@media (max-width: 819px), (max-width: 1100px) and (max-aspect-ratio: 10/11) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad-r) 24px var(--pad-l);
    background: rgba(9, 18, 58, 0.97);
    box-shadow: 0 1px 0 var(--hairline);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s linear, transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .nav-open .nav__menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s linear, transform 0.4s var(--ease-out), visibility 0s;
  }
  .nav__menu a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
  }
  .nav__menu a::after { display: none; }
  .nav-open .site-header { background: rgba(9, 18, 58, 0.97); }

  .hero {
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 44svh);
    padding-bottom: 8svh;
  }
  .hero__copy { width: 100%; max-width: none; }
  .hero__lede { max-width: 34em; }
  .hero__title { font-size: clamp(1.9rem, 8.6vw, 4.4rem); }
  .hero__art { right: 50%; top: 30%; width: min(76vw, 360px); transform: translate(50%, -50%); }

  .make { padding-top: 8vh; padding-bottom: 0; }
  .make__intro, .orbits { margin-left: 0; max-width: none; }
  .orbits { margin-top: 0; }
  .has-webgl .make__intro { padding-top: 50svh; }
  .orbit { min-height: auto; padding: 8vh 0; }
  .has-webgl .orbit {
    min-height: 96svh;
    justify-content: flex-end;
    padding: 0 0 6svh;
  }
  .has-webgl .make__intro,
  .has-webgl .orbit__body {
    position: relative;
  }
  .has-webgl .make__intro > *,
  .has-webgl .orbit__body > * { position: relative; z-index: 1; }
  .has-webgl .make__intro::before,
  .has-webgl .orbit__body::before {
    content: "";
    position: absolute;
    left: calc(var(--pad-l) * -1);
    right: calc(var(--pad-r) * -1);
    top: -9svh;
    bottom: -5svh;
    background: linear-gradient(to bottom, rgba(10, 20, 64, 0), rgba(10, 20, 64, 0.86) 9svh, rgba(10, 20, 64, 0.86) calc(100% - 5svh), rgba(10, 20, 64, 0));
    pointer-events: none;
  }
  .has-webgl .make__intro::before { top: calc(50svh - 9svh); }
  .has-webgl .orbit:not(.is-active) .orbit__body > :not(.orbit__meta) { opacity: 0.55; }
  .no-webgl .orbits { grid-template-columns: 1fr; gap: 3.5rem; margin-top: 3rem; }

  .why { padding-top: 14vh; }
  .why__word-wrap { grid-column: 1 / -1; width: min(100%, 420px); margin: 0 auto 4rem; }
  .why__body { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; margin-top: 10vh; }
  .footer__top { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .ln__in, .js .reveal { transform: none; opacity: 1; }
}

@media (scripting: none) {
  .ln__in, .reveal, .site-header { transform: none; opacity: 1; }
}
/* the drag hint would sit on top of the headline in the compact layout */
@media (max-width: 819px), (max-width: 1100px) and (max-aspect-ratio: 10/11) {
  .drag-hint { display: none; }
}
