:root {
  color-scheme: dark;
  --ink: #f5f0e3;
  --muted: #b8beb2;
  --forest: #172321;
  --forest-deep: #0b1211;
  --sage: #90aa83;
  --gold: #e4bd68;
  --wine: #7d3040;
  --line: rgba(255, 255, 255, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--forest-deep);
  color: var(--ink);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.landing-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 13%, rgba(144, 170, 131, 0.17), transparent 30rem),
    radial-gradient(circle at 82% 83%, rgba(125, 48, 64, 0.2), transparent 34rem),
    linear-gradient(135deg, #172321, #0b1211 64%);
}

.landing-page::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.portal-age-gate {
  position: relative;
  z-index: 4;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.portal-age-card {
  width: min(500px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 7vw, 3.5rem);
  background: rgba(15, 24, 22, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  text-align: center;
  backdrop-filter: blur(18px);
}

.age-brand {
  margin-bottom: 2.75rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.age-brand em {
  color: var(--gold);
}

.portal-age-card .eyebrow {
  margin-bottom: 0.8rem;
}

.portal-age-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 10vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.portal-age-card > p:not(.eyebrow) {
  margin: 1rem auto 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.age-confirm {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.age-policy-link {
  display: inline-block;
  margin-top: 1.35rem;
  color: #9da79d;
  font-size: 0.78rem;
  text-underline-offset: 0.2em;
}

.age-policy-link:hover {
  color: var(--ink);
}

.landing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem);
}

.hero {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.interior-shell h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.hero h1 {
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.72;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 500;
}

.lede {
  max-width: 520px;
  margin: 2.5rem 0 2rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.primary-action {
  display: inline-flex;
  min-width: min(100%, 330px);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(228, 189, 104, 0.75);
  border-radius: 999px;
  padding: 1rem 1.15rem 1rem 1.5rem;
  background: var(--gold);
  color: #17140d;
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  background: #f0cb79;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.action-arrow {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  place-items: center;
  background: #1a2421;
  color: var(--ink);
  font-size: 1.2rem;
}

.play-note {
  margin: 1rem 0 0 1.5rem;
  color: #8d978d;
  font-size: 0.75rem;
}

.card-scene {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.glow {
  position: absolute;
  top: 11%;
  left: 12%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 189, 104, 0.24), rgba(125, 48, 64, 0.08) 45%, transparent 70%);
  filter: blur(12px);
}

.playing-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(260px, 58vw);
  aspect-ratio: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 19px;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.44);
}

.playing-card::before,
.playing-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.playing-card::before {
  width: 72%;
  aspect-ratio: 1;
}

.playing-card::after {
  width: 50%;
  aspect-ratio: 1;
}

.playing-card span {
  z-index: 1;
  display: grid;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.card-left {
  transform: translate(-72%, -48%) rotate(-13deg);
  background: linear-gradient(145deg, #415f55, #182a25 70%);
}

.card-center {
  z-index: 2;
  transform: translate(-50%, -55%) rotate(1deg);
  background:
    radial-gradient(circle at center, rgba(228, 189, 104, 0.2), transparent 42%),
    linear-gradient(145deg, #773849, #341923 70%);
}

.card-center span {
  color: var(--gold);
}

.card-right {
  transform: translate(-28%, -46%) rotate(14deg);
  background: linear-gradient(145deg, #45566b, #1b2532 70%);
}

.privacy-link,
.other-link {
  position: fixed;
  z-index: 3;
  bottom: 1.5rem;
  font-size: 0.78rem;
  text-decoration: none;
}

.privacy-link {
  left: 1.75rem;
  color: #8d978d;
}

.other-link {
  right: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(11, 18, 17, 0.72);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.privacy-link:hover,
.other-link:hover,
.header-link:hover,
.text-action:hover {
  color: var(--ink);
}

.interior-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(125, 48, 64, 0.2), transparent 36rem),
    linear-gradient(145deg, #15211f, #0a1010 70%);
}

.site-header {
  display: flex;
  width: min(1060px, calc(100% - 3rem));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
  text-decoration: none;
}

.header-link {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.interior-shell {
  width: min(860px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.interior-shell h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
}

.interior-lede {
  max-width: 650px;
  margin: 1.75rem 0 3.5rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.6;
}

.empty-projects {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: rgba(255, 255, 255, 0.035);
}

.empty-mark {
  display: grid;
  width: 4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(228, 189, 104, 0.45);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.empty-projects h2 {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.empty-projects p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(228, 189, 104, 0.62);
  background: linear-gradient(120deg, rgba(144, 170, 131, 0.12), rgba(125, 48, 64, 0.1));
  outline: none;
  transform: translateY(-2px);
}

.project-number {
  color: var(--gold);
  font: 700 0.75rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.16em;
}

.project-copy {
  display: grid;
  gap: 0.45rem;
}

.project-kicker {
  color: #8f9b91;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-copy strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 500;
}

.project-copy > span:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.project-arrow {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  font-size: 1.2rem;
}

.text-action {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.policy-shell {
  max-width: 820px;
}

.policy-date {
  margin: 1.2rem 0 3.5rem;
  color: var(--muted);
}

.policy-shell section {
  margin: 0 0 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.policy-shell h2 {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.policy-shell p {
  color: #c7cdc2;
  line-height: 1.75;
}

.policy-shell code {
  font-size: 0.88em;
}

.policy-shell section a {
  color: var(--gold);
}

@media (max-width: 760px) {
  .landing-shell {
    align-items: start;
    padding: 3rem 1.5rem 7rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-copy {
    z-index: 2;
    order: -1;
  }

  .hero h1 {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  .card-scene {
    min-height: 360px;
    margin-top: -1rem;
  }

  .playing-card {
    width: min(210px, 52vw);
  }

  .privacy-link,
  .other-link {
    bottom: 1rem;
  }

  .privacy-link {
    left: 1rem;
  }

  .other-link {
    right: 1rem;
  }

  .empty-projects {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr auto;
  }

  .project-number {
    grid-column: 1 / -1;
  }
}

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