:root {
  --cream: #f2ead9;
  --amber: #e7a452;
  --ground: #07090b;
  --brand: Georgia, "Times New Roman", serif;
  --world-x: 0px;
  --world-y: 0px;
  --shade-x: 0px;
  --shade-y: 0px;
  --depth-far-x: 0px;
  --depth-far-y: 0px;
  --depth-near-x: 0px;
  --depth-near-y: 0px;
  --title-x: 0px;
  --title-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ground);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--brand);
  -webkit-font-smoothing: antialiased;
}

p,
h1 {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 50;
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  color: var(--ground);
  font: 400 0.72rem/1 var(--brand);
  text-decoration: none;
  transform: translateY(-180%);
}

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

.world,
.world-shade {
  position: fixed;
  inset: 0;
}

.world {
  z-index: -3;
  overflow: hidden;
  background: var(--ground);
  pointer-events: none;
}

.world-plane,
.depth-plane {
  position: absolute;
  pointer-events: none;
}

.world-plane-back {
  z-index: 1;
  inset: -2rem;
  transform: translate3d(var(--world-x), var(--world-y), 0) scale(1.012);
  transform-origin: center;
}

.world-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.world-day {
  z-index: 1;
  opacity: 1;
}

.depth-plane {
  inset: -8%;
  z-index: 3;
}

.depth-plane-far {
  background:
    radial-gradient(circle at 57% 46%, rgba(71, 208, 224, 0.12), transparent 28%),
    radial-gradient(circle at 23% 12%, rgba(231, 164, 82, 0.09), transparent 20%);
  opacity: 0.58;
  transform: translate3d(var(--depth-far-x), var(--depth-far-y), 0);
}

.depth-plane-near {
  background:
    radial-gradient(ellipse at 76% 110%, rgba(27, 184, 208, 0.14), transparent 39%),
    radial-gradient(ellipse at 31% 107%, rgba(224, 91, 41, 0.15), transparent 35%);
  filter: blur(0.55rem);
  opacity: 0.54;
  transform: translate3d(var(--depth-near-x), var(--depth-near-y), 0);
}

.world-shade {
  z-index: -2;
  inset: -1rem;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.78) 0%, rgba(4, 6, 8, 0.38) 42%, rgba(4, 6, 8, 0.08) 72%),
    linear-gradient(0deg, rgba(4, 6, 8, 0.46), transparent 45%);
  pointer-events: none;
  transform: translate3d(var(--shade-x), var(--shade-y), 0);
}

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 6rem;
  padding-inline: clamp(1.4rem, 5vw, 5rem);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-symbol {
  width: clamp(2.25rem, 3.4vw, 3rem);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.28);
}

.wordmark,
.demo-entry {
  font-family: var(--brand);
  font-weight: 400;
  letter-spacing: 0;
}

.wordmark {
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  text-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.55);
}

.door {
  display: flex;
  align-items: center;
  width: min(100%, 100rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(7rem, 12vh, 10rem) clamp(1.4rem, 7vw, 7rem) clamp(5rem, 10vh, 8rem);
}

.door:focus {
  outline: none;
}

.title-layer h1 {
  transform: translate3d(var(--title-x), var(--title-y), 0);
}

.door h1 {
  max-width: 9.5ch;
  font-size: clamp(3.2rem, 7.2vw, 7.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 0.15rem 2.5rem rgba(0, 0, 0, 0.45);
}

.demo-entry {
  position: fixed;
  left: 50%;
  bottom: clamp(1.7rem, 3vw, 3rem);
  z-index: 10;
  display: grid;
  min-width: min(20rem, calc(100vw - 2.8rem));
  gap: 0.48rem;
  transform: translateX(-50%);
}

.demo-kicker {
  color: rgba(242, 234, 217, 0.82);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
}

.demo-cta {
  display: flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(242, 234, 217, 0.52);
  border-radius: 0.18rem;
  background: rgba(7, 9, 11, 0.48);
  color: var(--cream);
  padding: 0 1rem;
  box-shadow: 0 0.8rem 2.8rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  text-decoration: none;
}

.demo-cta:hover {
  border-color: var(--amber);
  background: rgba(7, 9, 11, 0.6);
}

.demo-cta span {
  color: var(--amber);
  font-size: 1.1rem;
}

.motion-ready .world-plane-back,
.motion-ready .world-shade,
.motion-ready .depth-plane,
.motion-ready .title-layer h1 {
  will-change: transform;
}

@media (min-width: 48.01rem) {
  .door {
    padding-left: clamp(16rem, 20vw, 22rem);
  }
}

@media (max-width: 48rem) {
  .world-image {
    object-position: 58% center;
  }

  .world-shade {
    background: linear-gradient(90deg, rgba(4, 6, 8, 0.76), rgba(4, 6, 8, 0.18));
  }

  .depth-plane-far {
    opacity: 0.44;
  }

  .depth-plane-near {
    opacity: 0.38;
  }

  .door {
    align-items: flex-end;
    padding-bottom: 8rem;
  }

  .door h1 {
    font-size: clamp(3rem, 13.2vw, 4.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .world-plane-back,
  .world-shade,
  .depth-plane,
  .title-layer h1 {
    transform: none !important;
    will-change: auto !important;
  }

  .world-day {
    opacity: 1;
  }
}
