/* ---------- Tokens ---------- */
:root {
  --navy: #0B1E38;
  --navy-deep: #071527;
  --navy-true: #001133;
  --gold: #C9A24B;
  --gold-rich: #E29A23;
  --gold-soft: #E8D8A8;
  --gold-glow: #FFFADE;
  --cream: #FAF6EE;
  --sky: #E7EEF3;
  --sky-deep: #849EB2;
  --sky-blue: #9CC9EE;
  --sky-blue-mid: #C2DEF5;
  --sky-blue-pale: #E3F0FB;
  --ink: #1C2A3A;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Gate rails (signature element) ---------- */
.gate-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 34px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  z-index: 5;
  display: flex;
  justify-content: center;
  animation: gate-open 1.4s cubic-bezier(.6,0,.3,1) both;
  pointer-events: none;
}
.gate-rail::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 26px,
    rgba(201,162,75,0.55) 26px,
    rgba(201,162,75,0.55) 28px
  );
}
.gate-rail::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0.85;
}
.gate-rail--left { left: 0; transform-origin: left; }
.gate-rail--left::after { right: 0; }
.gate-rail--right { right: 0; transform-origin: right; }
.gate-rail--right::after { left: 0; }

.gate-rail--right { animation-name: gate-open-right; }

@keyframes gate-open {
  from { transform: translateX(0); }
  to   { transform: translateX(0); }
}
@keyframes gate-open-right {
  from { transform: translateX(0); }
  to   { transform: translateX(0); }
}

.gate-rail__lantern {
  position: absolute;
  top: 14%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 12px 4px rgba(232,216,168,0.9), 0 0 28px 10px rgba(201,162,75,0.4);
  animation: flicker 3.5s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.65; }
  50% { opacity: 1; }
  78% { opacity: 0.8; }
}

@media (max-width: 780px) {
  .gate-rail { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 32px 64px;
  margin: 0 34px;
  overflow: hidden;
  background: linear-gradient(180deg,
    #8ABFE9 0%,
    var(--sky-blue) 14%,
    #B4D7F2 32%,
    var(--sky-blue-mid) 50%,
    var(--sky-blue-pale) 72%,
    #F4F8FC 88%,
    var(--cream) 100%);
}

@media (max-width: 780px) {
  .hero { margin: 0; }
}

/* ---------- Animated sky ---------- */
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  --mx: 0;
  --my: 0;
}

.cloud-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease-out;
}
.cloud-layer--back {
  opacity: 0.55;
  transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 6px));
}
.cloud-layer--mid {
  opacity: 0.8;
  transform: translate(calc(var(--mx) * 22px), calc(var(--my) * 12px));
}
.cloud-layer--front {
  opacity: 0.95;
  transform: translate(calc(var(--mx) * 38px), calc(var(--my) * 20px));
}

.cloud {
  position: absolute;
  display: block;
  background: radial-gradient(closest-side, rgba(255,255,255,0.99), rgba(255,255,255,0.72) 58%, rgba(255,255,255,0));
  border-radius: 50%;
  filter: blur(1px);
}
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud--1 {
  width: 260px; height: 90px;
  top: 8%; left: -20%;
  animation: drift-right 62s linear infinite;
}
.cloud--1::before { width: 140px; height: 140px; top: -60px; left: 30px; }
.cloud--1::after  { width: 110px; height: 110px; top: -40px; left: 140px; }

.cloud--2 {
  width: 320px; height: 100px;
  top: 22%; left: -30%;
  animation: drift-right 84s linear infinite;
  animation-delay: -20s;
}
.cloud--2::before { width: 160px; height: 160px; top: -70px; left: 40px; }
.cloud--2::after  { width: 130px; height: 130px; top: -50px; left: 170px; }

.cloud--3 {
  width: 220px; height: 80px;
  top: 4%; right: -25%; left: auto;
  animation: drift-left 70s linear infinite;
}
.cloud--3::before { width: 120px; height: 120px; top: -55px; left: 20px; }
.cloud--3::after  { width: 100px; height: 100px; top: -35px; left: 120px; }

.cloud--4 {
  width: 200px; height: 70px;
  top: 14%; left: -22%;
  opacity: 0.9;
  animation: drift-right 46s linear infinite;
  animation-delay: -10s;
}
.cloud--4::before { width: 110px; height: 110px; top: -50px; left: 20px; }
.cloud--4::after  { width: 90px; height: 90px; top: -32px; left: 110px; }

.cloud--5 {
  width: 240px; height: 84px;
  top: 26%; right: -28%; left: auto;
  opacity: 0.9;
  animation: drift-left 54s linear infinite;
  animation-delay: -6s;
}
.cloud--5::before { width: 130px; height: 130px; top: -58px; left: 24px; }
.cloud--5::after  { width: 100px; height: 100px; top: -36px; left: 130px; }

