@font-face {
  font-family: "Changa";
  src: url("/assets/Changa-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/Spectral-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("/assets/Spectral-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ivory: #f3eee4;
  --obsidian: #292620;
  --teal: #264d49;
  --muted-teal: #6e8883;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--obsidian);
  background: var(--ivory);
  font-family: "Spectral", Georgia, serif;
}
html[lang="ar"] body { font-family: "Changa", system-ui, sans-serif; }
img { max-width: 100%; }

.coming-soon-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 44%, rgba(110, 136, 131, 0.16), transparent 33rem),
    linear-gradient(rgba(41, 38, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 38, 32, 0.025) 1px, transparent 1px),
    var(--ivory);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.coming-soon-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(243, 238, 228, 0.94) 0%, rgba(243, 238, 228, 0.72) 48%, rgba(243, 238, 228, 0.28) 100%);
}

.frame {
  position: absolute;
  inset: clamp(14px, 2vw, 28px);
  z-index: 5;
  border: 1px solid rgba(38, 77, 73, 0.23);
  pointer-events: none;
}
.frame::before, .frame::after { content: ""; position: absolute; background: var(--teal); opacity: 0.7; }
.frame::before { width: 52px; height: 1px; top: -1px; right: 12%; }
.frame::after { width: 1px; height: 52px; right: -1px; bottom: 15%; }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--teal); opacity: 0.72; }
.cornerTopRight { top: 9px; right: 9px; border-top: 2px solid; border-right: 2px solid; }
.cornerTopLeft { top: 9px; left: 9px; border-top: 2px solid; border-left: 2px solid; }
.cornerBottomRight { bottom: 9px; right: 9px; border-bottom: 2px solid; border-right: 2px solid; }
.cornerBottomLeft { bottom: 9px; left: 9px; border-bottom: 2px solid; border-left: 2px solid; }

.site-header, .site-footer {
  width: min(1500px, 100%);
  margin-inline: auto;
  padding-inline: clamp(42px, 6vw, 108px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 4;
}
.site-header { padding-top: clamp(42px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; }
.wordmark { width: clamp(164px, 18vw, 250px); height: auto; display: block; }
.domain { margin: 0; justify-self: end; color: var(--teal); font-family: "Spectral", serif; font-size: 0.84rem; letter-spacing: 0.08em; }
.language-switcher { justify-self: center; display: inline-flex; padding: 3px; border: 1px solid rgba(38, 77, 73, 0.24); border-radius: 999px; background: rgba(243, 238, 228, 0.72); backdrop-filter: blur(8px); }
.language-button { min-height: 30px; padding: 3px 12px; border: 0; border-radius: 999px; color: var(--teal); background: transparent; font-family: "Spectral", Georgia, serif; font-size: 0.72rem; font-weight: 600; cursor: pointer; }
.language-button[data-language="ar"] { font-family: "Changa", system-ui, sans-serif; }
.language-button.is-active { color: var(--ivory); background: var(--teal); }
.language-button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
html[dir="rtl"] .wordmark { justify-self: end; }
html[dir="rtl"] .domain { justify-self: start; }

.hero {
  width: min(1500px, 100%);
  min-height: 620px;
  margin-inline: auto;
  padding: clamp(36px, 4vw, 70px) clamp(42px, 6vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 90px);
}
.hero-copy { position: relative; z-index: 3; padding-block: 38px; }
.status-line { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(26px, 4vw, 48px); color: var(--teal); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 7px rgba(38, 77, 73, 0.1); }
h1 { margin: 0; color: var(--obsidian); font-size: clamp(5.5rem, 12vw, 12.5rem); font-weight: 650; line-height: 0.86; letter-spacing: -0.07em; }
html[lang="en"] h1 { font-family: "Spectral", Georgia, serif; font-size: clamp(4.4rem, 9vw, 9.5rem); font-weight: 600; line-height: 0.88; letter-spacing: -0.055em; }
.descriptor { max-width: 560px; margin: clamp(28px, 4vw, 52px) 0 0; color: var(--teal); font-size: clamp(1.05rem, 1.6vw, 1.48rem); font-weight: 520; letter-spacing: 0.01em; }

.signature-line { width: min(410px, 100%); margin-top: 38px; display: grid; grid-template-columns: 1fr 42px 0.28fr; align-items: center; gap: 13px; }
.signature-line span { height: 1px; background: linear-gradient(90deg, transparent, var(--muted-teal)); }
.signature-line span:last-child { background: linear-gradient(90deg, var(--muted-teal), transparent); }
.signature-line img { width: 42px; height: 42px; object-fit: contain; }

.metis-stage { min-height: min(72svh, 760px); position: relative; display: grid; place-items: end center; align-self: end; }
.metis-stage::after { content: ""; position: absolute; width: 70%; height: 24px; bottom: 4%; border-radius: 50%; background: radial-gradient(ellipse, rgba(41, 38, 32, 0.23), transparent 68%); filter: blur(8px); z-index: 0; }
.metis { width: min(100%, 650px); max-height: 72svh; object-fit: contain; object-position: center bottom; position: relative; z-index: 2; filter: drop-shadow(0 28px 24px rgba(41, 38, 32, 0.12)); }
.orbit { position: absolute; border: 1px solid rgba(38, 77, 73, 0.24); border-radius: 50%; z-index: 1; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--teal); background: var(--ivory); transform: rotate(45deg); }
.orbitOuter { width: min(76%, 560px); aspect-ratio: 1; top: 6%; }
.orbitOuter::before { top: 13%; left: 8%; }
.orbitOuter::after { bottom: 18%; right: 3%; }
.orbitInner { width: min(56%, 410px); aspect-ratio: 1; top: 16%; border-style: dashed; opacity: 0.68; }
.orbitInner::before { top: 2%; right: 32%; }
.orbitInner::after { bottom: 4%; left: 27%; }
.network i { width: 7px; height: 7px; position: absolute; z-index: 1; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(38, 77, 73, 0.08); }
.nodeOne { top: 24%; right: 6%; }
.nodeTwo { top: 48%; left: 3%; }
.nodeThree { bottom: 27%; right: 10%; }
.nodeFour { top: 7%; left: 29%; }
.nodeFive { bottom: 10%; left: 18%; }

.site-footer { padding-bottom: clamp(40px, 4vw, 62px); color: rgba(41, 38, 32, 0.62); font-family: "Spectral", serif; font-size: 0.72rem; letter-spacing: 0.13em; }
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .hero-copy { padding-bottom: 0; }
  .status-line, .signature-line { margin-inline: auto; justify-content: center; }
  .descriptor { margin-inline: auto; }
  .metis-stage { width: min(640px, 100%); min-height: 540px; margin-inline: auto; }
  .metis { max-height: 600px; }
}

