/* Helix Studio shared site CSS
   Owns only global tokens, fonts, chrome, loader, background, and footer.
   Page-specific layout belongs in a page stylesheet or the template extra_css block.
*/

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/mos-studio/fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/mos-studio/fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/mos-studio/fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/static/mos-studio/fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("/static/mos-studio/fonts/pp-neue-montreal-mono/PPNeueMontrealMono-Book.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("/static/mos-studio/fonts/pp-neue-montreal-mono/PPNeueMontrealMono-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal Mono";
  src: url("/static/mos-studio/fonts/pp-neue-montreal-mono/PPNeueMontrealMono-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --palette-orange-red: #ff4202;
  --palette-fresh-chartreuse: #afe877;
  --palette-blue-indigo: #611fd8;
  --palette-bright-lavender: #ad8fff;
  --palette-peridot: #def245;
  --palette-supreme-green: #006666;
  --palette-pastel-fuchsia: #fab0d8;
  --palette-royal-fuchsia: #92278f;
  --palette-black: #120f18;
  --palette-white: #ffffff;
  --font-display: "PP Neue Montreal Mono", "SFMono-Regular", Consolas, monospace;
  --font-body: "PP Neue Montreal Mono", "SFMono-Regular", Consolas, monospace;
  --font-mono: "PP Neue Montreal Mono", "SFMono-Regular", Consolas, monospace;
  --mos-shell-edge: clamp(18px, 2.4vw, 32px);
  --mos-topbar-height: 78px;
}

html[lang^="ar"],
html[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", Arial, sans-serif;
  --font-body: "IBM Plex Sans Arabic", Arial, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", Arial, sans-serif;
}

html {
  min-height: 100%;
  background: #fffdf8;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.mos-page {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #fffdf8;
  color: #2d2925;
  font-family: var(--font-body);
}

body.is-locked {
  overflow: hidden;
}

.mos-page a,
.mos-page button,
.mos-page input,
.mos-page textarea,
.mos-page select {
  font: inherit;
}

.mos-page a,
.mos-page button {
  color: inherit;
}

.mos-page button {
  cursor: pointer;
}

.mos-page .chip,
.mos-page .bevel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(62, 53, 43, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #2d2925;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mos-page .bevel-button {
  gap: 10px;
  padding: 0 24px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mos-page .bevel-button:hover,
.mos-page .bevel-button:focus-visible,
.mos-page .chip:hover,
.mos-page .chip:focus-visible {
  border-color: rgba(62, 53, 43, 0.32);
  background: rgba(255, 253, 248, 0.94);
  outline: none;
}

.mos-page .bevel-button:hover {
  transform: translateY(-1px);
}

.mos-page .lead-tag,
.mos-page .caption {
  color: rgba(47, 38, 32, 0.62);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.mos-page .story-title {
  margin: 0;
  color: #2d2925;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.mos-page .story-title .line {
  display: block;
}

.bubble-background {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(173, 143, 255, 0.16), rgba(255, 255, 255, 0.94) 42%, rgba(250, 176, 216, 0.12)),
    #fffdf8;
}

.bubble-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.28), rgba(255, 253, 248, 0.38)),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.16), transparent 42%);
}

.bubble-filter {
  position: absolute;
  width: 0;
  height: 0;
}

.bubble-goo {
  position: absolute;
  inset: -12%;
  opacity: 1;
  filter: url("#mos-bubble-goo") blur(28px);
  transform: translate3d(calc(var(--bubble-move-x, 0px) * 0.09), calc(var(--bubble-move-y, 0px) * 0.09), 0);
}

.bubble {
  position: absolute;
  width: min(54vmax, 760px);
  height: min(54vmax, 760px);
  top: 50%;
  left: 50%;
  border-radius: 999px;
  mix-blend-mode: multiply;
  transform: translate3d(-50%, -50%, 0);
}

.bubble-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bubble-orbit .bubble {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
}

.bubble-one {
  top: 42%;
  left: 36%;
  background: radial-gradient(circle at center, rgba(255, 66, 2, 0.3) 0%, rgba(255, 66, 2, 0.15) 26%, rgba(255, 66, 2, 0) 58%);
  animation: mosBubbleVertical 24s ease-in-out infinite;
}

.bubble-two-orbit {
  animation: mosBubbleRotateA 32s linear infinite;
  transform-origin: calc(50% - 300px) 50%;
}

.bubble-two {
  width: min(48vmax, 680px);
  height: min(48vmax, 680px);
  background: radial-gradient(circle at center, rgba(222, 242, 69, 0.25) 0%, rgba(222, 242, 69, 0.12) 30%, rgba(222, 242, 69, 0) 58%);
}

