@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --sky-0: #020711;
  --sky-1: #071527;
  --sky-2: #0a2941;
  --horizon: #19445a;
  --sea-0: #061624;
  --sea-1: #0a2b3d;
  --sea-2: #0d3b51;
  --ink: #f4f9ff;
  --muted: #9fb2c8;
  --moon: #f7f4de;
  --beam: 255, 242, 188;
  --glass: rgba(13, 28, 45, .46);
  --glass-border: rgba(255, 255, 255, .13);
  --glass-highlight: rgba(255, 255, 255, .08);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --scene-x: 0px;
  --scene-y: 0px;
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--sky-0);
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 18%, rgba(74, 114, 151, .16), transparent 28%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 37%, var(--sky-2) 64%, var(--sea-0) 64%, #03101b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="fa"] {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 55% 57%, rgba(70, 138, 165, .12), transparent 38%),
    linear-gradient(180deg, transparent 0 63%, rgba(4, 18, 28, .18) 63% 100%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  box-shadow:
    inset 0 0 110px rgba(0, 0, 0, .35),
    inset 0 -90px 120px rgba(0, 0, 0, .28);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 14%, transparent 82%, rgba(0,0,0,.14));
}

.starfield {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 72%;
  opacity: .96;
}

.sky-glow {
  position: absolute;
  z-index: -4;
  pointer-events: none;
  filter: blur(42px);
}

.sky-glow--north {
  top: -18%;
  left: 15%;
  width: 68vw;
  height: 48vh;
  border-radius: 50%;
  opacity: .55;
  background:
    conic-gradient(from 195deg at 52% 42%, transparent 0 28%, rgba(72, 148, 168, .22) 36%, rgba(108, 91, 170, .14) 45%, transparent 58% 100%);
  transform: translate3d(calc(var(--scene-x) * -.12), calc(var(--scene-y) * -.08), 0) rotate(-4deg);
  animation: aurora-breathe 13s ease-in-out infinite alternate;
}

.sky-glow--horizon {
  left: 6%;
  right: 6%;
  bottom: 25%;
  height: 24vh;
  border-radius: 50%;
  opacity: .72;
  background: radial-gradient(ellipse, rgba(88, 161, 183, .22), rgba(23, 75, 97, .08) 48%, transparent 72%);
}

.grain {
  position: absolute;
  inset: -40%;
  z-index: 25;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  animation: grain-shift .34s steps(2) infinite;
}

.topbar {
  position: absolute;
  top: var(--safe-top);
  left: clamp(18px, 4vw, 68px);
  right: clamp(18px, 4vw, 68px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(182, 221, 255, .24));
}

.brand-mark__tower {
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 10px;
  height: 32px;
  clip-path: polygon(33% 0, 67% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #eff6fd, #7a93aa 65%, #4f6579);
}

.brand-mark__tower::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -7px;
  width: 20px;
  height: 9px;
  border-radius: 3px 3px 1px 1px;
  background: #dae9f5;
  box-shadow: 0 0 15px rgba(255,255,255,.3);
}

.brand-mark__beam {
  position: absolute;
  top: 6px;
  left: 17px;
  width: 25px;
  height: 9px;
  transform-origin: 0 50%;
  transform: rotate(-13deg);
  clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%);
  background: linear-gradient(90deg, rgba(255,245,196,.7), rgba(255,245,196,0));
  filter: blur(.2px);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: clamp(.78rem, .7rem + .32vw, 1.02rem);
  letter-spacing: .27em;
  font-weight: 650;
}

.brand-copy small {
  color: var(--muted);
  font-size: .72rem;
}

.hanging-nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 2.8vw, 46px);
  padding-inline: 6px;
}

.hanging-star {
  --star-accent: 255, 214, 92;
  --star-deep: 179, 102, 20;
  --hang-offset: 0px;
  --swing-delay: 0s;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: clamp(74px, 7.2vw, 104px);
  padding-top: var(--hang-offset);
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
  outline: none;
}

.hanging-star--arian {
  --star-accent: 255, 214, 92;
  --star-deep: 179, 102, 20;
  --hang-offset: 3px;
  --swing-delay: -1.8s;
}

