:root {
  --color-ink: #02070d;
  --color-ink-soft: #07131e;
  --color-navy: #061827;
  --color-petroleum: #0b5275;
  --color-cyan: #42d5f5;
  --color-cyan-soft: #7de7fa;
  --color-gold: #d6a74c;
  --color-text: #f3f8fb;
  --color-muted: #a9bcc8;
  --font-arabic: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Rajdhani", "Segoe UI", sans-serif;
  --core-size: clamp(192px, 28vmin, 280px);
  --page-gutter: clamp(16px, 3.5vw, 48px);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  background: var(--color-ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--color-ink);
  color: var(--color-text);
  font-family: var(--font-arabic);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

p,
h1,
figure {
  margin: 0;
}

.experience {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  padding:
    max(var(--page-gutter), env(safe-area-inset-top))
    max(var(--page-gutter), env(safe-area-inset-right))
    max(var(--page-gutter), env(safe-area-inset-bottom))
    max(var(--page-gutter), env(safe-area-inset-left));
  background-color: var(--color-ink);
  background-image:
    radial-gradient(circle at 50% 46%, rgba(11, 82, 117, 0.3), transparent 27%),
    radial-gradient(circle at 14% 9%, rgba(66, 213, 245, 0.08), transparent 24%),
    radial-gradient(circle at 88% 92%, rgba(214, 167, 76, 0.055), transparent 30%),
    linear-gradient(145deg, #071521 0%, var(--color-ink) 58%, #03101a 100%);
}

.experience::before,
.experience::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.experience::before {
  z-index: 0;
  opacity: 0.26;
  background: repeating-conic-gradient(
    from 11deg at 50% 48%,
    rgba(66, 213, 245, 0.08) 0deg 0.22deg,
    transparent 0.22deg 8deg
  );
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0, transparent 68%);
  mask-image: radial-gradient(circle at 50% 48%, #000 0, transparent 68%);
}

.experience::after {
  z-index: 12;
  background:
    linear-gradient(180deg, rgba(1, 6, 10, 0.38), transparent 18%, transparent 80%, rgba(1, 6, 10, 0.5)),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 4, 8, 0.42) 100%);
}

.scene-background {
  position: absolute;
  inset: -2%;
  z-index: -1;
  overflow: hidden;
  background: var(--color-ink);
  pointer-events: none;
  transform-origin: center;
}

.scene-background picture,
.scene-background img {
  width: 100%;
  height: 100%;
}

.scene-background picture {
  display: block;
}

.scene-background img {
  object-fit: cover;
  object-position: center 51%;
  opacity: 0.82;
  filter: saturate(0.86) contrast(1.07) brightness(0.84);
}

.scene-background::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 43% 48% at 50% 48%, rgba(2, 7, 13, 0.4), rgba(2, 7, 13, 0.16) 52%, transparent 76%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.22), transparent 32%, rgba(2, 7, 13, 0.18) 72%, rgba(2, 7, 13, 0.38));
  content: "";
}

.atmosphere,
.energy-field,
.technical-grid,
.particles,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.atmosphere {
  z-index: 0;
  opacity: 0.82;
  background:
    radial-gradient(circle at 50% 47%, rgba(66, 213, 245, 0.15) 0, transparent 20%),
    conic-gradient(
      from 210deg at 50% 50%,
      transparent,
      rgba(11, 82, 117, 0.14),
      transparent 36%,
      rgba(214, 167, 76, 0.055),
      transparent 65%
    );
  filter: blur(1px);
}

.energy-field {
  z-index: 1;
  overflow: visible;
}

.energy-path {
  fill: none;
  stroke: url("#energy-gradient");
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 7 20;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
}

.energy-path--two {
  opacity: 0.18;
  stroke-dasharray: 2 15;
}

.energy-path--three {
  opacity: 0.12;
  stroke-dasharray: 30 36;
}

.field-circle {
  fill: none;
  stroke: rgba(66, 213, 245, 0.13);
  stroke-width: 1;
  stroke-dasharray: 2 16;
  vector-effect: non-scaling-stroke;
}

.field-circle--outer {
  stroke: rgba(214, 167, 76, 0.085);
  stroke-dasharray: 20 28;
}

.energy-node {
  fill: url("#energy-node");
  opacity: 0.6;
}

.technical-grid {
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(66, 213, 245, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 213, 245, 0.052) 1px, transparent 1px);
  background-position: center;
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
}

.particles {
  z-index: 2;
}

.particle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 12px 2px rgba(66, 213, 245, 0.52);
  opacity: 0.34;
  will-change: transform, opacity;
}

.particle--1 {
  --x: 17%;
  --y: 23%;
}

.particle--2 {
  --x: 78%;
  --y: 18%;
  width: 2px;
  height: 2px;
}

.particle--3 {
  --x: 85%;
  --y: 67%;
  background: var(--color-gold);
  box-shadow: 0 0 12px 2px rgba(214, 167, 76, 0.4);
}

