:root {
  --bg: #0b1413;
  --ink: #112321;
  --ink-inverse: #f6f3ee;
  --cta: #f97316;
  --cta-strong: #ea580c;
  --cta-text: #edfffb;
  --radius-md: 12px;
  --max-width: 1240px;
  --header-height: 88px;
  --font-main: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --viewport-stable: 100vh;
  --viewport-cover: 100vh;
}

@supports (height: 100svh) {
  :root {
    --viewport-stable: 100svh;
  }
}

@supports (height: 100lvh) {
  :root {
    --viewport-cover: 100lvh;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: var(--viewport-stable);
  font-family: var(--font-main);
  color: var(--ink-inverse);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
a,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--viewport-cover);
  z-index: 0;
  pointer-events: none;
  background: #05100f;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.site-header {
  position: relative;
  z-index: 400;
}

main {
  position: relative;
  z-index: 1;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 18px 24px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  min-height: 62px;
  padding: 0;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.nav.scrolled .nav-inner {
  padding: 10px 12px 10px 14px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 18, 18, 0.34);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.nav.at-top .nav-inner {
  padding: 0;
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 700;
  transition: background-color 0.18s ease;
}

.nav-cta:hover {
  background: var(--cta-strong);
}

.scene-section {
  min-height: var(--viewport-stable);
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 16px) 24px 18px;
}

.section-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.construction-shell {
  display: grid;
  min-height: calc(var(--viewport-stable) - var(--header-height) - 34px);
  place-items: center;
  text-align: center;
}

.construction-title {
  max-width: min(100%, 28ch);
  margin: 0;
  color: var(--ink-inverse);
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.footer-reveal {
  position: relative;
  z-index: 2;
  min-height: clamp(220px, 34vh, 340px);
  overflow: hidden;
  background: var(--cta);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.22);
}

.footer-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 0% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 56%),
    radial-gradient(120% 80% at 100% 50%, rgba(4, 22, 20, 0.24) 0%, transparent 58%);
  pointer-events: none;
}

.footer-wordmark {
  position: absolute;
  inset: -14% -22%;
  display: grid;
  align-content: center;
  gap: clamp(6px, 1.2vw, 14px);
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 0;
}

.footer-track {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(2.8rem, 10.6vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: 0.055em;
  font-weight: 700;
  color: rgba(8, 30, 27, 0.34);
  animation: footer-drift 24s linear infinite;
}

.footer-track--reverse {
  animation-name: footer-drift-reverse;
  animation-duration: 30s;
}

@keyframes footer-drift {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes footer-drift-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0%);
  }
}

.footer-wordmark > :nth-child(1) {
  animation-delay: -9s;
}

.footer-wordmark > :nth-child(2) {
  animation-delay: -4s;
}

.footer-wordmark > :nth-child(3) {
  animation-delay: -21s;
}

.footer-wordmark > :nth-child(4) {
  animation-delay: -12s;
}

.footer-wordmark > :nth-child(5) {
  animation-delay: -27s;
}

.footer-track--link {
  color: rgba(8, 30, 27, 0.64);
  user-select: none;
}

.footer-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 44px);
  z-index: 2;
  display: flex;
  width: min(calc(100% - 32px), 430px);
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(5, 16, 15, 0.28);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  transform: translateX(-50%);
}

.footer-action {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--cta-text);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.footer-action:hover,
.footer-action:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.08s;
}

@media (max-width: 860px) {
  .nav {
    padding: 14px 16px;
  }

  .nav-inner {
    gap: 14px;
    min-height: 56px;
  }

  .nav.scrolled .nav-inner {
    padding: 8px 10px 8px 12px;
  }

  .nav-brand {
    gap: 8px;
    font-size: 1.08rem;
  }

  .nav-brand img {
    width: 32px;
    height: 32px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .scene-section {
    align-items: flex-start;
    min-height: auto;
    padding: calc(var(--header-height) + 18px) 16px 22px;
  }

  .construction-shell {
    min-height: calc(var(--viewport-stable) - var(--header-height) - 40px);
  }

  .construction-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .footer-reveal {
    min-height: clamp(170px, 24vh, 220px);
  }

  .footer-wordmark {
    inset: -4% -58%;
    gap: 7px;
    transform: rotate(-4deg);
  }

  .footer-track {
    font-size: clamp(1.95rem, 14.5vw, 4.4rem);
    line-height: 0.88;
  }

  .footer-actions {
    width: min(calc(100% - 28px), 360px);
    bottom: 18px;
  }

  .footer-action {
    padding-inline: 8px;
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .nav-brand span {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding-inline: 12px;
  }
}

@media (max-width: 360px) {
  .nav-brand span {
    max-width: 6rem;
  }

  .construction-title {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
