/* HimaTech 2026
   Editorial Saudi technology system
   Pearl stone, midnight ink and protected mint */

:root {
  --ink: #26345f;
  --ink-2: #31416f;
  --ink-3: #3b4d7d;
  --stone: #f2f0e9;
  --stone-2: #e8e5dc;
  --paper: #faf9f5;
  --white: #ffffff;
  --teal: #75c8b7;
  --teal-bright: #a8eadc;
  --teal-dark: #2d756b;
  --sand: #d8bd83;
  --coral: #ea705e;
  --text: #26345f;
  --muted: #636778;
  --line: rgba(38, 52, 95, 0.14);
  --line-dark: rgba(255, 255, 255, 0.13);
  --display: "Bricolage Grotesque", "IBM Plex Sans Arabic", sans-serif;
  --body: "Instrument Sans", "IBM Plex Sans Arabic", sans-serif;
  --arabic: "IBM Plex Sans Arabic", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 4.8vw, 5rem);
  --max: 1440px;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 28px 80px rgba(38, 52, 95, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--ink);
}

body {
  min-width: 0;
  overflow-x: hidden;
  background: var(--stone);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--teal);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.topbar {
  position: relative;
  z-index: 101;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.73rem;
  letter-spacing: 0.055em;
}

.topbar-inner {
  width: min(var(--max), 100%);
  min-height: 36px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-note > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(117, 200, 183, 0.12), 0 0 16px var(--teal);
}

.topbar-loc {
  color: rgba(255, 255, 255, 0.48);
}

.nav {
  position: sticky;
  z-index: 100;
  inset-block-start: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.91);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.nav.scrolled {
  background: rgba(250, 249, 245, 0.96);
  box-shadow: 0 8px 32px rgba(38, 52, 95, 0.1);
}

.nav-inner {
  width: min(var(--max), 100%);
  height: 82px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  align-items: center;
  gap: clamp(1.1rem, 2.7vw, 2.6rem);
}

.nav-logo {
  width: 104px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.nav-logo img {
  width: 88px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.3rem);
}