.cloud--6 {
  width: 300px; height: 96px;
  top: 38%; left: -26%;
  animation: drift-right 58s linear infinite;
  animation-delay: -24s;
}
.cloud--6::before { width: 150px; height: 150px; top: -64px; left: 30px; }
.cloud--6::after  { width: 122px; height: 122px; top: -46px; left: 158px; }

.cloud--7 {
  width: 360px; height: 112px;
  top: 52%; right: -32%; left: auto;
  opacity: 0.85;
  animation: drift-left 68s linear infinite;
  animation-delay: -14s;
}
.cloud--7::before { width: 180px; height: 180px; top: -76px; left: 36px; }
.cloud--7::after  { width: 144px; height: 144px; top: -54px; left: 196px; }

.cloud--8 {
  width: 180px; height: 62px;
  top: 30%; left: -18%;
  opacity: 0.7;
  animation: drift-right 40s linear infinite;
  animation-delay: -30s;
}
.cloud--8::before { width: 96px; height: 96px; top: -42px; left: 18px; }
.cloud--8::after  { width: 78px; height: 78px; top: -28px; left: 96px; }

@keyframes drift-right {
  from { transform: translateX(0); }
  to   { transform: translateX(160vw); }
}
@keyframes drift-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-160vw); }
}

.dove {
  position: absolute;
  top: 12%;
  left: -8%;
  width: 46px;
  opacity: 0.85;
  animation: fly-across 26s linear infinite;
  animation-delay: 4s;
  filter: drop-shadow(0 2px 6px rgba(11,30,56,0.15));
}
.dove svg { width: 100%; height: auto; display: block; }

@keyframes fly-across {
  0%   { transform: translate(0, 0) scale(0.8); opacity: 0; }
  8%   { opacity: 0.85; }
  50%  { transform: translate(60vw, -6vh) scale(1); }
  92%  { opacity: 0.85; }
  100% { transform: translate(130vw, -2vh) scale(0.9); opacity: 0; }
}

.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,248,214,0.42) 0%, rgba(226,240,251,0.20) 34%, rgba(250,246,238,0) 66%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.hero__glow.is-lit {
  filter: saturate(1.3) brightness(1.08);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .dove, .cloud-layer { animation: none !important; }
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(320px, 66vw);
  height: auto;
  margin-bottom: 8px;
  animation: rise-in 1.1s ease both;
  /* the PNG is transparent now — this lifts it off the sky without a box */
  filter:
    drop-shadow(0 1px 1px rgba(11, 30, 56, 0.14))
    drop-shadow(0 10px 26px rgba(11, 30, 56, 0.18));
  transition: filter 0.6s ease;
}
.hero__logo:hover {
  filter:
    drop-shadow(0 1px 1px rgba(11, 30, 56, 0.16))
    drop-shadow(0 10px 30px rgba(11, 30, 56, 0.22))
    drop-shadow(0 0 26px rgba(255, 248, 214, 0.75));
}

/* Soft halo so the logo reads against the sky without a hard edge */
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 128%;
  height: 116%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(246, 251, 255, 0.42) 40%,
    rgba(228, 241, 252, 0.16) 64%,
    rgba(255, 255, 255, 0) 80%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin: 4px 0 18px;
}

.hero__headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 22px;
}

.hero__sub {
  position: relative;
  z-index: 1;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.82;
  margin: 0 0 40px;
}

.notify-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 420px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}

.notify-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 16px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}

.notify-form button {
  border: none;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.notify-form button:hover { background: var(--navy-deep); color: var(--gold); }

@media (max-width: 480px) {
  .notify-form { flex-direction: column; border-radius: 20px; }
  .notify-form button { padding: 14px; }
}

.hero__microcopy {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.55;
  margin-top: 14px;
}

/* ---------- About ---------- */
.about {
  background: var(--sky);
  padding: 96px 32px;
  margin: 0 34px;
}

@media (max-width: 780px) {
  .about { margin: 0; }
}

.about__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.about__mark {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 26px;
}

.about p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 18px;
}

.about p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
  padding: 104px 32px;
  margin: 0 34px;
}

@media (max-width: 780px) {
  .contact { margin: 0; }
}

.contact__inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 16px;
}

.contact > .contact__inner > p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 40px;
}

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border: none;
  border-bottom: 1.5px solid rgba(11,30,56,0.25);
  background: transparent;
  padding: 10px 2px;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold); }

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 15px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-form button:hover { background: var(--navy-deep); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--sky);
  text-align: center;
  padding: 44px 32px 36px;
  margin: 0 34px;
}

