:root {
  --void: #0b0e0c;
  --bark: #141a16;
  --paper: #efe6d6;
  --ink: #e8dfd0;
  --mute: #8b8478;
  --gold: #d4a84b;
  --signal: #e11d48;
  --serif: "Fraunces", serif;
  --sans: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #0b0e0c;
  scroll-behavior: smooth;
  overflow-x: clip;
}

html.lenis {
  scroll-behavior: auto;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/topo-grain.jpg") center / cover;
  filter: brightness(1.85) contrast(1.55) saturate(1.2);
  opacity: 0.72;
  pointer-events: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("../assets/topo-grain.jpg");
  background-size: 420px;
}

.spine {
  position: fixed;
  top: 0;
  right: 48px;
  bottom: 0;
  z-index: 20;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.45;
  pointer-events: none;
}

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.fine,
  body.fine a,
  body.fine button {
    cursor: none;
  }

  body.fine button.figure {
    cursor: grab;
  }

  body.fine button.figure.is-drag {
    cursor: grabbing;
  }

  .cursor {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    pointer-events: none;
    mix-blend-mode: difference;
  }

  .cursor b {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
  }
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #070807;
}

.boot img {
  width: 64px;
}

.boot i {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 64px;
  height: 1px;
  margin-left: -32px;
  background: #222;
  overflow: hidden;
}

.boot i::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--signal);
  animation: fill 1.1s ease forwards;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: rgba(11, 14, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(232, 223, 208, 0.1);
}

.bar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.bar__brand img {
  width: 28px;
}

.bar__end {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bar__menu {
  display: none;
}

.langs {
  position: relative;
  flex-shrink: 0;
}

.langs__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  color: rgba(232, 223, 208, 0.82);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.langs.is-open .langs__btn,
.langs__btn:hover {
  color: var(--gold);
}

.langs__icon {
  display: block;
  width: 16px;
  height: 16px;
}

.langs__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  min-width: 196px;
  max-height: min(70vh, 440px);
  overflow: auto;
  padding: 8px 0;
  background: rgba(11, 14, 12, 0.96);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(232, 223, 208, 0.1);
}

.langs__list[hidden] {
  display: none;
}

.langs__list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 16px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(232, 223, 208, 0.82);
}

.langs__list button:hover,
.langs__list button.is-on {
  color: var(--gold);
}

.langs__tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(232, 223, 208, 0.38);
}

#site-nav {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#site-nav a {
  color: rgba(232, 223, 208, 0.92);
}

#site-nav a:hover {
  color: #fff;
}

.figure {
  position: fixed;
  z-index: 55;
  right: 22px;
  top: 38%;
  width: 54px;
  background: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.figure::after {
  content: "";
  position: absolute;
  inset: -18px -26px;
}

.figure.is-drag {
  cursor: grabbing;
}

.figure svg {
  width: 100%;
  overflow: visible;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.4));
}

.figure.is-walk .leg.l {
  transform-origin: 32.5px 62px;
  animation: stepL 0.38s ease-in-out infinite;
}

.figure.is-walk .leg.r {
  transform-origin: 47.5px 62px;
  animation: stepR 0.38s ease-in-out infinite;
}

@keyframes stepL {
  50% {
    transform: rotate(-14deg);
  }
}

@keyframes stepR {
  50% {
    transform: rotate(14deg);
  }
}

.hero {
  position: relative;
  display: grid;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
}

.hero__still,
.hero__shade,
.hero__copy,
.hero > .sr-only {
  grid-column: 1;
  grid-row: 1;
}

.hero__still {
  min-height: 0;
  height: 100%;
}

.hero__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: none;
  display: block;
}

.hero__shade {
  background:
    linear-gradient(
      180deg,
      rgba(11, 14, 12, 0.5) 0%,
      rgba(11, 14, 12, 0.12) 22%,
      transparent 38%,
      rgba(11, 14, 12, 0.22) 68%,
      rgba(11, 14, 12, 0.62) 100%
    );
}

.hero__copy {
  align-self: end;
  z-index: 2;
  padding: 0 80px 48px 28px;
}

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

.hero__sub {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.35;
  color: rgba(232, 223, 208, 0.96);
  max-width: 38ch;
  text-shadow: 0 1px 10px rgba(11, 14, 12, 0.55);
}

.note {
  background: var(--paper);
  color: var(--void);
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 28px;
}

.note p {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.note em {
  font-style: italic;
  font-weight: 400;
  color: #6a5f4e;
}

.survey,
.plates,
.booking,
.colophon,
#top {
  scroll-margin-top: 88px;
}

.survey {
  padding: 120px 28px 80px;
}

.survey__stage {
  display: grid;
  gap: 28px;
}

.survey__head > p:first-of-type,
.plates__head p,
.practice__kicker,
.booking__kicker,
.colophon > p:not(.colophon__lead) {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.survey h2,
.plates h2,
.practice h2,
.booking h2,
.colophon h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.survey__lead,
.booking__lead {
  max-width: 46ch;
  padding: 18px 20px;
  color: rgba(232, 223, 208, 0.9);
  font-size: 17px;
  line-height: 1.55;
  background: rgba(11, 14, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
}

.survey__lead {
  max-width: 42ch;
  margin-top: 20px;
}

.survey__head h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.instrument {
  min-width: 0;
}

.instrument__frame {
  position: relative;
  height: min(62vh, 640px);
  background: #000;
  overflow: hidden;
}

.instrument__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.instrument__mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 168, 75, 0.28);
}

