@font-face {
  font-family: "Instrument Sans Variable";
  src: url("assets/instrument-sans-ext.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans Variable";
  src: url("assets/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  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 {
  color-scheme: dark;
  --ink: oklch(0.98 0 0);
  --ink-muted: oklch(0.86 0.012 184);
  --basalt: oklch(0.16 0.008 210 / 0.94);
  --basalt-hover: oklch(0.23 0.018 175 / 0.97);
  --glacier: oklch(0.75 0.08 184);
  --paper: oklch(0.98 0.008 86);
  --paper-hover: oklch(0.93 0.016 86);
  --paper-ink: oklch(0.16 0.008 210);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Instrument Sans Variable", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: oklch(0.1 0.004 210);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: oklch(0.1 0.004 210);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scene,
.shade {
  position: fixed;
  inset: 0;
}

.scene {
  z-index: 0;
  overflow: hidden;
  background: oklch(0.1 0.004 210);
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, oklch(0.08 0.006 210 / 0.48) 0%, transparent 24%),
    linear-gradient(to bottom, transparent 30%, oklch(0.08 0.006 210 / 0.18) 48%, oklch(0.08 0.006 210 / 0.86) 100%);
}

.identity {
  position: fixed;
  z-index: 3;
  top: max(var(--space-md), env(safe-area-inset-top));
  left: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: calc(100vw - 2rem);
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border-radius: 0.875rem;
  background: var(--basalt);
  animation: reveal 600ms var(--ease-out) both;
}

.identity__portrait {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  border: 2px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.identity__name,
.identity__role {
  margin: 0;
  text-wrap: pretty;
}

.identity__name {
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.identity__role {
  margin-top: 0.1875rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  justify-content: center;
  padding: 8.75rem var(--space-md) max(var(--space-lg), env(safe-area-inset-bottom));
}

.destinations {
  display: flex;
  width: min(100%, 26.875rem);
  flex-direction: column;
  gap: var(--space-sm);
}

.destination {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.875rem 1.125rem;
  border: 1px solid oklch(0.9 0.02 184 / 0.34);
  border-radius: 999px;
  color: var(--ink);
  background: var(--basalt);
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms var(--ease-out), background-color 220ms var(--ease-out), color 220ms var(--ease-out);
  animation: reveal 540ms var(--ease-out) both;
}

.destination:nth-child(1) { animation-delay: 90ms; }
.destination:nth-child(2) { animation-delay: 140ms; }
.destination:nth-child(3) { animation-delay: 190ms; }
.destination:nth-child(4) { animation-delay: 240ms; }
.destination:nth-child(5) { animation-delay: 290ms; }
.destination:nth-child(6) { animation-delay: 340ms; }

.destination--primary {
  border-color: transparent;
  color: var(--paper-ink);
  background: var(--paper);
}

.destination__arrow {
  flex: 0 0 auto;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateY(-0.03em);
}

.destination:hover {
  background: var(--basalt-hover);
  transform: translateY(-2px);
}

.destination--primary:hover {
  color: var(--paper-ink);
  background: var(--paper-hover);
}

.destination:active {
  transform: scale(0.985);
}

.destination:focus-visible {
  outline: 3px solid var(--glacier);
  outline-offset: 3px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 50rem) {
  .scene img {
    object-position: 50% 34%;
  }

  .shade {
    background:
      linear-gradient(to right, oklch(0.08 0.006 210 / 0.78) 0%, oklch(0.08 0.006 210 / 0.48) 30%, transparent 62%),
      linear-gradient(to bottom, oklch(0.08 0.006 210 / 0.28) 0%, transparent 26%, oklch(0.08 0.006 210 / 0.18) 100%);
  }

  .identity {
    top: max(var(--space-xl), env(safe-area-inset-top));
    left: clamp(2rem, 7vw, 7rem);
  }

  .page {
    align-items: center;
    justify-content: flex-start;
    padding: 8rem clamp(2rem, 7vw, 7rem) 3rem;
  }

  .destinations {
    width: min(34vw, 26.25rem);
    min-width: 22rem;
  }
}

@media (max-height: 42rem) and (max-width: 49.999rem) {
  .identity__portrait {
    width: 3.25rem;
    height: 3.25rem;
  }

  .destination {
    min-height: 3.25rem;
    padding-block: 0.75rem;
  }

  .destinations {
    gap: var(--space-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity,
  .destination {
    animation: none;
  }

  .destination {
    transition-duration: 0.01ms;
  }
}