@media (max-width: 780px) {
  .site-footer { margin: 0; }
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-divider::before,
.footer-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.footer-divider__heart {
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  position: relative;
}
.footer-divider__heart::before,
.footer-divider__heart::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
}
.footer-divider__heart::before { top: -6px; left: 0; }
.footer-divider__heart::after { top: 0; left: -6px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Music toggle ---------- */
.music-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 120;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.55);
  background: rgba(7, 21, 39, 0.82);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 17, 51, 0.35), 0 0 0 0 rgba(201, 162, 75, 0.0);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  color: var(--gold-glow);
  box-shadow: 0 6px 22px rgba(0, 17, 51, 0.45), 0 0 14px rgba(201, 162, 75, 0.35);
}

.music-toggle svg {
  width: 24px;
  height: 24px;
}

.music-toggle .icon-muted { display: none; }
.music-toggle.is-muted .icon-sound { display: none; }
.music-toggle.is-muted .icon-muted { display: block; }
.music-toggle.is-muted { opacity: 0.85; }

@media (max-width: 600px) {
  .music-toggle {
    width: 46px;
    height: 46px;
    bottom: 16px;
    right: 16px;
  }
}

/* ---------- Two paths (Loved Ones / Pets) ---------- */
.paths {
  background: var(--cream);
  padding: 100px 32px;
  margin: 0 34px;
}

@media (max-width: 780px) {
  .paths { margin: 0; }
}

.paths__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.paths h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 14px;
}

.paths__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto 48px;
}

.paths__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 700px) {
  .paths__grid { grid-template-columns: 1fr; }
}

.path-card {
  background: #fff;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 14px;
  padding: 44px 32px 40px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 17, 51, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 17, 51, 0.12), 0 0 18px rgba(201, 162, 75, 0.18);
}

.path-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--gold-glow), var(--gold-soft));
  color: var(--navy);
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.4), 0 4px 14px rgba(201, 162, 75, 0.25);
}

.path-card__icon svg {
  width: 30px;
  height: 30px;
}

.path-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 14px;
}

.path-card p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
}

/* ---------- Features ---------- */
.features {
  background: var(--navy-deep);
  padding: 104px 32px;
  margin: 0 34px;
}

@media (max-width: 780px) {
  .features { margin: 0; }
}

.features__inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--gold-soft);
  margin: 0 0 52px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 40px;
  text-align: left;
}

@media (max-width: 700px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature {
  padding: 28px 26px;
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 12px;
  background: rgba(250, 246, 238, 0.04);
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-glow);
  margin: 0 0 10px;
}

.feature p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.85;
  margin: 0;
}

/* ---------- Light from Heaven (hero rays) ---------- */
.hero__rays {
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 75%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__rays span {
  position: absolute;
  top: -12%;
  left: 50%;
  width: 130px;
  height: 120%;
  background: linear-gradient(to bottom,
    rgba(255, 250, 222, 0.55) 0%,
    rgba(232, 216, 168, 0.22) 45%,
    rgba(250, 246, 238, 0) 85%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  transform-origin: top center;
  animation: ray-shimmer 9s ease-in-out infinite;
}

.hero__rays span:nth-child(1) { transform: translateX(-50%) rotate(-24deg); animation-delay: 0s;   opacity: 0.5; }
.hero__rays span:nth-child(2) { transform: translateX(-50%) rotate(-12deg); animation-delay: 1.8s; opacity: 0.65; width: 100px; }
.hero__rays span:nth-child(3) { transform: translateX(-50%) rotate(0deg);   animation-delay: 3.4s; opacity: 0.8;  width: 160px; }
.hero__rays span:nth-child(4) { transform: translateX(-50%) rotate(12deg);  animation-delay: 5s;   opacity: 0.65; width: 100px; }
.hero__rays span:nth-child(5) { transform: translateX(-50%) rotate(24deg);  animation-delay: 6.6s; opacity: 0.5; }

@keyframes ray-shimmer {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

/* ---------- Flying doves ---------- */
.dove-svg .wing {
  transform-box: view-box;
  transform-origin: 49px 31px;
}
/* Real wingbeat: quick downstroke, slower recovery upstroke */
.dove-svg .wing--near { animation: flap 0.95s cubic-bezier(.45,.05,.55,.95) infinite; }
.dove-svg .wing--far  { animation: flap-far 0.95s cubic-bezier(.45,.05,.55,.95) infinite; }

@keyframes flap {
  0%   { transform: rotate(-30deg); }
  38%  { transform: rotate(22deg); }
  100% { transform: rotate(-30deg); }
}
@keyframes flap-far {
  0%   { transform: rotate(-19deg); }
  42%  { transform: rotate(13deg); }
  100% { transform: rotate(-19deg); }
}


/* ---------- Angel wings above the paths heading ---------- */
.paths__wings {
  display: inline-block;
  width: 150px;
  margin-bottom: 10px;
  opacity: 0.9;
}
.paths__wings svg { width: 100%; height: auto; display: block; }

/* ---------- Hero slogan ---------- */
.hero__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold-rich);
  margin: 10px 0 14px;
  letter-spacing: 0.02em;
}

/* ---------- Card light: turns on at touch/hover ---------- */
.path-card {
  position: relative;
  overflow: hidden;
}

.path-card__light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 78%;
  background: linear-gradient(to bottom,
    rgba(255, 250, 222, 0.95) 0%,
    rgba(232, 216, 168, 0.35) 55%,
    rgba(255, 250, 222, 0) 100%);
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%);
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  z-index: 0;
}

