:root {
  --ink: #061320;
  --deep: #082845;
  --reef: #1fa7a5;
  --foam: #b9f2df;
  --gold: #f3bf55;
  --coral: #f47c64;
  --linen: #f7ead3;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(2, 12, 20, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Nunito", sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 19, 32, 0.96), rgba(6, 19, 32, 0.72)),
    url("assets/stretch-goals-world.png") center / cover fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(244, 124, 100, 0.18), transparent 24%, rgba(185, 242, 223, 0.16)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(6, 19, 32, 0.76));
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mix-blend-mode: soft-light;
  opacity: 0.32;
  pointer-events: none;
}

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

button {
  font: inherit;
}

.sea-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100% - 32px, var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand,
h1,
h2 {
  font-family: "Cinzel", serif;
}

.brand {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  background: rgba(6, 19, 32, 0.46);
  border: 1px solid rgba(247, 234, 211, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

nav a {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--linen);
  font-size: 0.86rem;
  font-weight: 900;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.oracle-stage {
  position: relative;
  isolation: isolate;
  z-index: 2;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2)) 52px;
}

.stage-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(6, 19, 32, 0.92) 0%, rgba(6, 19, 32, 0.36) 42%, rgba(6, 19, 32, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 19, 32, 0.18), rgba(6, 19, 32, 0.88) 88%),
    url("assets/whirlpool-character.png") center / cover;
  transform: scale(1.04);
}

.tide {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 26%;
  z-index: -2;
  background:
    url("assets/stretch-goals-world.png") center bottom / cover,
    linear-gradient(90deg, transparent, rgba(185, 242, 223, 0.32), transparent);
  mask-image: linear-gradient(90deg, transparent 0%, black 16%, black 84%, transparent 100%);
  opacity: 0.36;
  filter: saturate(1.2) blur(0.5px);
  animation: drift 14s ease-in-out infinite alternate;
}

.veil-one {
  bottom: 0;
}