.bubble-three-orbit {
  animation: mosBubbleRotateB 38s linear infinite;
  transform-origin: calc(50% + 260px) 50%;
}

.bubble-three {
  position: absolute;
  width: min(46vmax, 640px);
  height: min(46vmax, 640px);
  top: calc(50% + 100px);
  left: calc(50% - 260px);
  background: radial-gradient(circle at center, rgba(0, 102, 102, 0.3) 0%, rgba(0, 102, 102, 0.15) 28%, rgba(0, 102, 102, 0) 60%);
}

.bubble-four {
  top: 52%;
  left: 60%;
  opacity: 0.8;
  background: radial-gradient(circle at center, rgba(173, 143, 255, 0.32) 0%, rgba(173, 143, 255, 0.16) 26%, rgba(173, 143, 255, 0) 58%);
  animation: mosBubbleHorizontal 26s ease-in-out infinite;
}

.bubble-five-orbit {
  animation: mosBubbleRotateC 42s linear infinite;
  transform-origin: calc(50% - 360px) calc(50% + 120px);
}

.bubble-five {
  position: absolute;
  width: min(70vmax, 980px);
  height: min(70vmax, 980px);
  top: calc(50% - 35vmax);
  left: calc(50% - 35vmax);
  background: radial-gradient(circle at center, rgba(250, 176, 216, 0.28) 0%, rgba(250, 176, 216, 0.14) 28%, rgba(250, 176, 216, 0) 60%);
}

.bubble-interactive {
  width: min(38vmax, 520px);
  height: min(38vmax, 520px);
  top: 0;
  left: 0;
  opacity: 0.6;
  z-index: 5;
  background: radial-gradient(circle at center, rgba(175, 232, 119, 0.28) 0%, rgba(175, 232, 119, 0.12) 24%, rgba(175, 232, 119, 0) 56%);
  transform: translate3d(calc((var(--bubble-move-x, 0px) * 0.65) + 50vw - 19vmax), calc((var(--bubble-move-y, 0px) * 0.65) + 50vh - 19vmax), 0);
}

.mos-page .topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  padding: 18px var(--mos-shell-edge);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.64) 72%, rgba(255, 253, 248, 0));
}

.mos-page .topbar-inner {
  width: min(1720px, calc(100vw - (var(--mos-shell-edge) * 2)));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  direction: ltr;
  pointer-events: auto;
}

.mos-page .brand-lockup,
.mos-page .topbar-actions {
  margin: 0;
}

.mos-page .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #2d2925;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.mos-page .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.mos-page .brand-mark img {
  display: block;
  width: 44px;
  height: 44px;
}

.mos-page .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mos-page .named-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.mos-page .named-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(62, 53, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: rgba(45, 41, 37, 0.76);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mos-page .named-nav a:hover,
.mos-page .named-nav a:focus-visible {
  color: #2d2925;
  border-color: rgba(62, 53, 43, 0.28);
  background: rgba(255, 253, 248, 0.92);
  outline: none;
}

.mos-page .language-switcher {
  position: relative;
}

.mos-page .language-trigger {
  min-width: 184px;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
}

html[dir="rtl"] .mos-page .language-trigger,
html[lang^="ar"] .mos-page .language-trigger {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

html[dir="rtl"] .mos-page .language-option,
html[lang^="ar"] .mos-page .language-option {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.mos-page .language-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mos-page .language-current::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mos-page .language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  min-width: 184px;
  padding: 8px;
  border: 1px solid rgba(62, 53, 43, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 20px 60px rgba(43, 36, 28, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.mos-page .language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mos-page .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2d2925;
  text-align: left;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.mos-page .language-option small {
  color: rgba(47, 38, 32, 0.62);
}

.mos-page .language-option:hover,
.mos-page .language-option:focus-visible,
.mos-page .language-option.is-active {
  background: rgba(45, 41, 37, 0.06);
  outline: none;
}

.mos-page .page-shell,
.mos-page .booking-page-main,
.mos-page .community-main,
.mos-page .booking-success-main,
.mos-page .rail-wrap {
  position: relative;
  z-index: 1;
}

.mos-page .site-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 66, 2, 0.2), transparent 28%),
    radial-gradient(circle at 76% 22%, rgba(173, 143, 255, 0.18), transparent 30%),
    radial-gradient(circle at 66% 80%, rgba(0, 102, 102, 0.3), transparent 34%),
    #262626;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.mos-page .site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mos-page .loader-core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(920px, calc(100vw - 32px));
  text-transform: uppercase;
}

.mos-loader-theme::before,
.mos-loader-theme::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.48;
  mix-blend-mode: screen;
}

.mos-loader-theme::before {
  background:
    radial-gradient(circle at 25% 40%, rgba(0, 229, 239, 0.26), transparent 36%),
    radial-gradient(circle at 70% 55%, rgba(222, 242, 69, 0.2), transparent 42%);
  animation: loaderGlowDrift 5.6s ease-in-out infinite;
}

.mos-loader-theme::after {
  background:
    radial-gradient(circle at 35% 60%, rgba(173, 143, 255, 0.22), transparent 38%),
    radial-gradient(circle at 72% 38%, rgba(250, 176, 216, 0.18), transparent 42%);
  animation: loaderGlowDrift 6.2s ease-in-out infinite reverse;
}

.mos-loader-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(56vw, 320px);
  min-width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 229, 239, 0.12));
}

