/* Page structure: top bar, chapter navigation, hero, chapters and footer. */

/* Top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
  padding: 0 var(--page-gutter);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.topbar__monogram {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--color-on-text);
  background: var(--color-text);
  font: 500 12px var(--font-mono);
}

.topbar__location {
  margin-left: auto;
  font-size: 14px;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  .topbar__location {
    display: none;
  }

  .topbar .button--icon {
    margin-left: auto;
  }
}

/* Chapter navigation */

.chapter-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  translate: -50% 0;
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.3);
}

.chapter-nav button {
  position: relative;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-muted);
  background: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.chapter-nav button.is-active {
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Narrow screens: swap the chapter names for their short labels. */
@media (max-width: 860px) {
  .chapter-nav button {
    width: 30px;
    padding: 0;
    font-size: 0;
  }

  .chapter-nav button::after {
    content: attr(data-short);
    font: 500 12px var(--font-mono);
  }
}

/* Main column: lets pointer events through to the 3D stage behind it. */

main {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

main .card,
main a,
main button,
.hero__content {
  pointer-events: auto;
}

/* Hero */

.hero {
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: 120px var(--page-gutter) 110px;
}

.hero__content {
  max-width: 620px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  background: var(--color-surface);
  font-size: 13px;
}

.hero__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(52px, 8.4vw, 120px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 0.36em;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero p {
  max-width: 44ch;
  font-size: 18px;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--color-muted);
  font: 400 13px var(--font-mono);
}

.hero__hint i {
  position: relative;
  width: 16px;
  height: 26px;
  border: 1.5px solid var(--color-muted);
  border-radius: 9px;
}

.hero__hint i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 5px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--color-accent);
  animation: scroll-hint 1.6s infinite;
}

@keyframes scroll-hint {
  to {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 80px);
  }
}

/* Chapters: tall sections that give the sticky cards room to scroll. */

.chapter {
  min-height: 170vh;
  padding: 0 var(--page-gutter);
}

.chapter--contact {
  display: grid;
  align-items: start;
  min-height: 150vh;
}

.drive-off {
  height: 70vh;
}

@media (max-width: 760px) {
  .chapter {
    min-height: 150vh;
    padding-top: 30svh;
  }
}

/* Footer */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 30px var(--page-gutter) 90px;
  font-size: 13px;
  color: var(--color-muted);
}