.hanging-star--blupay {
  --star-accent: 76, 177, 255;
  --star-deep: 31, 91, 190;
  --hang-offset: 16px;
  --swing-delay: -4.7s;
}

/* No cable. The star is suspended by a soft column of light and particles. */
.hanging-star::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: calc(-1 * var(--safe-top) - 10px);
  left: 50%;
  width: 62px;
  height: calc(var(--safe-top) + var(--hang-offset) + 46px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--star-accent), .2), transparent 48%),
    linear-gradient(180deg, rgba(var(--star-accent), .10), rgba(var(--star-accent), .025) 56%, transparent 100%);
  filter: blur(10px);
  opacity: .68;
  pointer-events: none;
  animation: hanging-light-breathe 5.8s ease-in-out var(--swing-delay) infinite alternate;
}

.hanging-star::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--hang-offset) + 10px);
  left: 50%;
  width: clamp(78px, 7.8vw, 112px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--star-accent), .24) 0 12%, rgba(var(--star-accent), .1) 30%, transparent 68%);
  filter: blur(9px);
  opacity: .72;
  pointer-events: none;
  animation: hanging-halo 4.6s ease-in-out var(--swing-delay) infinite alternate;
}

.hanging-star__body {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(54px, 5vw, 70px);
  aspect-ratio: 1;
  transform-origin: 50% -48px;
  animation:
    hanging-sway 6.8s cubic-bezier(.45,.04,.55,.96) var(--swing-delay) infinite alternate,
    hanging-flash 4.9s ease-in-out var(--swing-delay) infinite;
  will-change: transform, filter;
}

.hanging-star__body::before {
  content: "";
  position: absolute;
  inset: -26%;
  z-index: -1;
  border-radius: 50%;
  background:
    conic-gradient(from 8deg, transparent 0 16%, rgba(var(--star-accent), .26) 18%, transparent 21% 48%, rgba(255,255,255,.16) 50%, transparent 54% 78%, rgba(var(--star-accent), .2) 80%, transparent 84% 100%);
  filter: blur(4px);
  opacity: .46;
  animation: hanging-radiance 8s linear infinite;
}

.hanging-star__body::after {
  content: "";
  position: absolute;
  left: 21%;
  top: 18%;
  width: 17%;
  height: 34%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0));
  filter: blur(1.5px);
  transform: rotate(-34deg);
  opacity: .58;
  pointer-events: none;
}

.hanging-star__body svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 5px 7px rgba(0,0,0,.28))
    drop-shadow(0 0 8px rgba(var(--star-accent), .72))
    drop-shadow(0 0 22px rgba(var(--star-accent), .3));
  transition: transform .45s cubic-bezier(.22,1,.36,1), filter .35s ease;
}

.hanging-star__spark-field {
  position: absolute;
  z-index: 4;
  top: calc(var(--hang-offset) - 20px);
  left: 50%;
  width: 72px;
  height: 86px;
  transform: translateX(-50%);
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(var(--star-accent), .95);
  box-shadow: 0 0 8px rgba(var(--star-accent), .82);
  opacity: 0;
  animation: hanging-spark 4.4s ease-in-out infinite;
}

.spark--1 {
  left: 8px;
  top: 42px;
  animation-delay: calc(var(--swing-delay) - .5s);
}

.spark--2 {
  right: 5px;
  top: 31px;
  width: 3px;
  height: 3px;
  animation-delay: calc(var(--swing-delay) - 2.2s);
}

.spark--3 {
  left: 47%;
  top: 7px;
  width: 2px;
  height: 2px;
  animation-delay: calc(var(--swing-delay) - 3.4s);
}

.hanging-star__label {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 5px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.48);
  transition: transform .35s cubic-bezier(.22,1,.36,1), color .3s ease;
}

.hanging-star__label b {
  color: #eef7ff;
  font-size: clamp(.86rem, .78rem + .16vw, 1rem);
  font-weight: 760;
  line-height: 1.2;
}

