:root {
  color-scheme: dark;
  --champagne: #e7d3b5;
  --pearl: #fbf8f3;
  --warm-beige: #d9c8b2;
  --soft-taupe: #a99c8f;
  --gold: #c79c5a;
  --night: #05080d;
  background: var(--night);
}

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

html,
body,
main {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--night);
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  overflow-x: hidden;
  background: var(--night);
}

.experience {
  height: 156svh;
  background: var(--night);
}

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--night) url("/public/hero-poster.jpg") center / cover no-repeat;
}

.hero-stage,
.card-scene,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-stage {
  overflow: hidden;
  isolation: isolate;
  perspective: 1500px;
}

.card-scene {
  z-index: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 45, 57, 0.5), transparent 45%),
    linear-gradient(160deg, #08101a 0%, var(--night) 55%, #020407 100%);
}

.card-scene::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--light-x, 20%) var(--light-y, 28%),
    rgba(231, 211, 181, 0.16),
    transparent 34%
  );
  content: "";
  pointer-events: none;
}

.card-shell {
  --light-x: 20%;
  --light-y: 28%;
  --tilt-x: 2.2deg;
  --tilt-y: -4.5deg;
  --card-lift: 0px;
  position: relative;
  width: min(90vw, max(48.55vw, 86.3vh));
  aspect-ratio: 1506 / 874;
  transform: translateY(var(--card-lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  filter:
    drop-shadow(0 34px 55px rgba(0, 0, 0, 0.52))
    drop-shadow(0 6px 20px rgba(199, 156, 90, 0.2));
  will-change: transform;
}

.card-base,
.card-specular {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.card-specular {
  opacity: 0.68;
  mix-blend-mode: screen;
  filter: brightness(1.18) contrast(1.28) saturate(0.78);
  -webkit-mask-image: radial-gradient(
    circle at var(--light-x) var(--light-y),
    #000 0%,
    rgba(0, 0, 0, 0.9) 13%,
    rgba(0, 0, 0, 0.28) 31%,
    transparent 52%
  );
  mask-image: radial-gradient(
    circle at var(--light-x) var(--light-y),
    #000 0%,
    rgba(0, 0, 0, 0.9) 13%,
    rgba(0, 0, 0, 0.28) 31%,
    transparent 52%
  );
}

.card-shell::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--light-x) var(--light-y),
      rgba(255, 252, 241, 0.86) 0%,
      rgba(231, 211, 181, 0.34) 10%,
      rgba(199, 156, 90, 0.08) 24%,
      transparent 44%
    ),
    linear-gradient(115deg, transparent 33%, rgba(255, 255, 255, 0.15) 48%, transparent 61%);
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
  -webkit-mask: url("/public/oaks-card-cutout.png?v=cutout-2") center / contain no-repeat;
  mask: url("/public/oaks-card-cutout.png?v=cutout-2") center / contain no-repeat;
}

.card-shell::after {
  position: absolute;
  z-index: 3;
  inset: -2%;
  border: 1px solid rgba(231, 211, 181, 0.08);
  border-radius: 5%;
  box-shadow: 0 0 42px rgba(231, 211, 181, 0.09);
  content: "";
  opacity: 0.8;
  pointer-events: none;
}

.hero-video {
  z-index: 3;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--night);
  opacity: 1;
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-card-revealed .hero-video {
  opacity: 0;
  pointer-events: none;
}

@media (max-aspect-ratio: 3 / 4) {
  .hero {
    background-image: url("/public/hero-poster-mobile.jpg");
  }

  .card-shell {
    width: min(88vw, max(48.6vw, 27.35vh));
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience {
    height: 100svh;
  }

  .hero-video {
    visibility: hidden;
    transition: none;
  }

  .card-shell {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    --card-lift: 0px !important;
  }
}

/* Preserve the standalone privacy page while the homepage is rebuilt. */
.legal-page {
  min-height: 100vh;
  padding: 72px 24px;
  overflow: auto;
  color: #f7f2ea;
  background: #10151d;
  font: 16px/1.65 system-ui, sans-serif;
}

.legal-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}

.legal-wrap a {
  color: inherit;
}

.legal-wrap .wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 64px;
  text-decoration: none;
}

.legal-wrap .mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.legal-wrap h1 {
  margin: 0 0 28px;
  font: 400 clamp(3rem, 9vw, 6rem)/1 Georgia, serif;
}

.legal-wrap h2 {
  margin: 42px 0 10px;
  font-size: 1.1rem;
}

.legal-wrap p,
.legal-wrap li {
  color: #c4c6ca;
}

.legal-wrap .notice {
  padding: 20px;
  color: #19140f;
  background: var(--champagne);
}

.legal-back {
  display: inline-block;
  margin-top: 36px;
}
