/* Persian/Arabic: Vazirmatn (OFL-1.1), self-hosted. English uses the system font stack below. */
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/Vazirmatn-Light.ttf) format("truetype")}
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/Vazirmatn-Regular.ttf) format("truetype")}
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/Vazirmatn-Medium.ttf) format("truetype")}
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/Vazirmatn-SemiBold.ttf) format("truetype")}
@font-face{font-family:"Vazirmatn";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/Vazirmatn-Bold.ttf) format("truetype")}

:root {
  --bg: #04060a;
  --fg: #e9edf3;
  --muted: rgba(233, 237, 243, 0.55);
  --faint: rgba(233, 237, 243, 0.3);
  --accent: #f2b870;
  --pad-x: clamp(22px, 4.6vw, 72px);
  --pad-b: clamp(40px, 9vh, 112px);
  --font: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-fa: "Vazirmatn", Tahoma, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(fa), :lang(ar) { font-family: var(--font-fa); }

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 45%, rgba(4, 6, 10, 0.6) 100%),
    linear-gradient(to top, rgba(4, 6, 10, 0.9) 0%, rgba(4, 6, 10, 0) 40%);
}

/* Wordmark (used by the site header) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7em;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
}
.wordmark__bph { font-weight: 700; letter-spacing: 0.1em; }
.wordmark__sys { font-weight: 300; letter-spacing: 0.44em; color: var(--muted); }

/* Slogan */
.hero__copy {
  position: absolute;
  left: var(--pad-x);
  bottom: var(--pad-b);
  max-width: 62vw;
  pointer-events: none;
}

.hero__title {
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.028em;
  font-weight: 300;
}
.hero__l1, .hero__l2 {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1.6s var(--ease) forwards;
}
.hero__l1 { font-weight: 600; animation-delay: 3.5s; }
.hero__l2 { color: rgba(233, 237, 243, 0.82); animation-delay: 4.05s; }
.hero__dot { color: var(--accent); }

.hero__sub {
  margin-top: 1.7em;
  font-size: clamp(13px, 1.02vw, 16px);
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0;
  animation: fade 1.6s 4.8s var(--ease) forwards;
}

/* Common-language console */
.hero__console {
  position: absolute;
  right: var(--pad-x);
  bottom: var(--pad-b);
  width: min(470px, 34vw);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(233, 237, 243, 0.48);
  opacity: 0;
  animation: fade 1.2s 6.4s var(--ease) forwards; /* just before the first line arrives */
  pointer-events: none;
}
.hero__console-head {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--faint);
  padding-top: 12px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero__lines { min-height: 6.4em; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 0;
  transition: opacity 0.9s ease;
  animation: lineIn 0.7s var(--ease);
}
.hero__line:nth-last-child(2) { opacity: 0.55; }
.hero__line:nth-last-child(3) { opacity: 0.3; }
.hero__line:nth-last-child(4) { opacity: 0.14; }
.hero__line .p { color: rgba(233, 237, 243, 0.88); }
.hero__line .bph { color: var(--accent); }
.hero__line .ora { color: #fff; font-weight: 600; letter-spacing: 0.12em; }
.hero__line .say { color: rgba(255, 255, 255, 0.92); font-style: italic; }
.hero__line .arr { color: rgba(233, 237, 243, 0.25); margin: 0 0.6em; }

/* ORA caption under the core (small screens only; large screens use the console) */
.hero__ora {
  position: absolute;
  left: 0; top: 0;
  display: none;
  width: min(88vw, 360px);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-shadow: 0 0 14px var(--bg), 0 0 5px var(--bg);
}
.hero__ora.is-on { opacity: 1; }
.hero__ora-say { display: block; color: #fff; font-style: italic; }
.hero__ora-say::before { content: "ORA\00a0\00a0"; font-style: normal; font-weight: 600; letter-spacing: 0.12em; }
.hero__ora-intent { display: block; min-height: 1.55em; color: var(--accent); }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fade 1.4s 6.2s ease forwards;
}
.hero__scroll span {
  display: block;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: cue 2.6s 6.2s ease-in-out infinite;
}

@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (max-width: 820px) {
  .hero__console { display: none; }
  .hero__ora { display: block; }
  .hero__copy { max-width: none; right: var(--pad-x); }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