.hanging-star__label small {
  color: rgba(188, 207, 223, .65);
  font-size: clamp(.48rem, .43rem + .08vw, .58rem);
  font-weight: 650;
  letter-spacing: .15em;
  white-space: nowrap;
}

.hanging-star:hover .hanging-star__body,
.hanging-star:focus-visible .hanging-star__body {
  animation-play-state: paused;
}

.hanging-star:hover .hanging-star__body svg,
.hanging-star:focus-visible .hanging-star__body svg {
  transform: translateY(-3px) rotate(4deg) scale(1.1);
  filter:
    drop-shadow(0 8px 10px rgba(0,0,0,.3))
    drop-shadow(0 0 12px rgba(var(--star-accent), .95))
    drop-shadow(0 0 34px rgba(var(--star-accent), .52));
}

.hanging-star:hover .hanging-star__label,
.hanging-star:focus-visible .hanging-star__label {
  transform: translateY(2px);
}

.hanging-star:hover .hanging-star__label b,
.hanging-star:focus-visible .hanging-star__label b {
  color: rgb(var(--star-accent));
}

.hanging-star:focus-visible {
  border-radius: 16px;
  box-shadow: 0 0 0 3px rgba(var(--star-accent), .2);
}

.moon-stage {
  position: absolute;
  top: clamp(96px, 12vh, 140px);
  left: clamp(34px, 8vw, 135px);
  z-index: 4;
  width: clamp(145px, 16vw, 245px);
  aspect-ratio: 1;
  transform: translate3d(calc(var(--scene-x) * -.35), calc(var(--scene-y) * -.25), 0);
}

.moon {
  position: absolute;
  inset: 11%;
  z-index: 3;
  width: 78%;
  height: 78%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 16px rgba(255,255,255,.32),
    0 0 55px rgba(207,229,246,.34),
    0 0 135px rgba(164,204,229,.22);
  animation: moon-float 9s ease-in-out infinite alternate;
}

.moon-aura {
  position: absolute;
  inset: -38%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(239,247,255,.23) 0 21%, rgba(177,211,234,.14) 35%, rgba(112,163,195,.06) 50%, transparent 70%);
  filter: blur(7px);
  animation: moon-bloom 8s ease-in-out infinite alternate;
}

.moon-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(219, 237, 249, .12);
  border-radius: 50%;
}

.moon-orbit--outer {
  inset: -13%;
  animation: orbit-pulse 11s ease-in-out infinite alternate;
}

.moon-orbit--inner {
  inset: 3%;
  border-color: rgba(240,247,252,.09);
  animation: orbit-pulse 8s ease-in-out -3s infinite alternate-reverse;
}

.moon-mist {
  position: absolute;
  z-index: 4;
  left: -55%;
  right: -80%;
  bottom: 4%;
  height: 25%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(208,225,237,.2) 30%, rgba(230,239,247,.12) 55%, transparent);
  filter: blur(9px);
  transform: rotate(-4deg);
  animation: moon-mist 12s ease-in-out infinite alternate;
}

.cloud-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.cloud-layer--far {
  opacity: .22;
  filter: blur(7px);
}

.cloud-layer--near {
  z-index: 8;
  opacity: .34;
  filter: blur(4px);
}

.cloud {
  position: absolute;
  width: 280px;
  height: 78px;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(184,205,220,.26), rgba(102,136,158,.12));
  box-shadow:
    52px -22px 0 -6px rgba(190,211,225,.19),
    115px -8px 0 -17px rgba(174,198,214,.16),
    -60px 7px 0 -16px rgba(145,177,197,.13);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 112px;
  height: 112px;
  left: 45px;
  top: -48px;
}

.cloud::after {
  width: 86px;
  height: 86px;
  right: 38px;
  top: -32px;
}

.cloud--1 {
  top: 23%;
  left: -22%;
  transform: scale(.78);
  animation: cloud-cross 58s linear infinite;
}

.cloud--2 {
  top: 40%;
  left: -35%;
  transform: scale(1.05);
  animation: cloud-cross 79s linear -31s infinite;
}

.cloud--3 {
  top: 13%;
  left: -38%;
  transform: scale(.58);
  animation: cloud-cross 69s linear -18s infinite;
}