.veil-two {
  bottom: 13%;
  opacity: 0.18;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.stage-copy {
  width: min(760px, 100%);
  padding-bottom: 16vh;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.sigil {
  margin: 0 0 10px;
  color: var(--foam);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--gold);
  font-size: 5.9rem;
  line-height: 0.9;
}

.stage-copy p:last-child {
  max-width: 28rem;
  margin: 18px 0 0;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
}

.spread-table {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(520px, 650px);
  gap: 26px;
  align-items: center;
}

.vision-panel img,
.claim-section img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spread-copy {
  padding: 18px;
  color: var(--ink);
  background: rgba(247, 234, 211, 0.92);
  border: 1px solid rgba(255, 253, 248, 0.64);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reading-label {
  margin: 0 0 4px;
  color: #86601c;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spread-copy h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.85rem;
  line-height: 1.02;
}

.spread-copy p:last-of-type {
  margin: 8px 0 16px;
  min-height: 112px;
  color: #143141;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.28;
}

.spread-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.spread-slot {
  margin: 0;
  text-align: center;
  transform: translateY(var(--lift));
}

.spread-slot p {
  margin: 0 0 8px;
  color: var(--foam);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.spread-slot h3 {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.98rem;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.spread-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
}

.spread-card-inner {
  position: relative;
  display: block;
  aspect-ratio: 3.5 / 5;
  border: 1px solid rgba(247, 234, 211, 0.62);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spread-slot.is-revealed .spread-card-inner {
  transform: rotateY(180deg);
}

.spread-card:hover .spread-card-inner,
.spread-card:focus-visible .spread-card-inner {
  translate: 0 -8px;
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  backface-visibility: hidden;
}

.card-front {
  transform: rotateY(180deg);
}

.draw-button,
.claim-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 12px 28px rgba(80, 36, 6, 0.22);
  font-weight: 900;
  cursor: pointer;
}

.draw-button:hover,
.draw-button:focus-visible,
.claim-button:hover,
.claim-button:focus-visible {
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 28px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(247, 234, 211, 0.58);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--gold);
  animation: pulseDown 1.5s infinite;
}

.spread-section,
.deck-section,
.visions-section,
.shop-section,
.claim-section {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.spread-section {
  min-height: 92vh;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: 94px 0 72px;
}

.spread-section::before {
  content: "";
  position: absolute;
  inset: 7% -8% auto;
  height: 78%;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 19, 32, 0.96), rgba(6, 19, 32, 0.5), rgba(6, 19, 32, 0.9)),
    url("assets/card-back.png") center / min(520px, 70vw) auto no-repeat;
  border-top: 1px solid rgba(247, 234, 211, 0.12);
  border-bottom: 1px solid rgba(247, 234, 211, 0.12);
  opacity: 0.72;
  pointer-events: none;
}

.deck-section {
  min-height: 100vh;
  padding: 96px 0 86px;
  overflow: hidden;
}

.deck-section::before {
  content: "";
  position: absolute;
  inset: 18% -18% 6%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 18%, rgba(243, 191, 85, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(6, 19, 32, 0.24), rgba(31, 167, 165, 0.1), rgba(6, 19, 32, 0.3));
  border-top: 1px solid rgba(185, 242, 223, 0.14);
  border-bottom: 1px solid rgba(185, 242, 223, 0.08);
  transform: skewY(-2deg);
}

.section-intro {
  max-width: 660px;
}

h2 {
  margin: 0;
  color: var(--linen);
  font-size: 3.4rem;
  line-height: 1;
}

.card-fan {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 22px 10px;
  align-items: center;
  margin-top: 44px;
  padding: 26px 0 50px;
  perspective: 1600px;
}

.oracle-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: min(150px, 13vw);
  min-width: 94px;
  justify-self: center;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(var(--rise)) rotate(var(--tilt));
  transition:
    transform 240ms ease,
    filter 240ms ease;
}

.oracle-card-inner {
  position: relative;
  display: block;
  aspect-ratio: 3.5 / 5;
  border: 1px solid rgba(247, 234, 211, 0.46);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms ease,
    filter 240ms ease;
}

.oracle-card-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  backface-visibility: hidden;
}

.oracle-card-front {
  transform: rotateY(180deg);
}

.oracle-card-name {
  color: rgba(247, 234, 211, 0.78);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.oracle-card:nth-child(7n + 1) { --tilt: -8deg; --rise: 32px; }
.oracle-card:nth-child(7n + 2) { --tilt: -4deg; --rise: 4px; }
.oracle-card:nth-child(7n + 3) { --tilt: 3deg; --rise: -20px; }
.oracle-card:nth-child(7n + 4) { --tilt: 0deg; --rise: -34px; }
.oracle-card:nth-child(7n + 5) { --tilt: -3deg; --rise: -20px; }
.oracle-card:nth-child(7n + 6) { --tilt: 4deg; --rise: 4px; }
.oracle-card:nth-child(7n + 7) { --tilt: 8deg; --rise: 32px; }

.oracle-card:hover,
.oracle-card:focus-visible {
  filter: saturate(1.12) brightness(1.06);
  transform: translateY(calc(var(--rise) - 28px)) rotate(0deg) scale(1.05);
  z-index: 4;
}

.oracle-card:hover .oracle-card-inner,
.oracle-card:focus-visible .oracle-card-inner {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 36px rgba(185, 242, 223, 0.22);
  transform: rotateX(var(--tilt-x)) rotateY(calc(180deg + var(--tilt-y)));
}

.oracle-card:hover .oracle-card-name,
.oracle-card:focus-visible .oracle-card-name {
  opacity: 1;
  transform: translateY(0);
}

.visions-section {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 70px 0;
}

.shop-section {
  min-height: 54vh;
  display: grid;
  align-items: center;
  padding: 70px 0;
}

.shop-copy {
  max-width: 760px;
  margin-left: auto;
  padding: 34px 0;
}

.shop-copy h2 {
  color: var(--gold);
}

.shop-copy p:not(.sigil) {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--linen);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}