.particle--4 {
  --x: 24%;
  --y: 76%;
  width: 2px;
  height: 2px;
}

.particle--5 {
  --x: 68%;
  --y: 82%;
}

.particle--6 {
  --x: 11%;
  --y: 55%;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(214, 167, 76, 0.38);
}

.hero {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.identity-lockup {
  display: grid;
  justify-items: center;
  gap: clamp(0.4rem, 1.1vh, 0.75rem);
  min-width: 0;
  width: min(94vw, 56rem);
  text-align: center;
}

.energy-core {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--core-size);
  aspect-ratio: 1;
  margin-bottom: clamp(0.1rem, 0.7vh, 0.55rem);
}

.energy-core::before {
  position: absolute;
  inset: 19%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 213, 245, 0.16), rgba(6, 24, 39, 0.08) 58%, transparent 72%);
  box-shadow:
    0 0 55px rgba(66, 213, 245, 0.12),
    0 0 110px rgba(11, 82, 117, 0.13);
  content: "";
}

.energy-core::after {
  position: absolute;
  inset: -14%;
  z-index: 0;
  border: 1px solid rgba(66, 213, 245, 0.05);
  border-radius: 50%;
  content: "";
}

.orbit,
.core-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.orbit {
  z-index: 2;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit--cyan {
  border: 1px solid rgba(66, 213, 245, 0.58);
  box-shadow:
    inset 0 0 30px rgba(66, 213, 245, 0.08),
    0 0 22px rgba(66, 213, 245, 0.055);
}

.orbit--cyan::before {
  top: -3px;
  left: 49%;
  width: 7px;
  height: 7px;
  background: var(--color-cyan-soft);
  box-shadow: 0 0 16px 4px rgba(66, 213, 245, 0.7);
}

.orbit--cyan::after {
  right: 8%;
  bottom: 20%;
  width: 4px;
  height: 4px;
  background: var(--color-cyan);
  box-shadow: 0 0 11px rgba(66, 213, 245, 0.8);
}

.orbit--gold {
  inset: 8%;
  border: 1px dashed rgba(214, 167, 76, 0.55);
}

.orbit--gold::before {
  bottom: 3%;
  left: 24%;
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  box-shadow: 0 0 12px rgba(214, 167, 76, 0.75);
}

.orbit--ticks {
  inset: -8%;
  opacity: 0.42;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(66, 213, 245, 0.9) 0deg 0.35deg,
    transparent 0.35deg 8deg
  );
  -webkit-mask: radial-gradient(transparent 0 69%, #000 69.5% 71%, transparent 71.5%);
  mask: radial-gradient(transparent 0 69%, #000 69.5% 71%, transparent 71.5%);
}

.core-glow {
  inset: 16%;
  z-index: 1;
  background: rgba(66, 213, 245, 0.16);
  filter: blur(26px);
  will-change: transform, opacity;
}

.brand-mark {
  position: relative;
  z-index: 4;
  width: 61%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(214, 167, 76, 0.78);
  border-radius: 50%;
  background: #07131d;
  box-shadow:
    0 0 0 6px rgba(5, 20, 31, 0.78),
    0 0 0 7px rgba(66, 213, 245, 0.13),
    0 0 44px rgba(66, 213, 245, 0.2),
    0 18px 55px rgba(0, 0, 0, 0.42);
}

.brand-mark::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 26px rgba(1, 8, 14, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.logo-sweep {
  position: absolute;
  inset-block: -25%;
  left: -45%;
  z-index: 2;
  width: 28%;
  transform: skewX(-18deg) translateX(-160%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  filter: blur(4px);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

.motion-ready .logo-sweep {
  will-change: auto;
}

.brand-copy {
  display: grid;
  justify-items: center;
  gap: clamp(0.22rem, 0.65vh, 0.42rem);
  min-width: 0;
  width: 100%;
}

.arabic-name {
  max-width: 100%;
  width: 100%;
  font-size: clamp(1.3rem, 4.2vw, 2.45rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.48);
}

.english-name,
.english-status,
.corner {
  direction: ltr;
  font-family: var(--font-latin);
}

.english-name {
  max-width: 96%;
  width: 100%;
  color: var(--color-muted);
  font-size: clamp(0.72rem, 1.6vw, 0.98rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.17em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.launch-status {
  display: flex;
  align-items: center;
  width: min(100%, 20rem);
  min-width: 0;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  margin-top: clamp(0.22rem, 0.8vh, 0.65rem);
}

.status-copy {
  display: grid;
  flex: 0 1 auto;
  justify-items: center;
  gap: 0.1rem;
  min-width: 0;
}

.status-line {
  flex: 1 1 1.8rem;
  min-width: 0;
  width: clamp(1.8rem, 7vw, 4.8rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 213, 245, 0.72));
  transform-origin: center;
}

.status-line:last-child {
  transform: scaleX(-1);
}

.arabic-status {
  font-size: clamp(1.02rem, 2.5vw, 1.48rem);
  font-weight: 300;
  line-height: 1.3;
}

.english-status {
  color: var(--color-cyan);
  font-size: clamp(0.66rem, 1.3vw, 0.82rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.34em;
  white-space: nowrap;
}

.corner {
  position: absolute;
  z-index: 15;
  display: flex;
  align-items: center;
  color: rgba(169, 188, 200, 0.56);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  pointer-events: none;
}

.corner::before {
  width: 1.8rem;
  height: 1px;
  margin-inline-end: 0.55rem;
  background: linear-gradient(90deg, rgba(66, 213, 245, 0.65), transparent);
  content: "";
}

.corner--top-start {
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
}

.corner--top-end {
  top: max(1.25rem, env(safe-area-inset-top));
  left: max(1.25rem, env(safe-area-inset-left));
}

.corner--bottom-start {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.corner--bottom-end {
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: max(1.25rem, env(safe-area-inset-left));
}

.grain {
  z-index: 16;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.72'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 170px 170px;
  mix-blend-mode: soft-light;
}

@media (max-width: 720px) {
  :root {
    --core-size: clamp(168px, 48vw, 208px);
    --page-gutter: clamp(14px, 4vw, 21px);
  }

  .identity-lockup {
    width: min(94vw, 31rem);
  }

  .scene-background {
    inset: -1%;
  }

  .scene-background img {
    object-position: center 50%;
    opacity: 0.86;
    filter: saturate(0.88) contrast(1.06) brightness(0.8);
  }

  .scene-background::after {
    background:
      radial-gradient(ellipse 66% 38% at 50% 51%, rgba(2, 7, 13, 0.5), rgba(2, 7, 13, 0.18) 58%, transparent 82%),
      linear-gradient(180deg, rgba(2, 7, 13, 0.18), transparent 32%, rgba(2, 7, 13, 0.18) 70%, rgba(2, 7, 13, 0.44));
  }

  .english-name {
    max-width: 94%;
    letter-spacing: 0.11em;
  }

  .technical-grid {
    background-size: 46px 46px;
  }

  .corner--bottom-start,
  .corner--bottom-end {
    display: none;
  }
}

@media (max-width: 390px) {
  :root {
    --core-size: clamp(152px, 47vw, 180px);
  }

  .arabic-name {
    font-size: clamp(1.15rem, 5.6vw, 1.36rem);
  }

  .english-name {
    font-size: 0.69rem;
    letter-spacing: 0.075em;
  }

  .corner {
    font-size: 0.56rem;
  }
}

@media (max-width: 350px) {
  .corner {
    display: none;
  }

  .launch-status {
    gap: 0.55rem;
  }

  .status-line {
    width: 1.45rem;
  }
}

@media (max-height: 700px) {
  :root {
    --core-size: clamp(141px, 27vh, 176px);
  }

  .identity-lockup {
    gap: 0.25rem;
  }

  .energy-core {
    margin-bottom: 0.1rem;
  }

  .launch-status {
    margin-top: 0.15rem;
  }
}

@media (max-height: 560px) {
  :root {
    --core-size: clamp(112px, 31vh, 154px);
    --page-gutter: 12px;
  }

  .identity-lockup {
    gap: 0.12rem;
  }

  .arabic-name {
    font-size: clamp(1.05rem, 4.6vh, 1.35rem);
  }

  .english-name {
    font-size: 0.66rem;
  }

  .launch-status {
    margin-top: 0.08rem;
  }

  .corner {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .identity-lockup {
    grid-template-areas:
      "core copy"
      "core status";
    grid-template-columns: minmax(120px, 31vh) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(1.35rem, 4vw, 3.25rem);
    row-gap: 0.45rem;
    align-items: center;
    justify-items: stretch;
    width: min(90vw, 55rem);
    text-align: right;
  }

  .energy-core {
    grid-area: core;
    width: clamp(120px, 35vh, 168px);
    margin: 0;
    justify-self: center;
  }

  .brand-copy {
    grid-area: copy;
    justify-items: start;
  }

  .launch-status {
    grid-area: status;
    justify-self: start;
  }

  .english-name {
    max-width: 100%;
  }
}

@media (min-width: 1400px) and (min-height: 800px) {
  :root {
    --core-size: clamp(240px, 29vmin, 304px);
  }
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .parallax-layer,
  .energy-core {
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .parallax-layer {
    transform: none !important;
  }

  .particle,
  .core-glow,
  .logo-sweep {
    will-change: auto;
  }
}

@media (forced-colors: active) {
  .scene-background,
  .atmosphere,
  .energy-field,
  .technical-grid,
  .particles,
  .grain,
  .corner {
    display: none;
  }

  .brand-mark {
    border: 2px solid CanvasText;
    box-shadow: none;
  }
}