.cloud--4 {
  top: 29%;
  left: -42%;
  transform: scale(1.25);
  animation: cloud-cross 92s linear -46s infinite;
}

.cloud--5 {
  top: 49%;
  left: -34%;
  transform: scale(.88);
  animation: cloud-cross 84s linear -9s infinite;
}

.hero-copy {
  position: absolute;
  z-index: 12;
  left: clamp(34px, 8vw, 135px);
  top: clamp(330px, 47vh, 510px);
  width: min(470px, 42vw);
  transform: translate3d(calc(var(--scene-x) * -.14), calc(var(--scene-y) * -.1), 0);
  text-shadow: 0 8px 35px rgba(0,0,0,.34);
}

.hero-copy__eyebrow {
  margin: 0 0 13px;
  color: #a9c6dc;
  font-size: clamp(.62rem, .55rem + .2vw, .76rem);
  letter-spacing: .32em;
  font-weight: 650;
}

.hero-copy h1 {
  margin: 0;
  max-width: 600px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.55rem, 3.6vw, 5.4rem);
  line-height: .92;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 0%, #d7e5ef 65%, #95aec0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p[lang="fa"] {
  margin: 15px 0 0;
  max-width: 430px;
  color: #b7c8d7;
  font-size: clamp(.8rem, .72rem + .25vw, 1rem);
  line-height: 1.9;
}

.hero-copy__line {
  display: block;
  width: 84px;
  height: 1px;
  margin-top: 19px;
  background: linear-gradient(90deg, rgba(205,230,245,.85), transparent);
  box-shadow: 0 0 10px rgba(205,230,245,.28);
}

.beam-stage {
  position: absolute;
  z-index: 7;
  right: calc(clamp(18px, 4.5vw, 86px) + clamp(106px, 12vw, 187px));
  bottom: calc(clamp(128px, 15.5vh, 190px) + clamp(158px, 18vw, 281px));
  width: 0;
  height: 0;
  transform: translate3d(calc(var(--scene-x) * -.08), calc(var(--scene-y) * -.05), 0);
  animation: beam-sweep 13.5s cubic-bezier(.45,.02,.55,.98) infinite alternate;
  transform-origin: 0 0;
  pointer-events: none;
}

.beam {
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(-50%);
  transform-origin: right center;
  pointer-events: none;
}

.beam--halo {
  width: min(86vw, 1360px);
  height: clamp(190px, 29vh, 320px);
  clip-path: polygon(0 4%, 100% 42%, 100% 58%, 0 96%);
  background: linear-gradient(90deg, rgba(var(--beam), 0) 0%, rgba(var(--beam), .03) 20%, rgba(var(--beam), .12) 58%, rgba(var(--beam), .26) 82%, rgba(var(--beam), .36) 100%);
  filter: blur(18px);
  mix-blend-mode: screen;
}

.beam--core {
  width: min(82vw, 1280px);
  height: clamp(86px, 13vh, 148px);
  clip-path: polygon(0 13%, 100% 45%, 100% 55%, 0 87%);
  background: linear-gradient(90deg, rgba(var(--beam), 0) 0%, rgba(var(--beam), .035) 16%, rgba(var(--beam), .11) 54%, rgba(var(--beam), .34) 84%, rgba(var(--beam), .58) 100%);
  filter: blur(2.4px);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 26%, #000 74%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 26%, #000 74%, #000 100%);
}

.beam--dust {
  width: min(74vw, 1130px);
  height: clamp(44px, 7vh, 82px);
  clip-path: polygon(0 34%, 100% 48%, 100% 52%, 0 66%);
  background:
    radial-gradient(circle at 20% 43%, rgba(255,248,215,.24) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 55%, rgba(255,248,215,.19) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 47%, rgba(255,248,215,.24) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent, rgba(var(--beam),.15));
  background-size: 66px 38px, 87px 49px, 108px 58px, auto;
  filter: blur(.4px);
  opacity: .55;
  animation: dust-flow 5s linear infinite;
}

