@font-face {
  font-family: 'Neutral Face';
  src: url('/fonts/NeutralFace-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Neutral Face';
  src: url('/fonts/NeutralFace.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #042917;
  --accent: #d2de3e;
  --text: #ffffff;
  /* Layout is measured on a 1920px frame; 1px of the frame = 1vw / 19.2. */
  --pad-x: clamp(20px, 4.17vw, 120px);
  --pad-top: clamp(18px, 3.23vw, 92px);
  --pad-bottom: clamp(18px, 3.33vw, 96px);
  --burger: clamp(44px, 4.8vw, 112px);
  --stroke: clamp(2px, 0.16vw, 4px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Notch and home indicator on phones opened with viewport-fit=cover. */
  --safe-l: calc(var(--pad-x) + env(safe-area-inset-left, 0px));
  --safe-r: calc(var(--pad-x) + env(safe-area-inset-right, 0px));
  --safe-t: calc(var(--pad-top) + env(safe-area-inset-top, 0px));
  --safe-b: calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px));
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
}

body {
  position: fixed;
  inset: 0;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Neutral Face', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a,
button {
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
}

/* ---------- Stage ---------- */

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 1600px;
  pointer-events: none;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cw, 216px);
  aspect-ratio: 2 / 3;
  margin: calc(var(--cw, 216px) * -0.75) 0 0 calc(var(--cw, 216px) * -0.5);
  border-radius: calc(var(--cw, 216px) * 0.11);
  overflow: hidden;
  isolation: isolate;
  background: #0b3a22;
  will-change: transform;
  backface-visibility: hidden;
}

.card img,
.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Depth haze in the page colour instead of shadows: cards at the back of the ring sink into the background. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: var(--shade, 0);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 91.8vw;
  pointer-events: none;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* ---------- Corners ---------- */

.corner {
  position: fixed;
  z-index: 10;
  margin: 0;
}

.corner--tl {
  top: var(--safe-t);
  left: var(--safe-l);
}

.corner--tr {
  top: var(--safe-t);
  right: var(--safe-r);
}

.corner--bl {
  bottom: var(--safe-b);
  left: var(--safe-l);
}

.corner--br {
  bottom: var(--safe-b);
  right: var(--safe-r);
}

.brand {
  z-index: 60;
  width: clamp(76px, 9.17vw, 220px);
}

.brand img {
  width: 100%;
  height: auto;
}