@media (max-width: 620px) {
  .coming-soon-shell { background-size: auto, 32px 32px, 32px 32px, auto; }
  .site-header, .site-footer, .hero { padding-inline: 34px; }
  .site-header { align-items: center; grid-template-columns: 1fr auto; row-gap: 12px; }
  .wordmark { width: 136px; }
  .language-switcher { justify-self: end; }
  .language-button { min-height: 28px; padding-inline: 10px; font-size: 0.66rem; }
  .domain { grid-column: 1 / -1; grid-row: 2; justify-self: start; font-size: 0.68rem; }
  html[dir="rtl"] .language-switcher { justify-self: start; }
  html[dir="rtl"] .domain { justify-self: end; }
  .hero { min-height: auto; padding-top: 70px; gap: 8px; }
  h1 { font-size: clamp(4.7rem, 26vw, 7.4rem); }
  html[lang="en"] h1 { font-size: clamp(3.55rem, 17vw, 5.4rem); }
  .descriptor { font-size: 1rem; }
  .metis-stage { min-height: 410px; }
  .metis { max-height: 450px; }
  .orbitOuter { width: 82%; }
  .orbitInner { width: 62%; }
}

@media (prefers-reduced-motion: no-preference) {
  .orbitOuter { animation: orbitDrift 22s linear infinite; }
  .orbitInner { animation: orbitDriftReverse 28s linear infinite; }
  .status-dot { animation: signal 2.8s ease-in-out infinite; }
}

@keyframes orbitDrift { to { transform: rotate(360deg); } }
@keyframes orbitDriftReverse { to { transform: rotate(-360deg); } }
@keyframes signal {
  0%, 100% { box-shadow: 0 0 0 7px rgba(38, 77, 73, 0.08); }
  50% { box-shadow: 0 0 0 12px rgba(38, 77, 73, 0.02); }
}