.path-card > *:not(.path-card__light) { position: relative; z-index: 1; }

.path-card:hover .path-card__light,
.path-card:focus-within .path-card__light,
.path-card.is-lit .path-card__light {
  opacity: 1;
}

.path-card:hover .path-card__icon,
.path-card.is-lit .path-card__icon {
  box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.55),
              0 0 26px rgba(255, 250, 222, 0.95),
              0 0 46px rgba(226, 154, 35, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero__rays span, .dove-svg .wing { animation: none !important; }
}

/* ---------- Floating doves + realism ---------- */
.dove-bob {
  display: block;
  animation: dove-float 3.6s ease-in-out infinite;
}
.dove--2 .dove-bob { animation-duration: 3s; }
.dove--3 .dove-bob { animation-duration: 4.2s; animation-delay: 1s; }

@keyframes dove-float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-9px) rotate(-3deg); }
}

/* ---------- Angel wings behind the logo ---------- */
.hero__logo-wrap {
  position: relative;
  display: inline-block;
}

.hero__wings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 210%;
  max-width: 640px;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(232, 216, 168, 0.5));
  animation: wings-breathe 7s ease-in-out infinite;
}

.hero__wings svg { width: 100%; height: auto; display: block; }

@keyframes wings-breathe {
  0%, 100% { transform: translate(-50%, -52%) scale(1); opacity: 0.9; }
  50%      { transform: translate(-50%, -52%) scale(1.04); opacity: 1; }
}

/* ---------- Clickable plot cards ---------- */
.path-card {
  cursor: pointer;
}

.path-card:focus-visible {
  outline: 2px solid var(--gold-rich);
  outline-offset: 3px;
}

.path-card__cta {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-rich);
  border-bottom: 1px solid rgba(226, 154, 35, 0.45);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.path-card:hover .path-card__cta,
.path-card.is-lit .path-card__cta {
  color: var(--navy);
  border-color: var(--navy);
}

.hero__interest-note {
  margin: 14px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gold-rich);
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  .dove-bob, .hero__wings { animation: none !important; }
}

/* ---------- Page-wide dove layer ---------- */
.dove-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.dove-layer .dove {
  position: absolute;
  left: -10%;
  filter: drop-shadow(0 2px 6px rgba(11, 30, 56, 0.18));
}

/* flipped doves fly right-to-left */
.dove--flip .dove-svg { transform: scaleX(-1); }
.dove--flip { left: auto; right: -10%; animation-name: fly-across-rtl !important; }

@keyframes fly-across-rtl {
  0%   { transform: translate(0, 0) scale(0.85); opacity: 0; }
  6%   { opacity: var(--dove-o, 0.85); }
  50%  { transform: translate(-60vw, -5vh) scale(1); }
  94%  { opacity: var(--dove-o, 0.85); }
  100% { transform: translate(-125vw, -2vh) scale(0.9); opacity: 0; }
}

/* negative delays = doves already mid-flight the moment the page opens */
.dove--1 { top: 12%; width: 54px; --dove-o: 0.9;  animation: fly-across 26s linear infinite; animation-delay: -6s; }
.dove--2 { top: 6%;  width: 32px; --dove-o: 0.55; animation: fly-across 40s linear infinite; animation-delay: -24s; }
.dove--3 { top: 34%; width: 44px; --dove-o: 0.75; animation: fly-across 32s linear infinite; animation-delay: -14s; }
.dove--4 { top: 22%; width: 38px; --dove-o: 0.65; animation-duration: 36s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: -10s; }
.dove--5 { top: 58%; width: 40px; --dove-o: 0.6;  animation: fly-across 34s linear infinite; animation-delay: -2s; }
.dove--6 { top: 74%; width: 30px; --dove-o: 0.5;  animation-duration: 44s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: -30s; }