.shop-copy .claim-button {
  margin-top: 26px;
}

.vision-panel {
  overflow: hidden;
  border: 1px solid rgba(247, 234, 211, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vision-copy {
  padding: 20px 0;
}

.vision-copy h2 {
  color: var(--gold);
}

.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tokens li {
  padding: 10px 12px;
  border: 1px solid rgba(185, 242, 223, 0.34);
  border-radius: 999px;
  color: var(--foam);
  background: rgba(6, 19, 32, 0.38);
  font-size: 0.9rem;
  font-weight: 900;
}

.claim-section {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 80px 0 110px;
}

.claim-card-stack {
  position: relative;
  min-height: 380px;
}

.claim-card-stack img {
  position: absolute;
  width: 210px;
  height: auto;
  border: 1px solid rgba(247, 234, 211, 0.52);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.claim-card-stack img:nth-child(1) {
  left: 76px;
  top: 46px;
  z-index: 3;
  transform: rotate(5deg);
}

.claim-card-stack img:nth-child(2) {
  left: 28px;
  top: 72px;
  z-index: 2;
  transform: rotate(-6deg);
}

.claim-card-stack img:nth-child(3) {
  left: 8px;
  top: 18px;
  z-index: 1;
  transform: rotate(-8deg);
}

.claim-copy h2 {
  max-width: 720px;
  color: var(--white);
  font-size: 4.4rem;
}

.claim-copy p:not(.sigil) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--linen);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}

.claim-button {
  margin-top: 26px;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: -54px auto 0;
  padding: 0 0 26px;
  color: rgba(247, 234, 211, 0.72);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes drift {
  from {
    transform: translateX(-28px) skewY(-1deg);
  }

  to {
    transform: translateX(28px) skewY(1deg);
  }
}

@keyframes pulseDown {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .stage-copy {
    padding-bottom: 20vh;
  }

  .spread-table {
    grid-template-columns: 1fr;
  }

  .spread-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visions-section,
  .claim-section {
    grid-template-columns: 1fr;
  }

  .claim-card-stack {
    min-height: 340px;
  }

  .claim-card-stack img {
    width: 190px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 24px);
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    padding: 7px 10px;
  }

  .oracle-stage {
    padding: 140px 16px 44px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2,
  .claim-copy h2 {
    font-size: 2.35rem;
  }

  .stage-copy {
    padding-bottom: 20vh;
  }

  .stage-copy p:last-child {
    font-size: 1.08rem;
  }

  .spread-table {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spread-copy {
    padding: 14px;
  }

  .spread-copy h2 {
    font-size: 1.35rem;
  }

  .spread-copy p:last-of-type {
    min-height: 126px;
    margin-bottom: 12px;
    font-size: 0.95rem;
  }

  .spread-slot p {
    font-size: 0.62rem;
  }

  .spread-slot h3 {
    font-size: 0.72rem;
  }

  .deck-section,
  .visions-section,
  .shop-section,
  .claim-section {
    width: calc(100% - 32px);
  }

  .card-fan {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 28px 8px;
    margin-top: 28px;
    padding-bottom: 34px;
  }

  .oracle-card {
    width: min(132px, 28vw);
  }

  .claim-section {
    padding-bottom: 82px;
  }

  .claim-card-stack {
    min-height: 300px;
  }

  .claim-card-stack img {
    width: 160px;
  }

  .claim-card-stack img:nth-child(1) {
    left: 58px;
  }

  .claim-card-stack img:nth-child(2) {
    left: 24px;
  }

  .claim-card-stack img:nth-child(3) {
    left: 0;
  }

  .site-footer {
    margin-top: -40px;
  }
}