.nav-links a {
  position: relative;
  padding: 0.75rem 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0.4rem;
  height: 2px;
  content: "";
  background: var(--teal-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 65px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-globe {
  width: 17px;
  height: 17px;
  flex: none;
}

.lang-toggle:hover {
  border-color: rgba(38, 52, 95, 0.3);
  background: var(--white);
}

.lang-opt {
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* The button shows the globe + the language you'd switch TO, so the
   currently-active option and the separator stay hidden. */
.lang-opt.on,
.lang-sep {
  display: none;
}

.btn {
  position: relative;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, color 220ms ease, background 220ms ease;
}

.btn::after {
  content: "\2197\FE0E"; /* \FE0E = text presentation - a bare ↗ turns into the emoji on iOS */
  font-size: 1.05rem;
  transition: transform 220ms var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translate(3px, -3px);
}

.btn-solid {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(38, 52, 95, 0.2);
}

.btn-solid:hover {
  background: var(--ink-2);
  box-shadow: 0 16px 38px rgba(38, 52, 95, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.btn-shard {
  display: none;
}

.nav-cta {
  min-height: 46px;
  padding: 0.75rem 1.05rem;
}

.nav-burger {
  width: 48px;
  height: 48px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 19px;
  height: 1.5px;
  display: block;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 99;
  inset: 82px 0 auto;
  padding: 1.1rem var(--gutter) 1.5rem;
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-115%);
  opacity: 0;
  visibility: hidden;
  transition: transform 300ms var(--ease), opacity 200ms ease, visibility 200ms ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-label {
  margin-bottom: 0.45rem;
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu > a {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.mobile-menu > a::after {
  content: "\2197\FE0E"; /* \FE0E = text presentation - a bare ↗ turns into the emoji on iOS */
  color: var(--teal-dark);
}

.mobile-menu .mobile-menu-cta {
  margin-top: 0.7rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  padding: clamp(3.8rem, 8vw, 7.8rem) var(--gutter) clamp(3.5rem, 7vw, 6.3rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 73% 22%, rgba(117, 200, 183, 0.22), transparent 27%),
    linear-gradient(115deg, var(--paper) 0%, var(--paper) 64%, #e5e6dd 100%);
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(38, 52, 95, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 52, 95, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.82), transparent 74%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  min-width: 520px;
  min-height: 520px;
  inset-inline-end: -13vw;
  inset-block-end: -28vw;
  border: 1px solid rgba(38, 52, 95, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 50px rgba(38, 52, 95, 0.03),
    0 0 0 120px rgba(38, 52, 95, 0.02);
}

.hero-grid {
  display: none;
}

.shard {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero .shard polygon {
  fill: rgba(46, 117, 107, 0.11);
}

.shard-a {
  width: 260px;
  inset-inline-start: -60px;
  inset-block-end: -20px;
}

.shard-b {
  width: 300px;
  inset-inline-end: -60px;
  inset-block-start: 10%;
}

.hero-inner {
  width: min(var(--max), 100%);
  display: block;
  align-items: center;
}

.hero-copy {
  max-width: 1080px;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-tick,
.kicker::before {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 1060px;
  margin-top: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.65rem, 7.1vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.hero h1 em {
  color: var(--teal-dark);
  font-style: normal;
}

.hero-sub {
  max-width: 670px;
  margin-top: 2.2rem;
  color: #565b6c;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  max-width: 670px;
  margin-top: clamp(2.8rem, 5.5vw, 5rem);
  padding-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  min-height: 72px;
  padding-inline-start: 1rem;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-inline-start: 1px solid var(--line);
}

.hero-meta > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.hero-meta dt {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-meta dd {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  font-weight: 600;
  line-height: 1.2;
}

.hero-stage {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px 64px 2px 2px;
  background:
    radial-gradient(circle at 50% 48%, rgba(117, 200, 183, 0.14), transparent 29%),
    linear-gradient(155deg, var(--ink-2), var(--ink));
  color: var(--white);
  box-shadow: 0 36px 90px rgba(38, 52, 95, 0.26);
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.stage-top,
.stage-bottom {
  position: relative;
  z-index: 3;
  padding: 1.15rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
}

.stage-top {
  border-bottom: 1px solid var(--line-dark);
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--teal-bright);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-status > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease infinite;
}

.stage-code {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
}

.stage-map {
  position: relative;
  min-height: 430px;
}

.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(168, 234, 220, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  inset: -4px 50% auto auto;
  border-radius: 50%;
  content: "";
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.orbit-one {
  width: 155px;
  height: 155px;
}

.orbit-two {
  width: 255px;
  height: 255px;
}

.orbit-three {
  width: 355px;
  height: 355px;
}

.stage-core {
  position: absolute;
  z-index: 2;
  width: 102px;
  height: 102px;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 234, 220, 0.42);
  border-radius: 50%;
  background: rgba(117, 200, 183, 0.1);
  box-shadow:
    0 0 0 14px rgba(117, 200, 183, 0.035),
    0 0 48px rgba(117, 200, 183, 0.14);
  transform: translate(-50%, -50%);
}

.stage-core img {
  width: 44px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.stage-core small {
  position: absolute;
  inset-block-end: 12px;
  color: var(--teal-bright);
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.1em;
}

.stage-node {
  position: absolute;
  z-index: 2;
  min-width: 64px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(38, 52, 95, 0.88);
  backdrop-filter: blur(10px);
}

.stage-node b,
.stage-node i {
  display: block;
  font-family: var(--mono);
  font-style: normal;
}

.stage-node b {
  color: var(--teal);
  font-size: 0.58rem;
}

.stage-node i {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.node-code {
  inset-block-start: 15%;
  inset-inline-start: 7%;
}

.node-docs {
  inset-block-start: 18%;
  inset-inline-end: 7%;
}

.node-infra {
  inset-block-end: 15%;
  inset-inline-start: 10%;
}

.node-audit {
  inset-block-end: 17%;
  inset-inline-end: 8%;
}

.stage-sweep {
  position: absolute;
  width: 47%;
  height: 47%;
  inset: 50% auto auto 50%;
  overflow: hidden;
  transform-origin: 0 0;
  animation: radar 8s linear infinite;
}

.stage-sweep::before {
  position: absolute;
  width: 200%;
  height: 200%;
  inset: 0 auto auto 0;
  border-top: 1px solid rgba(117, 200, 183, 0.48);
  content: "";
  background: conic-gradient(from 270deg, rgba(117, 200, 183, 0.2), transparent 24deg);
}

.stage-bottom {
  border-top: 1px solid var(--line-dark);
}

.stage-bottom > span {
  flex: 1;
}

.stage-bottom > span + span {
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--line-dark);
}

.stage-bottom i,
.stage-bottom b {
  display: block;
  font-style: normal;
}

.stage-bottom i {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stage-bottom b {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  font-weight: 500;
}

/* Shared section rhythm */
.overview-inner,
.manifesto-inner,
.suite,
.sovereign-inner,
.contact-inner,
.footer-inner,
.footer-base {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.overview {
  padding: clamp(5.5rem, 10vw, 10rem) var(--gutter);
  background: var(--stone);
}

.overview-head {
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.overview h2,
.suite-head h2,
.sovereign h2,
.contact h2,
.manifesto h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.overview h2 {
  max-width: 780px;
  margin-top: 0.9rem;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 1;
}

.ov-all,
.p-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.ov-all::after,
.p-link::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -0.4rem;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.ov-all:hover::after,
.p-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.arrow {
  display: inline-block;
  transition: transform 250ms var(--ease);
}

a:hover .arrow {
  transform: translateX(5px);
}

[dir="rtl"] a:hover .arrow {
  transform: translateX(-5px);
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1rem;
}

.ov-card {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 380ms var(--ease), box-shadow 380ms ease, border-color 250ms ease;
}

.ov-card:nth-child(1),
.ov-card:nth-child(4) {
  grid-column: span 7;
}

.ov-card:nth-child(2),
.ov-card:nth-child(3) {
  grid-column: span 5;
}

.ov-card:nth-child(1) {
  border-radius: 2px 34px 2px 2px;
  background: var(--ink);
  color: var(--white);
}

.ov-card:nth-child(2) {
  border-radius: 2px 2px 2px 34px;
  background: #dcece6;
}

.ov-card:nth-child(3) {
  border-radius: 2px 34px 2px 2px;
  background: #dedfe9;
}

.ov-card:nth-child(4) {
  border-radius: 2px 2px 34px 2px;
  background: var(--paper);
}

.ov-card::before {
  position: absolute;
  width: 170px;
  height: 170px;
  inset-inline-end: -72px;
  inset-block-start: -72px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.1;
  box-shadow: 0 0 0 32px currentColor, 0 0 0 64px currentColor;
}

.ov-card::after {
  position: absolute;
  inset-inline-end: 1.5rem;
  inset-block-end: 1.1rem;
  content: "0" counter(card);
  color: currentColor;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.045;
}

.ov-card:nth-child(1) { counter-reset: card 1; }
.ov-card:nth-child(2) { counter-reset: card 2; }
.ov-card:nth-child(3) { counter-reset: card 3; }
.ov-card:nth-child(4) { counter-reset: card 4; }

.ov-card:hover {
  z-index: 2;
  border-color: rgba(46, 117, 107, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.ov-chip,
.chip {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.66;
}

.ov-card h3 {
  margin-top: auto;
  padding-top: 4.2rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.ov-card h3 b {
  color: var(--teal-dark);
  font-weight: 600;
}

.ov-card:nth-child(1) h3 b {
  color: var(--teal);
}

.ov-card > p {
  max-width: 550px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.ov-card:nth-child(1) > p {
  color: rgba(255, 255, 255, 0.58);
}

.ov-link {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.ov-card:nth-child(1) .ov-link {
  color: var(--teal);
}

/* Manifesto */
.manifesto {
  position: relative;
  padding: clamp(6rem, 11vw, 11rem) var(--gutter);
  overflow: hidden;
  background: #101426;
  color: var(--white);
}

.manifesto::before {
  position: absolute;
  width: 680px;
  height: 680px;
  inset-inline-start: -360px;
  inset-block-start: -320px;
  border: 1px solid rgba(117, 200, 183, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(117, 200, 183, 0.025), 0 0 0 150px rgba(117, 200, 183, 0.016);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.45fr);
  align-items: start;
  gap: clamp(3.5rem, 9vw, 10rem);
}

.manifesto-ar {
  position: sticky;
  inset-block-start: 130px;
  min-height: 520px;
  display: grid;
  place-items: center;
  border-inline-end: 1px solid var(--line-dark);
}

.manifesto-ar::before {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  content: "حِمى";
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--arabic);
  font-size: clamp(7rem, 14vw, 13rem);
  font-weight: 600;
  line-height: 1;
  writing-mode: vertical-rl;
}

.manifesto-logo {
  width: clamp(160px, 18vw, 250px);
  aspect-ratio: 1;
  display: block;
  background: url("../assets/hima-mark-white.png") center / 68% auto no-repeat;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.28));
  opacity: 0.9;
}

.manifesto .kicker {
  color: var(--teal);
}

.manifesto h2 {
  max-width: 930px;
  margin-top: 1.2rem;
  font-size: clamp(2.75rem, 5.7vw, 6rem);
  line-height: 1;
}

.manifesto mark {
  padding: 0;
  background: transparent;
  color: var(--teal);
}

.manifesto-copy > p:not(.kicker) {
  max-width: 800px;
  margin-top: 1.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
}

.manifesto-copy > p strong {
  color: var(--white);
  font-weight: 500;
}

.doctrine {
  margin-top: clamp(3.3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line-dark);
}

.doctrine-item {
  min-height: 138px;
  padding: 1.7rem 0;
  display: grid;
  grid-template-columns: 64px 0.75fr 1.25fr;
  align-items: start;
  gap: clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line-dark);
  transition: padding-inline 260ms var(--ease), background 260ms ease;
}

.doctrine-item:hover {
  padding-inline: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.doctrine-num {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.doctrine-item h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
}

.doctrine-item p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
}

/* Suite */
.suite-band {
  background: var(--paper);
}

.suite {
  padding: clamp(6rem, 11vw, 10.5rem) var(--gutter);
}

.suite-head {
  margin-bottom: clamp(4rem, 8vw, 7.5rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: end;
  gap: 2rem;
}

.suite-head .kicker {
  align-self: start;
}

.suite-head h2 {
  justify-self: end;
  max-width: 720px;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.98;
}

.product {
  position: relative;
  min-height: 520px;
  margin-top: 1.3rem;
  padding: clamp(1.5rem, 4vw, 4.2rem);
  display: grid;
  grid-template-columns: 88px minmax(310px, 0.8fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(1.7rem, 4vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--stone);
  overflow: hidden;
}

.product:nth-of-type(odd) {
  background: #eeece5;
}

.product:nth-of-type(even) {
  background: #e6ebe6;
}

.product::before {
  position: absolute;
  width: 420px;
  height: 420px;
  inset-inline-end: -280px;
  inset-block-start: -240px;
  border: 1px solid rgba(38, 52, 95, 0.1);
  border-radius: 50%;
  content: "";
}

.product-index {
  height: 100%;
  padding-inline-end: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-inline-end: 1px solid var(--line);
}

.product-index span {
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.product-index i {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.product-copy {
  position: relative;
  z-index: 2;
}

.product-copy h3 {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.p-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
}

.p-name b {
  color: var(--teal-dark);
  font-weight: 600;
}

.p-ar {
  color: var(--muted);
  font-family: var(--arabic);
  font-size: 1rem;
  font-weight: 400;
}

.p-tag {
  max-width: 520px;
  margin-top: 1.5rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.48rem);
  font-weight: 500;
  line-height: 1.35;
}

.p-desc {
  max-width: 570px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.p-desc strong {
  color: var(--ink);
  font-weight: 600;
}

.p-feats {
  max-width: 590px;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.p-feats li {
  position: relative;
  min-height: 67px;
  padding: 0.8rem 0.7rem 0.8rem 1.35rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #4d5263;
  font-size: 0.76rem;
  line-height: 1.4;
}

[dir="rtl"] .p-feats li {
  padding-inline: 1.35rem 0.7rem;
}

.p-feats li:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.p-feats li::before {
  position: absolute;
  inset-inline-start: 0.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(45, 117, 107, 0.08);
}

.p-link {
  margin-top: 1.65rem;
}

.product-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  place-items: center;
}

.product-icon {
  --icon-accent: var(--teal-dark);
  position: relative;
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--icon-accent);
  isolation: isolate;
}

.product-icon::before {
  position: absolute;
  z-index: -1;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: color-mix(in srgb, var(--icon-accent) 7%, transparent);
  filter: blur(4px);
  transform: scale(0.82);
  transition: transform 500ms var(--ease);
}

.product-icon::after {
  position: absolute;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--icon-accent) 13%, transparent);
  border-radius: 50%;
  content: "";
  transform: scale(0.84);
  opacity: 0;
  transition:
    opacity 400ms var(--ease),
    transform 600ms var(--ease);
}

.product:hover .product-icon::before {
  transform: scale(1);
}

.product:hover .product-icon::after {
  opacity: 1;
  transform: scale(1);
}

.product-icon svg {
  width: 82%;
  height: 82%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--icon-accent) 11%, transparent));
  transition: transform 500ms var(--ease);
}

.product:hover .product-icon svg {
  transform: translateY(-5px);
}

.product-icon .icon-orbit {
  stroke: color-mix(in srgb, var(--icon-accent) 52%, transparent);
}

.product-icon .icon-orbit-inner {
  stroke: color-mix(in srgb, var(--icon-accent) 30%, transparent);
}

.product-icon .icon-core {
  fill: color-mix(in srgb, var(--icon-accent) 12%, var(--paper));
  stroke-width: 2.4;
}

.product-icon .icon-node {
  fill: var(--stone);
  stroke-width: 2.4;
}

.product-icon .icon-sweep,
.product-icon .icon-transfer,
.product-icon .icon-check {
  stroke-width: 2.6;
}

.icon-attack {
  --icon-accent: #9f5e55;
}

.icon-git {
  --icon-accent: #506d9f;
}

.icon-share {
  --icon-accent: #287c70;
}

.icon-consultant {
  --icon-accent: #806b49;
}

.term,
.gitpanel,
.sharepanel,
.viewerpanel {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px 34px 2px 2px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 30px 70px rgba(38, 52, 95, 0.22);
}

.term {
  position: relative;
}

.term-bar,
.viewer-bar,
.gitpanel-head {
  min-height: 48px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.term-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.term-bar i:first-child {
  background: var(--coral);
}

.term-bar i:nth-child(2) {
  background: var(--sand);
}

.term-bar i:nth-child(3) {
  background: var(--teal);
}

.term-bar span {
  margin-inline-start: auto;
  color: rgba(255, 255, 255, 0.4);
}

.term-body {
  position: relative;
  z-index: 2;
  padding: 1.35rem;
  font-family: var(--mono);
  font-size: clamp(0.52rem, 0.72vw, 0.66rem);
  line-height: 1.85;
}

.t-line {
  color: rgba(255, 255, 255, 0.66);
  white-space: normal;
}

.t-prompt,
.t-ok,
.mono-teal {
  color: var(--teal);
}

.t-dim,
.mono-dim {
  color: rgba(255, 255, 255, 0.33);
}

.t-crit {
  color: var(--coral);
}

.t-high {
  color: var(--sand);
}

.t-cursor {
  width: 7px;
  height: 12px;
  display: inline-block;
  background: var(--teal);
  animation: blink 1s steps(2) infinite;
}

.term-scan {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 18px var(--teal);
  opacity: 0.35;
  animation: scan 4.8s linear infinite;
}

.gitpanel {
  padding-bottom: 1.4rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(117, 200, 183, 0.12), transparent 35%),
    var(--ink);
}

.gitpanel-head {
  justify-content: space-between;
}

.chip-red {
  color: #ff9d8f;
}

.chip-teal {
  color: var(--teal);
}

.chip-navy {
  color: var(--ink);
}

.gitpanel-repo {
  color: rgba(255, 255, 255, 0.35);
}

.gitgraph {
  width: calc(100% - 3rem);
  height: auto;
  margin: 2.3rem auto 1.3rem;
}

.gg-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.23);
  stroke-width: 2;
}

.gg-line2 {
  stroke-dasharray: 4 6;
}

.gg-dot {
  fill: #6a708a;
  stroke: var(--ink);
  stroke-width: 3;
}

.gg-teal,
.gg-head {
  fill: var(--teal);
}

.gg-head {
  filter: drop-shadow(0 0 8px var(--teal));
}

.gitpanel-trail {
  margin: 0 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
  line-height: 1.9;
}

.sharepanel {
  position: relative;
  padding: 2.4rem 1.4rem 1.4rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(117, 200, 183, 0.12), transparent 34%),
    var(--ink);
}

.share-doc {
  max-width: 430px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.share-doc-ic {
  width: 38px;
  height: 47px;
  border: 1px solid var(--teal);
  background: linear-gradient(135deg, transparent 11px, rgba(117, 200, 183, 0.12) 0);
}

.share-doc-meta strong {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.share-doc-meta .chip {
  margin-top: 0.42rem;
  color: var(--teal);
}

.share-lock {
  width: 28px;
}

.share-lock svg {
  fill: var(--teal);
}

.share-beam {
  position: relative;
  width: 2px;
  height: 74px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(117, 200, 183, 0.19);
}

.share-beam span {
  position: absolute;
  width: 100%;
  height: 30px;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: beam 2s ease infinite;
}

.share-audit {
  max-width: 460px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.65vw, 0.61rem);
  line-height: 1.9;
}

.viewerpanel {
  background: var(--ink);
}

.viewer-bar {
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
}

.viewer-page {
  position: relative;
  width: 73%;
  min-height: 290px;
  margin: 1.7rem auto;
  padding: 3rem 2rem;
  overflow: hidden;
  background: #e8e6df;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.viewer-watermark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 150%;
  color: rgba(38, 52, 95, 0.09);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-25deg);
}

.vp-line {
  height: 7px;
  margin-bottom: 0.9rem;
  background: #c1c0bb;
}

.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }
.w95 { width: 95%; }

.viewer-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(38, 52, 95, 0.96);
  opacity: 0;
  animation: blocked 6s ease infinite;
}

.viewer-flash span {
  max-width: 80%;
  color: #ff9d8f;
  font-family: var(--mono);
  font-size: 0.62rem;
  text-align: center;
}

/* Sovereignty */
.sovereign {
  position: relative;
  padding: clamp(6rem, 11vw, 11rem) var(--gutter);
  overflow: hidden;
  background: #dce9e3;
}

.sovereign::before {
  position: absolute;
  width: 700px;
  height: 700px;
  inset-inline-end: -310px;
  inset-block-start: -350px;
  border: 1px solid rgba(45, 117, 107, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 90px rgba(45, 117, 107, 0.035), 0 0 0 190px rgba(45, 117, 107, 0.02);
}

.sovereign-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 52, 95, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 52, 95, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.sovereign-inner {
  position: relative;
}

.sovereign h2 {
  max-width: 900px;
  margin-top: 1.2rem;
  font-size: clamp(3.1rem, 7vw, 7.2rem);
  line-height: 0.92;
}

.pillars {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(38, 52, 95, 0.17);
  border-bottom: 1px solid rgba(38, 52, 95, 0.17);
}

.pillar {
  min-height: 330px;
  padding: clamp(1.5rem, 3.2vw, 2.8rem);
}

.pillar + .pillar {
  border-inline-start: 1px solid rgba(38, 52, 95, 0.17);
}

.pillar svg {
  width: 42px;
  height: 42px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  fill: var(--teal-dark);
}

.pillar h3 {
  max-width: 300px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
}

.pillar p {
  margin-top: 1rem;
  color: #4e625d;
  font-size: 0.9rem;
}

.comp {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.comp-title {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(38, 52, 95, 0.18);
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.11em;
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.comp-card {
  min-height: 210px;
  padding: 1.7rem 1.4rem;
  border-bottom: 1px solid rgba(38, 52, 95, 0.15);
}

.comp-card:not(:nth-child(3n + 1)) {
  border-inline-start: 1px solid rgba(38, 52, 95, 0.15);
}

.comp-acr {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.comp-card h4 {
  max-width: 330px;
  margin-top: 1.3rem;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.comp-card p {
  margin-top: 0.6rem;
  color: #52625f;
  font-size: 0.8rem;
}

.comp-note {
  max-width: 850px;
  margin-top: 1.2rem;
  color: #60706c;
  font-size: 0.77rem;
}

/* Contact and footer */
.contact {
  position: relative;
  padding: clamp(6rem, 12vw, 12rem) var(--gutter);
  overflow: hidden;
  background: #101426;
  color: var(--white);
}

.contact::before {
  position: absolute;
  width: 60vw;
  height: 60vw;
  min-width: 750px;
  min-height: 750px;
  inset-inline-end: -28vw;
  inset-block-start: -22vw;
  border: 1px solid rgba(117, 200, 183, 0.11);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(117, 200, 183, 0.025), 0 0 0 155px rgba(117, 200, 183, 0.014);
}

.contact .shard {
  width: 420px;
  inset-inline-start: -100px;
  inset-block-end: -70px;
}

.contact .shard polygon {
  fill: rgba(117, 200, 183, 0.08);
}

.contact-inner {
  position: relative;
}

.contact-falcon {
  position: absolute;
  width: clamp(260px, 32vw, 490px);
  aspect-ratio: 1;
  inset-inline-end: 2%;
  inset-block-start: 50%;
  background: url("../assets/hima-mark-white.png") center / contain no-repeat;
  opacity: 0.045;
  transform: translateY(-50%);
}

.contact .kicker {
  color: var(--teal);
}

.contact h2 {
  max-width: 800px;
  margin-top: 1.2rem;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.82;
}

.contact h2 em {
  color: var(--teal);
  font-style: normal;
}

.contact-sub {
  max-width: 620px;
  margin-top: 2.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.contact-cta {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem 1.6rem;
  flex-wrap: wrap;
}

.contact .btn-solid {
  background: var(--teal);
  color: #101426;
  box-shadow: 0 18px 50px rgba(117, 200, 183, 0.16);
}

.contact .btn-solid:hover {
  background: var(--teal-bright);
}

.btn-lg {
  min-height: 60px;
  padding-inline: 1.55rem;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.contact-note {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.75rem;
}

.footer {
  padding: clamp(4rem, 7vw, 6.5rem) var(--gutter) 1.4rem;
  background: #0b0e1a;
  color: rgba(255, 255, 255, 0.52);
}

.footer-inner {
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-brand img {
  width: 120px;
  max-height: 86px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 310px;
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.85rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.footer-h {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  font-size: 0.8rem;
}

.footer-col a {
  width: fit-content;
  transition: color 180ms ease;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-base {
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.66rem;
}

.footer-glyph {
  color: var(--teal);
  letter-spacing: 0.55em;
  opacity: 0.62;
}

.ar-inline {
  font-family: var(--arabic);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Motion */
.rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 900ms var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 750ms var(--ease), transform 750ms var(--ease);
  transition-delay: var(--rd, 0s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  50% { opacity: 0.45; transform: scale(0.85); }
}

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

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(340px); }
}

@keyframes beam {
  from { transform: translateY(-32px); }
  to { transform: translateY(78px); }
}

@keyframes blocked {
  0%, 52%, 68%, 100% { opacity: 0; }
  56%, 64% { opacity: 1; }
}

/* RTL */
[dir="rtl"] body {
  font-family: var(--arabic);
}

[dir="rtl"] .hero h1,
[dir="rtl"] .overview h2,
[dir="rtl"] .manifesto h2,
[dir="rtl"] .suite-head h2,
[dir="rtl"] .sovereign h2,
[dir="rtl"] .contact h2,
[dir="rtl"] .p-name,
[dir="rtl"] .p-tag,
[dir="rtl"] .pillar h3,
[dir="rtl"] .doctrine-item h3 {
  font-family: var(--arabic);
  letter-spacing: -0.025em;
}

[dir="rtl"] .hero h1 {
  line-height: 1.05;
}

[dir="rtl"] .manifesto h2,
[dir="rtl"] .suite-head h2,
[dir="rtl"] .sovereign h2,
[dir="rtl"] .contact h2 {
  line-height: 1.08;
}

[dir="rtl"] .nav-links a,
[dir="rtl"] .btn {
  font-family: var(--arabic);
}

[dir="rtl"] .product-index i {
  transform: none;
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-inner {
    grid-template-columns: 108px 1fr auto auto;
    gap: 1.1rem;
  }

  .nav-links {
    gap: 1.15rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.75fr);
    gap: 3rem;
  }

  .hero-stage {
    min-height: 520px;
  }

  .stage-map {
    min-height: 365px;
    transform: scale(0.9);
  }

  .product {
    grid-template-columns: 62px minmax(280px, 0.85fr) minmax(340px, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: 110px 1fr auto auto;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    justify-self: end;
  }

  .nav-burger,
  .mobile-menu {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-stage {
    width: min(680px, 100%);
    min-height: 560px;
    justify-self: end;
  }

  .stage-map {
    min-height: 405px;
    transform: none;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
  }

  .manifesto-ar {
    position: relative;
    inset: auto;
    min-height: 270px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .manifesto-ar::before {
    font-size: 8rem;
    writing-mode: initial;
  }

  .manifesto-logo {
    width: 170px;
  }

  .suite-head {
    grid-template-columns: 1fr;
  }

  .suite-head h2 {
    justify-self: start;
  }

  .product {
    grid-template-columns: 58px 1fr;
  }

  .product-visual {
    grid-column: 2;
    width: min(680px, 100%);
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: auto;
  }

  .pillar + .pillar {
    border-inline-start: 0;
    border-top: 1px solid rgba(38, 52, 95, 0.17);
  }

  .pillar svg {
    margin-bottom: 2.5rem;
  }

  .comp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comp-card:not(:nth-child(3n + 1)) {
    border-inline-start: 0;
  }

  .comp-card:nth-child(even) {
    border-inline-start: 1px solid rgba(38, 52, 95, 0.15);
  }

  .footer-inner {
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .topbar-loc {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-inner {
    height: 72px;
    grid-template-columns: 1fr auto auto;
  }

  .nav-logo {
    width: 84px;
    height: 64px;
    justify-self: start;
  }

  .nav-logo img {
    width: 80px;
    max-height: 62px;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu {
    inset-block-start: 72px;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5.25rem);
  }

  .hero-sub {
    margin-top: 1.6rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta > div {
    min-height: auto;
    padding: 0.75rem 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-meta dt {
    margin-top: 0;
  }

  .hero-stage {
    min-height: 470px;
    border-radius: 2px 36px 2px 2px;
  }

  .stage-map {
    min-height: 325px;
    transform: scale(0.83);
  }

  .stage-bottom {
    align-items: flex-start;
  }

  .overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ov-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .ov-card:nth-child(n) {
    min-height: 290px;
    grid-column: 1;
  }

  .doctrine-item {
    grid-template-columns: 42px 1fr;
  }

  .doctrine-item p {
    grid-column: 2;
  }

  .product {
    min-height: 0;
    padding: 1.3rem;
    grid-template-columns: 1fr;
  }

  .product-index {
    height: auto;
    padding: 0 0 0.8rem;
    flex-direction: row;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-index i {
    writing-mode: initial;
    transform: none;
  }

  .product-copy,
  .product-visual {
    grid-column: 1;
  }

  .p-feats {
    grid-template-columns: 1fr;
  }

  .p-feats li:nth-child(odd) {
    border-inline-end: 0;
  }

  .term,
  .gitpanel,
  .sharepanel,
  .viewerpanel {
    min-height: 330px;
    border-radius: 2px 24px 2px 2px;
  }

  .product-visual {
    min-height: 250px;
  }

  .product-icon {
    width: min(210px, 62vw);
  }

  .viewer-page {
    width: 82%;
  }

  .comp-grid {
    grid-template-columns: 1fr;
  }

  .comp-card:nth-child(even) {
    border-inline-start: 0;
  }

  .contact h2 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .contact-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-base {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 440px) {
  .topbar {
    font-size: 0.64rem;
  }

  .lang-toggle {
    min-width: 58px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stage {
    min-height: 420px;
  }

  .stage-map {
    min-height: 285px;
    margin-inline: -30px;
    transform: scale(0.72);
  }

  .stage-bottom {
    padding: 0.85rem;
  }

  .manifesto-ar {
    min-height: 210px;
  }

  .term-body {
    padding: 1rem;
  }

  .share-doc {
    grid-template-columns: auto 1fr;
  }

  .share-lock {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