.dove--2 .wing--near { animation-duration: 0.62s; }
.dove--3 .wing--near { animation-duration: 0.85s; }
.dove--4 .wing--near { animation-duration: 0.7s; }
.dove--5 .wing--near { animation-duration: 0.78s; }
.dove--6 .wing--near { animation-duration: 0.6s; }

@keyframes fly-across {
  0%   { transform: translate(0, 0) scale(0.85); opacity: 0; }
  6%   { opacity: var(--dove-o, 0.85); }
  50%  { transform: translate(60vw, -5vh) scale(1); }
  94%  { opacity: var(--dove-o, 0.85); }
  100% { transform: translate(125vw, -2vh) scale(0.9); opacity: 0; }
}

@media (max-width: 600px) {
  .dove--1 { width: 42px; }
  .dove--3 { width: 34px; }
  .dove--5, .dove--4 { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .dove-layer .dove { animation: none !important; opacity: 0.5; left: auto; }
  .dove--1 { right: 8%; }  .dove--3 { right: 20%; }
  .dove--2, .dove--4, .dove--5, .dove--6 { display: none; }
}

/* ---------- Heaven's gates opening intro ---------- */
.gates-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  perspective: 1400px;
  background: radial-gradient(ellipse at 50% 52%, #0B0B0C 0%, #050506 48%, #000000 100%);
  overflow: hidden;
}
.gates-intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

/* Light of heaven blooming behind the gates */
.gates-intro__light {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118vmax;
  height: 118vmax;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: radial-gradient(closest-side,
    rgba(255, 244, 208, 0.34) 0%,
    rgba(236, 205, 138, 0.20) 20%,
    rgba(201, 162, 75, 0.10) 40%,
    transparent 62%);
  animation: light-bloom 4.8s ease-out both;
}
@keyframes light-bloom {
  0%   { opacity: 0.08; transform: translate(-50%, -50%) scale(0.22); }
  45%  { opacity: 0.5; }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Speaker button invites a tap when sound is still locked */
.music-toggle.is-inviting {
  animation: btn-invite 2.6s ease-in-out infinite;
}
@keyframes btn-invite {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.55), 0 6px 18px rgba(11, 30, 56, 0.25); }
  50%      { box-shadow: 0 0 0 12px rgba(201, 162, 75, 0), 0 6px 18px rgba(11, 30, 56, 0.25); }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-inviting { animation: none; }
}

/* ---------- Night sky behind the gates ---------- */
.gates-intro__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
}
.gates-intro__stars .starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes stars-in {
  0%   { opacity: 0; }
  7%   { opacity: 1; }
  46%  { opacity: 0.95; }
  74%  { opacity: 0.55; }
  100% { opacity: 0.36; }
}

/* Scattered stars — each carries its own --d (duration) and --t (delay) */
.starfield__dust circle {
  opacity: var(--o, 0.6);
  animation: twinkle var(--d, 4s) ease-in-out var(--t, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.6); }
  50%      { opacity: calc(var(--o, 0.6) * 0.22); }
}

/* Constellation lines */
.starfield__lines polyline {
  fill: none;
  stroke: rgba(212, 176, 96, 0.42);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3 5;
  animation: lines-in 3s ease-out 0.5s both;
}
@keyframes lines-in {
  from { opacity: 0; stroke-dashoffset: 40; }
  to   { opacity: 1; stroke-dashoffset: 0; }
}

/* Constellation stars — brighter, with a soft halo */
.starfield__nodes .halo {
  fill: rgba(255, 250, 222, 0.20);
  animation: node-pulse var(--d, 4s) ease-in-out var(--t, 0s) infinite;
}
.starfield__nodes .core {
  fill: #FFF8DC;
  animation: node-pulse var(--d, 4s) ease-in-out var(--t, 0s) infinite;
}
@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

@media (max-width: 560px) {
  .starfield__lines polyline { stroke-width: 1.4; }
}

/* ---------- Held state: waiting for the visitor to open the gates ---------- */
/* Everything in the intro sits still except the stars, which keep twinkling. */
html.intro-wait .gates-intro__light,
html.intro-wait .gates-intro__clouds,
html.intro-wait .gates-intro__title,
html.intro-wait .gates-intro__birds .ibird,
html.intro-wait .gates-intro__gate,
html.intro-wait .hero__logo-wrap,
html.intro-wait .hero .eyebrow,
html.intro-wait .hero__headline,
html.intro-wait .hero__slogan,
html.intro-wait .hero__sub,
html.intro-wait .hero .notify-form,
html.intro-wait .hero__microcopy {
  animation-play-state: paused !important;
}
/* Stars are lit and alive while we wait */
html.intro-wait .gates-intro__stars {
  opacity: 1;
  animation: none !important;
}
/* Entering by tap: the gates move at once, in step with the creak */
html.intro-now .gates-intro__gate--left,
html.intro-now .gates-intro__gate--right {
  animation-delay: 0s !important;
}