.mos-loader-text {
  fill: none;
  stroke: currentColor;
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  font-family: var(--font-display);
  font-size: 118px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.mos-loader-text-shadow {
  opacity: 0.32;
  stroke-width: 10;
}

.mos-loader-fill {
  opacity: 0;
  font-family: var(--font-display);
  font-size: 118px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  transform-box: fill-box;
  transform-origin: center;
}

.mos-page .mos-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 55;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1720px, calc(100vw - (var(--mos-shell-edge) * 2)));
  margin: 0;
  padding: 22px 0 28px;
  color: rgba(47, 38, 32, 0.58);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
}

.booking-page .booking-page-main,
.community-page .community-main {
  padding-top: calc(var(--mos-topbar-height) + clamp(18px, 3vw, 42px));
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.booking-page .booking-page-intro,
.community-page .community-copy {
  top: calc(var(--mos-topbar-height) + 18px);
}

.booking-success-page .booking-success-main {
  min-height: 100svh;
  padding-top: calc(var(--mos-topbar-height) + 42px);
}

@keyframes mosBubbleVertical {
  0%, 100% { transform: translate3d(-50%, calc(-50% - 42px), 0); }
  50% { transform: translate3d(-50%, calc(-50% + 42px), 0); }
}

@keyframes mosBubbleHorizontal {
  0%, 100% { transform: translate3d(calc(-50% - 48px), -50%, 0); }
  50% { transform: translate3d(calc(-50% + 48px), -50%, 0); }
}

@keyframes mosBubbleRotateA {
  to { transform: rotate(360deg); }
}

@keyframes mosBubbleRotateB {
  to { transform: rotate(360deg); }
}

@keyframes mosBubbleRotateC {
  to { transform: rotate(360deg); }
}

@keyframes loaderGlowDrift {
  0%, 100% {
    transform: translate3d(-18px, 8px, 0) scale(0.96);
  }
  50% {
    transform: translate3d(20px, -10px, 0) scale(1.06);
  }
}

@media (max-width: 720px) {
  .mos-page {
    --mos-shell-edge: 14px;
    --mos-topbar-height: 70px;
  }

  .mos-page .topbar {
    padding: 12px var(--mos-shell-edge) 0;
  }

  .mos-page .topbar-inner {
    width: calc(100vw - (var(--mos-shell-edge) * 2));
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mos-page .brand-lockup {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0;
  }

  .mos-page .brand-mark {
    flex: 0 0 auto;
  }

  .mos-page .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .mos-page .topbar-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
  }

  .mos-page .chip,
  .mos-page .bevel-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .mos-page .language-trigger {
    min-width: 96px;
    max-width: none;
    gap: 8px;
    padding: 0 14px;
  }

  .mos-page .named-nav {
    display: none;
  }

  .mos-page .language-switcher {
    max-width: none;
  }

  .mos-page .named-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: min(58vw, 340px);
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .mos-page .named-nav::-webkit-scrollbar {
    display: none;
  }

  .mos-page .named-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .mos-page .story-title {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .mos-footer {
    flex-direction: column;
    width: min(100vw - 28px, 100%);
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .bubble-goo {
    opacity: 0.5;
    filter: url("#mos-bubble-goo") blur(32px);
  }

  .mos-loader-text {
    font-size: 104px;
    stroke-width: 6;
  }

  .mos-loader-fill {
    font-size: 104px;
  }
}

@media (max-width: 420px) {
  .mos-page .topbar-inner {
    gap: 8px;
  }

  .mos-page .brand-mark img {
    width: 32px;
    height: 32px;
  }

  .mos-page .language-trigger {
    min-width: 88px;
    padding: 0 10px;
  }

  .mos-page .language-trigger > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .bubble-orbit,
  .mos-loader-theme::before,
  .mos-loader-theme::after,
  .mos-loader-line {
    animation: none;
  }

  .mos-loader-fill {
    opacity: 1;
  }
}
