/* Jerusalem Escape marketing site — sandstone night + gold dome light */

:root {
  --void: #0b1630;
  --void-2: #101f3a;
  --panel: rgba(22, 30, 44, 0.62);
  --line: rgba(232, 196, 106, 0.16);
  --text: #f5efe3;
  --muted: #c4b7a0;
  --gold: #e8c46a;
  --gold-dim: rgba(232, 196, 106, 0.55);
  --cyan: #5eebff;
  --stone: #c4a574;
  --ember: #ff7a45;
  --lantern: #ffcc66;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shell: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--display);
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* Ambient field */
.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(72, 48, 18, 0.55), transparent 55%),
    radial-gradient(ellipse 45% 40% at 95% 75%, rgba(94, 235, 255, 0.07), transparent 50%),
    var(--void);
}

.field__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 20s ease-in-out infinite alternate;
}

.field__glow--gold {
  width: min(52vw, 440px);
  height: min(52vw, 440px);
  top: 10%;
  right: 6%;
  background: rgba(232, 196, 106, 0.18);
}

.field__glow--cyan {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: 16%;
  left: 5%;
  background: rgba(94, 235, 255, 0.1);
  animation-delay: -7s;
}

.field__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-5%, 5%, 0) scale(1.08);
  }
}

/* Header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.9rem 0;
  background: linear-gradient(180deg, rgba(11, 22, 48, 0.88), transparent);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.top.is-solid {
  background: rgba(11, 22, 48, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mark img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mark span {
  font-size: 1rem;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top__nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--text);
}

.top__cta {
  color: #1a1408 !important;
  background: linear-gradient(135deg, var(--gold), #f0d78a);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.top__cta:hover {
  filter: brightness(1.05);
  text-decoration: none !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 0 0 clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  animation: heroPush 24s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 22, 48, 0.45) 0%, rgba(11, 22, 48, 0.12) 32%, rgba(11, 22, 48, 0.78) 68%, #0b1630 100%),
    linear-gradient(90deg, rgba(11, 22, 48, 0.62), transparent 50%);
}

.hero__path {
  position: absolute;
  left: 58%;
  top: 52%;
  width: min(48vw, 280px);
  height: min(48vw, 280px);
  transform: translate(-50%, -50%) rotate(-12deg);
  border-radius: 40% 60% 55% 45%;
  border: 1px solid rgba(94, 235, 255, 0.22);
  box-shadow: 0 0 80px rgba(94, 235, 255, 0.08);
  animation: pulsePath 7s ease-out infinite;
  pointer-events: none;
}

@keyframes heroPush {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, 1.2%, 0);
  }
}

@keyframes pulsePath {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.78);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1.22);
  }
}

.hero__stage {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-top: 7rem;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 4.8rem);
  line-height: 0.92;
  font-weight: 600;
  color: var(--text);
  text-shadow:
    0 2px 0 rgba(232, 196, 106, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.8vw, 2.2rem);
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero__lede {
  margin: 0 0 1.6rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn span {
  line-height: 1.15;
}

.btn--signal {
  color: #1a1408;
  background: linear-gradient(135deg, #f0d78a, var(--gold) 45%, #c9a14a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 40px rgba(232, 196, 106, 0.25);
}

.btn--signal:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn--quiet {
  color: var(--muted);
  background: rgba(16, 24, 40, 0.55);
  border-color: var(--line);
  cursor: default;
}

.motion-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-rise--2 {
  animation-delay: 0.12s;
}

.motion-rise--3 {
  animation-delay: 0.22s;
}

.motion-rise--4 {
  animation-delay: 0.34s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Story */
.story {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.story__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .story__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.story__copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
}

.story__copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 36rem;
}

.story__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.story__beats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.story__beats h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.story__beats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.story__num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--cyan);
  line-height: 1;
  padding-top: 0.1rem;
}

/* Play grid */
.play {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(24, 18, 10, 0.35) 40%, transparent);
}

.play__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.play__copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
}

.play__copy > p {
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

.play__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .play__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.play__grid li {
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 40, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.play__grid h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.play__grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Store blurb */
.store-card {
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.store-card__panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(232, 196, 106, 0.08), transparent 55%),
    rgba(16, 24, 40, 0.72);
}

.store-card__quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
  max-width: 48rem;
}

/* Close CTA */
.close {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(4.5rem, 11vw, 7rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.close__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.close__icon {
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(232, 196, 106, 0.4),
    0 22px 50px rgba(0, 0, 0, 0.5);
}

.close h2 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.close p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 30rem;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: rgba(0, 0, 0, 0.28);
}

.foot__inner {
  display: grid;
  gap: 1rem;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.foot__brand img {
  border-radius: 8px;
}

.foot__by {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.foot__links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.foot__note {
  margin: 0;
  color: rgba(196, 183, 160, 0.65);
  font-size: 0.85rem;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  .top__nav a:not(.top__cta) {
    display: none;
  }

  .hero__stage {
    max-width: none;
  }

  .mark span {
    font-size: 0.92rem;
  }
}

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

  .motion-rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