/* "Touch the gates to enter" */
.gates-intro__enter {
  position: absolute;
  left: 50%;
  top: 60%;
  z-index: 7;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  pointer-events: none;
  animation: enter-in 1.2s ease-out both;
}
.gates-intro__enter[hidden] { display: none; }

/* Dark pool behind it so it lifts clear of the gate ironwork */
.gates-intro__enter::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 88vw);
  height: 330px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.58) 45%,
    rgba(0, 0, 0, 0) 78%);
  z-index: -1;
  pointer-events: none;
}

@keyframes enter-in {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(16px); }
  to   { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}

/* Ring with a centre dot and two ripples going out — reads as "tap here" */
.gates-intro__enter-ring {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 214, 0.95);
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 248, 220, 0.95) 0 7px,
    rgba(255, 248, 220, 0.28) 8px 11px,
    rgba(255, 248, 220, 0) 12px);
  box-shadow:
    0 0 28px rgba(255, 250, 222, 0.7),
    0 0 62px rgba(201, 162, 75, 0.45),
    inset 0 0 22px rgba(201, 162, 75, 0.45);
}
.gates-intro__enter-ring::before,
.gates-intro__enter-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(240, 223, 156, 0.85);
  animation: enter-ripple 2.8s cubic-bezier(.2,.6,.35,1) infinite;
}
.gates-intro__enter-ring::after { animation-delay: 1.4s; }

@keyframes enter-ripple {
  0%   { transform: scale(1);    opacity: 0.9; }
  70%  { opacity: 0.18; }
  100% { transform: scale(2.45); opacity: 0; }
}

.gates-intro__enter-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(15px, 2.1vw, 20px);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  text-indent: 0.30em;
  color: #FFF6D6;
  text-shadow:
    0 0 20px rgba(255, 244, 200, 0.85),
    0 0 48px rgba(226, 154, 35, 0.6),
    0 2px 5px rgba(0, 0, 0, 0.9);
  animation: enter-breathe 2.8s ease-in-out infinite;
}
@keyframes enter-breathe {
  0%, 100% { opacity: 0.86; }
  50%      { opacity: 1; }
}

@media (max-width: 560px) {
  .gates-intro__enter { top: 58%; gap: 20px; }
  .gates-intro__enter::before { height: 260px; }
  .gates-intro__enter-ring { width: 62px; height: 62px; }
  .gates-intro__enter-text { font-size: 15px; letter-spacing: 0.2em; text-indent: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .gates-intro__enter-ring::before,
  .gates-intro__enter-ring::after { animation: none; opacity: 0; }
}

/* Stars recede once we're under way (two curves: faded in, or already lit) */
.gates-intro.is-auto   .gates-intro__stars { animation: stars-in 8s ease-out 0.1s both; }
.gates-intro.is-tapped .gates-intro__stars { animation: stars-recede 7s ease-out both; }
@keyframes stars-recede {
  0%   { opacity: 1; }
  42%  { opacity: 0.95; }
  72%  { opacity: 0.55; }
  100% { opacity: 0.36; }
}

/* ---------- Cloud bank behind the gates ---------- */
.gates-intro__clouds {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  animation: intro-clouds-in 2.2s ease-out 2s forwards;
  opacity: 0;
}
@keyframes intro-clouds-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.icloud {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226,232,240,0.30), rgba(206,214,228,0.12) 58%, rgba(255,255,255,0));
  filter: blur(6px);
}
.icloud::before,
.icloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.icloud--1 { width: 340px; height: 120px; top: 40%;  left: 4%;   animation: idrift-right 78s linear infinite; }
.icloud--1::before { width: 180px; height: 180px; top: -78px; left: 40px; }
.icloud--1::after  { width: 140px; height: 140px; top: -54px; left: 190px; }

.icloud--2 { width: 300px; height: 108px; top: 56%;  right: 6%; animation: idrift-left 92s linear infinite; }
.icloud--2::before { width: 160px; height: 160px; top: -70px; left: 34px; }
.icloud--2::after  { width: 128px; height: 128px; top: -48px; left: 162px; }

.icloud--3 { width: 420px; height: 140px; top: 62%;  left: 22%;  opacity: 0.7; animation: idrift-right 110s linear infinite; }
.icloud--3::before { width: 210px; height: 210px; top: -92px; left: 50px; }
.icloud--3::after  { width: 168px; height: 168px; top: -66px; left: 230px; }