.burger {
  z-index: 60;
  width: var(--burger);
  aspect-ratio: 1;
  border: var(--stroke) solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 0;
  color: var(--accent);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.burger span {
  display: block;
  width: calc(var(--burger) * 0.4);
  height: var(--stroke);
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.2s;
}

.burger span + span {
  margin-top: calc(var(--burger) * 0.08);
}

@media (hover: hover) {
  .burger:hover {
    background: var(--accent);
    color: var(--bg);
  }
}

.burger:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

[data-state] .burger span:nth-child(1) {
  transform: translateY(calc(var(--burger) * 0.08 + var(--stroke))) rotate(45deg);
}

[data-state] .burger span:nth-child(2) {
  opacity: 0;
}

[data-state] .burger span:nth-child(3) {
  transform: translateY(calc((var(--burger) * 0.08 + var(--stroke)) * -1)) rotate(-45deg);
}

.soon {
  color: var(--accent);
  font-size: clamp(13px, 1.25vw, 30px);
  line-height: 1.12;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.partner__logo {
  width: clamp(104px, 8.33vw, 200px);
  height: auto;
  opacity: 0.5;
}

.partner__title {
  margin: clamp(10px, 1.3vw, 30px) 0 0;
  font-size: clamp(10px, 0.833vw, 20px);
  line-height: 1.14;
}

.partner__link {
  margin-top: clamp(14px, 1.95vw, 46px);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6vw, 40px);
  color: var(--accent);
  font-size: clamp(13px, 1.25vw, 30px);
  line-height: 1;
  text-decoration: none;
}

.partner__link svg {
  width: clamp(36px, 3.2vw, 76px);
  height: auto;
  transition: transform 0.4s var(--ease);
}

.partner__link:hover svg,
.partner__link:focus-visible svg {
  transform: translateX(8px);
}

/* ---------- Overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  padding: calc(var(--safe-t) + var(--burger) + 4vh) var(--safe-r) var(--safe-b) var(--safe-l);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}

[data-state='menu'] .menu,
[data-state='about'] .about {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s;
}

.menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0;
}

.menu__item {
  color: var(--accent);
  font-size: clamp(44px, 9vw, 200px);
  line-height: 1.05;
  text-decoration: none;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.2s;
}

[data-state='menu'] .menu__item {
  transform: none;
  opacity: 1;
}

[data-state='menu'] .menu__item:nth-child(2) {
  transition-delay: 0.06s, 0.06s, 0s;
}

[data-state='menu'] .menu__item:nth-child(3) {
  transition-delay: 0.12s, 0.12s, 0s;
}

.menu__item:focus-visible {
  color: var(--text);
  outline: none;
}

@media (hover: hover) {
  .menu__item:hover {
    color: var(--text);
  }
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  font-size: clamp(12px, 0.94vw, 22px);
}

.menu__foot a,
.about__links a {
  text-decoration: none;
}

.menu__foot a:hover,
.about__links a:hover {
  color: var(--accent);
}

.about {
  display: flex;
  align-items: center;
}

.about__body {
  max-width: 1500px;
}

.about__title {
  margin: 0 0 clamp(16px, 2vw, 40px);
  color: var(--accent);
  font-size: clamp(13px, 1.25vw, 30px);
}

.about__lead {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 76px);
  line-height: 1.08;
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 72px);
  margin-top: clamp(28px, 4.5vw, 100px);
  font-size: clamp(12px, 1.04vw, 24px);
  line-height: 1.35;
  color: rgb(255 255 255 / 0.78);
}

.about__cols p {
  margin: 0;
}

.about__links {
  display: flex;
  gap: 32px;
  margin: clamp(28px, 4vw, 90px) 0 0;
  color: var(--accent);
  font-size: clamp(13px, 1.25vw, 30px);
}

/* ---------- Tablets and phones ---------- */

@media (max-width: 760px) {
  .about__cols {
    grid-template-columns: 1fr;
  }
}

/* Portrait tablets: the 1920 scale makes corners too small at ~800px. */
@media (orientation: portrait) and (min-width: 601px) {
  :root {
    --pad-x: 40px;
    --pad-top: 36px;
    --pad-bottom: 40px;
    --burger: 64px;
    --stroke: 2.5px;
  }

  .brand {
    width: 132px;
    top: calc(var(--safe-t) + var(--burger) / 2);
    transform: translateY(-50%);
  }

  .soon,
  .partner__link {
    font-size: 19px;
  }

  .partner__logo {
    width: 150px;
  }

  .partner__title {
    margin-top: 14px;
    font-size: 13px;
  }

  .partner__link {
    margin-top: 22px;
  }

  .partner__link svg {
    width: 52px;
  }

  .about__lead {
    font-size: 40px;
  }

  .about__cols {
    font-size: 16px;
  }
}

/* Phones, portrait: the orbit fills the band between the top bar and the
   bottom blocks (orbit.js measures it), the corners grow to a thumb's size. */
@media (orientation: portrait) and (max-width: 600px) {
  :root {
    --pad-x: 20px;
    --pad-top: 14px;
    --pad-bottom: 22px;
    --burger: 48px;
    --stroke: 2px;
  }

  .brand {
    width: 100px;
    top: calc(var(--safe-t) + var(--burger) / 2);
    transform: translateY(-50%);
  }

  .hero-logo {
    width: calc(100vw - 2 * var(--pad-x));
  }

  .soon {
    font-size: 15px;
    line-height: 1.15;
  }

  .partner {
    max-width: 58vw;
  }

  .partner__logo {
    width: 112px;
  }

  .partner__title {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.2;
  }

  .partner__link {
    margin-top: 14px;
    font-size: 15px;
  }

  .partner__link svg {
    width: 40px;
  }

  .menu__item {
    font-size: clamp(40px, 13.5vw, 76px);
    line-height: 1.1;
  }

  .menu__foot {
    font-size: 13px;
  }

  .about__lead {
    font-size: clamp(22px, 7vw, 32px);
  }

  .about__cols {
    margin-top: 28px;
    gap: 16px;
    font-size: 13px;
  }

  .about__links {
    font-size: 15px;
  }
}

@media (orientation: portrait) and (max-width: 359px) {
  :root {
    --pad-x: 16px;
  }

  .soon,
  .partner__link {
    font-size: 13px;
  }

  .partner__logo {
    width: 96px;
  }

  .partner__title {
    font-size: 10px;
  }
}

/* Phones, landscape: little height, so the logo is sized by height too. */
@media (orientation: landscape) and (max-height: 540px) {
  :root {
    --pad-x: 24px;
    --pad-top: 12px;
    --pad-bottom: 14px;
    --burger: 42px;
    --stroke: 2px;
  }

  .brand {
    width: 92px;
    top: calc(var(--safe-t) + var(--burger) / 2);
    transform: translateY(-50%);
  }

  .hero-logo {
    width: min(91.8vw, calc((100dvh - 2 * (var(--safe-t) + var(--burger) + 16px)) * 4.85));
  }

  .soon,
  .partner__link {
    font-size: 13px;
  }

  .partner__logo {
    width: 96px;
  }

  .partner__title {
    margin-top: 8px;
    font-size: 10px;
  }

  .partner__link {
    margin-top: 10px;
  }

  .menu__item {
    font-size: clamp(32px, 13dvh, 72px);
  }

  .about__lead {
    font-size: 22px;
  }

  .about__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
    font-size: 11px;
  }

  .about__links {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