.horizon-haze {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 27%;
  z-index: 9;
  height: 19vh;
  background: linear-gradient(180deg, transparent, rgba(124, 170, 187, .08) 42%, rgba(190, 211, 218, .11) 56%, transparent 82%);
  filter: blur(10px);
  pointer-events: none;
  animation: haze-breathe 10s ease-in-out infinite alternate;
}

.lighthouse-stage {
  position: absolute;
  z-index: 14;
  right: clamp(18px, 4.5vw, 86px);
  bottom: clamp(128px, 15.5vh, 190px);
  width: clamp(220px, 25vw, 390px);
  margin: 0;
  transform: translate3d(calc(var(--scene-x) * -.06), calc(var(--scene-y) * -.04), 0);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.55));
}

.lighthouse {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.lamp-glow {
  position: absolute;
  z-index: 4;
  top: 19.6%;
  left: 45.3%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,245,196,.84);
  box-shadow:
    0 0 12px rgba(255,245,196,.85),
    0 0 32px rgba(255,235,162,.72),
    0 0 72px rgba(255,224,117,.34);
  animation: lamp-pulse 3.6s ease-in-out infinite alternate;
}

.cliff {
  position: absolute;
  z-index: 1;
  left: -14%;
  right: -10%;
  bottom: -6%;
  height: 30%;
  clip-path: polygon(0 30%, 16% 11%, 30% 19%, 43% 5%, 58% 15%, 74% 1%, 100% 31%, 100% 100%, 0 100%);
  background:
    linear-gradient(165deg, rgba(25,33,39,.95), rgba(5,11,16,.98)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.05), transparent 40%);
  box-shadow: 0 -12px 34px rgba(0,0,0,.25);
}

.cliff-haze {
  position: absolute;
  z-index: 5;
  left: -38%;
  right: -30%;
  bottom: -8%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(143,174,187,.13), transparent 70%);
  filter: blur(14px);
}

.moon-reflection {
  position: absolute;
  z-index: 6;
  left: clamp(62px, 12vw, 210px);
  bottom: 2.5%;
  width: clamp(120px, 17vw, 260px);
  height: 28%;
  opacity: .34;
  transform: skewX(-8deg);
  filter: blur(.4px);
  pointer-events: none;
}

.moon-reflection span {
  position: absolute;
  left: 50%;
  height: 4%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(202,226,240,.56), transparent);
  filter: blur(1px);
  animation: reflection-shiver 4.8s ease-in-out infinite alternate;
}

.moon-reflection span:nth-child(1) { top: 0; width: 24%; animation-delay: -.4s; }
.moon-reflection span:nth-child(2) { top: 19%; width: 46%; animation-delay: -2.2s; }
.moon-reflection span:nth-child(3) { top: 40%; width: 66%; animation-delay: -1.1s; }
.moon-reflection span:nth-child(4) { top: 62%; width: 84%; animation-delay: -3.4s; }
.moon-reflection span:nth-child(5) { top: 84%; width: 100%; animation-delay: -1.8s; }

.waves {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 39%;
  bottom: -1px;
  pointer-events: none;
}

.waves path {
  transform-origin: center;
}

.waves--back {
  z-index: 10;
  opacity: .74;
  fill: #0b3347;
  filter: drop-shadow(0 -10px 20px rgba(69, 126, 145, .08));
  animation: wave-drift-back 18s ease-in-out infinite alternate;
}

.waves--mid {
  z-index: 16;
  opacity: .88;
  fill: #08293b;
  animation: wave-drift-mid 13s ease-in-out infinite alternate;
}

.waves--front {
  z-index: 20;
  fill: #051b2a;
  animation: wave-drift-front 10s ease-in-out infinite alternate;
}

.foam {
  position: absolute;
  z-index: 21;
  left: -8%;
  width: 116%;
  height: 2px;
  bottom: 15.7%;
  opacity: .24;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(174,211,224,.48) 20px 27px, transparent 29px 48px);
  filter: blur(.3px);
  transform: rotate(-.2deg);
  animation: foam-drift 13s linear infinite;
}

.foam--two {
  z-index: 17;
  bottom: 23.4%;
  opacity: .14;
  animation-duration: 18s;
  animation-direction: reverse;
}