.icloud--4 { width: 260px; height: 92px;  top: 30%;  right: 16%; opacity: 0.5; animation: idrift-left 84s linear infinite; }
.icloud--4::before { width: 140px; height: 140px; top: -60px; left: 28px; }
.icloud--4::after  { width: 112px; height: 112px; top: -42px; left: 140px; }

.icloud--5 { width: 300px; height: 104px; top: 22%;  left: 12%;  opacity: 0.42; animation: idrift-right 96s linear infinite; }
.icloud--5::before { width: 156px; height: 156px; top: -68px; left: 34px; }
.icloud--5::after  { width: 124px; height: 124px; top: -48px; left: 160px; }

.icloud--6 { width: 380px; height: 130px; top: 72%;  right: 24%; opacity: 0.6; animation: idrift-left 118s linear infinite; }
.icloud--6::before { width: 196px; height: 196px; top: -84px; left: 44px; }
.icloud--6::after  { width: 156px; height: 156px; top: -60px; left: 208px; }

@keyframes idrift-right {
  from { transform: translateX(-18vw); }
  to   { transform: translateX(18vw); }
}
@keyframes idrift-left {
  from { transform: translateX(18vw); }
  to   { transform: translateX(-18vw); }
}

/* ---------- The name coming forward out of the clouds ---------- */
.gates-intro__title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(1100px, 92vw);
  text-align: center;
  transform: translate(-50%, -50%);
  animation:
    name-pop 1.8s cubic-bezier(.16,.9,.28,1) 3.4s both,
    name-away 1.2s ease-in 6.6s forwards;
}

.gates-intro__title::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145%;
  height: 420%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0) 78%);
  z-index: -1;
  pointer-events: none;
}

.gates-intro__name {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 10.5vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: linear-gradient(178deg,
    #FFF8DC 0%,
    #F4DF9C 26%,
    #D9B45F 52%,
    #C9A24B 72%,
    #9C7A32 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 16px rgba(255, 250, 222, 0.55))
    drop-shadow(0 0 48px rgba(201, 162, 75, 0.45))
    drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
  animation: name-shimmer 4s ease-in-out 5.2s infinite;
}

@keyframes name-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.55); filter: blur(16px); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.07); filter: blur(0); }
  78%  { transform: translate(-50%, -50%) scale(0.98); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}
@keyframes name-away {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1);    filter: blur(0); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(1.16); filter: blur(10px); }
}
@keyframes name-shimmer {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255,250,222,0.55)) drop-shadow(0 0 48px rgba(201,162,75,0.45)) drop-shadow(0 3px 2px rgba(0,0,0,0.35)); }
  50%      { filter: drop-shadow(0 0 26px rgba(255,250,222,0.85)) drop-shadow(0 0 70px rgba(226,154,35,0.6))  drop-shadow(0 3px 2px rgba(0,0,0,0.35)); }
}

/* ---------- Birds crossing the opening ---------- */
.gates-intro__birds {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.ibird {
  position: absolute;
  display: block;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(255, 250, 222, 0.45)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}
.ibird svg { width: 100%; height: auto; display: block; }
.ibird .wing { transform-box: view-box; transform-origin: 49px 31px; }
.ibird .wing--near { animation: flap 0.95s cubic-bezier(.45,.05,.55,.95) infinite; }
.ibird .wing--far  { animation: flap-far 0.95s cubic-bezier(.45,.05,.55,.95) infinite; }

.ibird--1 { width: 86px; top: 34%; left: -12%; animation: ibird-cross 7.5s linear 3.2s infinite; }
.ibird--2 { width: 62px; top: 26%; left: -14%; animation: ibird-cross 9s   linear 4s   infinite; }
.ibird--3 { width: 104px; top: 62%; left: -16%; animation: ibird-cross 8.2s linear 4.8s infinite; }
.ibird--4 { width: 54px; top: 18%; left: -10%; animation: ibird-cross 10s  linear 5.6s infinite; }
.ibird--5 { width: 76px; top: 70%; left: -18%; animation: ibird-cross 8.8s linear 6.4s infinite; }

@keyframes ibird-cross {
  0%   { opacity: 0;    transform: translate(0, 0) scale(0.72); }
  10%  { opacity: 0.95; }
  50%  { transform: translate(70vw, -7vh) scale(1); }
  88%  { opacity: 0.95; }
  100% { opacity: 0;    transform: translate(140vw, -3vh) scale(0.85); }
}

/* The two gate halves */
.gates-intro__gate {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.4%;
  z-index: 6;
  background: rgba(3, 3, 6, 0.70);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.75), inset 0 0 120px rgba(0, 0, 0, 0.55);
  backface-visibility: hidden;
}
.gates-intro__gate--left  { left: 0;  transform-origin: left center;  animation: gate-swing-l 3.6s cubic-bezier(.5,.02,.3,1) 0.9s both; }
.gates-intro__gate--right { right: 0; transform-origin: right center; animation: gate-swing-r 3.6s cubic-bezier(.5,.02,.3,1) 0.9s both; }

