:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #d3c9ae;
  --dim: #9d947e;
  --line: rgba(247, 243, 232, 0.18);
  --gold: #d9ad57;
  --moss: #8aa17b;
  --charcoal: #10120f;
  --panel: rgba(16, 18, 15, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--charcoal);
}

a {
  color: inherit;
}

.site-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0) 0%, #10120f 69%),
    #10120f;
}

.hero {
  position: relative;
  min-height: 165svh;
  isolation: isolate;
  --reveal-progress: 0;
}

.hero-pin {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px clamp(20px, 4vw, 64px) 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #10120f;
}

.hero-media img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(48% + (var(--reveal-progress) * 16%));
  opacity: 0.88;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(calc(1.2 - (var(--reveal-progress) * 0.14)));
  transform-origin: center;
  transition: transform 120ms linear, object-position 120ms linear;
  animation: slowDrift 24s ease-in-out infinite alternate;
}

.hero-media img {
  z-index: 0;
  opacity: 0.72;
}

.hero-video {
  z-index: 1;
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 48% calc(36% + (var(--reveal-progress) * 12%)), rgba(244, 211, 126, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(16, 18, 15, 0.84), rgba(16, 18, 15, 0.22) 48%, rgba(16, 18, 15, 0.76)),
    linear-gradient(180deg, rgba(16, 18, 15, 0.05), rgba(16, 18, 15, 0.44) 70%, #10120f);
}

.light-sweep {
  position: absolute;
  inset: -36%;
  z-index: 2;
  background: linear-gradient(104deg, transparent 30%, rgba(255, 238, 184, 0.3) 48%, transparent 65%);
  transform: translateX(-20%) rotate(3deg);
  animation: lightSweep 8.5s ease-in-out infinite;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.light-pulse {
  position: absolute;
  inset: -12%;
  z-index: 2;
  background:
    radial-gradient(circle at 54% 36%, rgba(252, 220, 143, 0.28), transparent 24%),
    radial-gradient(circle at 42% 58%, rgba(138, 161, 123, 0.16), transparent 22%);
  animation: lightPulse 7s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 7px 7px;
}

.topbar,
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  align-self: start;
}

.topbar.minimal {
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  background: rgba(16, 18, 15, 0.48);
}

.footer a {
  text-decoration-color: rgba(217, 173, 87, 0.58);
  text-underline-offset: 5px;
}

.hero-content {
  width: min(920px, 100%);
  align-self: end;
  margin: 0 auto;
  padding-top: 22vh;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 500;
}

h2 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  font-weight: 500;
}

.footer {
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(247, 243, 232, 0.12);
  background: #0c0e0c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

.simple-page {
  background:
    linear-gradient(135deg, rgba(217, 173, 87, 0.13), transparent 34%),
    #10120f;
}

.simple-header {
  padding: 28px clamp(20px, 4vw, 64px);
}

.legal-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0 96px;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 6rem);
}

.legal-content h2 {
  max-width: none;
  margin-top: 42px;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.legal-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-content .updated {
  color: var(--dim);
  font-size: 0.95rem;
}

@keyframes slowDrift {
  from {
    filter: saturate(0.92) contrast(1.04) brightness(0.96);
  }
  to {
    filter: saturate(1.04) contrast(1.1) brightness(1.12);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-28%) rotate(3deg);
  }
  42%,
  64% {
    opacity: 1;
  }
  78% {
    opacity: 0;
    transform: translateX(28%) rotate(3deg);
  }
}

@keyframes lightPulse {
  from {
    opacity: 0.42;
    transform: translate3d(-1.2%, -1%, 0) scale(1);
  }
  to {
    opacity: 0.88;
    transform: translate3d(1.2%, 1%, 0) scale(1.05);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 155svh;
  }

  .hero-pin {
    padding-top: 22px;
  }

  .topbar,
  .footer-inner {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    align-self: center;
    padding-top: 8vh;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.6rem);
  }
}

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

  .hero-media img,
  .hero-video,
  .light-sweep,
  .light-pulse {
    animation: none;
  }
}