.motion-toggle {
  position: absolute;
  z-index: 45;
  left: clamp(18px, 4vw, 68px);
  bottom: var(--safe-bottom);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #a8bac9;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(5,16,27,.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font: inherit;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  color: #eef8ff;
  border-color: rgba(255,255,255,.22);
  background: rgba(12,29,45,.56);
  outline: none;
}

.motion-toggle__pause {
  position: relative;
  width: 12px;
  height: 12px;
}

.motion-toggle__pause::before,
.motion-toggle__pause::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.motion-toggle__pause::before { left: 1px; }
.motion-toggle__pause::after { right: 1px; }

.scene.is-paused *,
.scene.is-paused *::before,
.scene.is-paused *::after {
  animation-play-state: paused !important;
}

.scene.is-paused .motion-toggle__pause::before {
  left: 2px;
  top: 1px;
  bottom: auto;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.scene.is-paused .motion-toggle__pause::after {
  display: none;
}

@keyframes hanging-sway {
  0% { transform: translate3d(-2px, -1px, 0) rotate(-3.2deg); }
  46% { transform: translate3d(1px, 3px, 0) rotate(1.2deg); }
  100% { transform: translate3d(3px, -2px, 0) rotate(3.5deg); }
}

@keyframes hanging-flash {
  0%, 17%, 44%, 100% { filter: brightness(.96) saturate(.98); }
  22% { filter: brightness(1.22) saturate(1.12); }
  25% { filter: brightness(1.02) saturate(1); }
  71% { filter: brightness(1.08) saturate(1.06); }
}

@keyframes hanging-halo {
  from { opacity: .42; transform: translateX(-50%) scale(.88); }
  to { opacity: .86; transform: translateX(-50%) scale(1.12); }
}

@keyframes hanging-light-breathe {
  from { opacity: .38; transform: translateX(-50%) scaleX(.82); }
  to { opacity: .76; transform: translateX(-50%) scaleX(1.1); }
}

@keyframes hanging-radiance {
  to { transform: rotate(360deg); }
}

@keyframes hanging-spark {
  0%, 14%, 100% { opacity: 0; transform: translate3d(0, 5px, 0) scale(.5); }
  27% { opacity: .9; }
  52% { opacity: .42; transform: translate3d(4px, -16px, 0) scale(1); }
  72% { opacity: 0; transform: translate3d(-2px, -27px, 0) scale(.4); }
}

@keyframes aurora-breathe {
  from { opacity: .34; transform: translate3d(calc(var(--scene-x) * -.12), calc(var(--scene-y) * -.08), 0) rotate(-4deg) scale(.96); }
  to { opacity: .66; transform: translate3d(calc(var(--scene-x) * -.12), calc(var(--scene-y) * -.08), 0) rotate(2deg) scale(1.05); }
}

@keyframes grain-shift {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(3%,-2%,0); }
  50% { transform: translate3d(-2%,3%,0); }
  75% { transform: translate3d(1%,2%,0); }
  100% { transform: translate3d(-3%,-1%,0); }
}

@keyframes moon-float {
  from { transform: translateY(-2px) scale(.995); }
  to { transform: translateY(7px) scale(1.012); }
}

@keyframes moon-bloom {
  from { opacity: .72; transform: scale(.94); }
  to { opacity: 1; transform: scale(1.07); }
}

@keyframes orbit-pulse {
  from { opacity: .3; transform: scale(.97); }
  to { opacity: .78; transform: scale(1.03); }
}

@keyframes moon-mist {
  from { transform: translateX(-8%) rotate(-4deg); opacity: .44; }
  to { transform: translateX(9%) rotate(-2deg); opacity: .75; }
}

@keyframes cloud-cross {
  from { translate: -5vw 0; }
  to { translate: 150vw 0; }
}

@keyframes beam-sweep {
  0% { rotate: -13deg; }
  44% { rotate: 7deg; }
  58% { rotate: 7deg; }
  100% { rotate: -10deg; }
}

@keyframes dust-flow {
  to { background-position: 66px 0, 87px 0, 108px 0, 0 0; }
}