.instrument__drag {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.instrument__data,
.walk-data {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.instrument__data a,
.walk-data a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.plates {
  padding: 40px 28px 40px;
}

.plate {
  display: grid;
  gap: 28px;
  padding: 48px 0;
  border-top: 1px solid rgba(232, 223, 208, 0.1);
}

.plate__img {
  position: relative;
  overflow: hidden;
  height: min(62vh, 640px);
}

.plate__img img,
.plate__img iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate__img iframe {
  border: 0;
  display: block;
}

.plate__img img {
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.plate:hover .plate__img img {
  transform: scale(1.04);
}

.plate__txt {
  padding: 22px 24px 24px;
  background: rgba(11, 14, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
}

.plate__txt span {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 12px;
}

.plate__txt h3 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 8px 0 16px;
}

.plate__txt p {
  max-width: 38ch;
  color: rgba(232, 223, 208, 0.9);
  font-size: 17px;
  line-height: 1.55;
}

.plate__txt button {
  margin-top: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

@media (max-width: 979px) {
  .plate__txt,
  .survey__head {
    order: -1;
  }
}

@media (min-width: 980px) {
  .plate {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 56px;
  }

  .plate--flip {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .plate--flip .plate__media {
    order: 2;
  }

  .survey__stage {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 56px;
  }
}

.practice {
  padding: 64px 28px 100px;
}

.practice h2 em {
  font-style: italic;
  color: var(--gold);
}

.booking {
  padding: 120px 0 80px;
}

.booking__kicker,
.booking h2,
.booking__lead {
  margin-left: 28px;
  margin-right: 28px;
}

.booking__lead {
  max-width: 54ch;
  margin-top: 20px;
}

.booking__frame {
  display: block;
  width: 100%;
  min-height: 720px;
  margin-top: 40px;
  border: 0;
  background: transparent;
  opacity: 0.8;
}

.colophon {
  background: var(--paper);
  color: var(--void);
  padding: 100px 28px 60px;
}

.colophon > p:not(.colophon__lead) {
  color: #9a4a2a;
}

.colophon h2 {
  margin-bottom: 40px;
}

.colophon__lead {
  max-width: 46ch;
  margin-bottom: 40px;
  color: #5c5348;
  font-size: 18px;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0.01em;
}

.colophon dl {
  display: grid;
  gap: 22px;
  max-width: 520px;
}

.colophon dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a6e5e;
  margin-bottom: 6px;
}

.colophon dd {
  font-family: var(--serif);
  font-size: 28px;
  min-height: 36px;
}

.reveal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #7a6e5e;
  position: relative;
  z-index: 1;
  padding: 4px 0;
}

.reveal svg {
  width: 42px;
  height: 28px;
  flex-shrink: 0;
}

.reveal__hint {
  border-bottom: 1px dashed #c9bba6;
  padding-bottom: 2px;
}

.reveal__open,
.colophon dd.is-open .reveal__closed,
.colophon dd.is-open .reveal__hint {
  display: none;
}

.colophon dd.is-open .reveal__open {
  display: block;
}

.reveal__val {
  display: none;
}

.colophon dd.is-open .reveal__val {
  display: inline;
}

.colophon dd a.reveal__val {
  color: inherit;
  border-bottom: 1px solid rgba(154, 74, 42, 0.35);
  padding-bottom: 2px;
}

.colophon dd[data-void] {
  color: #b7aa98;
  border-bottom: 1px dashed #c9bba6;
  display: inline-block;
}

.colophon footer {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7a6e5e;
  font-size: 12px;
}

.colophon footer img {
  width: 36px;
}

@media (max-width: 800px) {
  .spine {
    display: none;
  }

  .bar {
    padding: 6px 10px 6px 12px;
    min-height: 44px;
  }

  .hero__copy {
    padding: 0 56px 28px 16px;
  }

  .hero__sub {
    font-size: 15px;
    max-width: 34ch;
  }

  .bar__brand {
    gap: 8px;
    font-size: 16px;
  }

  .bar__brand img {
    width: 22px;
  }

  .bar__end {
    margin-left: auto;
    gap: 2px;
  }

  .langs__btn {
    padding: 8px 8px;
  }

  .bar__menu {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .bar__menu span,
  .bar__menu span::before,
  .bar__menu span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .bar__menu span {
    position: relative;
  }

  .bar__menu span::before,
  .bar__menu span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .bar__menu span::before {
    top: -6px;
  }

  .bar__menu span::after {
    top: 6px;
  }

  .bar.is-open .bar__menu span {
    background: transparent;
  }

  .bar.is-open .bar__menu span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .bar.is-open .bar__menu span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 16px 14px;
    background: rgba(11, 14, 12, 0.94);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border-bottom: 1px solid rgba(232, 223, 208, 0.1);
    visibility: hidden;
    pointer-events: none;
  }

  .bar.is-open #site-nav {
    visibility: visible;
    pointer-events: auto;
  }

  #site-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(232, 223, 208, 0.08);
  }

  .figure {
    right: 12px;
    width: 44px;
  }

  .instrument__data,
  .walk-data {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .figure.is-walk .leg {
    animation: none;
  }
}