@keyframes gate-swing-l {
  0%   { transform: rotateY(0deg); }
  14%  { transform: rotateY(-3deg); }
  100% { transform: rotateY(-88deg); }
}
@keyframes gate-swing-r {
  0%   { transform: rotateY(0deg); }
  14%  { transform: rotateY(3deg); }
  100% { transform: rotateY(88deg); }
}

/* Vertical gold bars */
.gates-intro__gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg,
    transparent 0px, transparent 46px,
    rgba(201, 162, 75, 0.85) 46px, rgba(201, 162, 75, 0.85) 50px);
}
/* Horizontal rails */
.gates-intro__gate::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent calc(16% - 3px), rgba(201,162,75,0.9) calc(16% - 3px), rgba(201,162,75,0.9) calc(16% + 3px), transparent calc(16% + 3px)),
    linear-gradient(180deg, transparent calc(52% - 3px), rgba(201,162,75,0.9) calc(52% - 3px), rgba(201,162,75,0.9) calc(52% + 3px), transparent calc(52% + 3px)),
    linear-gradient(180deg, transparent calc(86% - 3px), rgba(201,162,75,0.9) calc(86% - 3px), rgba(201,162,75,0.9) calc(86% + 3px), transparent calc(86% + 3px));
}

/* Center posts where the gates meet */
.gates-intro__post {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 11px;
  background: linear-gradient(180deg, #E8D8A8 0%, #C9A24B 40%, #9C7A32 100%);
  box-shadow: 0 0 20px rgba(232, 216, 168, 0.65);
  z-index: 2;
}
.gates-intro__gate--left  .gates-intro__post { right: 0; }
.gates-intro__gate--right .gates-intro__post { left: 0; }

/* Finial orbs on the posts */
.gates-intro__finial {
  position: absolute;
  top: 7%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFADE, #C9A24B 60%, #9C7A32);
  box-shadow: 0 0 16px rgba(255, 250, 222, 0.85), 0 0 34px rgba(201, 162, 75, 0.5);
  z-index: 3;
  animation: flicker 3.5s ease-in-out infinite;
}
.gates-intro__gate--left  .gates-intro__finial { right: -5px; }
.gates-intro__gate--right .gates-intro__finial { left: -5px; }

/* Scrollwork near the top center */
.gates-intro__scroll {
  position: absolute;
  top: calc(7% + 26px);
  width: min(120px, 16vw);
  height: auto;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(201, 162, 75, 0.45));
}
.gates-intro__gate--left  .gates-intro__scroll { right: 12px; }
.gates-intro__gate--right .gates-intro__scroll { left: 12px; }

@media (max-width: 560px) {
  .gates-intro__name { font-size: clamp(2rem, 13vw, 3.4rem); }
  .ibird--2, .ibird--4 { display: none; }
}

/* ---------- The page comes forward as the gates part ---------- */
.hero__logo-wrap,
.hero .eyebrow,
.hero__headline,
.hero__slogan,
.hero__sub,
.hero .notify-form,
.hero__microcopy {
  animation: come-forward 1.4s cubic-bezier(.2,.7,.25,1) both;
}
.hero__logo-wrap  { animation-delay: 6.8s; }
.hero .eyebrow    { animation-delay: 7.05s; }
.hero__headline   { animation-delay: 7.2s; }
.hero__slogan     { animation-delay: 7.4s; }
.hero__sub        { animation-delay: 7.55s; }
.hero .notify-form{ animation-delay: 7.7s; }
.hero__microcopy  { animation-delay: 7.85s; }

@keyframes come-forward {
  from { opacity: 0; transform: translateY(30px) scale(0.86); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0)  scale(1);    filter: blur(0); }
}

/* Skipping the intro (tap on the gates, or reduced motion) */
body.intro-skip .hero__logo-wrap,
body.intro-skip .hero .eyebrow,
body.intro-skip .hero__headline,
body.intro-skip .hero__slogan,
body.intro-skip .hero__sub,
body.intro-skip .hero .notify-form,
body.intro-skip .hero__microcopy {
  animation-delay: 0s !important;
  animation-duration: 0.6s !important;
}

@media (prefers-reduced-motion: reduce) {
  .gates-intro { display: none; }
  .hero__logo-wrap, .hero .eyebrow, .hero__headline, .hero__slogan,
  .hero__sub, .hero .notify-form, .hero__microcopy { animation: none !important; }
}