@keyframes haze-breathe {
  from { opacity: .55; transform: translateY(4px) scaleX(.98); }
  to { opacity: .95; transform: translateY(-3px) scaleX(1.02); }
}

@keyframes lamp-pulse {
  from { opacity: .78; transform: scale(.88); }
  to { opacity: 1; transform: scale(1.12); }
}

@keyframes reflection-shiver {
  from { transform: translateX(-50%) scaleX(.84); opacity: .36; }
  to { transform: translateX(-50%) scaleX(1.18); opacity: .86; }
}

@keyframes wave-drift-back {
  from { transform: translate3d(-1.6%, 0, 0) scaleY(.98); }
  to { transform: translate3d(1.8%, 6px, 0) scaleY(1.025); }
}

@keyframes wave-drift-mid {
  from { transform: translate3d(1.3%, 1px, 0) scaleY(1.01); }
  to { transform: translate3d(-1.7%, 8px, 0) scaleY(.98); }
}

@keyframes wave-drift-front {
  from { transform: translate3d(-1.1%, 1px, 0) scaleY(.99); }
  to { transform: translate3d(1.4%, 7px, 0) scaleY(1.02); }
}

@keyframes foam-drift {
  to { background-position-x: 96px; }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-copy small {
    display: none;
  }

  .hanging-nav {
    gap: 22px;
  }

  .hanging-star {
    min-width: 70px;
  }

  .hanging-star__body {
    width: 54px;
  }

  .hanging-star__label small {
    display: none;
  }

  .moon-stage {
    top: clamp(96px, 13vh, 126px);
    left: clamp(22px, 6vw, 72px);
    width: clamp(130px, 23vw, 210px);
  }

  .hero-copy {
    left: clamp(24px, 6vw, 72px);
    top: 43%;
    width: 44vw;
  }

  .lighthouse-stage {
    right: -3%;
    width: clamp(250px, 38vw, 360px);
  }

  .beam-stage {
    right: clamp(107px, 15vw, 160px);
  }
}

@media (max-width: 680px) {
  .topbar {
    left: 16px;
    right: 16px;
  }

  .brand-copy strong {
    font-size: .72rem;
    letter-spacing: .18em;
  }

  .hanging-nav {
    gap: 10px;
  }

  .hanging-star {
    min-width: 55px;
  }

  .hanging-star--blupay {
    --hang-offset: 9px;
  }

  .hanging-star__body {
    width: 44px;
    transform-origin: 50% -36px;
  }

  .hanging-star__label {
    margin-top: 3px;
  }

  .hanging-star__label b {
    font-size: .76rem;
  }

  .moon-stage {
    top: 13%;
    left: 8%;
    width: clamp(112px, 31vw, 150px);
  }

  .hero-copy {
    top: 34%;
    left: 7%;
    width: 72vw;
  }

  .hero-copy__eyebrow {
    margin-bottom: 8px;
    letter-spacing: .22em;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .hero-copy > p[lang="fa"] {
    max-width: 290px;
    font-size: .78rem;
  }

  .cloud-layer--near {
    opacity: .24;
  }

  .lighthouse-stage {
    right: -24%;
    bottom: 15%;
    width: clamp(250px, 70vw, 340px);
  }

  .beam-stage {
    right: 22%;
    bottom: 38%;
  }

  .beam--halo {
    width: 115vw;
    height: 23vh;
  }

  .beam--core {
    width: 110vw;
    height: 10vh;
  }

  .moon-reflection {
    left: 6%;
    width: 40vw;
  }

  .waves {
    height: 35%;
  }

  .motion-toggle__label {
    display: none;
  }

  .motion-toggle {
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-height: 650px) and (min-width: 681px) {
  .moon-stage {
    top: 10%;
    width: 150px;
  }

  .hero-copy {
    top: 38%;
  }

  .lighthouse-stage {
    bottom: 11%;
    width: 280px;
  }

  .beam-stage {
    bottom: 34%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene *,
  .scene *::before,
  .scene *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .motion-toggle {
    display: none;
  }
}
